public final class XmlUtil extends Object
Modifier and Type | Field and Description |
---|---|
static String |
PROPERTIES_XML_HEADER |
Modifier and Type | Method and Description |
---|---|
static void |
addElement(StringBuffer strXmlBuffer,
String strTag,
int nValue)
Add an element to an XML document buffer.
|
static void |
addElement(StringBuffer strXmlBuffer,
String strTag,
String strValue)
Add an element to an XML document buffer
|
static void |
addElement(StringBuffer strXmlBuffer,
String strTag,
String strValue,
Map<?,?> attrList)
Add an element to an XML document buffer with attributes
|
static void |
addElementHtml(StringBuffer strXmlBuffer,
String strTag,
String strValue)
Add a CDATA type element to XML document buffer.
|
static void |
addElementHtml(StringBuffer strXmlBuffer,
String strTag,
String strValue,
Map<?,?> attrList)
Add a CDATA type element to XML document buffer.
|
static void |
addEmptyElement(StringBuffer strXmlBuffer,
String strTag,
Map<?,?> attrList)
Add an empty element (< />) to an XML document buffer.
|
static void |
beginElement(StringBuffer strXmlBuffer,
String strTag)
Add an opening tag for an element in a XML document buffer
|
static void |
beginElement(StringBuffer strXmlBuffer,
String strTag,
Map<?,?> attrList)
Add an opening tag for an element in a XML document buffer
|
static void |
endElement(StringBuffer strXmlBuffer,
String strTag)
Add a closing tag for an element in a XML document buffer
|
static String |
getXmlHeader()
Gets the header of an XML file
|
public static final String PROPERTIES_XML_HEADER
public static String getXmlHeader()
public static void addElement(StringBuffer strXmlBuffer, String strTag, String strValue)
strXmlBuffer
- The XML document bufferstrTag
- The tag name of the element to addstrValue
- The value of the elementpublic static void addEmptyElement(StringBuffer strXmlBuffer, String strTag, Map<?,?> attrList)
strXmlBuffer
- The XML document bufferstrTag
- The tag name of the element to addattrList
- The attributes listpublic static void addElement(StringBuffer strXmlBuffer, String strTag, String strValue, Map<?,?> attrList)
strXmlBuffer
- The XML document bufferstrTag
- The tag name of the element to addstrValue
- The value of the elementattrList
- the attribute listpublic static void addElement(StringBuffer strXmlBuffer, String strTag, int nValue)
strXmlBuffer
- The XML document bufferstrTag
- The tag name of the element to addnValue
- The value of the elementpublic static void addElementHtml(StringBuffer strXmlBuffer, String strTag, String strValue)
strXmlBuffer
- The XML document bufferstrTag
- The tag name of the element to addstrValue
- The value of the elementpublic static void addElementHtml(StringBuffer strXmlBuffer, String strTag, String strValue, Map<?,?> attrList)
strXmlBuffer
- The XML document bufferstrTag
- The tag name of the element to addstrValue
- The value of the elementattrList
- The attributes listpublic static void beginElement(StringBuffer strXmlBuffer, String strTag)
strXmlBuffer
- The XML document bufferstrTag
- The tag name of the element to addpublic static void beginElement(StringBuffer strXmlBuffer, String strTag, Map<?,?> attrList)
strXmlBuffer
- The XML document bufferstrTag
- The tag name of the element to addattrList
- The attributes listpublic static void endElement(StringBuffer strXmlBuffer, String strTag)
strXmlBuffer
- The XML document bufferstrTag
- The tag name of the element to addCopyright © 2020 City of Paris. All rights reserved.