xerces: no grammar found 2003-05-16 - By K. Venugopal
Since i dont know what the program supplied by the book author is doing i have attached sample program which validates xml file you have sent . Hope it helps.
Regards venu
Steve Guo wrote:
> see attached from XML Bible book, thanks > > "K. Venugopal" <k.venugopal@(protected)> wrote: > > 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.venugopal@(protected)> 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. > > > ------------------------------------------------------------------------ > Do you Yahoo!? > The New Yahoo! Search > <http://us.rd.yahoo.com/search/mailsig/*http://search.yahoo.com> - > Faster. Easier. Bingo. > >------------------------------------------------------------------------ > ><?xml version="1.0"?> ><xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"> > > <xsd:element name="GREETING" type="xsd:string"/> > ></xsd:schema> > > >------------------------------------------------------------------------ > ><?xml version="1.0"?> ><GREETING xsi:noNamespaceSchemaLocation="greeting.xsd" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> >Hello XML! ></GREETING> > >
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title></title> </head> <body> Since i dont know what the program supplied by the book author is doing i have attached sample program which validates xml file you have sent . <br> Hope it helps. <br> <br> Regards<br> venu<br> <br> Steve Guo wrote:<br> <blockquote type="cite" cite="mid20030516061048.43931.qmail@(protected)"> <div> <div>see attached from XML Bible book, thanks<br> <br> <b><i>"K. Venugopal" <a class="moz-txt-link-rfc2396E" href="mailto:k .venugopal@(protected)"><k.venugopal@(protected)></a></i></b> wrote: <blockquote style="border-left: 2px solid rgb(16,16,255); padding-left: 5px; margin-left: 5px;">please mail your xml and xsd file<br> -venu<br> <br> <br> Steve Guo wrote:<br> <blockquote cite="mid20030516055512.29218.qmail@(protected)" type="cite"> <div>I followed the book example and used the -v option (-V option, no error),</div> <div>(I want to validate the document against the schema, so used -v). Did I misunderstood the options?<br> <br> <b><i>"K. Venugopal" <a class="moz-txt-link-rfc2396E" href="mailto:k.venugopal@(protected)"><k.venugopal@(protected)></a></i></b> wrote:</div> <blockquote style="border-left: 2px solid rgb(16,16,255); padding-left: 5px; margin-left: 5px;"><br> Hi Steve ,<br> <br> you must have set validation feature to true , set it to false.<br> <br> Regards<br> venu<br> <br> Steve Guo wrote:<br> <blockquote cite="mid20030516054050.16839.qmail@(protected)" type="cite"> <div> <blockquote style="border-left: 2px solid rgb(16,16,255); padding-left: 5px; margin-left: 5px;"> <p>I was trying to validate a simple example on schema from XML Bible, but I got </p> <p>Document is invalid: no grammar found</p> <p>Document roor element "novel" must match DOCTYPE root "null"</p> <p>My XML file does not use DOCTYPE. - why the error?</p> <p>Thanks all</p> </blockquote> </div> <hr size="1"> Do you Yahoo!?<br> <a href="http://us.rd.yahoo.com/search/mailsig/*http://search.yahoo.com">The New Yahoo! Search</a> - Faster. Easier. Bingo. </blockquote> <br> </blockquote> <hr size="1"> Do you Yahoo!?<br> <a href="http://us.rd.yahoo.com/search/mailsig/*http://search.yahoo.com">The New Yahoo! Search</a> - Faster. Easier. Bingo. </blockquote> <br> </blockquote> </div> </div> <hr size="1"> Do you Yahoo!?<br> <a href="http://us.rd.yahoo.com/search/mailsig/*http://search.yahoo.com">The New Yahoo! Search</a> - Faster. Easier. Bingo. <pre wrap=""> <hr width="90%" size="4"> <?xml version="1.0"?> <xsd:schema xmlns:xsd=<a class="moz-txt-link-rfc2396E" href="http://www.w3 .org/2001/XMLSchema">"http://www.w3.org/2001/XMLSchema"</a>>
<xsd:element name="GREETING" type="xsd:string"/>
</xsd:schema> </pre> <pre wrap=""> <hr width="90%" size="4"> <?xml version="1.0"?> <GREETING xsi:noNamespaceSchemaLocation="greeting.xsd" xmlns:xsi=<a class="moz-txt-link-rfc2396E" href="http://www.w3.org/2001 /XMLSchema-instance">"http://www.w3.org/2001/XMLSchema-instance"</a>> Hello XML! </GREETING> </pre> </blockquote> <br> </body> </html>
--------------------------------------------------------------------- To unsubscribe, e-mail: xerces-j-user-unsubscribe@(protected) For additional commands, e-mail: xerces-j-user-help@(protected)
|
|