BecauseQA-Utils
what is it?
BecauseQA-Utils libraries is a 100% pure Java libraries designed to use any popular open java libraries easily.
-
Covert Java object to Xml String or XML File
//Parse the java Bean Object String xmlContent=XMLUtils.marshal(Object);
//covert object to xml file XMLUtils.marshal(tables,outputXmlFile );
-
Covert the xml file or xml string to Java Entity
Result result=(Result) XMLUtils.unmarshal(XmlFile, Result.class); or
Result result=(Result) XMLUtils.unmarshal(XmlString, Result.class);
Thank you for using becauseQA commons libraries.