You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by Steve Guo <co...@yahoo.com> on 2003/05/16 07:40:50 UTC
xerces: no grammar found
I was trying to validate a simple example on schema from XML Bible, but I got
Document is invalid: no grammar found
Document roor element "novel" must match DOCTYPE root "null"
My XML file does not use DOCTYPE. - why the error?
Thanks all
---------------------------------
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
Re: xerces: no grammar found
Posted by "K. Venugopal" <k....@sun.com>.
Please refer to
http://xml.apache.org/xerces2-j/faqs.html
http://xml.apache.org/xerces2-j/features.html
http://xml.apache.org/xerces2-j/properties.html
for more info .
Regards
venu
K. Venugopal wrote:
>
> Hi Steve ,
>
> you must have set validation feature to true , set it to false.
>
> Regards
> venu
>
> Steve Guo wrote:
>
>> I was trying to validate a simple example on schema from XML
>> Bible, but I got
>>
>> Document is invalid: no grammar found
>>
>> Document roor element "novel" must match DOCTYPE root "null"
>>
>> My XML file does not use DOCTYPE. - why the error?
>>
>> Thanks all
>>
>> ------------------------------------------------------------------------
>> Do you Yahoo!?
>> The New Yahoo! Search
>> <http://us.rd.yahoo.com/search/mailsig/*http://search.yahoo.com> -
>> Faster. Easier. Bingo.
>
>
Re: xerces: no grammar found
Posted by "K. Venugopal" <k....@sun.com>.
please mail your xml and xsd file
-venu
Steve Guo wrote:
> I followed the book example and used the -v option (-V option, no error),
> (I want to validate the document against the schema, so used -v). Did
> I misunderstood the options?
>
> "K. Venugopal" <k....@sun.com> wrote:
>
>
> Hi Steve ,
>
> you must have set validation feature to true , set it to false.
>
> Regards
> venu
>
> Steve Guo wrote:
>
>> I was trying to validate a simple example on schema from XML
>> Bible, but I got
>>
>> Document is invalid: no grammar found
>>
>> Document roor element "novel" must match DOCTYPE root "null"
>>
>> My XML file does not use DOCTYPE. - why the error?
>>
>> Thanks all
>>
>> ------------------------------------------------------------------------
>> Do you Yahoo!?
>> The New Yahoo! Search
>> <http://us.rd.yahoo.com/search/mailsig/*http://search.yahoo.com>
>> - Faster. Easier. Bingo.
>
>
> ------------------------------------------------------------------------
> Do you Yahoo!?
> The New Yahoo! Search
> <http://us.rd.yahoo.com/search/mailsig/*http://search.yahoo.com> -
> Faster. Easier. Bingo.
Re: xerces: no grammar found
Posted by Steve Guo <co...@yahoo.com>.
I followed the book example and used the -v option (-V option, no error),
(I want to validate the document against the schema, so used -v). Did I misunderstood the options?
"K. Venugopal" <k....@sun.com> wrote:
Hi Steve ,
you must have set validation feature to true , set it to false.
Regards
venu
Steve Guo wrote:
I was trying to validate a simple example on schema from XML Bible, but I got
Document is invalid: no grammar found
Document roor element "novel" must match DOCTYPE root "null"
My XML file does not use DOCTYPE. - why the error?
Thanks all
---------------------------------
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
---------------------------------
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
Re: xerces: no grammar found
Posted by "K. Venugopal" <k....@sun.com>.
Hi Steve ,
you must have set validation feature to true , set it to false.
Regards
venu
Steve Guo wrote:
> I was trying to validate a simple example on schema from XML
> Bible, but I got
>
> Document is invalid: no grammar found
>
> Document roor element "novel" must match DOCTYPE root "null"
>
> My XML file does not use DOCTYPE. - why the error?
>
> Thanks all
>
> ------------------------------------------------------------------------
> Do you Yahoo!?
> The New Yahoo! Search
> <http://us.rd.yahoo.com/search/mailsig/*http://search.yahoo.com> -
> Faster. Easier. Bingo.