Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] splitting long strings

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Elliotte Harold <elharo AT metalab.unc.edu>
  • To: Luca Passani <passani AT eunet.no>
  • Cc: xom-interest <xom-interest AT lists.ibiblio.org>
  • Subject: Re: [XOM-interest] splitting long strings
  • Date: Fri, 06 May 2005 10:31:35 -0400

Luca Passani wrote:

always about using NodeFactory to parse my HTML file.
Is there a method I can use to trap 'text'?

I need to identify text strings that are longer than 30 chars without break (long urls, for example) and add a space or something...


Sure. Just override makeText() and split the string if necessary. Then

return super.makeText(yourNewString);


--
Elliotte Rusty Harold elharo AT metalab.unc.edu
XML in a Nutshell 3rd Edition Just Published!
http://www.cafeconleche.org/books/xian3/
http://www.amazon.com/exec/obidos/ISBN=0596007647/cafeaulaitA/ref=nosim




Archive powered by MHonArc 2.6.24.

Top of Page