Anfang des Inhaltsbereichs

HintergrunddokumentationHintergrunddokumentation Interface if_ixml_element_decl  Dokument im Navigationsbaum lokalisieren

Element declarations in the DTD (document type definition) are represented by iXMLElementDecl nodes.

iXMLElementDecl nodes define rules for the allowed content of the declared element - the so-called "content model" - in terms of content particles. Content particles are represented by the iXMLContentParticle node.

Four distinct content models are defined for an element: empty, any, children and mixed. See the XML specification for a detailed description of the differences of these content models.

An iXMLElementDecl implements the iXMLContentParticle interface itself.

specializes

enumerations

methods

 

 

enumeration ContentSpec

The values of the ContentSpec enumeration are used to identify the various content models of an element. For details please refer to the XML 1.0 Specification.

interface

if_ixml_element_decl

values

co_empty = 1

This element is not allowed to have any content.

co_any = 2

No content specification is made for this element, i.e. in case of validation any content will pass the validity test.

co_children = 3

The content of this element is made of other elements only, i.e. there is no character data contained in this element. Child elements of this element are of course allowed to have character content.

co_mixed = 4

This element is allowed to contain an arbitrary mixture of the specified elements and character data.

abap signature

constants:

co_empty type I value 1,

co_any type I value 2,

co_children type I value 3,

co_mixed type I value 4.

 

 

method get_content_spec

This method returns the currently set content specification for this element declaration.

interface

if_ixml_element_decl

return value

Returns the content specification of this element declaration, which can be one of the following: empty, any, children or mixed (see iXMLElementDecl::ContentSpec).

abap signature

method get_content_spec

returning

value(rval) type I.

 

 

method set_content_spec

This method sets the content model (or content specification) for this element declaration. The content model can be one of the following: empty, any, children or mixed (see ElementDecl::ContentSpec).

Please refer to the XML specification for a detailed description of the meaning of these content models.

interface

if_ixml_element_decl

parameters

content_spec

The content specification; may be one of the following: empty, any, children or mixed.

abap signature

method set_content_spec

importing

content_spec type I.

 

 

method add_content_particle

This method adds the given content particle to the end of this particles list of child particles.

interface

if_ixml_element_decl

parameters

content_particle

The content particle to add

abap signature

method add_content_particle

importing

content_particle type ref to if_ixml_content_particle.

 

 

method get_content_particle

This method returns the child content particle of this content particle identified by the given index (0..numContentParticles()-1).

interface

if_ixml_element_decl

parameters

index

The index of the child content particle to return (0..numContentParticles()-1)

return value

Returns the child content particle identified by index or null if the index is invalid.

abap signature

method get_content_particle

importing

index type I

returning

value(rval) type ref to if_ixml_content_particle.

 

 

method get_grouping

This method returns this content particle's grouping property.

interface

if_ixml_element_decl

return value

Returns the current grouping (choice, sequence; see iXMLContentParticle::Grouping)

abap signature

method get_grouping

returning

value(rval) type I.

 

 

method get_occurrence

This method returns this content particle's occurrence.

interface

if_ixml_element_decl

return value

Returns the current occurrence (one, zeroOrOne, zeroOrMore, oneOrMore; see ContentParticle::Occurrence)

abap signature

method get_occurrence

returning

value(rval) type I.

 

 

method num_content_particles

This method returns the number of child content particle of this content particle.

interface

if_ixml_element_decl

return value

Returns the number of child content particles.

abap signature

method num_content_particles

returning

value(rval) type I.

 

 

method set_grouping

This method sets this content particle's grouping property.

interface

if_ixml_element_decl

parameters

grouping

The grouping which can be one of the following values: choice, sequence (see iXMLContentParticle::Grouping)

abap signature

method set_grouping

importing

grouping type I.

 

 

method set_occurrence

This method sets this content particle's occurrence.

interface

if_ixml_element_decl

parameters

occurs

The occurrence which can be one of the following values: one, zeroOrOne, zeroOrMore, oneOrMore (see iXMLContentParticle::Occurrence)

abap signature

method set_occurrence

importing

occurs type I.

 

 

method append_child

Adds a child node to the end of the list of children for this node. If the newChild is already in the tree, it is first removed.

interface

if_ixml_element_decl

parameters

new_child

The child node to append.

return value

Returns one of the following return codes:

ixml_mr_dom_ok = 0

The given node has been appended successfully.

ixml_mr_dom_invalid_arg = 0x00020003L

The given argument is invalid.

abap signature

method append_child

importing

new_child type ref to if_ixml_node

returning

value(rval) type I.

 

 

method clone

Creates a "clone" or copy of this node and its child nodes down to the given depth (0..n).

interface

if_ixml_element_decl

parameters

depth [ default -1 ]

The depth of the subtree of this node to copy. -1 will copy all child nodes (the complete sub-tree), 0 will not copy any child nodes, 1 will copy all immediate child nodes, etc.

return value

Returns a pointer to the copy of this node.

abap signature

method clone

importing

depth type I default -1

returning

value(rval) type ref to if_ixml_node.

 

 

method create_filter_ancestor

Creates a new node filter that is applied to all ancestors of the current node to be accepted by this filter. For a node in order to be accepted, one of the node's ancestor nodes has to be accepted by the filter given in the parameter filterAncestor of this method.

Please be aware that this filter is potentially expensive in computational cost since for each node the path to the root node is traversed!

interface

if_ixml_element_decl

parameters

filter_ancestor

The filter to apply to all ancestor nodes.

return value

Returns an interface pointer to the new filter, or null if an error occured.

abap signature

method create_filter_ancestor

importing

filter_ancestor type ref to if_ixml_node_filter

returning

value(rval) type ref to if_ixml_node_filter.

 

 

method create_filter_and

Creates a new node filter combining the two given filters in an AND-operation, i.e. in order for a node to be accepted by this filter, it has to be accepted by filter1 and filter2. If one of the two filters is already an AND-combination of filters, the other one is simply added to this filter and no new filter instance is created.

interface

if_ixml_element_decl

parameters

filter1

The first filter to AND-combine in this filter.

filter2

The second filter to AND-combine in this filter.

return value

Returns an interface pointer to the new filter (or filter1 or filter2), or null if an error occured.

abap signature

method create_filter_and

importing

filter1 type ref to if_ixml_node_filter

filter2 type ref to if_ixml_node_filter

returning

value(rval) type ref to if_ixml_node_filter.

 

 

method create_filter_attribute

Deprecated (use createFilterAttributeNS() for namespace supprot). Creates a new node filter that can be used to filter nodes which have an attribute matching the specified criteria. In order to be accepted by this filter, a node must have an attribute with the given name. If the specified value is null, any attribute with the given name will match, otherwise only those which also have a match (case-sensitive) of the attribute's value.

deprecated

This method has been replaced by the method create_filter_attribute_ns(). It is still supported for compatibility reasons, but we recommend to switch to the replacement method, since create_filter_attribute() may not be supported any more in a future release.

interface

if_ixml_element_decl

parameters

name

The name (local part) of the attribute that must defined for all nodes being accepted by this filter.

namespace [ default '' ]

The namespace (prefix) of the attribute that must be matched by all nodes being accepted by this filter or null if no namespace is given.

value [ default '' ]

The value the attribute has to match (case-sensitive) or null, if any value is sufficient.

return value

Returns an interface pointer to the new filter, or null if an error occured.

abap signature

method create_filter_attribute

importing

name type string

namespace type string default ''

value type string default ''

returning

value(rval) type ref to if_ixml_node_filter.

 

 

method create_filter_attribute_ns

Deprecated (use createFilterAttributeNS() for namespace supprot). Creates a new node filter that can be used to filter nodes which have an attribute matching the specified criteria. In order to be accepted by this filter, a node must have an attribute with the given name. If the specified value is null, any attribute with the given name will match, otherwise only those which also have a match (case-sensitive) of the attribute's value.

interface

if_ixml_element_decl

parameters

name

The name (local part) of the attribute that must defined for all nodes being accepted by this filter.

uri [ default '' ]

The namespace URI of the attribute that must be matched by all nodes being accepted by this filter or null if no namespace is given.

value [ default '' ]

The value the attribute has to match (case-sensitive) or null, if any value is sufficient.

return value

Returns an interface pointer to the new filter, or null if an error occured.

abap signature

method create_filter_attribute_ns

importing

name type string

uri type string default ''

value type string default ''

returning

value(rval) type ref to if_ixml_node_filter.

 

 

method create_filter_name

Deprecated (use createFilterNameNS() for namespace support). Creates a new node filter that can be used to filter nodes that match the specified name.

deprecated

This method has been replaced by the method create_filter_name_ns(). It is still supported for compatibility reasons, but we recommend to switch to the replacement method, since create_filter_name() may not be supported any more in a future release.

interface

if_ixml_element_decl

parameters

name

The name (local part) that must be matched by all nodes being accepted by this filter.

namespace [ default '' ]

Deprecated: The namespace (prefix) that must be matched by all nodes being accepted by this filter or null if no namespace is given.

return value

Returns an interface pointer to the new filter, or null if an error occured.

abap signature

method create_filter_name

importing

name type string

namespace type string default ''

returning

value(rval) type ref to if_ixml_node_filter.

 

 

method create_filter_name_ns

Creates a new node filter that can be used to filter nodes that match the specified name.

interface

if_ixml_element_decl

parameters

name

The name (local part) that must be matched by all nodes being accepted by this filter.

uri [ default '' ]

The namespace URI that must be matched by all nodes being accepted by this filter or null if no namespace is given.

return value

Returns an interface pointer to the new filter, or null if an error occured.

abap signature

method create_filter_name_ns

importing

name type string

namespace type string default ''

returning

value(rval) type ref to if_ixml_node_filter.

 

 

method create_filter_node_type

Creates a new node filter that can be used to filter nodes of a given node type (see iXMLNode::NodeType). In order to be accepted by this filter, a node has to be of one of the node types specified in the parameter nodeTypes of this method.

interface

if_ixml_element_decl

parameters

node_types

An OR-combination of all node types to be accepted by this filter.

return value

Returns an interface pointer to the new filter, or null if an error occured.

abap signature

method create_filter_node_type

importing

node_types type I

returning

value(rval) type ref to if_ixml_node_filter.

 

 

method create_filter_not

Creates a new node filter that implements a logical NOT-operation on the given filter, i.e. in order for a node to be accepted by this filter, it has to be rejected by the filter specified by the parameter filterNot.

interface

if_ixml_element_decl

parameters

filter_not

The filter to negate in this filter.

return value

Returns an interface pointer to the new filter, or null if an error occured.

abap signature

method create_filter_not

importing

filter_not type ref to if_ixml_node_filter

returning

value(rval) type ref to if_ixml_node_filter.

 

 

method create_filter_or

Creates a new node filter combining the two given filters in an OR-operation, i.e. in order for a node to be accepted by this filter, it has to be accepted by either filter1 or filter2. If one of the two filters is already an OR-combination of filters, the other one is simply added to this filter and no new filter instance is created.

interface

if_ixml_element_decl

parameters

filter1

The first filter to OR-combine in this filter.

filter2

The second filter to OR-combine in this filter.

return value

Returns an interface pointer to the new filter (or filter1 or filter2), or null if an error occured.

abap signature

method create_filter_or

importing

filter1 type ref to if_ixml_node_filter

filter2 type ref to if_ixml_node_filter

returning

value(rval) type ref to if_ixml_node_filter.

 

 

method create_filter_parent

Creates a new node filter that is applied to the parent node of the current node to be accepted by this filter. For a node in order to be accepted, the node's parent node has to be accepted by the filter given in the parameter filterParent of this method.

interface

if_ixml_element_decl

parameters

filter_parent

The filter to apply to the parent nodes.

return value

Returns an interface pointer to the new filter, or null if an error occured.

abap signature

method create_filter_parent

importing

filter_parent type ref to if_ixml_node_filter

returning

value(rval) type ref to if_ixml_node_filter.

 

 

method create_iterator

Creates a new tree iterator which traverses the DOM subtree rooted at this node in a DFS (depth-first search) manner from left to right. The depth parameter can be used to control the depth of the traversal (0: traverse complete subtree, 1: traverse immediate child nodes, 2: traverse down 2 levels, n: traverse down n levels...).

The iterator starts the iteration at this node.

interface

if_ixml_element_decl

parameters

depth [ default 0 ]

The maximum depth to traverse (0: traverse complete subtree).

return value

Returns an interface pointer to the new iterator, or null if an error occured.

abap signature

method create_iterator

importing

depth type I default 0

returning

value(rval) type ref to if_ixml_node_iterator.

 

 

method create_iterator_filtered

Creates a new tree iterator which traverses the DOM subtree rooted at this node in a DFS (depth-first search) manner from left to right. The depth parameter can be used to control the depth of the traversal (0: traverse complete subtree, 1: traverse immediate child nodes, 2: traverse down 2 levels, n: traverse down n levels...). If a filter is specified, only nodes accepted by the filter are returned by the iterator.

The iterator starts the iteration at this node.

interface

if_ixml_element_decl

parameters

filter

The (optional) filter to use when iterating; may be null.

depth [ default 0 ]

The maximum depth to traverse (0: traverse complete subtree).

return value

Returns an interface pointer to the new iterator, or null if an error occured.

abap signature

method create_iterator_filtered

importing

filter type ref to if_ixml_node_filter

depth type I default 0

returning

value(rval) type ref to if_ixml_node_iterator.

 

 

method create_rev_iterator

Creates a new reverse tree iterator which traverses the DOM subtree rooted at this node in a DFS (depth-first search) manner from right to left (hence, reverse). The depth parameter can be used to control the depth of the traversal (0: traverse complete subtree, 1: traverse immediate child nodes, 2: traverse down 2 levels, n: traverse down n levels...).

The iterator starts the iteration at this node.

interface

if_ixml_element_decl

parameters

depth [ default 0 ]

The maximum depth to traverse (0: traverse complete subtree).

return value

Returns an interface pointer to the new iterator, or null if an error occured.

abap signature

method create_rev_iterator

importing

depth type I default 0

returning

value(rval) type ref to if_ixml_node_iterator.

 

 

method create_rev_iterator_filtered

Creates a new reverse tree iterator which traverses the DOM subtree rooted at this node in a DFS (depth-first search) manner from right to left (hence, reverse). The depth parameter can be used to control the depth of the traversal (0: traverse complete subtree, 1: traverse immediate child nodes, 2: traverse down 2 levels, n: traverse down n levels...). If a filter is specified, only nodes accepted by the filter are returned by the iterator.

The iterator starts the iteration at this node.

interface

if_ixml_element_decl

parameters

filter

The (optional) filter to use when iterating; may be null.

depth [ default 0 ]

The maximum depth to traverse (0: traverse complete subtree).

return value

Returns an interface pointer to the new iterator, or null if an error occured.

abap signature

method create_rev_iterator_filtered

importing

filter type ref to if_ixml_node_filter

depth type I default 0

returning

value(rval) type ref to if_ixml_node_iterator.

 

 

method find_from_gid

This method returns the node with the specified generated ID (GID) within the children of this node. The depth argument can be used to limit the depth of the search (0 searches all child nodes, 1 searches immediate child nodes only, 2 searches immediate child nodes and the child nodes' immediate children, etc.). If no matching node is found, null is returned.

The search order is BSF.

interface

if_ixml_element_decl

parameters

gid

The generated ID (GID) of the node to search.

depth [ default 0 ]

The search depth (0..n) below this node.

return value

Returns the first matching node in this node's children.

abap signature

method find_from_gid

importing

gid type I

depth type I default 0

returning

value(rval) type ref to if_ixml_node.

 

 

method get_attributes

This method returns a pointer to a iXMLNamedNodeMap containing this node's attribute nodes. If this node has no attributes, an empty iXMLNamedNodeMap is returned. Be aware that only a few node types have attributes (i.e. iXMLElement and iXMLPIParsed nodes).

interface

if_ixml_element_decl

return value

Returns a pointer to an iXMLNamedNodeMap containing this node's attributes (may be empty).

abap signature

method get_attributes

returning

value(rval) type ref to if_ixml_named_node_map.

 

 

method get_children

Returns a list (iXMLNodeList) of the child nodes of this node. If this node has no child nodes, an empty list is returned.

interface

if_ixml_element_decl

return value

Returns a list enumerating this node's child nodes.

abap signature

method get_children

returning

value(rval) type ref to if_ixml_node_list.

 

 

method get_column

Returns the column of the node in the input stream it was parsed from. If the node has been created dynamically, the value 0 is returned.

interface

if_ixml_element_decl

return value

Returns the column [0..n] of the node in the input stream it was parsed from or 0 if the node was created dynamically (so there is no source position).

abap signature

method get_column

returning

value(rval) type I.

 

 

method get_depth

This method returns the maximum depth of the subtree formed by this node and its children. The depth ranges from 0 to n (0 = node has no children).

Whereas getHeight() measures upwards towards the tree's root node, getDepth() measures downwards.

interface

if_ixml_element_decl

return value

Returns the depth of this node.

abap signature

method get_depth

returning

value(rval) type I.

 

 

method get_first_child

This method returns a pointer to this node's first child node.

interface

if_ixml_element_decl

return value

Returns this node's first child node.

abap signature

method get_first_child

returning

value(rval) type ref to if_ixml_node.

 

 

method get_gid

This method returns a generated ID (GID) for this node. The GID is independent of a possible ID attribute of an Element node and can be used to uniquely identify nodes within a DOM tree instance. The GID of a node is only constant for the lifetime of the node's instance, i.e. parsing an XML document twice might result in the same logical node having different GIDs each time.

interface

if_ixml_element_decl

return value

Returns the GID of this node.

abap signature

method get_gid

returning

value(rval) type I.

 

 

method get_height

This method returns the height of this node in the DOM tree, i.e. the distance to the root of the node hierarchy. The height of a node ranges from 0 to n (0 = node is root node).

Whereas getDepth() measures downwards in a subtree, getHeight() measures upwards.

interface

if_ixml_element_decl

return value

Returns the height of this node.

abap signature

method get_height

returning

value(rval) type I.

 

 

method get_last_child

This method returns a pointer to this node's last child node.

interface

if_ixml_element_decl

return value

Returns this node's last child node.

abap signature

method get_last_child

returning

value(rval) type ref to if_ixml_node.

 

 

method get_line

Returns the line of the node in the input stream it was parsed from. If the node has been created dynamically, the value 0 is returned.

interface

if_ixml_element_decl

return value

Returns the line [1..n] of the node in the input stream it was parsed from or 0 if the node was created dynamically (so there is no source position).

abap signature

method get_line

returning

value(rval) type I.

 

 

method get_name

Returns the name (local part) of this node.

interface

if_ixml_element_decl

return value

Returns the node's name.

abap signature

method get_name

returning

value(rval) type string.

 

 

method get_namespace

Returns the namespace (prefix) of this node.

deprecated

This method has been replaced by the method get_namespace_prefix(). It is still supported for compatibility reasons, but we recommend to switch to the replacement method, since get_namespace() may not be supported any more in a future release.

interface

if_ixml_element_decl

return value

Returns the node's namespace (prefix).

abap signature

method get_namespace

returning

value(rval) type string.

 

 

method get_namespace_context

Returns the namespace context of this node.

interface

if_ixml_element_decl

return value

Returns the node's namespace context.

abap signature

method get_namespace_context

returning

value(rval) type ref to if_ixml_namespace_context.

 

 

method get_namespace_prefix

Returns the namespace prefix of this node.

interface

if_ixml_element_decl

return value

Returns the node's namespace prefix.

abap signature

method get_namespace_prefix

returning

value(rval) type string.

 

 

method get_namespace_uri

Returns the URI of the namespace of this node.

interface

if_ixml_element_decl

return value

Returns the node's namespace URI.

abap signature

method get_namespace_uri

returning

value(rval) type string.

 

 

method get_next

This method returns a pointer to this node's successor node.

interface

if_ixml_element_decl

return value

Returns this node's successor node.

abap signature

method get_next

returning

value(rval) type ref to if_ixml_node.

 

 

method get_owner_document

Provides access to the Document object associated with this node. This is also the document object used to create new nodes. When the node is a document this is null.

interface

if_ixml_element_decl

return value

Returns a pointer to this node's Document node.

abap signature

method get_owner_document

returning

value(rval) type ref to if_ixml_document.

 

 

method get_parent

Returns the parent node of this node. If no such node exists, i.e. this node is the root node, null is returned.

interface

if_ixml_element_decl

return value

Returns the node's parent node.

abap signature

method get_parent

returning

value(rval) type ref to if_ixml_node.

 

 

method get_prev

This method returns a pointer to this node's predecessor node.

interface

if_ixml_element_decl

return value

Returns this node's predecessor node.

abap signature

method get_prev

returning

value(rval) type ref to if_ixml_node.

 

 

method get_root

This method returns a pointer to this node's root node.

interface

if_ixml_element_decl

return value

Returns this node's root node.

abap signature

method get_root

returning

value(rval) type ref to if_ixml_node.

 

 

method get_type

Returns the type of this node (see iXMLNode::NodeType).

interface

if_ixml_element_decl

return value

Returns the node's type.

abap signature

method get_type

returning

value(rval) type I.

 

 

method get_value

Returns the value of this node (if such a value is defined). Not all node types have values, in which case a null string is returned.

interface

if_ixml_element_decl

return value

Returns the node's value if one exists or a null string.

abap signature

method get_value

returning

value(rval) type string.

 

 

method has_ancestor

This method returns true, if this node has ancestor as a direct or indirect parent node.

interface

if_ixml_element_decl

parameters

ancestor

A pointer to the ancestor to check.

return value

Returns true if this node has ancestor as a direct or indirect parent node.

abap signature

method has_ancestor

importing

ancestor type ref to if_ixml_node

returning

value(rval) type boolean.

 

 

method insert_child

This method inserts newChild immediately before the given refChild node in this node's list of children. If refChild is 0, newChild is appended to the end of the list of children.

interface

if_ixml_element_decl

parameters

new_child

The node to insert as a child node.

ref_child

The child node to insert newChild before (may be 0)

return value

Returns one of the following return codes:

ixml_mr_dom_ok = 0

The given node has been inserted successfully.

ixml_mr_dom_invalid_arg = 0x00020003L

One or more of the given arguments are invalid.

ixml_mr_dom_not_parent_child = 0x0002000eL

The refChild argument doesn't reference a child node of this node.

abap signature

method insert_child

importing

new_child type ref to if_ixml_node

ref_child type ref to if_ixml_node

returning

value(rval) type I.

 

 

method is_leaf

This method returns true, if this node is a leaf node, i.e. a node without child nodes.

interface

if_ixml_element_decl

return value

Returns true if this node is a leaf node.

abap signature

method is_leaf

returning

value(rval) type boolean.

 

 

method is_root

This method returns true, if this node is a root node, i.e. a node without a parent node.

interface

if_ixml_element_decl

return value

Returns true if this node is a root node.

abap signature

method is_root

returning

value(rval) type boolean.

 

 

method num_children

This method returns the number of child nodes of the this node.

interface

if_ixml_element_decl

return value

Returns the number of child nodes.

abap signature

method num_children

returning

value(rval) type I.

 

 

method remove_child

Removes the child node indicated by oldChild from the list of children and returns it.

interface

if_ixml_element_decl

parameters

old_child

The child node to remove.

return value

Returns one of the following return codes:

ixml_mr_dom_ok = 0

The given node has been removed successfully.

ixml_mr_dom_invalid_arg = 0x00020003L

The given argument is invalid.

ixml_mr_dom_not_parent_child = 0x0002000eL

The oldChild argument doesn't reference a child node of this node.

abap signature

method remove_child

importing

old_child type ref to if_ixml_node

returning

value(rval) type I.

 

 

method remove_node

Removes this node (and all child nodes) from the document.

interface

if_ixml_element_decl

abap signature

method remove_node.

 

 

method render

This method renders this node to the given output stream ostream.

interface

if_ixml_element_decl

parameters

ostream

The output stream to render into.

recursive [ default 'X' ]

True, if this node's children are to be rendered, too.

abap signature

method render

importing

ostream type ref to if_ixml_ostream

recursive type boolean default 'X'.

 

 

method replace_child

This method replaces this node's child node oldChild with newChild.

interface

if_ixml_element_decl

parameters

new_child

The node with which to replace oldChild.

old_child

The child node to replace.

return value

Returns one of the following return codes:

ixml_mr_dom_ok = 0

The given node has been replaced successfully.

ixml_mr_dom_invalid_arg = 0x00020003L

One or more of the given arguments are invalid.

ixml_mr_dom_not_parent_child = 0x0002000eL

The oldChild argument doesn't reference a child node of this node.

abap signature

method replace_child

importing

new_child type ref to if_ixml_node

old_child type ref to if_ixml_node

returning

value(rval) type I.

 

 

method set_name

This method sets this node's name (local part).

interface

if_ixml_element_decl

parameters

name

The new name for this node.

return value

Returns one of the following return codes:

ixml_mr_dom_ok = 0

The name has been changed successfully.

ixml_mr_dom_not_allowed = 0x00020008L

The name of this object can't be changed.

abap signature

method set_name

importing

name type string

returning

value(rval) type I.

 

 

method set_namespace

This method sets this node's namespace (prefix).

deprecated

This method has been replaced by the method set_namespace_prefix(). It is still supported for compatibility reasons, but we recommend to switch to the replacement method, since set_namespace() may not be supported any more in a future release.

interface

if_ixml_element_decl

parameters

namespace

The new namespace (prefix) for this node.

return value

Returns one of the following return codes:

ixml_mr_dom_ok = 0

The namespace (prefix) has been changed successfully.

ixml_mr_dom_not_allowed = 0x00020008L

The namespace (prefix) of this node can't be set.

abap signature

method set_namespace

importing

namespace type string

returning

value(rval) type I.

 

 

method set_namespace_prefix

This method sets this node's namespace prefix.

interface

if_ixml_element_decl

parameters

prefix

The new namespace prefix for this node.

return value

Returns one of the following return codes:

ixml_mr_dom_ok = 0

The namespace prefix has been changed successfully.

ixml_mr_dom_not_allowed = 0x00020008L

The namespace prefix of this node can't be set.

abap signature

method set_namespace_prefix

importing

prefix type string

returning

value(rval) type I.

 

 

method set_namespace_uri

This method sets this node's namespace URI.

interface

if_ixml_element_decl

parameters

prefix

The new namespace URI for this node.

return value

Returns one of the following return codes:

ixml_mr_dom_ok = 0

The namespace URI has been changed successfully.

ixml_mr_dom_not_allowed = 0x00020008L

The namespace URI of this node can't be set.

abap signature

method set_namespace_uri

importing

uri type string

returning

value(rval) type I.

 

 

method set_value

This method sets a node's value. This operation is not supported or defined on all node types.

interface

if_ixml_element_decl

parameters

value

The value to set for this node.

return value

Returns one of the following return codes:

ixml_mr_dom_ok = 0

The value has been set successfully.

ixml_mr_dom_invalid_arg = 0x00020003L

The given argument is invalid.

ixml_mr_dom_not_allowed = 0x00020008L

This node doesn't allow to set its value.

abap signature

method set_value

importing

value type string

returning

value(rval) type I.

 

 

method query_interface

Queries the specified interface.

interface

if_ixml_element_decl

parameters

iid

The interface ID of the interface to query.

return value

Returns a reference to the queried interface or null if no such interface is supported.

abap signature

method query_interface

importing

iid type I

returning

value(rval) type I.