Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Xml
Message
De
24/08/2010 11:21:29
 
Information générale
Forum:
Visual FoxPro
Catégorie:
XML, XSD
Titre:
Re: Xml
Divers
Thread ID:
01478130
Message ID:
01478151
Vues:
93
If the schema is too complex, try to read the data that matters to you by using an XML parser. For instance, this will list all properties locations:
m.loXML = CREATEOBJECT("Microsoft.XMLDOM")

m.loXML.async = .F.
m.lcXMLFile = GETFILE()
m.loXML.Load(m.lcXMLFile)

m.loXMLDoc = m.loXML.documentElement

m.loProperties = m.loXMLDoc.selectNodes("//List_formData/formData/formHeader")

FOR EACH m.loProperty IN m.loProperties
	? "Property location: " + m.loProperty.selectSingleNode("propertyLocationStreet").text + ", " + ;
            m.loProperty.selectSingleNode("propertyLocationCity").text
ENDFOR
>I need to read XML file with complex structure - it has several number of forms.
>XMLTOCURSOR() function failed with errror 2120 - Unable to infer XML schema.
>Please,Help!!!!
----------------------------------
António Tavares Lopes
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform