Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
XML attributes
Message
 
 
To
07/06/2009 12:46:06
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, United States
General information
Forum:
Visual FoxPro
Category:
XML, XSD
Title:
Miscellaneous
Thread ID:
01404249
Message ID:
01404407
Views:
80
This message has been marked as the solution to the initial question of the thread.
Sure. You've to set IsAttribute=.T. for the fields you want to convert to attributes
oXA = CREATEOBJECT("XmlAdapter")
oXA.AddTableSchema(lcAlias)
* Mark all fields as attributes
oFields = oXA.Tables(1).Fields
FOR i=1 TO oFields.Count
	oFields(i).IsAttribute = .T.
ENDFOR
oXA.ToXML("lcXml")
>
>I can't seem to find a way for a xmladpater to format the output into attributes. Similar to option "2" which is the third parameter using cursortoxml(). Is that possible?
>
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform