Sorry, ignore my post. I missed the obvious. I had just set the value to be
schemaURL, not the "namespace schemaURL". That is strange error response though.
-Lachlan
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional co
kindly,
Matt
> -Original Message-
> From: Sander Bos [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 07, 2003 12:51 AM
> To: [EMAIL PROTECTED]
> Subject: RE: ClassCastException
>
>
>
> Dear Matt,
>
> > ClassCastException: com.apache.xerces.dom.Deferre
A DeferredTextImpl is a text node, not any kind of Element. This could
happen if
-- the document structure had changed and the code hadn't kept up
-- more likely, the treatment of white space is different, so a text node
is now appearing (and didn't on the other machines) between elements, e.g
Dear Matt,
> ClassCastException: com.apache.xerces.dom.DeferredTextImpl
>
> when I try to cast a Node to an Element:
>
> Element elem = (Element)sourceElem.getFirstChild();
>
> Now, I have xercesImpl.jar at the front of the classpath so
> no other class
> copy could be picked up instead. And
On Thu, 2003-08-07 at 19:41, Simon Kitching wrote:
> Are you perhaps running java 1.4 on your test machines?
>
> Java 1.4 bundles an (old) version of xerces in the system rt.jar, and
> putting the latest jar in the classpath doesn't override "system"
> classes.
Damn. Always get mixed up between X
Are you perhaps running java 1.4 on your test machines?
Java 1.4 bundles an (old) version of xerces in the system rt.jar, and
putting the latest jar in the classpath doesn't override "system"
classes.
If this is the case, see the FAQs about how to use the "endorsed
override" feature or similar.
problem.
- Original Message -
From:
Lopez,
William
To: [EMAIL PROTECTED]
Sent: Tuesday, June 25, 2002 11:52
AM
Subject: RE: ClassCastException
Could it be the domparser.getDocument() (probably returns a Document
and not a Node). There are methods that return
Could
it be the domparser.getDocument() (probably returns a Document and not a Node).
There are methods that return Node type or use the methods that return NodeList-
see api doc. Just a guess, I don't work with DOM.
HTH,
-Will
-Original Message-From: Bryan Mulvihill
[mailto:[