Package net.sbbi.upnp

Class XMLUtil


  • public class XMLUtil
    extends java.lang.Object
    Handy stuff for dealing with XML
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static javax.xml.xpath.XPath xpath
      XPath instance
    • Constructor Summary

      Constructors 
      Constructor Description
      XMLUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static org.w3c.dom.Document getXML​(java.net.URL url)
      Fetches the xml, fixes any wonky characters in it
      static java.lang.String getXMLString​(java.net.URL url)  
      • Methods inherited from class java.lang.Object

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

      • xpath

        public static final javax.xml.xpath.XPath xpath
        XPath instance
    • Constructor Detail

      • XMLUtil

        public XMLUtil()
    • Method Detail

      • getXMLString

        public static java.lang.String getXMLString​(java.net.URL url)
        Parameters:
        url -
        Returns:
        the xml string at that url
      • getXML

        public static org.w3c.dom.Document getXML​(java.net.URL url)
        Fetches the xml, fixes any wonky characters in it
        Parameters:
        url -
        Returns:
        The xml Document