java.lang.Object com.ibm.broker.plugin.MbXMLNSC
public class MbXMLNSC
extends Object
This class contains constants for the compact XML parser. The integer constants are the specific type values used by the logical tree to represent XML specific constructs in the bitstream.
Field | Description |
---|---|
ATTRIBUTE | This is the specific type value for an XML attribute. |
BITSTREAM | |
CDATA_FIELD | |
CDATA_VALUE | |
COMMENT | This is the specific type value for an XML comment. |
DOCUMENT_TYPE | This is the specific type value for an XML document type declaration. |
DOUBLE_ATTRIBUTE | This is simpilar to attribute, but will generate double quotes round the attribute value |
DOUBLE_ENTITY | |
ENTITY | |
ENTITY_REFERENCE | |
FIELD | This is the specific type value for an optimized XML element containing a text value only. |
FOLDER | This is the specific type value for an XML element that contains more than just a text node (element content). |
HYBRID_FIELD | |
HYBRID_VALUE | |
PARSER_NAME | The is the name of the parser as used by createElementAsLastChild |
PCDATA_FIELD | |
PCDATA_VALUE | |
PROCESSING_INSTRUCTION | This is the specific type value for an XML processing instruction. |
ROOT_ELEMENT_NAME | This is the name of the element at the root of the sub-tree owned by this parser. |
SINGLE_ATTRIBUTE | This is the same as attribute. |
SINGLE_ENTITY | |
VALUE | This is the specific type value for an XML text node (the element context). |
XML_DECLARATION | This is the specific type value for an XML declaration element. |
Constructor | Description |
---|---|
MbXMLNSC() |
public static final int ATTRIBUTEThis is the specific type value for an XML attribute. It is generic type 'NAME/VALUE', where the name is the attribute name and (String) value is the attribute value. For example,
ref2 = ref.createElementAsLastChild(MbXMLNSC.FOLDER, "abc", null);
will create the following XML sub-tree:
ref2.createElementAsLastChild(MbXMLNSC.ATTRIBUTE, "ijk", "xyz");<abc ijk='xyz'/>
public static final int BITSTREAM
public static final int CDATA_FIELD
public static final int CDATA_VALUE
public static final int COMMENTThis is the specific type value for an XML comment. It is of generic type 'VALUE' so the name is ignored. For example,
ref.createElementAsLastChild(MbXMLNSC.COMMENT, null, "Coment text");
produces the XML sub-tree:<!-- comment text -->
public static final int DOCUMENT_TYPEThis is the specific type value for an XML document type declaration.
public static final int DOUBLE_ATTRIBUTEThis is simpilar to attribute, but will generate double quotes round the attribute value
public static final int DOUBLE_ENTITY
public static final int ENTITY
public static final int ENTITY_REFERENCE
public static final int FIELDThis is the specific type value for an optimized XML element containing a text value only. For example,
ref.createElementAsLastChild(MbXMLNSC.FIELD, "abc", "xyz");
generates the following XML sub-tree:<abc>xyz</abc>
public static final int FOLDERThis is the specific type value for an XML element that contains more than just a text node (element content). It is generic type 'NAME'
public static final int HYBRID_FIELD
public static final int HYBRID_VALUE
public static final java.lang.String PARSER_NAMEThe is the name of the parser as used by createElementAsLastChild
public static final int PCDATA_FIELD
public static final int PCDATA_VALUE
public static final int PROCESSING_INSTRUCTIONThis is the specific type value for an XML processing instruction. It is of generic type 'NAME/VALUE'. For example,
ref.createElementAsLastChild(MbXMLNSC.PROCESSING_INSTRUCTION, "target", "data");
will create the following XML sub-tree:<? target data ?>
public static final java.lang.String ROOT_ELEMENT_NAMEThis is the name of the element at the root of the sub-tree owned by this parser.
public static final int SINGLE_ATTRIBUTEThis is the same as attribute.
public static final int SINGLE_ENTITY
public static final int VALUEThis is the specific type value for an XML text node (the element context). It is generic type 'VALUE' so the name is ignored.
public static final int XML_DECLARATIONThis is the specific type value for an XML declaration element.
public MbXMLNSC()