GSXMLNamespace $Revision$ $Date$ GSXMLNamespace GSXML.h XML namespace. namespaceWithNode: node prefix: prefix href: href

Creation of a new Namespace. This function will refuse to create a namespace with a similar prefix than an existing one present on this node.

.... GSXMLNamespace *ns1, *ns2; GSXMLNode *node1, *node2; NSString *prefix = @"mac-os-property"; NSString *href = @"http://www.gnustep.org/some/location"; ns = [GSXMLNamespace namespaceWithNode: nil href: href prefix: prefix]; node1 = [GSXMLNode nodeWithNamespace: ns name: @"node1"]; node2 = [GSXMLNode nodeWithNamespace: nil name: @"node2"]; ns2 = [GSXMLNamespace namespaceWithNode: node2 href: href prefix: prefix]; Result: node1 <mac-os-property:node1/> node2 <node2 xmlns="mac-os-property"/>
descriptionFromType: type

Return the string constant value for the namespace type given.

typeFromDescription: desc

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

XML_LOCAL_NAMESPACE
initWithNode: node prefix: prefix href: href

Creation of a new Namespace. This function will refuse to create a namespace with a similar prefix than an existing one present on this node.

namespaceFrom: data

Creation of a new Namespace from libxml data.

initFrom: data

Creation of a new Namespace from libxml data.

lib

Return pointer to xmlNs structure.

prefix

Return namespace prefix.

href

Return namespace http reference.

next

Return next namespace.

type

Return numeric type code of namespace.

typeDescription

Return string type code of namespace.