parser.absconparseur
Class XMLManager
java.lang.Object
parser.absconparseur.XMLManager
public final class XMLManager
- extends Object
Method Summary |
static Document |
createNewDocument()
|
static void |
deleteChildElement(Document document,
String elementName,
int index)
|
static void |
deleteElementByTagNameFrom(Element element,
String tagName,
int i)
|
static String[] |
displayAttributes(Element element)
|
static void |
displayElement(Document document,
String elementName)
|
static Node |
getChildElement(Document document,
String elementName,
int index)
|
static Element |
getElementByTagNameFrom(Element element,
String tagName,
int i)
|
static Element |
getFirstElementByTagNameFromRoot(Document document,
String tagName)
|
static Document |
load(File file)
|
static Document |
load(File file,
URL schemaUrl)
|
static Document |
load(InputStream is)
|
static Document |
load(InputStream is,
URL schemaUrl)
Build a DOM object that corresponds to the given input stream. |
static Document |
load(String fileName)
|
static void |
save(Document document,
PrintWriter writer,
InputStream styleSheetInputStream)
|
static void |
save(Document document,
String fileName)
|
static void |
save(Document document,
String fileName,
InputStream styleSheetInputStream)
|
static void |
save(Document document,
String fileName,
String styleSheetFileName)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOGGER
protected static final Logger LOGGER
XMLManager
public XMLManager()
createNewDocument
public static Document createNewDocument()
load
public static Document load(InputStream is,
URL schemaUrl)
- Build a DOM object that corresponds to the given input stream.
- Parameters:
is
- the input stream that denotes the XML document to be loaded.schemaUrl
- the schema to be used ( null
if not used) to validate the document
- Returns:
- a DOM object
load
public static Document load(File file,
URL schemaUrl)
load
public static Document load(InputStream is)
load
public static Document load(File file)
load
public static Document load(String fileName)
save
public static void save(Document document,
PrintWriter writer,
InputStream styleSheetInputStream)
save
public static void save(Document document,
String fileName,
InputStream styleSheetInputStream)
save
public static void save(Document document,
String fileName)
save
public static void save(Document document,
String fileName,
String styleSheetFileName)
getElementByTagNameFrom
public static Element getElementByTagNameFrom(Element element,
String tagName,
int i)
getFirstElementByTagNameFromRoot
public static Element getFirstElementByTagNameFromRoot(Document document,
String tagName)
deleteElementByTagNameFrom
public static void deleteElementByTagNameFrom(Element element,
String tagName,
int i)
getChildElement
public static Node getChildElement(Document document,
String elementName,
int index)
deleteChildElement
public static void deleteChildElement(Document document,
String elementName,
int index)
displayAttributes
public static String[] displayAttributes(Element element)
displayElement
public static void displayElement(Document document,
String elementName)
Copyright © 2012. All Rights Reserved.