Up
Authors
- Generated by root
-
- Declared in:
- Foundation/NSXMLElement.h
Availability: OpenStep
Represents an XML element.
Instance Variables
Method summary
- (void)
addAttribute: (
NSXMLNode*)attribute;
Availability: OpenStep
Adds the supplied attribute to the receiver
(ignoring if it has a duplicate name).
- (void)
addChild: (
NSXMLNode*)child;
Availability: OpenStep
Adds a child after existing children.
- (void)
addNamespace: (
NSXMLNode*)aNamespace;
Availability: OpenStep
Adds a namespace unless the name is a duplicate.
- (
NSXMLNode*)
attributeForLocalName: (
NSString*)localName
URI: (
NSString*)URI;
Availability: OpenStep
Returns the attribute matching localName
and URI.
- (
NSXMLNode*)
attributeForName: (
NSString*)name;
Availability: OpenStep
Returns the named attribute.
- (
NSArray*)
attributes;
Availability: OpenStep
Returns the receiver's attributes.
- (
NSArray*)
elementsForLocalName: (
NSString*)localName
URI: (
NSString*)URI;
Availability: OpenStep
Searches for and returns all child elements which
match localName and the specified
URI.
- (
NSArray*)
elementsForName: (
NSString*)name;
Availability: OpenStep
Searches for and returns all child elements which
match name.
- (id)
initWithName: (
NSString*)name;
Availability: OpenStep
Initialises the receiver with the given
name.
- (id)
initWithName: (
NSString*)name
URI: (
NSString*)URI;
Availability: OpenStep
Initialises the receiver with the given
name and namespace URI.
- (id)
initWithName: (
NSString*)name
stringValue: (
NSString*)string;
Availability: OpenStep
Initialises the receiver as a text node with
the given name and content.
- (id)
initWithXMLString: (
NSString*)string
error: (
NSError**)error;
Availability: OpenStep
Initialises the receiver by parsing the XML
string supplied.
- (void)
insertChild: (
NSXMLNode*)child
atIndex: (
NSUInteger)index;
Availability: OpenStep
Inerts a child node.
- (void)
insertChildren: (
NSArray*)children
atIndex: (
NSUInteger)index;
Availability: OpenStep
Inserts a number of children.
- (
NSXMLNode*)
namespaceForPrefix: (
NSString*)name;
Availability: OpenStep
Returns the namespace for the specified prefix in
the receiver.
- (
NSArray*)
namespaces;
Availability: OpenStep
Returns the namespaces of the receiver.
- (void)
normalizeAdjacentTextNodesPreservingCDATA: (BOOL)preserve;
Availability: OpenStep
Merges adjacent text nodes. If a node's value is the
empty string, and preserve is
NO
, it is removed.
This should
be called with a value of NO
before using
XQuery or XPath.
- (void)
removeAttributeForName: (
NSString*)name;
Availability: OpenStep
Removes the named attribute.
- (void)
removeChildAtIndex: (
NSUInteger)index;
Availability: OpenStep
Removes a child node.
- (void)
removeNamespaceForPrefix: (
NSString*)name;
Availability: OpenStep
Removes a named namespace.
- (void)
replaceChildAtIndex: (
NSUInteger)index
withNode: (
NSXMLNode*)node;
Availability: OpenStep
Replaces the child at the specified
index.
- (
NSXMLNode*)
resolveNamespaceForName: (
NSString*)name;
Availability: OpenStep
Returns the namespace found by searching the chain
of namespaces.
- (
NSString*)
resolvePrefixForNamespaceURI: (
NSString*)namespaceURI;
Availability: OpenStep
Returns the URI by searching the chain of
namespaces.
- (void)
setAttributes: (
NSArray*)attributes;
Availability: OpenStep
Sets the attributes of the receiver,
ignoring all but the first of any duplicates.
- (void)
setAttributesAsDictionary: (
NSDictionary*)attributes;
Availability: OpenStep
Sets attributes from the supplkied
dictionary.
- (void)
setChildren: (
NSArray*)children;
Availability: OpenStep
Replaces all existing child nodes with those from
the array.
- (void)
setNamespaces: (
NSArray*)namespaces;
Availability: OpenStep
Sets the namespaces for the receiver,
ignoring all but the first of any duplicates.
Instance Variables for NSXMLElement Class
@protected NSString* _URI;
Availability: OpenStep
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected NSMutableArray* _attributes;
Availability: OpenStep
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected NSArray* _children;
Availability: OpenStep
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected BOOL _childrenHaveMutated;
Availability: OpenStep
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected NSString* _name;
Availability: OpenStep
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected NSMutableArray* _namespaces;
Availability: OpenStep
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected NSInteger _prefixIndex;
Availability: OpenStep
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected uint8_t _unused;
Availability: OpenStep
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
Up