Quote:
quote:Originally posted by prashantnair
My table consists of the fields "ParentDuns", "ParentLocation", "ManufacturerDuns" & "ManufacturerLocation", so if were to write a sql with the keywords "FOR XML AUTO" or "FOR XML AUTO, ELEMENTS" i do not get the required output format. Do i am thinking that i need to modify the output of my sql, but i don't know how? I know how to read the data from a table in vb.net, but how i read the data from the table and write it out in the xml format given below?
|
hi friend,
I thought you might get the partial solution to your problem
I dataset of
Vb.NET there is method of save in which u specify
the XML as its output but the XML generated in which it gives the
complete listing the of fields and associated attribute as well
as the data you are desire as the requirement is of fields name
should be of same name as like the element name
i have tried in
VB with ADO 2.8, the recordset method save in which u have
to specify persistformat
<partinformation>
<header>
<extractversion>1.1.2</extractversion>
<Parentinformation>
<Duns>12346</Duns>
<Location>01</Location>
</Parentinformation>
<ManufacturerInformation>
<Duns>54646</Duns>
<Location>01</Location>
</ManufacturerInformation>
</header>
</partinformation>
Thanks
Sunil