benueLoryBurn
New Member
I am using the \[code\]XmlWriter\[/code\] class to create an XML document.I am able to produce the document as required except for the root element. I cannot seem to be able to create the the root element with the required attributes which is proving troublesome because of the namespaces and prefixes that are needed.What I am trying to do is produce output like the following:\[code\]<prx:rootname xmlnsrx="url1" xmlns:xsi="url2" xsi:schemaLocation="url3">\[/code\]The above is a condensed example of the actual root element needed, the actual URLs are quite verbose for example.FYI, all other child elements use the same prefix as the root element. Can I use this class or would I have to use another method to generate the desired XML output?