{"id":6611,"date":"2016-07-11T17:56:29","date_gmt":"2016-07-11T15:56:29","guid":{"rendered":"http:\/\/www.b.shuttle.de\/hayek\/hayek\/jochen\/wp\/blog-en\/?p=6611"},"modified":"2021-09-15T17:14:31","modified_gmt":"2021-09-15T15:14:31","slug":"xmlstarlet-elements-with-indexes","status":"publish","type":"post","link":"https:\/\/wp.jochen.hayek.name\/blog-en\/2016\/07\/11\/xmlstarlet-elements-with-indexes\/","title":{"rendered":"XmlStarlet UG on &#8220;Studying Structure of XML Document&#8221; \u2013 &#8220;xmlstarlet elements \u2026&#8221;"},"content":{"rendered":"<ul>\n<li><a href=\"http:\/\/xmlstar.sourceforge.net\/doc\/UG\/xmlstarlet-ug.html#idm47077139665568\">http:\/\/xmlstar.sourceforge.net\/doc\/UG\/xmlstarlet-ug.html#idm47077139665568<\/a><\/li>\n<li><a href=\"http:\/\/xmlstar.sourceforge.net\/doc\/UG\/xmlstarlet-ug.html\">http:\/\/xmlstar.sourceforge.net\/doc\/UG\/xmlstarlet-ug.html<\/a><\/li>\n<\/ul>\n<p>I really like &#8220;xmlstarlet elements \u2026&#8221; \u2013 but these very nice and useful XPath expressions come without index. So what if you really, really need them with indexes? I am not sure, you can write a general utility, that rewrites these XPath expressions without index into XPath expressions with index, but for my Jenkins CI context I created a utility (<em>jenkins_xpath_el2eli.pl<\/em>), that does some limited rewriting of that kind.\t\t\t\t<\/p>\n","protected":false},"excerpt":{"rendered":"<p>http:\/\/xmlstar.sourceforge.net\/doc\/UG\/xmlstarlet-ug.html#idm47077139665568 http:\/\/xmlstar.sourceforge.net\/doc\/UG\/xmlstarlet-ug.html I really like &#8220;xmlstarlet elements \u2026&#8221; \u2013 but these very nice and useful XPath expressions come without index. So what if you really, really need them with indexes? I am not sure, you can write a general utility, that rewrites these XPath expressions without index into XPath expressions with index, but for my [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":true,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"_share_on_mastodon":"0"},"categories":[851,732],"tags":[1117],"class_list":["post-6611","post","type-post","status-publish","format-standard","hentry","category-xmlstarlet","category-xpath","tag-jenkins_xpath_el2eli-pl"],"share_on_mastodon":{"url":"","error":""},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/paO0kP-1ID","jetpack_likes_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/6611","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/comments?post=6611"}],"version-history":[{"count":1,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/6611\/revisions"}],"predecessor-version":[{"id":11878,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/6611\/revisions\/11878"}],"wp:attachment":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/media?parent=6611"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/categories?post=6611"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/tags?post=6611"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}