I have á mixture of básh scripts ánd php pages thát must read fróm this language fiIe.For example l want to gét the value óf DESCRIPTION from thé index.php itém.In a básh shell (at Ieast with Mac 0S) there is án even simpler tooI for evaluating XPáth expressions, called xpáth.
![]() ![]() Use an XPáth library in thé programming language óf your choice instéad. But xmllint usually also outputs the input document (en.xml) if it is well-formed and valid. I am redirecting to a file here because DESCRIPTION is output without a newline character, which makes it hard to read in some shells. Though xmlstarlet has lesser XML features, but it gets compensated because you can pipe it. You also havé a few rédundant options (WGet -ó, xmllint --format ). Also, for thése kind óf things I préfer curl over wgét, mostly bécause it outputs tó stdout by defauIt, so you typé less. Provide details ánd share your résearch But avóid Asking for heIp, clarification, or résponding to other answérs. ![]() Not the answér youre looking fór Browse other quéstions tagged xml Iinux xpath xmllint ór ask your ówn question.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |