Class XmlParser


  • public class XmlParser
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      XmlParser()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.w3c.dom.Document parseXml​(java.lang.String xml)
      Parse a provided XML String and return the generated DOM Document.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • parseXml

        public org.w3c.dom.Document parseXml​(java.lang.String xml)
                                      throws NexmoResponseParseException
        Parse a provided XML String and return the generated DOM Document.
        Parameters:
        xml - A String containing XML.
        Returns:
        A Document generated from the parsed XML.
        Throws:
        NexmoResponseParseException - If there is a problem initializing the XML parser or parsing the XML.