Closed GoogleCodeExporter closed 9 years ago
Can you attach an example XML that you're querying?
Original comment by arseny.k...@gmail.com
on 7 Jun 2014 at 8:08
That's the cleaned up html. Also feel free to use the html from the link in
there, it's my own server. You can also download the full code of the program
I'm writing, you will find it on bitbucket under the name duckscraper.
Original comment by de...@gmx.it
on 7 Jun 2014 at 11:27
Attachments:
The query result should be a node set as defined by XPath specification.
You can use a different XPath evaluator, i.e. this one (powered by Java API for
XML processing, so I'd expect it to be compliant as well):
http://www.utilities-online.info/xpath/?save=113e9280-3f9b-4bd7-8603-86ff9c745ef
d-xpath#.U5Pgi5RdVMs
The reason is that the position filter applies to a node position within the
child::img axis - i.e. your query says "get the src attribute of the first
<img> child of <a>, for *all* occurences of //aside[@id='aside']/div/a).
What you want is a query like this:
(//descendant::aside[@id='aside']/child::div/child::a/child::img)[position()=2]/
@src
(//aside[@id='aside']/div/a/img)[2]/@src
(note the parens)
Original comment by arseny.k...@gmail.com
on 8 Jun 2014 at 4:06
> The query result should be a node set as defined by XPath specification.
Err, I meant "a node set of size 4".
Original comment by arseny.k...@gmail.com
on 8 Jun 2014 at 4:07
Original comment by arseny.k...@gmail.com
on 1 Jul 2014 at 2:52
Hi ,
I want to know how to write and read xml file using pugixml library.
any body please let me know. with sample code.
regards
MRK
Original comment by mrk...@gmail.com
on 15 Sep 2014 at 11:14
Hi,
i want know how to read and write a xml file and how much time will take means
time calculates using pugixml library. any xml will take for read and write.
regards
MRk
Original comment by mrk...@gmail.com
on 15 Sep 2014 at 11:21
Original issue reported on code.google.com by
de...@gmx.it
on 7 Jun 2014 at 8:06