GSXMLAttribute $Revision$ $Date$ GSXMLAttribute GSXML.h XML Attribute. attributeWithNode: node name: name value: value

Create a new property carried by a node.

descriptionFromType: type

Return the string constant value for the attribute type given.

typeFromDescription: desc

Return the numeric constant value for the attribute type named. This method is inefficient, so the returned value should be saved for re-use later. The possible values are -

XML_ATTRIBUTE_CDATA XML_ATTRIBUTE_ID XML_ATTRIBUTE_IDREF XML_ATTRIBUTE_IDREFS XML_ATTRIBUTE_ENTITY XML_ATTRIBUTE_ENTITIES XML_ATTRIBUTE_NMTOKEN XML_ATTRIBUTE_NMTOKENS XML_ATTRIBUTE_ENUMERATION XML_ATTRIBUTE_NOTATION
initWithNode: node name: name value: value

Create a new property carried by a node.

attributeFrom: data

Creation of a new Attribute from libxml data.

initFrom: data

Creation of a new Attribute from libxml data.

lib

Return pointer to xmlAttribute structure.

name

Return a Attribute name.

value

Return a value of this attribute.

next

Return next Attribute.

id a = [node properties]; NSLog(@"n1 property name - %@ value - %@", [a name], [a value]); while ((a = [a next]) != nil) { NSLog(@"n1 property name - %@ value - %@", [a name], [a value]); }
prev

Return previous Attribute.

type

Return the numeric type code for this attribute.

typeDescription

Return the string type code for this attribute.