Skip to content
  • Ryan's avatar
    Add "whereis" command to xmllint shell · 0cd29a3a
    Ryan authored and Daniel Veillard's avatar Daniel Veillard committed
    When playing with xpath in the xmllint shell, it's really handy to be
    able to ask where the returned nodes live in the tree, in the same
    way "pwd" asks where the current node lives.
    
    The feature is actually quite easy to implement by combining the
    functionality of the existing dir/ls and pwd commands (see proposed patch).
    
    Example usage:
    
    / > whereis //last_name
    /clinical_study/overall_official/last_name
    /clinical_study/location/contact/last_name
    /clinical_study/location/investigator/last_name
    0cd29a3a