This class represents an element in an XML document. It has extra attributes and methods to deal with XML namespaces.
For example, given the document
<?xml version="1.0" ?> <top xmlns:nsid="http://an.url.com"> <nsid:inner nsid:attr="val"/> </top>
If n is the XmlElement representing the <top> element, then its global name is GlobalName("top") (ie the same as its local name). The inner XmlElement however, has a global name of
GlobalName("inner", "http://an.url.com"),
and a single attribute with key
GlobalName("attr", "http://an.url.com").
The original parsed name and attribute table are still available via the methods in the superclass Element. For example, get_name() for the inner XmlElement returns "nsid:inner".
Class summary |
Methods inherited from xml::Element |
get_attribute(key) get_attributes() get_name(s) get_nth_element(n, s) get_type() search_children(s) search_tree(s) set_attribute(key, value) set_name(s) |
Variables inherited from xml::Element |
attributes name |
Variables inherited from xml::Node |
children parent |
Methods inherited from lang::Object |
clone(seen) equals(other, seen) get_class() get_class_name() get_id() hash_code(depth, seen) is_instance(name) to_string(depth, seen) |
Variables defined in this class |
attributes_global_name global_name namespace_declarations whitespace_children xml_space_preserve |
Method detail |
Variable detail |