Skip to Content.
Sympa Menu

xom-interest - [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: xom-interest <xom-interest AT>
  • Subject: [XOM-interest] mixed content
  • Date: Sun, 7 Oct 2007 10:14:02 +0100

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(

public Element findAcrs(Element el, String str, char prChar) {

is the current definition.

Any suggestions please?


Dave Pawson

Archive powered by MHonArc 2.6.24.

Top of Page