Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Two tables in one XML file...
Message
From
20/07/2001 03:22:10
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
West Wind Web Connection
Miscellaneous
Thread ID:
00532821
Message ID:
00533011
Views:
14
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform