List of all members.
Detailed Description
A class which stores an XML element.
Member Function Documentation
Adds the specified attribute.
If an attribute with the same name and namespace already exists, it is not added.
- Parameters:
-
| attr | The attribute to add |
Adds the specified attribute with the specified namespace and value.
If an attribute with the same name and namespace already exists, it is not added.
- Parameters:
-
| name | The name of the attribute |
| ns | The namespace of the attribute |
| value | The value of the attribute |
Adds the specified attribute with the specified value.
If an attribute with the same name and namespace already exists, it is not added.
- Parameters:
-
| name | The name of the attribute |
| value | The value of the attribute |
- Parameters:
-
| attrname | The name of the attribute |
- Returns:
- The attribute with the specified name
- Parameters:
-
| attrname | The name of the attribute |
| attrns | The namespace of the attribute |
- Returns:
- The attribute with the specified name and namespace
- Returns:
- An OFArray with the attributes of the element
Binds a prefix for a namespace.
- Parameters:
-
| prefix | The prefix for the namespace |
| ns | The namespace for which the prefix is bound |
- Returns:
- An array with all children of the element
- Parameters:
-
| elemname | The name of the element |
- Returns:
- The first child element with the specified name
- Parameters:
-
| elemname | The name of the element |
| elemns | The namespace of the element |
- Returns:
- The first child element with the specified name and namespace
- Parameters:
-
| elemname | The name of the elements |
- Returns:
- The child elements with the specified name
- Parameters:
-
| elemname | The name of the elements |
| elemns | The namespace of the elements |
- Returns:
- The child elements with the specified name and namespace
+ (id) elementWithCDATA: |
|
(OFString*) |
cdata |
|
|
Creates a new element, only consisting of the specified CDATA.
- Parameters:
-
| cdata | The CDATA the element represents |
- Returns:
- A new autoreleased OFXMLElement consisting of the specified CDATA
+ (id) elementWithCharacters: |
|
(OFString*) |
chars |
|
|
Creates a new element, only consisting of the specified characters.
- Parameters:
-
| chars | The characters the element represents |
- Returns:
- A new autoreleased OFXMLElement consisting of the specified characters
+ (id) elementWithComment: |
|
(OFString*) |
comment |
|
|
Creates a new element, only consisting of the specified comment.
- Parameters:
-
| comment | The comment the element represents |
- Returns:
- A new autoreleased OFXMLElement consisting of the specified comment
+ (id) elementWithName: |
|
(OFString*) |
name |
|
|
- Parameters:
-
| name | The name for the element |
- Returns:
- A new autoreleased OFXMLElement with the specified element name
- Parameters:
-
| name | The name for the element |
| ns | The namespace for the element |
- Returns:
- A new autoreleased OFXMLElement with the specified element name and namespace
- Parameters:
-
| name | The name for the element |
| ns | The namespace for the element |
| stringval | The value for the element |
- Returns:
- A new autoreleased OFXMLElement with the specified element name, namespace and value
- Parameters:
-
| name | The name for the element |
| stringval | The value for the element |
- Returns:
- A new autoreleased OFXMLElement with the specified element name and value
+ (id) elementWithXMLString: |
|
(OFString*) |
str |
|
|
Parses the string and returns an OFXMLElement for it.
- Parameters:
-
- Returns:
- A new autoreleased OFXMLElement with the contents of the string
Initializes an already allocated OFXMLElement so that it only consists of the specified CDATA.
- Parameters:
-
| cdata | The CDATA the element represents |
- Returns:
- An initialized OFXMLElement consisting of the specified CDATA
- (id) initWithCharacters: |
|
(OFString*) |
chars |
|
|
Initializes an already allocated OFXMLElement so that it only consists of the specified characters.
- Parameters:
-
| chars | The characters the element represents |
- Returns:
- An initialized OFXMLElement consisting of the specified characters
- (id) initWithComment: |
|
(OFString*) |
comment |
|
|
Initializes an already allocated OFXMLElement so that it only consists of the specified comment.
- Parameters:
-
| comment | The comment the element represents |
- Returns:
- An initialized OFXMLElement consisting of the specified comment
Initializes an already allocated OFXMLElement with the specified element name.
- Parameters:
-
| name | The name for the element |
- Returns:
- An initialized OFXMLElement with the specified element name
Initializes an already allocated OFXMLElement with the specified element name and namespace.
- Parameters:
-
| name | The name for the element |
| ns | The namespace for the element |
- Returns:
- An initialized OFXMLElement with the specified element name and namespace
Initializes an already allocated OFXMLElement with the specified element name, namespace and value.
- Parameters:
-
| name | The name for the element |
| ns | The namespace for the element |
| stringval | The value for the element |
- Returns:
- An initialized OFXMLElement with the specified element name, namespace and value
Initializes an already allocated OFXMLElement with the specified element name and value.
- Parameters:
-
| name | The name for the element |
| stringval | The value for the element |
- Returns:
- An initialized OFXMLElement with the specified element name and value
- (id) initWithXMLString: |
|
(OFString*) |
str |
|
|
Parses the string and initializes an already allocated OFXMLElement with it.
- Parameters:
-
- Returns:
- An initialized OFXMLElement with the contents of the string
- Returns:
- The name of the element
- Returns:
- The namespace of the element
- (void) removeAttributeForName: |
|
(OFString*) |
attrname |
|
|
Removes the attribute with the specified name.
- Parameters:
-
| attrname | The name of the attribute |
- (void) removeAttributeForName: |
|
(OFString*) |
attrname |
namespace: |
|
(OFString*) |
attrns | |
|
|
| | |
Removes the attribute with the specified name and namespace.
- Parameters:
-
| attrname | The name of the attribute |
| attrns | The namespace of the attribute |
- (void) setChildren: |
|
(OFArray*) |
children |
|
|
Removes all children and adds the children from the specified array.
- Parameters:
-
| children | The new children to add |
- (void) setDefaultNamespace: |
|
(OFString*) |
ns |
|
|
Sets the default namespace for the element.
- Parameters:
-
| ns | The default namespace for the element |
Sets a prefix for a namespace.
- Parameters:
-
| prefix | The prefix for the namespace |
| ns | The namespace for which the prefix is set |
- (void) setStringValue: |
|
(OFString*) |
value |
|
|
Removes all children and sets the string value to the specified string.
- Parameters:
-
| value | The new string value for the element |
- Returns:
- A string with the string value of all children concatenated
The documentation for this class was generated from the following files: