Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Parsing XML with DOM
Message
General information
Forum:
Visual FoxPro
Category:
XML, XSD
Environment versions
Visual FoxPro:
VFP 7
Miscellaneous
Thread ID:
00962465
Message ID:
00963575
Views:
8
Thankyou martin!

Your reply in regards to parse error at load was helpful. I am not getting them yet. And - I will probably not get any utility from XMLAdapter because most of XMLs my project will be JSEE.

I have isolated one bit of confusion.I am trying to understand the Doc setproperty ("SelectionLanguage","XPath") and was not able to locate resources that indicated exactly what this guy (selectionLanguage) does.

Does it imply an external DTD or XSD will or should be loaded. I also noticed that Document3.0 offers an internal guy select a namespace (SelectionNamespace), and, that 4.0 offers MSXML2.XMLSchemaCache.4.0 that can "getschema".

So if I use Xpath so I can use selectnodes, does a scheme need to be loaded? And, if so, is there a method in one of DOM Objects that will report "loaded" schemas, or one that will "load" (if needed for XPath) a schema (like GetSchema).

I can live with with node navigation, if I need to, to access and evaluate the DOM nodes without relying on "selectnodes". Does selectionlanguage offer attributes other than "XPath"? Does XPath imply an XSD must be loaded?

Thanks
Terry



>Hi Terry,
>(in text)
>
>>Martin,
>>I am doing some stuff with DOMDocument3.0. The XMLs I work with are "third-party" JSEE compliant and have had no success with XML Cursor Adapter, regardless of the XSDs and DTD availability.
>>
>>Do XML2.DOMDocument or XMLAdapter OPEN or reference XSD or DTDs at LoadXML, or would they produce an error if an XSD/DTD was missing?
>
> IMHO, XML2.Document can load XML without XSD. If you have any problem , LoadXML() or Load() return .F., You can set property ValidateOnParse=.F.
> From MSDN:
>Boolean. The property is read/write. If True, it validates during parsing. If False, it parses only for well-formed XML. The default is True.
>
> XML2.Document cannot load XML without DTD.
>
> DTD - you need for loading
> XSD - you need not for loading
>
> How work XMLAdapter I Don't know, because I don't need it. I use MS XMLDOM for parsing Jabber XML stream.
>
>>
>>How do these XML Engines use the XSD and DTD's?
>
> Hmm. IMHO XML engines load root records from XML and analysing they. If found any informations about DTD or XSD, try load it.
>
>
>
> Terry, is big difference between XMLDOM and implementation in XMLDOM in IE or another SW.
Imagination is more important than knowledge
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform