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 Jay Garala <JG...@Conclusive.com> on 2003/08/26 01:29:56 UTC
Xerces and Schema Validation
Hi folks,
I was wondering if there is a way to do schema validation on an XML that
does not have the
"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="
<http://www.myurl.com/my#> http://www.myurl.com/my#
C:\Tomcat\webapps\myapp\xml\myschema.xsd"
in the root element.
I am having really bad problems combining multiple XML documents with
different schemas and namescapes.
I want this so.. i can manually invoke the validator (can I?)
<myDoc>
<ele1>3</ele1>
<ele2>a</ele2>
<ele3>df3</ele3>
</myDoc>
myschema....
Then in a java app...
myValidator.validate(myXML, mySchema)
Is this possible? Or are there any other suggestions or workarounds?
Thanks a bunch,
Jay