#include <Pt/Xml/StartElement.h>
Represents the start of an element in an XML document. More...
Inherits Node, and NonCopyable.
Public Member Functions | |
StartElement (NamespaceContext &nsctx) | |
Constructs an empty StartElement. | |
const AttributeList & | attributes () const |
Returns the attributes of the element. | |
AttributeList & | attributes () |
Returns the attributes of the element. | |
void | clear () |
Clears all content. | |
const QName & | name () const |
Returns the qualified name. | |
const String & | namespaceUri () const |
Returns the namespace Uri for this element name. | |
void | setName (const QName &n, const Namespace &ns) |
Sets the qualified name. | |
void | setNamespace (const Namespace &ns) |
Sets the namespace. | |
Type | type () const |
Returns the type of the node. | |
Related Functions | |
StartElement * | toStartElement (Node *node) |
Casts a generic node to a StartElement node. | |
const StartElement * | toStartElement (const Node *node) |
Casts a generic node to a StartElement node. | |
StartElement & | toStartElement (Node &node) |
Casts a generic node to a StartElement node. | |
const StartElement & | toStartElement (const Node &node) |
Casts a generic node to a StartElement node. | |
A start element node is reported when the XML reader parsed the opening tag of an XML element. It contains the name of the XML element, its namespace information, and the attributes of the XML element.