11 |
import org.xml.sax.SAXException; |
import org.xml.sax.SAXException; |
12 |
|
|
13 |
public class XmlUtil { |
public class XmlUtil { |
14 |
|
|
15 |
|
public static final String SERVICE_BASE = "http://pumba.t-hoerup.dk:8080/TrainInfoService"; |
16 |
|
|
17 |
public static Document parseXML(String str) throws SAXException, IOException, ParserConfigurationException |
public static Document parseXML(String str) throws SAXException, IOException, ParserConfigurationException |
18 |
{ |
{ |
19 |
DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder(); |
DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder(); |