Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
I need to do something like this VB in VFP
Message
General information
Forum:
Visual FoxPro
Category:
XML, XSD
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Miscellaneous
Thread ID:
00998154
Message ID:
00998401
Views:
36
This message has been marked as the solution to the initial question of the thread.
Dim doc As DOMDocument40
Set doc = New DOMDocument40
loXML = CREATEOBJECT( 'MSXML2.DOMDOCUMENT.4.0' )
loXML.async = .F.
The XML document is now ready to be composed.
Defining the Root Element
WITH loXml
  loRoot = .CreateElement( '<< Node Name >>' )
  *** Now add the root element to the document
  .AppendChild( loRoot )
ENDWITH
Setting Attributes
The attributes of an element define a specific setting or provide additional
information to an element.
loAttribute = loXML.CreateAttribute( '<< attribute name >>' )
loNodeText = loXml.CreateTextNode( '<< attribute value >>' ) 
*** And append it to its parent node
loAttribute.AppendChild( loNodeText )
loNode.SetAttributeNode( loAttribute )
We have loads of information on using XML in VFP in Chapter 17 of MegaFox: 1002 Things You Wanted to Know About Extending VFP
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform