(document);
I think this will retrieve the first “meta” node.
Muzaffer
From: matt.rossner-pr...@sanofi-aventis.com
[mailto:matt.rossner-pr...@sanofi-aventis.com]
Sent: Thursday, April 16, 2009 11:35 AM
To: dom4j-user@lists.sourceforge.net
Subject: Re: [dom4j-user] xpath problem
Well it’s an HTML
p://www.w3.org/1999/xhtml"; lang="fr">
Thanks for your help
From: Linus Kamb [mailto:li...@iris.washington.edu]
Sent: jeudi 16 avril 2009 17:29
To: Rossner, Matt PH/FR/PREST
Subject: Re: [dom4j-user] xpath problem
namespace?
matt.ross
Hello,
I'm having an issue with a very simple Xpath expression. I don't quite
understand why this fails. Probably missing something obvious. This is
just a simple example:
SAXReader r = new SAXReader();
try {
Document document = r.read(new File("c:\\file.xml"));
Hello,
I'm having an issue with a very simple Xpath expression. I don't quite
understand why this fails. Probably missing something obvious. This is
just a simple example:
SAXReader r = new SAXReader();
try {
Document document = r.read(new File("c:\\file.xml"));
I wish I was clever and did some research first. I found the answer in the list
archives:
I should have done:
code ---
Map map = new HashMap();
map.put("result", "http://www.w3.org/2001/sw/DataAccess/rf1/result";);
XPath xpath = DocumentHelper.createXPath("//result:k0");
xpath.s
Hi all,
I'm probably doing something very stupid. I have a very simple document and I
'm trying to apply an XPath to find the value of a node. Here's the XML:
http://www.w3.org/2001/sw/DataAccess/rf1/result";>
http://www.w3.org/2001/XMLSchema#double";>4.0
> The XML is already as you stated it needed to be (i.e.
> it uses '<' rather than '<'). Since the XPath
> expression is not part of an XML document (e.g. an XSL
> Stylesheet), I don't believe that it needs to be
> escaped in the String that is the parameter to the
> XPath constructor. In fact, i
Edwin,
Thanks very much for your response.
The XML is already as you stated it needed to be (i.e.
it uses '<' rather than '<'). Since the XPath
expression is not part of an XML document (e.g. an XSL
Stylesheet), I don't believe that it needs to be
escaped in the String that is the parameter to t
I can see one problem with your XML and another problem
with your XPath.
The problem with your XML is caused by the '<' character
used as XML content.
> <=
This is not well-formed XML, it should be:
<=
Did this throw an exception?
The XPath is wrong because, it does first of all not specify
I am having a problem with an "*" in an XPath working
correctly. The XPath syntax seems correct, but the
Node is not selected.
I am including a small, standalone Java test program
that demostrates this problem. The XML document is a
static String in the source file. Please let me know
if you se
Title: Message
Xpath
is
substring-before(substring-after(/envelope/body/response/acknowledge/acknowledgement/errorList/errorInfo/errorMessage/description[contains(translate(.,
'XML', 'xml'), '?xml')], ''),
'')
When I execute this
xpath inside a transform against
}
nodes = list.selectNodes("ancestor::ol");
if ((nodes != null) && (nodes.size() > 0)) {
continue;
}
}
}
- Original Message -
From: "Robert J. Lebowitz" <[EMAIL PROTECTED]>
To: "Brain, Jim" <[EMAIL PROTECT
Actually, after "fixing" the html, I still continue to have the problem of
the null pointer exception. I can't figure out what is causing it. In the
interim, I just wrapped the code that throws the exception with a try/catch
clause and ignore the exception.
I'm still a bit puzzled about how to
age-
From: Robert J. Lebowitz [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 07, 2001 10:09 AM
To: [EMAIL PROTECTED]
Subject: [dom4j-user] xpath problem, a clue to the problem.
I think I've figured out the source of the error, but I think it may be
prudent to mod
I think I've figured out the source of the error, but I think it may be
prudent to modify dom4j to adjust for such a circumstance:
The author of the HTML document that I am converting to XHTML with JTidy,
and then modifying with dom4j included an embedded unordered list that
worked in the followi
15 matches
Mail list logo