Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
:Xsi
Message
De
14/07/2005 12:08:58
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
XML
Titre:
:Xsi
Divers
Thread ID:
01032698
Message ID:
01032698
Vues:
71
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")
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform