com.ibm.broker.plugin

Class MbXML

  • java.lang.Object
    • com.ibm.broker.plugin.MbXML
  • Direct Known Subclasses:
    MbXMLNS


    public class MbXML
    extends java.lang.Object
    This class contains constants for the generic XML parser. The integer constants are the specific type values used by the logical tree to represent XML specific constructs in the bitstream.
    • Field Detail

      • ROOT_ELEMENT_NAME

        public static final java.lang.String ROOT_ELEMENT_NAME
        This is the name of the element at the root of the sub-tree owned by this parser.
        See Also:
        Constant Field Values
      • ELEMENT

        public static final int ELEMENT
        This is the specific type value for an XML element. It is generic type 'NAME', but setting the value for an element of this type will cause a child MbElement to be created of type MbXML.ELEMENT_CONTENT. For example,

        ref.createElementAsLastChild(MbXML.ELEMENT, "abc", "xyz")

        will create the following XML sub-tree:

        <abc>xyz</abc>
        See Also:
        Constant Field Values
      • PARSER_ROOT

        public static final int PARSER_ROOT
        This is the specific type value for the XML root node. It is represented by the top level MbElement named 'XML' or 'XMLNS'.
        See Also:
        Constant Field Values
      • XML_DECL

        public static final int XML_DECL
        This is the specific type value for an XML declaration element.
        See Also:
        Constant Field Values
      • DOC_TYPE_DECL

        public static final int DOC_TYPE_DECL
        This is the specific type value for an XML document type declaration.
        See Also:
        Constant Field Values
      • EXTERNAL_PARAMETER_ENTITY_DECL

        public static final int EXTERNAL_PARAMETER_ENTITY_DECL
        See Also:
        Constant Field Values
      • ATTRIBUTE

        public static final int ATTRIBUTE
        This 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(MbXML.ELEMENT, "abc", null);
        ref2.createElementAsLastChild(MbXML.ATTRIBUTE, "ijk", "xyz");

        will create the following XML sub-tree:

        <abc ijk="xyz"/>
        See Also:
        Constant Field Values
      • PROCESSING_INSTRUCTION

        public static final int PROCESSING_INSTRUCTION
        This is the specific type value for an XML processing instruction. It is of generic type 'NAME/VALUE'. For example,

        ref.createElementAsLastChild(MbXML.PROCESSING_INSTRUCTION, "target", "data");

        will create the following XML sub-tree:

        <? target data ?>
        See Also:
        Constant Field Values
      • ELEMENT_CONTENT

        public static final int ELEMENT_CONTENT
        This is the specific type value for an XML text node (the element context). It is generic type 'VALUE' so the name is ignored.
        See Also:
        Constant Field Values
      • CDATA_SECTION

        public static final int CDATA_SECTION
        This is the specific type value for an XML CDATA section
        See Also:
        Constant Field Values
      • COMMENT

        public static final int COMMENT
        This is the specific type value for an XML comment. It is of generic type 'VALUE' so the name is ignored. For example,

        ref.createElementAsLastChild(MbXML.COMMENT, null, "Coment text");

        produces the XML sub-tree:

        <!-- comment text -->
        See Also:
        Constant Field Values
      • ATTRIBUTE_DEF_DEFAULT_TYPE

        public static final int ATTRIBUTE_DEF_DEFAULT_TYPE
        See Also:
        Constant Field Values
    • Constructor Detail

      • MbXML

        public MbXML()
IBM Integration BusTM
JavaTM Plugin Node API