[
Lists Home |
Date Index |
Thread Index
]
Hi,
I created a XML instance : cd.xml and a schema cd.xsd.
In the begining of cd.xml, it is like the following:
<cd xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="file:///c:/cd.xsd">
when I run parser, it always gives error message:
"Document is invalid: no grammar found.
org.xml.sax.SAXParseException: Document is invalid: no grammar found.
at
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:115
6)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:281)
at sax.Echo12.main(Echo12.java:43)"
I'm using j2sdk1.4.0_01.
Thanks in advance,
jairton.
|