On Fri, 22 Aug 2003 [EMAIL PROTECTED] wrote:

> Hi all,
>
> I am validating a file using Xerces-J 2.5.0 and the following declaration:
>
> xsi:noNamespaceSchemaLocation="file:///H:\MopedOutput\eda_pvt_schema_3.xsd"
>
> and I get the following error message:
>
> Parser error XML file is not valid. cvc-datatype-valid.1.2.1: 'file:///H:
> \MopedOutput\eda_pvt_schema_3.xsd' is not a valid 'anyURI' value
>
> If I change the backslashes above to forward slashes, the error clears up.
> Either way, the file otherwise validates as expected.  My application is
> running on Windows, so I would think that the backslashes would be correct.
> Any thoughts, or ways I can get rid of this error other than turning the
> slashes around?

Hi David,

You seem to be mixing the concept of system dependent file names and
[RFC 2396] URIs. The '/' character is the path component separator in a
URI. Backslashes aren't allowed to appear as literals in a URI, and if
included in a URI must be escaped as %5C. Even if you escape backslashes
they're not interpreted as path separators, so you won't get the results
you intended.

Hope that helps.

--------------------
Michael Glavassevich
[EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to