hi
 
Thanks for your reply..
I did both the steps that you had mentioned.
 
I changed the "Books" tag in the Test.xml to "Books1" but there was no error reported.
 
Please let me know if i am missing something. How is the error during validation reported?
Also which version of xerces.jar do i use?
 
nithya
----- Original Message -----
Sent: Friday, March 12, 2004 11:08 AM
Subject: Re: problem in validating

Hi,
 
In xsd file add
 elementFormDefault="qualified" to schema tag.
 
in Java file uncomment
 
    domBuilder.setFeature("http://xml.org/sax/features/validation",true);
It should work fine...
 
 
Since you have target namespace you must by default you want the element in instance to be assigned to this target space.
 
 
Purushotham


Nithya <[EMAIL PROTECTED]> wrote:
Hi
I am a new member to this group and also am new to schema validation. I have
the following problem in my code.

I am using xerces 2.4

I have attached Test.xml, Product.xsd and XMLTest1.java.

The code compiles fine and the SOP of the root element is also displayed
fine. But i guess no validation is done because even if i modify the tag
names in Test.xml, no error is reported.

Please help at the earliest!!

Thanks
nithya












Shakespeare
0517053616



Donald Trump
05146553616






























> ATTACHMENT part 4 java/* name=XMLTest1.java
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Do you Yahoo!?
Yahoo! Search - Find what you�re looking for faster.

Reply via email to