Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Xmltocursor
Message
De
10/07/2009 12:36:17
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
XML, XSD
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2008
Divers
Thread ID:
01411378
Message ID:
01411438
Vues:
34
Here is my code:
lcUserName = SUBSTR(SYS(0), AT('#', SYS(0)) + 2)
lcFullPathName = 'c:\documents and settings\' + lcUserName + '\local settings\temp\tempxml.xml'
STRTOFILE('<root>' + STRTRAN(tcXmlString, CHR(0), '') + '</root>', lcFullPathName)
loObjDom.load(lcFullPathName)
still does not work.
tcXmlString comes from JavaScript environment.


>The LoadXML() method loads XML from a string not from a file. You would use the Load() method to load from a file or URL.
>
>>While I have been working on that I am hitting another problem.
>>I have an xml file. The following code will prodice an error:
>>o = createaboject('msxml2.freethreaddomdocument')
>>o.loadxml(myfile)
>>?o.getelementbytagname(elementname).item(0).nodetypevalue - error Member ITEM does not evaluate to an object
>>
>>but this will work:
>>o.loadxml(filetostr(myfile))
>>
>>So, what does filetostr do?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform