|
[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Document is invalid: no grammar found.
"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]
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|
|||||||||

Cart








