19 OF_ASSUME_NONNULL_BEGIN
24 @class OFArray OF_GENERIC(ObjectType);
37 OFString *_name, *_namespace, *_defaultNamespace;
43 #ifdef OF_HAVE_PROPERTIES
46 @property OF_NULLABLE_PROPERTY (copy, getter=
namespace, setter=setNamespace:)
49 @property OF_NULLABLE_PROPERTY (copy)
OFString *namespace;
51 @property OF_NULLABLE_PROPERTY (copy)
OFString *defaultNamespace;
52 @property OF_NULLABLE_PROPERTY (copy, readonly)
54 @property OF_NULLABLE_PROPERTY (copy)
OFArray OF_GENERIC(
OFXMLNode*) *children;
63 + (instancetype)elementWithName: (
OFString*)name;
73 + (instancetype)elementWithName: (
OFString*)name
74 stringValue: (nullable
OFString*)stringValue;
84 + (instancetype)elementWithName: (
OFString*)name
85 namespace: (nullable
OFString*)namespace_;
97 + (instancetype)elementWithName: (
OFString*)name
98 namespace: (nullable
OFString*)namespace_
99 stringValue: (nullable
OFString*)stringValue;
108 + (instancetype)elementWithElement: (
OFXMLElement*)element;
116 + (instancetype)elementWithXMLString: (
OFString*)string;
126 + (instancetype)elementWithFile: (
OFString*)path;
147 stringValue: (nullable
OFString*)stringValue;
159 namespace: (nullable
OFString*)namespace_;
172 namespace: (nullable
OFString*)namespace_
173 stringValue: (nullable
OFString*)stringValue;
192 - initWithXMLString: (
OFString*)string;
224 - (void)setNamespace: (nullable
OFString*)namespace_;
239 - (void)setPrefix: (
OFString*)prefix
240 forNamespace: (
OFString*)namespace_;
248 - (void)bindPrefix: (
OFString*)prefix
249 forNamespace: (
OFString*)namespace_;
257 - (void)setDefaultNamespace: (nullable
OFString*)defaultNamespace;
266 - (nullable
OFString*)defaultNamespace;
294 - (void)addAttributeWithName: (
OFString*)name
295 stringValue: (
OFString*)stringValue;
308 - (void)addAttributeWithName: (
OFString*)name
309 namespace: (nullable
OFString*)namespace_
310 stringValue: (
OFString*)stringValue;
328 namespace: (nullable
OFString*)attributeNS;
335 - (void)removeAttributeForName: (
OFString*)attributeName;
343 - (void)removeAttributeForName: (
OFString*)attributeName
344 namespace: (nullable
OFString*)attributeNS;
374 atIndex: (
size_t)index;
383 atIndex: (
size_t)index;
398 - (void)removeChildAtIndex: (
size_t)index;
415 - (void)replaceChildAtIndex: (
size_t)index
457 namespace: (nullable
OFString*)elementNS;
467 elementsForName: (
OFString*)elementName
468 namespace: (nullable
OFString*)elementNS;
471 OF_ASSUME_NONNULL_END
473 #import "OFXMLElement+Serialization.h"
An abstract class for storing objects in an array.
Definition: OFArray.h:95
A representation of an attribute of an XML element as an object.
Definition: OFXMLAttribute.h:28
A class which stores an XML element.
Definition: OFXMLElement.h:35
An abstract class for storing, adding and removing objects in an array.
Definition: OFMutableArray.h:46
A class for handling strings.
Definition: OFString.h:91
A class which stores an XML element.
Definition: OFXMLNode.h:27
An abstract class for storing and changing objects in a dictionary.
Definition: OFMutableDictionary.h:47
A class for storing and modifying strings.
Definition: OFMutableString.h:26