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: Wolfgang Hoschek <wolfgang.hoschek AT mac.com>
  • To: Elliotte Rusty Harold <elharo AT metalab.unc.edu>
  • 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 12:08:05 -0800


On Dec 15, 2005, at 11:51 AM, Elliotte Rusty Harold wrote:

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. :-)


Only partly right. It won't turn back on the "http://xml.org/sax/ features/namespaces" feature.




Archive powered by MHonArc 2.6.24.

Top of Page