Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using Cursor adaptor to parse XSD schema.
Message
General information
Forum:
Visual FoxPro
Category:
XML, XSD
Miscellaneous
Thread ID:
00952399
Message ID:
00954052
Views:
20
Terry, yes, there is a DOM object somewhere underlying the XMLAdapter object (not the cursoradapter).

If you create one you will see a SOM property (that is *not* a typo), which may give you what you're looking for (the associated schema cache for an xml document). I am pretty sure that XMLAdapter.SOM is available in VFP 8, IOW not new in VFP 9. Also I'm pretty sure that XMLAdapter exposes IXMLDOMElement in 8.

Depends on what you're trying to do, really, but in many cases there's no real advantage to doing this type of thing through the adapter, if your data isn't cursor-shaped or relational to begin with.

ox = CREATEOBJECT("msxml2.FreeThreadedDOMDocument")

ox.schemas && this is probably what you're looking for

You might want to look at HOW TO: Use the MSXML 4.0 SOM in a Visual Basic Application to Locate Element Declarations in an XSD Schema. And this is a nice article MSXML and the Schema Object Model (SOM).

Have fun,

>L<
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform