code: 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);
      }
docs: 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.
  
  @param  text         XML text to be parsed.
  @return              UNode with type == {@link UNode.NodeType#MAP}.
  @throws IllegalArgumentException  If the XML is malformed.