public class XmlLib
extends java.lang.Object
History:
Constructor and Description |
---|
XmlLib()
Creates a default lexical record object
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
AddToXml(java.lang.String xml,
java.lang.String tag,
boolean flag,
int numIndent)
Add a tag with a boolean flag to the xml format of a lexical record
|
static java.lang.String |
AddToXml(java.lang.String xml,
java.lang.String tag,
int numIndent)
Add a tag to the xml format of a lexical record
|
static java.lang.String |
AddToXml(java.lang.String xml,
java.lang.String startTag,
java.lang.String endTag,
java.lang.String value,
int numIndent,
boolean convertFlag)
Add a value with a staring and ending tags to the xml format of a
lexical record
|
static java.lang.String |
AddToXml(java.lang.String xml,
java.lang.String startTag,
java.lang.String endTag,
java.util.Vector<java.lang.String> values,
int numIndent,
boolean convertFlag)
Add a collection of values with staring and ending tags to the xml
format of a lexical record
|
public static java.lang.String AddToXml(java.lang.String xml, java.lang.String tag, int numIndent)
xml
- the original xmltag
- the tag to be addednumIndent
- number of indentpublic static java.lang.String AddToXml(java.lang.String xml, java.lang.String tag, boolean flag, int numIndent)
xml
- the original xmltag
- the tag of the boolean flag to be addedflag
- the boolean flag to be addednumIndent
- number of indentpublic static java.lang.String AddToXml(java.lang.String xml, java.lang.String startTag, java.lang.String endTag, java.lang.String value, int numIndent, boolean convertFlag)
xml
- the original xmlstartTag
- the start tag for the valueendTag
- the end tag for the valuevalue
- the value to be addednumIndent
- number of indentconvertFlag
- flag for converting to numericEntitypublic static java.lang.String AddToXml(java.lang.String xml, java.lang.String startTag, java.lang.String endTag, java.util.Vector<java.lang.String> values, int numIndent, boolean convertFlag)
xml
- the original xmlstartTag
- the start tag for the valuesendTag
- the end tag for the valuesvalues
- the collection of values to be addednumIndent
- number of indentconvertFlag
- flag for converting to numericEntity