Hi,

Vitaly Prapirny <[email protected]> writes:

> Wade Smith wrote:
> > do you have an example of how to call the setExternalSchemaLocation?  
> >I have not been able to get this working.
>
> _parser->setExternalSchemaLocation(
>    "http://www.example.com file_name.xsd")

The thing with setExternalSchemaLocation is that the schema path will be
resolved relative to the XML file being parsed unless it is an absolute
URI (in the file:/// form in case of a filesystem path). This page has 
some more information:

http://www.codesynthesis.com/projects/xsd/documentation/cxx/tree/guide/#5.1

Boris

-- 
Boris Kolpackov, Code Synthesis        http://codesynthesis.com/~boris/blog
Open-source XML data binding for C++   http://codesynthesis.com/products/xsd
XML data binding for embedded systems  http://codesynthesis.com/products/xsde
Command line interface to C++ compiler http://codesynthesis.com/projects/cli

Reply via email to