Hi all,
I'm having a strange problem with Xerces (1.3.1) and JAXP. It seems that if
I use the DOMParser.parse(String) to parse (with validation enabled)
data/personal-schema.xml, I have no problem. However, if I parse the same
file using DocumentBuilder API, it seems the parser cannot find the
personal.xsd and complains that the elements are not declared. I've seen
similar behaviour for SAXParser.
A snippet of my test program:
...
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
dbf.setValidating(true);
DocumentBuilder db = dbf.newDocumentBuilder();
Document doc = db.parse(args[0]);
...
and the error, from the default error handler is:
Error: URI=file:///E:/personal-schema.xml Line=3: Element type "personnel"
must be declared.
I've seen this happen 1.4.1 release as well. Any ideas? Thanks in advance
for your help,
-ML
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]