Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Proper way to send the schema and the XML
Message
De
14/01/2006 13:53:10
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
XML
Titre:
Proper way to send the schema and the XML
Divers
Thread ID:
01086836
Message ID:
01086836
Vues:
71
There sure use a better way to return the schema and the XML content of a dataset then the way I am doing it now. By default, if you do something like this:
lcXml=toDataSet.GetXmlSchema()+toDataSet.GetXml()
lcXml becomes unreadable by the browser because there should only be one root element. In order to make lcXml readable, I have to do some funny parsing:
            lcXml = toDataSet.GetXml()
            lcXmlSchema = toDataSet.GetXmlSchema()
            lcDataSetName = Mid(lcXml, 1, lcXml.IndexOf(">") + 1)
            lcEncoding = Mid(lcXmlSchema, 1, lcXmlSchema.IndexOf(">") + 1)
            lcXmlResult = lcEncoding + lcDataSetName + Mid(lcXmlSchema, lcXmlSchema.IndexOf(">") + 2) + _
             Mid(lcXml, lcXml.IndexOf(">") + 2)
            Return lcXmlResult
There sure is a better way to do that. Comments?
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform