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" <[EMAIL 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" <[EMAIL 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 - Faster. Easier. Bingo.


Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.


Do you Yahoo!?
The New Yahoo! Search - 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>

Attachment: sample.jar
Description: Binary data

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to