Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DomDocument Properties
Message
 
To
04/09/2008 17:06:03
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
XML, XSD
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01344972
Message ID:
01345472
Views:
13
Should be something on the net. You can also see them by working it (reading the DOM) from the command window using the Auto complete dialog. In your command window type:
oXML=CREATEOBJECT("MSXML2.DOMDocument.4.0")
* Then open a file (this opens a string received by an HTTP request)
oXML.loadXML(strXML)
Once you do that you'll have all the available features of the DOM from your current nesting present in the autocomplete dropdown.

I have modified and saved existing XML files using DOM. Never created one from scratch with DOM. I create them using VFP string operations. If you search the message area you might find some script I wrote that parses a DBF to an XML and then back to a DBF again. Try searching by "utDBFDOM.prg".


>I need a reference to all the properties to the DomDocument object. I have not been able to find one. If I put this in the debugger, I can see the value of Basename:
>
> _SCREEN.oXMLDoc.documentElement.Basename
>
>But if I put this:
>
> _SCREEN.oXMLDoc.documentElement
>
>It shows that it is an object, but there is nothing to expand to see other properties. It seems you have to know what they are to access them.
>
>
>oXMLDoc = CREATEOBJECT('msxml.domdocument')
>.
>.
>.
>_SCREEN.oXMLDoc.LOADXML(lcXML)
>oXMLDocNodeList = _SCREEN.oXMLDoc.documentElement.childNodes
>XMLBaseName = _SCREEN.oXMLDoc.documentElement.Basename
>
Imagination is more important than knowledge
Previous
Reply
Map
View

Click here to load this message in the networking platform