public class MbXMLNSC extends Object
Modifier and Type | Field and Description |
---|---|
static int |
ATTRIBUTE
This is the specific type value for an XML attribute.
|
static int |
BITSTREAM |
static int |
CDATA_FIELD |
static int |
CDATA_VALUE |
static int |
COMMENT
This is the specific type value for an XML comment.
|
static int |
DOCUMENT_TYPE
This is the specific type value for an XML document type declaration.
|
static int |
DOUBLE_ATTRIBUTE
This is similar to attribute, but will generate double quotes
round the attribute value
|
static int |
DOUBLE_ENTITY |
static int |
DOUBLE_NAMESPACE_DECLARATION
This is the same as namespace_declaration
|
static int |
ENTITY |
static int |
ENTITY_REFERENCE |
static int |
FIELD
This is the specific type value for an optimized XML element containing a text value
only.
|
static int |
FOLDER
This is the specific type value for an XML element that contains more than just
a text node (element content).
|
static int |
HYBRID_FIELD |
static int |
HYBRID_VALUE |
static int |
NAMESPACE_DECLARATION
This is the specific type value for an XML namespace
declaration.
|
static String |
PARSER_NAME
The is the name of the parser as used by
createElementAsLastChild() |
static int |
PCDATA_FIELD |
static int |
PCDATA_VALUE |
static int |
PROCESSING_INSTRUCTION
This is the specific type value for an XML processing instruction.
|
static String |
ROOT_ELEMENT_NAME
This is the name of the element at the root of the sub-tree owned by this parser.
|
static int |
SINGLE_ATTRIBUTE
This is the same as attribute.
|
static int |
SINGLE_ENTITY |
static int |
SINGLE_NAMESPACE_DECLARATION
This is similar to namespace_declaration, but will generate
single quotes round the namespace declaration value
|
static int |
VALUE
This is the specific type value for an XML text node (the element context).
|
static int |
XML_DECLARATION
This is the specific type value for an XML declaration element.
|
Constructor and Description |
---|
MbXMLNSC() |
public static final String PARSER_NAME
createElementAsLastChild()
public static final String ROOT_ELEMENT_NAME
public static final int FOLDER
public static final int DOCUMENT_TYPE
public static final int XML_DECLARATION
public static final int VALUE
public static final int PCDATA_VALUE
public static final int CDATA_VALUE
public static final int HYBRID_VALUE
public static final int ENTITY_REFERENCE
public static final int FIELD
ref.createElementAsLastChild(MbXMLNSC.FIELD, "abc", "xyz");
generates the following XML sub-tree:
<abc>xyz</abc>
public static final int PCDATA_FIELD
public static final int CDATA_FIELD
public static final int HYBRID_FIELD
public static final int ATTRIBUTE
ref2 = ref.createElementAsLastChild(MbXMLNSC.FOLDER, "abc", null);
ref2.createElementAsLastChild(MbXMLNSC.ATTRIBUTE, "ijk", "xyz");
will create the following XML sub-tree:
<abc ijk='xyz'/>
public static final int SINGLE_ATTRIBUTE
public static final int DOUBLE_ATTRIBUTE
public static final int NAMESPACE_DECLARATION
ref2 = ref.createElementAsLastChild(MbXMLNSC.FOLDER, "abc", null);
ref3 = ref2.createElementAsLastChild(MbXMLNSC.NAMESPACE_DECLARATION,
"ibmNS", "www.ibm.com");
ref3.setNamespace("xmlns")
will create the following XML sub-tree:
<abc xmlns:ibmNS='www.ibm.com'/>
public static final int DOUBLE_NAMESPACE_DECLARATION
public static final int SINGLE_NAMESPACE_DECLARATION
public static final int BITSTREAM
public static final int ENTITY
public static final int SINGLE_ENTITY
public static final int DOUBLE_ENTITY
public static final int COMMENT
ref.createElementAsLastChild(MbXMLNSC.COMMENT, null, "Coment text");
produces the XML sub-tree:
<!-- comment text -->
public static final int PROCESSING_INSTRUCTION
ref.createElementAsLastChild(MbXMLNSC.PROCESSING_INSTRUCTION, "target", "data");
will create the following XML sub-tree:
<? target data ?>