Category: XPath

  • querying YAML on the command line – YAML Path

    https://github.com/wwkimball/yamlpath https://github.com/wwkimball/yamlpath/wiki

  • xacobeo – graphical interface for running XPath queries

    https://metacpan.org/release/Xacobeo https://metacpan.org/pod/distribution/Xacobeo/bin/xacobeo https://packages.debian.org/sid/perl/xacobeo

  • XmlStarlet User’s Guide and IBM link regarding PYX

    http://xmlstar.sourceforge.net/doc/UG/xmlstarlet-ug.html http://www-106.ibm.com/developerworks/xml/library/x-matters17.html – does no longer work as of 2017-10-02 (probably quite a little earlier already) http://www.ibm.com/developerworks/xml/library/x-matters17.html – does no longer work as of 2021-08-31 (probably quite a little earlier already) https://www.ibm.com/developerworks/xml/library/x-matters17/x-matters17-pdf.pdf – this is the actual and relevant document (broken link as of 2021-08-31) https://duckduckgo.com/?q=xml+pyx

  • the Cygwin packages that I need most seriously on a Windows PC

    https://cygwin.com/cgi-bin2/package-grep.cgi https://cygwin.com/packages/package_list.html my package list: https://cygwin.com/packages/x86_64/wget https://cygwin.com/packages/x86_64/unzip https://cygwin.com/packages/x86_64/git https://cygwin.com/packages/x86_64/curl I can install these ones through apt-cyg (see below!) (maybe git, … from the list above as well): https://cygwin.com/packages/x86_64/diffutils https://cygwin.com/packages/x86_64/perl https://cygwin.com/packages/x86_64/perl-debuginfo  – solves the “Tie::Hash::NamedCapture” problem https://cygwin.com/packages/x86_64/python2 https://cygwin.com/packages/x86_64/python3 https://cygwin.com/packages/x86_64/ruby https://cygwin.com/packages/x86_64/openssh https://cygwin.com/packages/x86_64/rsync https://cygwin.com/packages/x86_64/xinit – X.Org X server launcher (Cygwin/X) https://cygwin.com/packages/x86_64/xmlstarlet – XMLStarlet is a command line XML toolkit which […]

  • your ODF file (“.odt”, “.ods”, …) and its “modified” timestamp

    https://en.wikibooks.org/wiki/XML_-_Managing_Data_Exchange/OpenOffice.org_%26_OpenDocument_Format https://github.com/JochenHayek/misc/blob/master/using_timestamps_in_filenames/create_snapshot_from_ODF.sh https://en.wikipedia.org/wiki/XMLStarlet Your “.odt” (or “.ods”) file is a ZIP file with a meta.xml inside: $ unzip -l YOUR.ods … … meta.xml … This is a convenient way to extract meta.xml to STDOUT: $ unzip -p YOUR.ods meta.xml … This is how to get the XML reformatted using xmlstartlet: $ unzip -p YOUR.ods meta.xml […]

  • xmlstarlet: how to deal with a default namespace in XPath expressions?

    I ran into this problem, when I tried to extract values from JasperReport’s JRXML using xmlstarlet. JRXML files introduce a default namespace (which does not seem to serve a lot), and XPath processors need to take that into account. When I searched for help in xmlstarlet’s documentation and on the web, I came across this […]

  • your OOXML file (“.docx”, “.xlsx”, “.vsdx”, …) and its “modified” timestamp

    https://en.wikipedia.org/wiki/Office_Open_XML_file_formats https://github.com/JochenHayek/misc/blob/master/using_timestamps_in_filenames/create_snapshot_from_OOXML.sh https://en.wikipedia.org/wiki/XMLStarlet VSDX does not get listed as an OOXML conform file format, but for this purpose (here) we can treat it like one. Your “.docx” (or “.xlsx”) file is a ZIP file with a docProps/core.xml inside: $ unzip -l YOUR.docx … … docProps/core.xml … This is a convenient way to extract docProps/core.xml to […]

  • my 2017 Windows working environment

    All these packages resp. utilities do not require Windows admin rights for getting them “installed” – actually they do not need “a Windows system installation”. Below C:\Users\jhayek I created a couple of subdirectories: opt: every package resp. utility has its own subdirectory below there bin: some .bat and .sh (BusyBox ash) scripts go there Packages resp. utilities: […]

  • XQuery/Inserting and Updating Attributes – Wikibooks, open books for an open world

    <!– www.bibleserver.com | 522: Connection timed out body{margin:0;padding:0} <!–[if lte IE 9]>/cdn-cgi/scripts/jquery.min.js<![endif]–> /cdn-cgi/scripts/zepto.min.js<!– /cdn-cgi/scripts/cf.common.js Error 522 Ray ID: 3a8c5df38cb61583 • 2017-10-05 00:47:29 UTC Connection timed out You Browser Working Frankfurt Cloudflare Working www.bibleserver.com Host Error What happened? The initial connection between Cloudflare’s network and the origin web server timed out. As a result, the web […]

  • XQuery mode for Emacs – yes!!!

    https://github.com/mblakele/xquery-mode