Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding schema attributes to root node
Message
De
18/12/2003 18:21:45
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
XML, XSD
Titre:
Adding schema attributes to root node
Divers
Thread ID:
00860573
Message ID:
00860573
Vues:
69
To conform to a specific XML schema, I need to add some schema attributes to a root node.

So, to create:
<ns0:MyRoot xmlns:ns0="http://tempuri.org/MyFile.xsd"
 xmlns:b="http://schemas.microsoft.com/BizTalk/2003"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xsi:schemaLocation="http://tempuri.org/MyFile.xsd C:\MyDir\MyFile.xsd">
I have:
loXML=CREATEOBJECT('MSXML.DOMDocument')
loXML.LoadXML('')
loNode=loXML.CreateNode(1,'ns0:MyRoot','http://tempuri.org/MyFile.xsd')
loXML.DocumentElement=loNode
This is good to create the root node and the first attribute. But, how do I add the other attributes?
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