epfmt
epfmt
epfmt is a command line program for pretty printing EPrint XML. It can also convert EPrint XML to and from EPrint as JSON or as a simplified JSON records for export to RDM.
By default it reads from standard input and writes to standard out.
epfmt EPrint XML (or JSON version) from standard input and pretty prints the result to standard out. You can change output format XML and JSON by using either the ‘-xml’ or ‘-json’ option. The XML representation is based on EPrints 3.x. epfmt does NOT interact with the EPrints API only the the document presented via standard input.
Pretty print EPrint XML as XML.
epfmt < 123.xml
Pretty print from EPrint XML as JSON
epfmt -json < 123.xml
Render EPrint JSON as EPrint XML.
epfmt -xml < 123.json
epfmt will first parse the XML or JSON presented to it and pretty print the output in the desired format requested. If no format option chosen it will pretty print in the same format as input.
epfmt 1.2.4