All,
I am trying to generate the following header when serializing a class
to XML
<FpML
version="4-0"
xsi:type="TradeAffirmation"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.fpml.org/2003/FpML-4-0
fpml-main-4-0.xsd"
xmlns="http://www.fpml.org/2003/FpML-4-0">
</FpML>
The class is currently declared as:
<System.Xml.Serialization.XmlTypeAttribute([Namespace]:="http://www.fpml.org/2003/FpML-4-0"),
_
System.Xml.Serialization.XmlRootAttribute([DataType]:="TradeAffirmation")>
_
Public Class FpML
End Class
This generates the following:
<FpML xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
</FpML>
I am unsure how to get my code to generate the header correctly. Any
ideas?
Many thanks
Paul
----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---