Newer
Older
xml-utils / README.md
@aljunggren aljunggren on 2 Jan 2022 368 bytes Added isValid() and tests

XML Utils

A collection of useful XML utilities

Object to XML

String xml = XmlUtils.objectToXml(myObject);

XML to Object

MyClass myObject = XmlUtils.xmlToObject(xml, MyClass.class);

Check if String is a valid XML

XmlUtils.isValid(xml);

Determine if two XML Strings are equal

XmlUtils.areEqual(xml1, xml2);