xmlsect - XML Sectrix: Quickly query an XML file using XPath 1.0.
This tool reads a whole XML file into memory, extracts its XML Namespaces using a regular expression and then loads all the namespaces for you.
When there is a default namespace, it automatically loads it under the namespace ID _ (or DEFAULT).
An example XPath would then look like /_:a/_:b/_:c
.
-
Using Golang:
go install github.com/DavidGamba/xmlsect
-
From the latest release: https://github.com/DavidGamba/xmlsect/releases
This file is part of xmlsect.
Copyright © 2017 David Gamba Rios
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.