[Home] [By Thread] [By Date] [Recent Entries]


"learning xml" <learning_xml@h...> writes:

> Hi,
>
> xerces version is xerces-2_2_1.
>
> book.xml is as follows:
> <?xml version="1.0" encoding="UTF-8"?>
> <book xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>       xsi:noNamespaceSchemaLocation="/tmp/example/xml_1/book.xsd">

That's not a valid URI -- the advice you were given was to use a
_relative_ URI, e.g.

       xsi:noNamespaceSchemaLocation="../xml_1/book.xsd"

Obviously you need to use the _correct_ relative URI depending on the
relative (:-) locations of your .xml and .xsd files.

Alternatively, use the correct _absolute_ URI:

  xsi:noNamespaceSchemaLocation="file:/tmp/example/xml_1/book.xsd" (UN*X)
  xsi:noNamespaceSchemaLocation="file:///c:/tmp/example/xml_1/book.xsd" (W32)

ht
-- 
 Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
                     Half-time member of W3C Team
    2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
            Fax: (44) 131 650-4587, e-mail: ht@i...
                   URL: http://www.ltg.ed.ac.uk/~ht/
[mail really from me _always_ has this .sig -- mail without it is forged spam]

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member