xml-pyx
Convert XML to PYX line-oriented format
TLDR
SYNOPSIS
xml pyx [xml-file]
DESCRIPTION
xml pyx converts XML documents to PYX notation, a line-oriented representation derived from the SGML ESIS format (ISO 8879). It is part of the XMLStarlet toolkit (also invoked as `xmlstarlet pyx`).PYX represents each XML construct on a single line using prefix notation: `(` for opening tags, `)` for closing tags, `A` for attributes, `-` for text content, and `?` for processing instructions. This line-oriented format makes it easy to process XML with standard Unix text tools like grep, sed, and awk without requiring an XML parser.The companion command xml depyx (or xml p2x) converts PYX back into XML.
PARAMETERS
xml-file
Input XML file. If omitted, reads from stdin.
CAVEATS
PYX is a simplified representation and may not preserve all XML features such as comments or CDATA sections.
SEE ALSO
xml-depyx(1), xml-p2x(1), xmlstarlet(1), xml(1)
