public class XMLLoader extends Object
Document.| Modifier and Type | Method and Description |
|---|---|
static Node |
getAttribute(Node tag,
String attr) |
static String |
getAttrV(Node tag,
String attr) |
static Document |
loadDOM(File xml)
Wczytuje dokument z pliku XML w formie obiektowego modelu dokumentu.
|
public static Document loadDOM(File xml) throws ParserConfigurationException, SAXException, IOException
xml - plik XML, który ma zostać odczytanyParserConfigurationException - nieodpowiednia konfiguracja parseraSAXException - podstawowy błąd lub uwaga SAXIOException - błąd wczytywaniapublic static Node getAttribute(Node tag, String attr) throws IllegalArgumentException
tag - węzeł drzewa dokumentu XML, która jest znacznikiem i posiada
swoją listę atrybutówattr - nazwa atrybutuIllegalArgumentExceptionCopyright © 2021. All rights reserved.