Xerces-P Validate subset of a file with schema ?

Abhinav Modi <[email protected]>
Newsgroups gmane.text.xml.xerces-p.devel
Message-ID <[email protected]>
Hi,

I tried searching the archives for a solution to this, but couldnt find one .. 

I have a file, say :

#test.xml#
<tests>
  <info>
  </info>
  <iWantThis>
   </iWantThis>
</tests>

I want to validate the portion including and beneath  <iWantThis>
using my xsd (schema).

Hence, my schema is declared with <iWantThis> as the root element.

Is there any way to do this in Xerces-P ? Ideally, I would like to
search for <iWantThis> in my document, and taking this as the root,
validate it.

TIA
Abhinav 

-- 
-------------
http://www.abhinavmodi.tk
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.