Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] mixed content

xom-interest AT

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: "Dave Pawson" <dave.pawson AT>
  • To: elharo AT
  • Cc: xom-interest <xom-interest AT>
  • Subject: Re: [XOM-interest] mixed content
  • Date: Sun, 7 Oct 2007 14:49:16 +0100

On 07/10/2007, Elliotte Harold <elharo AT> wrote:

> This exception means that at some point you tried to make an element
> its own child (or its own grandpa) or some such. That's almost certainly
> a bug, but probably not the one you think it is.
> Actual code would be really helpful here. I can't say more than that
> without seeing the program.

I've got a workaround, unsure if it may be helpful to add (or even if
it's optimal).

I've built a 'collector' class that builds up 'PCDATA' which may then
be collected.
This enables a progressive write (to this object) as input is parsed
which is then collected from the object when appropriate.

Works under brief testing.


Dave Pawson

Archive powered by MHonArc 2.6.24.

Top of Page