xom-interest AT lists.ibiblio.org
Subject: XOM API for Processing XML with Java
List archive
- From: Ittay Dror <ittayd AT qlusters.com>
- To: xom-interest AT lists.ibiblio.org
- Subject: Re: [XOM-interest] IdFunction doesn't work
- Date: Sun, 16 Apr 2006 17:18:22 +0300
forget it. looks like DocumentNavigator doesn't support getElementById (in
fact, only the dom DocumentNavigator supports it)
Ittay Dror wrote:
I'm parsing a document with tagsoup and using jaxen and xom to return an
xpath.
I get an exception because the returned list is empty
my code:
Parser parser = new org.ccil.cowan.tagsoup.Parser(); // tagsoup parser
parser.setFeature(Parser.namespacesFeature, false);
Document doc = new Builder(parser).build("file:///tmp/test.html");
Node node = (Node)(new XOMXPath("id('foo')")).selectNodes(doc).get(0);
my html:
<html>
<head> <title>hello »</title> </head>
<body>
<div id="foo">hello</div>
</body>
</html>
i debugged the code and IdFunction is called, calling
'nav.getElementById(contextNode, id)', which returns null.
please help,
thanks,
ittay
--
===================================
Ittay Dror openQRM Team Leader, R&D, Qlusters Inc.
ittayd AT qlusters.com
+972-3-6081994 Fax: +972-3-6081841
http://www.openQRM.org
- Keeps your Data-Center Up and Running
-
[XOM-interest] IdFunction doesn't work,
Ittay Dror, 04/16/2006
- Re: [XOM-interest] IdFunction doesn't work, Ittay Dror, 04/16/2006
-
Re: [XOM-interest] IdFunction doesn't work,
Elliotte Harold, 04/16/2006
-
Re: [XOM-interest] IdFunction doesn't work,
Ittay Dror, 04/16/2006
-
Re: [XOM-interest] IdFunction doesn't work,
Ittay Dror, 04/16/2006
- Re: [XOM-interest] IdFunction doesn't work, Ittay Dror, 04/16/2006
- Re: [XOM-interest] IdFunction doesn't work, Elliotte Harold, 04/16/2006
-
Re: [XOM-interest] IdFunction doesn't work,
Ittay Dror, 04/16/2006
-
Re: [XOM-interest] IdFunction doesn't work,
Ittay Dror, 04/16/2006
Archive powered by MHonArc 2.6.24.