Thursday, 28 June 2012

JXMLUTIL


What is
With JXMutiL i want offer a simple cross-platform GUI for Apache Xalan, Apache xerces and json-lib.

It is useful to perform XML transformation, XML validation. For example XSLT transformation, XPATH expression execution, various XML conversions (xml - json; java Properties - xml), XML validation with XSD.
Simple to use and cross-platform (ie: run on Windows, *nix, Mac OS).


Software requirement
A running Java JRE installation.
Download link


version 1.1 : better xml tree viewer
version 1.2 : NEW feature. XML file batch validation, validate more xml files against the same xsd



 Execution
Right click on the downloaded jar and choose “open with jre” (or similar, depending on your OS).
Otherwise open a terminal and execute: java -jar JxmlUtil.jar 
(Note: the “java” command must be in the PATH). On *nix operating system can be necessary set the execution bit.
How use it
Choose an input file to be processed (xml, json... depending on the conversion to perform). optionally choose a file where write the output result. Then press the "Starting processing" button.
The input file can be edited using an internal editor and after reloaded in the dedicated text are with the refresh button; the the user can retry the conversion.

Screenshot
XPATH
Apply an xpath expression on a input xml file and show the result
 
XSLT 
Apply an XSLT transformation (with a provide xsl file) to an input xml file

 XSD 
Check if a provided XML file is conform with the XSD supplied or with the batch validation (available from the version 1.2) can be validated more XML files against the same XSD file.




TREE
Show an xml file a tree

 JSON
Convert an xml to json and vice versa

 PROPERTIES
Convert a java.util.Properties file to xml and vice versa

Technical details
 
As XSLT processor is used Apache Xalan (http://xml.apache.org/xalan-j/)
for XML validation and parsing is used Apache Xerces (http://xerces.apache.org/xerces2-j/)

For json to xml (and vice versa) is used the library json-lib (http://json-lib.sourceforge.net/)
The conversion Java Properties to xml (and vice versa) is made with the standard JDK API.

No comments:

Post a Comment