StartElement Class Reference

#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 AttributeListattributes () const
 Returns the attributes of the element.
 
AttributeListattributes ()
 Returns the attributes of the element.
 
void clear ()
 Clears all content.
 
const QNamename () const
 Returns the qualified name.
 
const StringnamespaceUri () 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

StartElementtoStartElement (Node *node)
 Casts a generic node to a StartElement node.
 
const StartElementtoStartElement (const Node *node)
 Casts a generic node to a StartElement node.
 
StartElementtoStartElement (Node &node)
 Casts a generic node to a StartElement node.
 
const StartElementtoStartElement (const Node &node)
 Casts a generic node to a StartElement node.
 

Detailed Description

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.