Hector,
The xmladapter uses mxml4. If you have a complex schema it may not do the job.
In addition, you may have to manipulate the fields collection
I've lost a lot of time using the xmladapter
Success
>>>Hi friends
>>>
>>>I am creating a XMLAdapter object, I load a xml string and I set a few node values and I want to use the result but..
>>>
>>>Where is the result?
>>>
>>>I found TOXML method and I said "That's it!" but when I want to use it fails.
>>>
>>>1)
>>>TOXML.(MEMVAR,,.F.) && FUNCTION ARGUMENT VALUE, COUNT OR TYPE IS INVALID...
>>>
>>>2)
>>>TOXML(FILE,,.T.) && YOU CAN'T USE TOXML WHEN A DOCUMENT IS LOADED... Of course is loaded... that's why I want to save it!!!
>>>
>>>??
>>>
>>>Obviously it is the first time I use this class... I must say I've been very lucky all the day with this... but a crash should appear...
>>>
>>>Anyone of you could help me, please?
>>>
>>> Héctor
>>
>>
m.YourAdapterObject.IXMLDOMElement.xml holds a representation of the loaded XML. You can save it to a file or store it in a variable.
>
>I don't know where you get such information... I've searched through Microsoft pages and just found a small explanation of every property and hardly understood something... and VFP help doesn't help a lot...
>
>Yeah! It was so easy...Well now I need find a child and then read subsequent brothers. And I don't know how those brothers are named.
>
>I can bet you know how to do it...
>
>Thank you very much!
>
> Héctor
Gregory