Re: [xml] path with xmllint
- From: Daniel Veillard <veillard redhat com>
- To: John Davis <davisjf gmail com>
- Cc: xml gnome org
- Subject: Re: [xml] path with xmllint
- Date: Tue, 15 Nov 2011 11:26:21 +0800
On Mon, Nov 14, 2011 at 10:14:27AM -0500, John Davis wrote:
On Mon, Nov 14, 2011 at 10:10 AM, Stefan Behnel <stefan_ml behnel de> wrote:
The DOS shell. You need to quote your parameters, as in
xmllint Foo.xml --xpath "/XXX/(one|two)/YYY"
My apologies. I should have sent out the complete example so it shows
that I am doing exactly that.
=============
C:\Users\davis\Documents\dbclass\xpath
xmllint BookstoreQ.xml --xpath "/Bookstore/ ( Book | Magazine )/Title"
XPath error : Invalid expression
/Bookstore/ ( Book | Magazine )/Title
^
xmlXPathEval: evaluation failed
XPath evaluation failure
C:\Users\davis\Documents\dbclass\xpath
Do either as Bjoern suggested or
xmllint BookstoreQ.xml --xpath "/Bookstore/Book/Title | /Bookstore/Magazine/Title"
not ideal but works
Daniel
--
Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/
daniel veillard com | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library http://libvirt.org/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]