Skip to Content.
Sympa Menu

xom-interest - [XOM-interest] NodeFactory and entities

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Luca Passani <passani AT eunet.no>
  • To: xom-interest <xom-interest AT lists.ibiblio.org>
  • Subject: [XOM-interest] NodeFactory and entities
  • Date: Sat, 14 May 2005 15:59:56 +0200

Hello,

is there a way to trap entities with NodeFactory?

I am using NodeFactory in conbibation with tagsoup and '&nbsp;' turns up as a funny
(probably binary) character when I re-render the document out of its object model: Â

I tried this:

public Nodes makeText(String data) {

if (data.indexOf("&nbsp;") != -1) {
String data1 = data.substring(0,data.indexOf("&nbsp;"));
String data2 = data.substring(data.indexOf("&nbsp;")+6);
return super.makeText(data1+" "+data2); }

but it's not working for me.

Thanks

Luca





Archive powered by MHonArc 2.6.24.

Top of Page