Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Two tables in one XML file...
Message
De
20/07/2001 03:22:10
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
West Wind Web Connection
Divers
Thread ID:
00532821
Message ID:
00533011
Vues:
15
>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?

Jean,
getElementsByTagName(TagName) ?
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform