Click to See Complete Forum and Search --> : Can't MSXML DOM parse an XSD?


Sabertooth
October 31st, 2003, 06:14 AM
I have written a wrapper around MSXML DOM, and now I want to be able to read some info from XSD files, such as enumeration definitions. I'd like to use my DOM wrapper for that, just because it's already there, and I don't need any SOM functionality, I need to access an XSD just as a structure of XML elements.

IXMLDOMDocument is successfully initialized, but it fails to return its subelement "xs:schema" via selectSingleNode. So, is there any reason why MSXML DOM parser can't parse an XML scheme?

Thanks.

erwin_78
November 4th, 2003, 06:48 AM
xml schema is XML-based, so it should be working.

See what error you get, maybe it isn't related to the schema.
Be aware of using namespaces (xs, xsd), this can give some difficulties