We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello,
I'm using Xidel for this, but it's actually an XPath question… that I don't where to ask.
I need to grab "FOO" and "BAR" from this div:
<div class="panel-heading collapsed" role="tab"> <div class="col-xs-1 h_class"> <label class="label label-warning">FOO</label> </div> <div class="col-xs-9 name_station"> BAR </div> </div>
The following works to get FOO, but I haven't found how to get BAR. Anybody knows?
xidel.exe -se "//div[@class='panel-heading collapsed']/div/label/text()" test.html
Thank you.
PS: If you know of a good site/book to learn XPath, I'm interested
The text was updated successfully, but these errors were encountered:
Create a sequence:
xidel -s test.html -e "//div[@class='panel-heading collapsed']/(div/label,div[2])" FOO BAR
"BAR" stripped of white-space:
xidel -s test.html -e "//div[@class='panel-heading collapsed'] ! (div/label,normalize-space(div[2]))" FOO BAR xidel -s test.html -e ^"^ //div[@class='panel-heading collapsed'] ! (^ div/label,^ normalize-space(div[2])^ )^ " FOO BAR
but it's actually an XPath question… that I don't where to ask.
I think the forums, the mailing list, or StackOverflow would be a better place to ask.
#67 (comment)
And some general XPath/XQuery urls:
Sorry, something went wrong.
Thanks!
No branches or pull requests
Hello,
I'm using Xidel for this, but it's actually an XPath question… that I don't where to ask.
I need to grab "FOO" and "BAR" from this div:
The following works to get FOO, but I haven't found how to get BAR. Anybody knows?
xidel.exe -se "//div[@class='panel-heading collapsed']/div/label/text()" test.html
Thank you.
PS: If you know of a good site/book to learn XPath, I'm interested
The text was updated successfully, but these errors were encountered: