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: Elliotte Harold <elharo AT>
  • To: Dave Pawson <dave.pawson AT>
  • Cc: xom-interest <xom-interest AT>
  • Subject: Re: [XOM-interest] mixed content
  • Date: Sun, 07 Oct 2007 07:13:52 -0400

Dave Pawson wrote:
I have a string which is to be marked up with 'p' element, and
contains acronyms.

A function is called to parse the string for acronyms, recursively.

How can I build the mixed content without passing in an Element to the
xom complains

Exception in thread "main" nu.xom.CycleException: Cannot add a node to itself
at nu.xom.Element.checkCycle(
at nu.xom.Element.insertionAllowed(
at nu.xom.ParentNode._insertChild(
at nu.xom.ParentNode.insertChild(
at nu.xom.ParentNode.appendChild(
at uphill.Markup.findAcrs(

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.

Elliotte Rusty Harold elharo AT
Java I/O 2nd Edition Just Published!

Archive powered by MHonArc 2.6.24.

Top of Page