You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by br...@homepoint.com on 2000/11/08 22:14:27 UTC
DOM005 Wrong document
Well - I've been developing fairly smoothly with Xerces over the past few
weeks - and now I've tried to do something painfully simple and I get the
following error:
org.w3c.dom.DOMException: DOM005 Wrong document
All I'm trying to do is check a simple document for well-formedness - not
validate it:
<?xml version="1.0" encoding="UTF-8"?>
<testResponse>This is a test</testResponse>
Any ideas what would be causing this?
Thanks,
- Brent
Re: DOM005 Wrong document
Posted by Elena Litani <hl...@jtcsv.com>.
Hi, Brent
Normally, you would get "Wrong Document" exception if you are trying to
do smth with a node which 'belongs' to another document.
Are you working with 2 DocumentImpl? If yes, check if you are not using
any nodes from doc1 in doc2.
Btw, I am not exactly sure what are U trying to do (how your code looks)
so I am just guessing here....
Elena
brent.johnson@homepoint.com wrote:
>
> Well - I've been developing fairly smoothly with Xerces over the past few
> weeks - and now I've tried to do something painfully simple and I get the
> following error:
> org.w3c.dom.DOMException: DOM005 Wrong document
>
> All I'm trying to do is check a simple document for well-formedness - not
> validate it:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <testResponse>This is a test</testResponse>
>
> Any ideas what would be causing this?
>
> Thanks,
>
> - Brent
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-j-dev-help@xml.apache.org