Elm
2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
|
#include <elm/xom/Attribute.h>
Public Member Functions | |
Attribute (Attribute *attribute) | |
Attribute (String localName, String value) | |
Attribute (String name, String URI, String value) | |
String | getLocalName (void) const |
String | getNamespacePrefix (void) const |
String | getNamespaceURI (void) const |
String | getQualifiedName (void) const |
void | setLocalName (String localName) |
void | setNamespace (String prefix, String URI) |
void | setValue (String value) |
virtual Node * | copy (void) |
virtual String | getValue (void) |
virtual String | toXML (void) |
virtual String | getBaseURI (void) |
virtual Node * | getChild (int index) |
virtual int | getChildCount (void) |
Public Member Functions inherited from Node | |
virtual | ~Node (void) |
void * | getNode (void) const |
kind_t | kind (void) const |
void | detach (void) |
bool | equals (const Node *node) const |
virtual Document * | getDocument (void) |
virtual ParentNode * | getParent (void) |
virtual Nodes * | query (const String &xpath) |
virtual Nodes * | query (const String &xpath, XPathContext *context) |
int | line (void) const |
Additional Inherited Members | |
Public Types inherited from Node | |
enum | kind_t { NONE = 0, ELEMENT, DOCUMENT, TEXT, COMMENT, ATTRIBUTE, PROCESSING_INSTRUCTION, DOCTYPE, NAMESPACE } |
typedef enum elm::xom::Node::kind_t | kind_t |
Protected Member Functions inherited from Node | |
Node (void *_node) | |
void | setNode (void *_node) |
Node * | make (void *node) |
Node * | get (void *node) |
Node * | internCopy (void) |
Node * | internGetChild (int index) |
int | internGetChildCount (void) |
String | internGetValue (void) |
String | internToXML (void) |
Static Protected Member Functions inherited from Node | |
static void | freeNode (void *node) |
Protected Attributes inherited from Node | |
void * | node |
This class represents an attribute such as type="empty" or xlink:href="http://www.example.com".
Attributes that declare namespaces such as xmlns="http://www.w3.org/TR/1999/xhtml" or xmlns:xlink="http://www.w3.org/TR/1999/xlink" are stored separately on the elements where they appear. They are never represented as Attribute objects.
Creates a new attribute in no namespace with the specified name and value and undeclared type.
localName | the unprefixed attribute name |
value | the attribute value |
Creates a new attribute in the specified namespace with the specified name and value and undeclared type.
localName | the prefixed attribute name |
URI | the namespace URI |
value | the attribute value |
Returns the base URI of this node as specified by XML Base, or the empty string if this is not known. In most cases, this is the URL against which relative URLs in this node should be resolved.
Reimplemented from Node.
|
virtual |
Returns the child of this node at the specified position.
position | the index of the child node to return |
Implements Node.
Returns the local name of this attribute, not including the prefix.
References Node::node.
Referenced by Element::addAttribute(), and Serializer::write().
Unsupported.
References Node::node.
Get the node as a string with markup removed.
Implements Node.
References CString::chars(), Node::internGetValue(), and String::toCString().
Referenced by Element::addAttribute(), and Serializer::write().