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