Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Limitation
Message
From
04/03/2003 19:14:00
 
 
To
04/03/2003 15:28:25
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00761128
Message ID:
00761282
Views:
27
>I have one XML file. Can you help me take a look?
>Actually I don't know it is standard XML file or not?
>How can i attachment a file and send it to you?

The XML string is built manually. It's not something created with CURSORTOXML() from the server side. So, you will have to extract the data by the use of the DOM object. For example:
* Return a specific XML node value
* expC1 XML content
* expC2 Node localization
FUNCTION GetXMLValue
PARAMETERS tcXML,tcNode
LOCAL lcValue,loXML,loNode
lcValue=''
loXML=CREATEOBJECT('MSXML.DOMDocument')
loXML.LoadXML(tcXML)
loNode=loXML.SelectSingleNode(tcNode)
lcValue=loNode.GetAttribute('Value')
RETURN lcValue
is a function you can use to extract a specific node.

This XML contains the parent record and two child records, in this case. So, you just have to implement some logic such as described above and you'll be ok.
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform