- Inherits from:
- Object
- Declared in:
- DXML.h
Object
|
+---DXMLNode
Class Description
The DXMLNode class implements methods for storing information
from a XML source in a node. The following scheme is used by
the class.
Type Name Value Remarks
----------------------------------------------------
DXML_ELEMENT Name NULL
DXML_ATTRIBUTE Name value
DXML_TEXT #text text 1)
DXML_CDATA #cdata text 1)
DXML_ENTITY_REF Not used
DXML_ENTITY Not used
DXML_PI target value
DXML_COMMENT #comment text 1)
DXML_DOCUMENT #document value 1)
DXML_DOC_TYPE Not used
DXML_DOC_FRAGMENT Not used
DXML_NOTATION Not used
DXML_NAMESPACE prefix uri 2)
----------------------------------------------------
1) Name parameter for set::: method is ignored
2) Not present in DOM
- Last modified:
- 21-Nov-2005 (DXML.h)
Instance Variables
- private int _type
- the type of the node DXML_ELEMENT .. DXML_NAMESPACE
- private DText *_name
- the 'name'of the node
- private DText *_value
- the value of the node
- Constructors
- - (DXMLNode *) init
- Initialise an empty xml node
- Returns:
- the object
- - (DXMLNode *) init :(int) type :(const char *) name :(const char *) value
- Initialise a xml node with a type, a name and a value
- Parameters:
- type - the xml node type (DXML_..)
name - the name of the node
value - the value of the node (or NULL)
- Returns:
- the object
- Copy constructor
- - deepen
- Deepen a copy of the object
- Returns:
- the object
- Deconstructor
- - free
- Free the object
- Returns:
- the object
- Member methods
- - (const char *) name
- Return the name of the xml node
- Returns:
- the name of the node (or NULL)
- - (int) type
- Return the type of the xml node
- Returns:
- the type (DXML_ELEMENT..DXML_NOTATION)
- - (const char *) value
- Return the value of the xml node
- Returns:
- the value of the node (or NULL)
- Main method
- - (DXMLNode *) set :(int) type :(const char *) name :(const char *) value
- Set the xml node (see table for parameters)
- Parameters:
- type - the xml node type (DXML_..)
name - the name of the node (or NULL)
value - the value of the node (or NULL)
- Returns:
- the object
generated 08-Jan-2006 by ObjcDoc 3.0.0