Xtool/XmlnsXref

From tehowiki
Revision as of 09:08, 2 September 2016 by imported>Gfis (from documentation.html)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

XmlnsXref - Cross-Reference of XML Namespace URIs and their Prefixes in a Set of XML Files

Even very subtle differences in the namespace URIs of XML documents, schemata and stylesheets lead almost inevitably to bad results (when namespaces are evaluated at all). Often it is difficult to track namespace URI modifications in a set of related XML files. XmlnsXref takes several files (on the commandline) or a ZIP file collection (in the web interface) and shows a sorted crossreference list. For each namespace URI the files are shown where the URI occurs, optionally with the prefix used for that namespace URI.

Options:

  • -e enc source file encoding, default: UTF-8
  • -p show namespace prefixes
  • -zip input file is zip archive

Example:

(missing URI)
(default): pacs8.xml
http://schema.punctum.com/test
sept: gfis2906.xml
sept: pacs8.xml
(default): test2906.xml
urn:S2SCTIcf:xsd:$SCTIcfBlkCredTrf
S2SCTIcf: gfis2906.xml
S2SCTIcf: pacs8.xml
S2SCTIcf: test2906.xml
urn:iso:std:iso:20022:tech:xsd:S2SCTpacs.008.001.01
sw8: pacs8.xml
urn:iso:std:iso:20022:tech:xsd:pacs.008.001.01
(default): gfis2906.xml
sw8: test2906.xml