Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] Problem parsing HTML file into Document

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Elliotte Rusty Harold <elharo AT metalab.unc.edu>
  • To: Wolfgang Hoschek <wolfgang.hoschek AT mac.com>
  • Cc: xom-interest AT lists.ibiblio.org, "John.Cowan" <jcowan AT reutershealth.com>
  • Subject: Re: [XOM-interest] Problem parsing HTML file into Document
  • Date: Thu, 15 Dec 2005 20:51:37 +0100

Wolfgang Hoschek wrote:
For simplicity, one can simply ignore the tagsoup namespacing via

// find the links of all images in an ill-formed HTML document
XMLReader parser = new org.ccil.cowan.tagsoup.Parser(); // tagsoup parser
parser.setFeature("http://xml.org/sax/features/namespaces";, false);
parser.setFeature("http://xml.org/sax/features/namespace- prefixes", false);


No it won't. XOM depends on the namespace properties and turns them back on if you turn them off. :-)

--
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