xom-interest AT lists.ibiblio.org
Subject: XOM API for Processing XML with Java
List archive
- From: "Dave Pawson" <dave.pawson AT gmail.com>
- To: xom-interest <xom-interest AT lists.ibiblio.org>
- Subject: [XOM-interest] mixed content
- Date: Sun, 7 Oct 2007 10:14:02 +0100
Problem.
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
function?
xom complains
Exception in thread "main" nu.xom.CycleException: Cannot add a node to itself
at nu.xom.Element.checkCycle(Element.java:1020)
at nu.xom.Element.insertionAllowed(Element.java:1001)
at nu.xom.ParentNode._insertChild(ParentNode.java:113)
at nu.xom.ParentNode.insertChild(ParentNode.java:106)
at nu.xom.ParentNode.appendChild(ParentNode.java:160)
at uphill.Markup.findAcrs(Markup.java:123)
public Element findAcrs(Element el, String str, char prChar) {
is the current definition.
Any suggestions please?
regards
--
Dave Pawson
XSLT XSL-FO FAQ.
http://www.dpawson.co.uk
-
[XOM-interest] mixed content,
Dave Pawson, 10/07/2007
-
Re: [XOM-interest] mixed content,
Elliotte Harold, 10/07/2007
- Re: [XOM-interest] mixed content, Dave Pawson, 10/07/2007
-
Re: [XOM-interest] mixed content,
Elliotte Harold, 10/07/2007
Archive powered by MHonArc 2.6.24.