Show HN: Xq – command-line XML and HTML beautifier and content extractor
1–10 of 36 posts
Re: Show HN: Xq – command-line XML and HTML beautifier and content extractor
#2Have you considered adding css sectors as an alternative to xpath? For many simple things a css selector is easer to write and more people already know them.
I believe it's possible to translate css selectors to xpath so it wouldn't need another selection engine.
Re: Show HN: Xq – command-line XML and HTML beautifier and content extractor
#3Neat! Like Jq but for XML and HTML. Have you considered adding css sectors as an alternative to xpath? For many simple things a css selector is easer to write and more people already know them. I believe it's possible to translate css selectors to xpath so it wouldn't need another selection engine.
Re: Show HN: Xq – command-line XML and HTML beautifier and content extractor
#4Re: Show HN: Xq – command-line XML and HTML beautifier and content extractor
#5Re: Show HN: Xq – command-line XML and HTML beautifier and content extractor
#6Neat! Like Jq but for XML and HTML. Have you considered adding css sectors as an alternative to xpath? For many simple things a css selector is easer to write and more people already know them. I believe it's possible to translate css selectors to xpath so it wouldn't need another selection engine.
Re: Show HN: Xq – command-line XML and HTML beautifier and content extractor
#7Neat! Like Jq but for XML and HTML. Have you considered adding css sectors as an alternative to xpath? For many simple things a css selector is easer to write and more people already know them. I believe it's possible to translate css selectors to xpath so it wouldn't need another selection engine.
Thank you for your support! I didn't consider CSS selectors as an alternative to Xpath, but really like the idea. Absolutely agree CSS selectors will be more convenient :)
htmlq does this by having various command line options like --attribute and --text.
Re: Show HN: Xq – command-line XML and HTML beautifier and content extractor
#8It'll be nice to try something new. swiss army style command line XML tools has been pretty neglected.