net.tomp2p.upnp
Class XMLUtil

java.lang.Object
  extended by net.tomp2p.upnp.XMLUtil

public class XMLUtil
extends Object

Handy stuff for dealing with XML

Author:
ryanm

Field Summary
static XPath xpath
          XPath instance
 
Constructor Summary
XMLUtil()
           
 
Method Summary
static Document getXML(URL url)
          Fetches the xml, fixes any wonky characters in it
static String getXMLString(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 XPath xpath
XPath instance

Constructor Detail

XMLUtil

public XMLUtil()
Method Detail

getXMLString

public static String getXMLString(URL url)
Parameters:
url -
Returns:
the xml string at that url

getXML

public static Document getXML(URL url)
Fetches the xml, fixes any wonky characters in it

Parameters:
url -
Returns:
The xml Document


Copyright © 2013. All Rights Reserved.