At 16.09 19/12/2002 +0100, Troels Rossing wrote:
HiHi Troels,
I am trying to parse a XML document that looks like the following
<?xml version="1.0" encoding="UTF-8"?>
<D:multistatus xmlns:D="DAV:">
<D:response>
</D:response>
</D:multistatus>
[...]
I get an error like this from the parser
Attribute '{http://www.w3.org/2000/xmlns/}D' is not declared for element 'D:multistatus'
I want to use XPath (Xalan) on the XML, if I set doValidation(false) then it loads fine, but what causes the error??
given your XML document, you must disable validation; you would not get any error is the XML contained a reference to a DTD.
Alberto
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]