public static UNode parseXML ( String text ) throws IllegalArgumentException { assert text != null && text . length ( ) > 0 ; // This throws if the XML is malformed. Element rootElem = Utils . parseXMLDocument ( text ) ; return parseXMLElement ( rootElem ) ; }
Parse the given XML text and return the appropriate UNode object . The UNode returned is a MAP whose child nodes are built from the attributes and child elements of the document s root element .