Re: Help! Re: ampersant in Xerses

2000-01-29 Thread Seth Ladd
> I cannot get Xerces DOMParser to properly handle an embedded @amp;. IT just > deletes it > without createing > any other nodes. Attached is the input file and here is my DOCTree creation > code. That's an old bug (that bit me, too). Get the newest Xerces and you'll find it fixes the problem

Re: Exception: DeferredTextImpl

2000-01-05 Thread Seth Ladd
> The first child of the result of getDocumentElement is not guaranteed > to be an Element.The ClassCastException is telling you that you are > trying to cast a Text Node into an ElementNode -- which doesn't work. Thanks so much! I think I looked everywhere else for the solution to this but

Exception: DeferredTextImpl

2000-01-03 Thread Seth Ladd
Hello, I'm sorry if this has been mentioned before on the mailing list. I tried to look through the archives, but I didn't see this. I am trying to use the latest Xerces-J parser, but I get an exception when I try to access the first child from the root. I get a java.lang.ClassCastException: or

Problem getting entities correctly using xerces-J

1999-12-13 Thread Seth Ladd
Hello, I've just checked out the latest source of xerces-j from CVS, and built it. I then used to to create a DOM out of a simple XML file. In that file I have standard XML entities embedded in the text between tags. It seems that the xerces parser is ripping out the entity and everything after

Problem getting entity from Parser

1999-12-05 Thread Seth Ladd
Hello, I'm pretty sure that this error is the result of User Ignorance, so any pointers to correctly do this would be greatly appreciated. First, some specs on my system: Linux 2.2.13, IBM JDK 1.1.18, Xerces-J 1.0 I have a small XML file I am trying to parse. It's so small I'll give it here: