> Can I get "some" items like
> tr[3..10] ?I meant a 'range'
like " /array[3..10]/... "
how can you do that (at once)? (Haven't found that in any docs)
Do I have to repeat the whole line for each index?
As I already said (see below), NodeSets -- that's how the results
of a search with #xpath or #css are returned -- "act very much like
an array", according to the docs.
So, did you _try_ whether ranges work or not?
I'm pretty sure they work, so in your place I would just try with
a simple example.
Quote from
http://www.nokogiri.org/tutorials/searching_a_xml_html_document.html:"The Node methods xpath and css actually return a NodeSet, which acts
very much like an array, and contains matching nodes from the document."So you could first get the NodeSet, then access individual elements.
BTW, the quoted tutorial also shows a code example for this.
How can you apply a function to different types of elements (path,
element or attribut)
tr/... works, how to use the not-abbrevated form?
tr child ... doesnt work...
???
This is completely incomprehensible to me.
Please be more specific, what _exactly_ do you want to do,
and what did you try that worked resp. didn't work?
(Show some actual code that can be tested by others).
And again, please put some more effort into your posts
before you press the "Send" button.
Regards,
Marcus