Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
:Xsi
Message
From
14/07/2005 12:08:58
 
 
To
All
General information
Forum:
ASP.NET
Category:
XML
Title:
:Xsi
Miscellaneous
Thread ID:
01032698
Message ID:
01032698
Views:
73
I am working with the XML textwriter class and must confess to not knowing a whole lot about XML. I am having no issues using the class it is very simple and everything works great except I am trying to recreate a file sent to me using the text writer class and it has an :xsi attribute that I am not sure if I need to add it the way I am doing below using the writeattributestring method or if there is another way.. Also I would like to know what is is for.. It is not in the cheap book I have on xml so I am kind of lost.

here is a snippent of the XML i need to create
- <Message xmlns="http://www.someplace.com/webservice/0-20041220" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" parseonly="false" ConfigId="000003">
Here is a snippet of the Vb Code I am writing
 'Write Root Element
        writer.WriteStartElement("Message", "http://www.someplace.com/webservice/0-20041220")
        ' Write attributes
        writer.WriteAttributeString("xmlns:xsi", "http://www.w3.org/2001/XMLSCHEMA-instance")
        writer.WriteAttributeString("parseonly", "false")
        writer.WriteAttributeString("ConfigId", "999999")
Next
Reply
Map
View

Click here to load this message in the networking platform