Hi Occ,
> I have been trying to generate a xml file via typed datasets using the
> writexml method. ... [snip]
> how can I get rid of the xmlns attribute from the xml file and prefix
> with bw.There is no prefix property for DataRow field.
There's only so much the ready-made WriteXml method can go, but if you have
special requirements on the resultsing XML formatting, I suggest you take
either of these two routes: either output the XML by hand, or create an XSLT
transformation to come up with the required XML.
Outputting the XML by hand can be simple or complex depending on your
dataset structure, but given the XML you showed, I'd expect this to be a
straightforward operation. At least for me, it would take longer to come up
with the XSL transformation file, at least without tools.
On the other hand, if you are interested in the transformations, see here:
http://msdn.microsoft.com/en-us/library/8fd7xytc.aspx
Hope this helps!
--
Regards,
Jani Järvinen
C# MVP
Vantaa, Finland
E-mail:
(E-Mail Removed)
Business:
http://www.nimacon.net/
Personal:
http://www.saunalahti.fi/janij/