mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-26 18:21:04 +00:00
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@9697 72102866-910b-0410-8b05-ffd578937521
185 lines
5.1 KiB
XML
185 lines
5.1 KiB
XML
<?xml version="1.0"?>
|
|
<!DOCTYPE gsdoc PUBLIC "-//GNUstep//DTD gsdoc 0.6.6//EN" "http://www.gnustep.org/gsdoc-0_6_6.xml">
|
|
<gsdoc base="GSXMLNamespace" next="GSXMLNode" up="GSXML">
|
|
<head>
|
|
<title>GSXMLNamespace</title>
|
|
<author name="Michael Pakhantsov">
|
|
<email address="mishel@berest.dp.ua"/>
|
|
</author>
|
|
<author name="Richard Frith-Macdonald">
|
|
<email address="rfm@gnu.org"/>
|
|
</author>
|
|
<version>$Revision$</version>
|
|
<date>$Date$</date>
|
|
</head>
|
|
|
|
<body>
|
|
<chapter>
|
|
<heading>GSXMLNamespace</heading>
|
|
<class name="GSXMLNamespace" super="NSObject">
|
|
<declared>GSXML.h</declared>
|
|
<desc>
|
|
XML namespace.
|
|
</desc>
|
|
|
|
<method type="GSXMLNamespace*" factory="yes">
|
|
<sel>namespaceWithNode:</sel>
|
|
<arg type="GSXMLNode*">node</arg>
|
|
<sel>prefix:</sel>
|
|
<arg type="NSString*">prefix</arg>
|
|
<sel>href:</sel>
|
|
<arg type="NSString*">href</arg>
|
|
<desc>
|
|
<p>
|
|
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.
|
|
</p>
|
|
<example>
|
|
|
|
....
|
|
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"/>
|
|
</example>
|
|
|
|
</desc>
|
|
</method>
|
|
|
|
<method type="NSString*" factory="yes">
|
|
<sel>descriptionFromType:</sel>
|
|
<arg type="int">type</arg>
|
|
<desc>
|
|
<p>
|
|
Return the string constant value for the namespace
|
|
type given.
|
|
</p>
|
|
</desc>
|
|
</method>
|
|
|
|
<method type="int" factory="yes">
|
|
<sel>typeFromDescription:</sel>
|
|
<arg type="NSString*">desc</arg>
|
|
<desc>
|
|
<p>
|
|
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 -
|
|
</p>
|
|
<list>
|
|
<item>XML_LOCAL_NAMESPACE</item>
|
|
</list>
|
|
</desc>
|
|
</method>
|
|
|
|
<method type="id">
|
|
<sel>initWithNode:</sel>
|
|
<arg type="GSXMLNode*">node</arg>
|
|
<sel>prefix:</sel>
|
|
<arg type="NSString*">prefix</arg>
|
|
<sel>href:</sel>
|
|
<arg type="NSString*">href</arg>
|
|
<desc>
|
|
<p>
|
|
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.
|
|
</p>
|
|
</desc>
|
|
</method>
|
|
|
|
<method type="GSXMLNamespace*" factory="yes">
|
|
<sel>namespaceFrom:</sel>
|
|
<arg type="void*">data</arg>
|
|
<desc>
|
|
<p>
|
|
Creation of a new Namespace from libxml data.
|
|
</p>
|
|
</desc>
|
|
</method>
|
|
|
|
<method type="id" init="yes">
|
|
<sel>initFrom:</sel>
|
|
<arg type="void*">data</arg>
|
|
<desc>
|
|
<p>
|
|
Creation of a new Namespace from libxml data.
|
|
</p>
|
|
</desc>
|
|
</method>
|
|
|
|
<method type="void*">
|
|
<sel>lib</sel>
|
|
<desc>
|
|
<p>
|
|
Return pointer to xmlNs structure.
|
|
</p>
|
|
</desc>
|
|
</method>
|
|
|
|
<method type="NSString*">
|
|
<sel>prefix</sel>
|
|
<desc>
|
|
<p>
|
|
Return namespace prefix.
|
|
</p>
|
|
</desc>
|
|
</method>
|
|
|
|
<method type="NSString*">
|
|
<sel>href</sel>
|
|
<desc>
|
|
<p>
|
|
Return namespace http reference.
|
|
</p>
|
|
</desc>
|
|
</method>
|
|
|
|
<method type="GSXMLNamespace*">
|
|
<sel>next</sel>
|
|
<desc>
|
|
<p>
|
|
Return next namespace.
|
|
</p>
|
|
</desc>
|
|
</method>
|
|
|
|
<method type="int">
|
|
<sel>type</sel>
|
|
<desc>
|
|
<p>
|
|
Return numeric type code of namespace.
|
|
</p>
|
|
</desc>
|
|
</method>
|
|
|
|
<method type="NSString*">
|
|
<sel>typeDescription</sel>
|
|
<desc>
|
|
<p>
|
|
Return string type code of namespace.
|
|
</p>
|
|
</desc>
|
|
</method>
|
|
|
|
</class>
|
|
</chapter>
|
|
</body>
|
|
</gsdoc>
|