Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Two tables in one XML file...
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
West Wind Web Connection
Titre:
Two tables in one XML file...
Divers
Thread ID:
00532821
Message ID:
00532821
Vues:
39
I created a XML with two table in it.
The XML look like this:
(?xml version='1.0'?>
(LowLevel>
		(XMLMyFirstTable>
			(Row_MyFirstTable>
                         ...
			(/Row_MyFirstTable>
		(/XMLMyFirstTable>
		(XMLMySecondTable>
			(Row_SecondTable>
                         ...
			(/Row_SecondTable>
		(/XMLSecondTable>
(/LowLevel>
For Now I use the Microsoft.xmlDom object to get to the childNode of LowLevel.
loXML = CREATEOBJECT("Microsoft.xmlDom") && Use MS XML Dom Object
lowwXML=createobject("wwxml")            && Use West Wind XML

loXML.LoadXML( lcXML )   && Use the MS XML DOm to load a XML which contain two cursor
loDocRoot = loXML.DocumentElement  && Get the Root Document
loCursor = loDocRoot.ChildNodes(0) && Get the first Nodes which is a WWXMLCursor
Select MyFirstTable
lowwXML.ParseXMLToCursor(loCursor) && Use the WWXML to conver the XML to Cursor
Select MySecondTable
loCursor = loDocRoot.ChildNodes(1) && Get the second XML Cursor
lowwXML.ParseXMLToCursor(loCursor) && Use the WWXML to conver the XML to Cursor
This is ok if you know how many childnodes you have to extract but I like to use the XSL object to get the childNode from the tag name. How can I do this?
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform