Setting a schema path that contains whitespaces (Xerces)

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Prawdziwa Blondynka

    Setting a schema path that contains whitespaces (Xerces)

    Hi,
    I would like to do the following with C++ and Xerces:

    set the schema path in an XML file to parse in this way:

    XMLCh* schemaLocation = XMLString::tran scode(namespace AndPath);
    //namespaceAndPat h stands for the namespace and schema path containing
    whitespaces

    parser->setProperty(XM LUni::fgXercesS chemaExternalSc hemaLocation,
    schemaLocation) ;

    unfortunately, when I want to parse the file, I get the following
    error:
    The schemaLocation attribute does not contain pairs of values.

    It seems to be caused by whitespaces (parsing works if the schema path
    does not contain any) - probably Xerces understands the as multiple
    namespaces and paths.

    Is there any way of setting such a schema path?

    Thanks in advance,
    Blondie
Working...