VaKeR CYBER ARMY
Logo of a company Server : Apache/2.4.41 (Ubuntu)
System : Linux absol.cf 5.4.0-198-generic #218-Ubuntu SMP Fri Sep 27 20:18:53 UTC 2024 x86_64
User : www-data ( 33)
PHP Version : 7.4.33
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Directory :  /usr/share/doc/gnustep-base-doc/Base/Reference/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/share/doc/gnustep-base-doc/Base/Reference/NSXMLElement.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

    <head>
    <title>NSXMLElement class documentation</title>
  </head>
  <body>
    <font face="serif">
    <a href="Base.html">Up</a>
    <br />
    <h1><a name="title$NSXMLElement">NSXMLElement class documentation</a></h1>
    <h3>Authors</h3>
    <dl>
      <dt>Generated by Debian</dt>
      <dd>
      </dd>
    </dl>

        <div>
    </div>

          <h1><a name="001000000000">
        Software documentation for the NSXMLElement class
      </a></h1>
    <h2><a name="class$NSXMLElement">NSXMLElement</a> : <a rel="gsdoc" href="NSXMLNode.html#class$NSXMLNode">NSXMLNode</a></h2>
    <blockquote class="declared">
      <dl>
        <dt><b>Declared in:</b></dt>
        <dd>Foundation/NSXMLElement.h</dd>
      </dl>
    </blockquote>
    <div class="availability">
<b>Availability:</b> OpenStep</div>
<br />
    <div class="desc">
      
          Represents an XML element. <br />
        
    </div>
    <b>Method summary</b>
    <ul>
      <li><a rel="gsdoc" href="NSXMLElement.html#method$NSXMLElement-addAttribute$">-addAttribute:</a></li>
      <li><a rel="gsdoc" href="NSXMLElement.html#method$NSXMLElement-addChild$">-addChild:</a></li>
      <li><a rel="gsdoc" href="NSXMLElement.html#method$NSXMLElement-addNamespace$">-addNamespace:</a></li>
      <li><a rel="gsdoc" href="NSXMLElement.html#method$NSXMLElement-attributeForLocalName$URI$">-attributeForLocalName:URI:</a></li>
      <li><a rel="gsdoc" href="NSXMLElement.html#method$NSXMLElement-attributeForName$">-attributeForName:</a></li>
      <li><a rel="gsdoc" href="NSXMLElement.html#method$NSXMLElement-attributes">-attributes</a></li>
      <li><a rel="gsdoc" href="NSXMLElement.html#method$NSXMLElement-elementsForLocalName$URI$">-elementsForLocalName:URI:</a></li>
      <li><a rel="gsdoc" href="NSXMLElement.html#method$NSXMLElement-elementsForName$">-elementsForName:</a></li>
      <li><a rel="gsdoc" href="NSXMLElement.html#method$NSXMLElement-initWithName$">-initWithName:</a></li>
      <li><a rel="gsdoc" href="NSXMLElement.html#method$NSXMLElement-initWithName$URI$">-initWithName:URI:</a></li>
      <li><a rel="gsdoc" href="NSXMLElement.html#method$NSXMLElement-initWithName$stringValue$">-initWithName:stringValue:</a></li>
      <li><a rel="gsdoc" href="NSXMLElement.html#method$NSXMLElement-initWithXMLString$error$">-initWithXMLString:error:</a></li>
      <li><a rel="gsdoc" href="NSXMLElement.html#method$NSXMLElement-insertChild$atIndex$">-insertChild:atIndex:</a></li>
      <li><a rel="gsdoc" href="NSXMLElement.html#method$NSXMLElement-insertChildren$atIndex$">-insertChildren:atIndex:</a></li>
      <li><a rel="gsdoc" href="NSXMLElement.html#method$NSXMLElement-namespaceForPrefix$">-namespaceForPrefix:</a></li>
      <li><a rel="gsdoc" href="NSXMLElement.html#method$NSXMLElement-namespaces">-namespaces</a></li>
      <li><a rel="gsdoc" href="NSXMLElement.html#method$NSXMLElement-normalizeAdjacentTextNodesPreservingCDATA$">-normalizeAdjacentTextNodesPreservingCDATA:</a></li>
      <li><a rel="gsdoc" href="NSXMLElement.html#method$NSXMLElement-removeAttributeForName$">-removeAttributeForName:</a></li>
      <li><a rel="gsdoc" href="NSXMLElement.html#method$NSXMLElement-removeChildAtIndex$">-removeChildAtIndex:</a></li>
      <li><a rel="gsdoc" href="NSXMLElement.html#method$NSXMLElement-removeNamespaceForPrefix$">-removeNamespaceForPrefix:</a></li>
      <li><a rel="gsdoc" href="NSXMLElement.html#method$NSXMLElement-replaceChildAtIndex$withNode$">-replaceChildAtIndex:withNode:</a></li>
      <li><a rel="gsdoc" href="NSXMLElement.html#method$NSXMLElement-resolveNamespaceForName$">-resolveNamespaceForName:</a></li>
      <li><a rel="gsdoc" href="NSXMLElement.html#method$NSXMLElement-resolvePrefixForNamespaceURI$">-resolvePrefixForNamespaceURI:</a></li>
      <li><a rel="gsdoc" href="NSXMLElement.html#method$NSXMLElement-setAttributes$">-setAttributes:</a></li>
      <li><a rel="gsdoc" href="NSXMLElement.html#method$NSXMLElement-setAttributesAsDictionary$">-setAttributesAsDictionary:</a></li>
      <li><a rel="gsdoc" href="NSXMLElement.html#method$NSXMLElement-setAttributesWithDictionary$">-setAttributesWithDictionary:</a></li>
      <li><a rel="gsdoc" href="NSXMLElement.html#method$NSXMLElement-setChildren$">-setChildren:</a></li>
      <li><a rel="gsdoc" href="NSXMLElement.html#method$NSXMLElement-setNamespaces$">-setNamespaces:</a></li>
    </ul>
    <hr width="50%" align="left" />
<div class="method">
    <h3><a name="method$NSXMLElement-addAttribute$">addAttribute:&nbsp;</a></h3>
    - (void) <b>addAttribute:</b> (<a rel="gsdoc" href="NSXMLNode.html#class$NSXMLNode">NSXMLNode</a>*)attribute;<br />
    <div class="availability">
<b>Availability:</b> OpenStep</div>
<br />
    <div class="desc">
      
            Adds the supplied <var>attribute</var> to the receiver
            (ignoring if it has a duplicate name).
          
    </div>
    <hr width="25%" align="left" />
</div>
<div class="method">
    <h3><a name="method$NSXMLElement-addChild$">addChild:&nbsp;</a></h3>
    - (void) <b>addChild:</b> (<a rel="gsdoc" href="NSXMLNode.html#class$NSXMLNode">NSXMLNode</a>*)child;<br />
    <div class="availability">
<b>Availability:</b> OpenStep</div>
<br />
    <div class="desc">
      
            Adds a <var>child</var> after existing children.
          
    </div>
    <hr width="25%" align="left" />
</div>
<div class="method">
    <h3><a name="method$NSXMLElement-addNamespace$">addNamespace:&nbsp;</a></h3>
    - (void) <b>addNamespace:</b> (<a rel="gsdoc" href="NSXMLNode.html#class$NSXMLNode">NSXMLNode</a>*)aNamespace;<br />
    <div class="availability">
<b>Availability:</b> OpenStep</div>
<br />
    <div class="desc">
      
            Adds a namespace unless the name is a duplicate.
          
    </div>
    <hr width="25%" align="left" />
</div>
<div class="method">
    <h3><a name="method$NSXMLElement-attributeForLocalName$URI$">attributeForLocalName:&nbsp;URI:&nbsp;</a></h3>
    - (<a rel="gsdoc" href="NSXMLNode.html#class$NSXMLNode">NSXMLNode</a>*) <b>attributeForLocalName:</b> (<a rel="gsdoc" href="NSString.html#class$NSString">NSString</a>*)localName<b> URI:</b> (<a rel="gsdoc" href="NSString.html#class$NSString">NSString</a>*)URI;<br />
    <div class="availability">
<b>Availability:</b> OpenStep</div>
<br />
    <div class="desc">
      
            Returns the attribute matching <var>localName</var>
            and <var>URI</var>.
          
    </div>
    <hr width="25%" align="left" />
</div>
<div class="method">
    <h3><a name="method$NSXMLElement-attributeForName$">attributeForName:&nbsp;</a></h3>
    - (<a rel="gsdoc" href="NSXMLNode.html#class$NSXMLNode">NSXMLNode</a>*) <b>attributeForName:</b> (<a rel="gsdoc" href="NSString.html#class$NSString">NSString</a>*)name;<br />
    <div class="availability">
<b>Availability:</b> OpenStep</div>
<br />
    <div class="desc">
      
            Returns the named attribute.
          
    </div>
    <hr width="25%" align="left" />
</div>
<div class="method">
    <h3><a name="method$NSXMLElement-attributes">attributes&nbsp;</a></h3>
    - (<a rel="gsdoc" href="NSArray.html#class$NSArray">NSArray</a>*) <b>attributes</b>;<br />
    <div class="availability">
<b>Availability:</b> OpenStep</div>
<br />
    <div class="desc">
      
            Returns the receiver&apos;s attributes.
          
    </div>
    <hr width="25%" align="left" />
</div>
<div class="method">
    <h3><a name="method$NSXMLElement-elementsForLocalName$URI$">elementsForLocalName:&nbsp;URI:&nbsp;</a></h3>
    - (<a rel="gsdoc" href="NSArray.html#class$NSArray">NSArray</a>*) <b>elementsForLocalName:</b> (<a rel="gsdoc" href="NSString.html#class$NSString">NSString</a>*)localName<b> URI:</b> (<a rel="gsdoc" href="NSString.html#class$NSString">NSString</a>*)URI;<br />
    <div class="availability">
<b>Availability:</b> OpenStep</div>
<br />
    <div class="desc">
      
            Searches for and returns all child elements which
            match <var>localName</var> and the specified
            <var>URI</var>.
          
    </div>
    <hr width="25%" align="left" />
</div>
<div class="method">
    <h3><a name="method$NSXMLElement-elementsForName$">elementsForName:&nbsp;</a></h3>
    - (<a rel="gsdoc" href="NSArray.html#class$NSArray">NSArray</a>*) <b>elementsForName:</b> (<a rel="gsdoc" href="NSString.html#class$NSString">NSString</a>*)name;<br />
    <div class="availability">
<b>Availability:</b> OpenStep</div>
<br />
    <div class="desc">
      
            Searches for and returns all child elements which
            match <var>name</var>.
          
    </div>
    <hr width="25%" align="left" />
</div>
<div class="method">
    <h3><a name="method$NSXMLElement-initWithName$">initWithName:&nbsp;</a></h3>
    - (id) <b>initWithName:</b> (<a rel="gsdoc" href="NSString.html#class$NSString">NSString</a>*)name;<br />
    <div class="availability">
<b>Availability:</b> OpenStep</div>
<br />
    <div class="desc">
      
            Initialises the receiver with the given
            <var>name</var>.
          
    </div>
    <hr width="25%" align="left" />
</div>
<div class="method">
    <h3><a name="method$NSXMLElement-initWithName$URI$">initWithName:&nbsp;URI:&nbsp;</a></h3>
    - (id) <b>initWithName:</b> (<a rel="gsdoc" href="NSString.html#class$NSString">NSString</a>*)name<b> URI:</b> (<a rel="gsdoc" href="NSString.html#class$NSString">NSString</a>*)URI;<br />
    <div class="availability">
<b>Availability:</b> OpenStep</div>
<br />
    <div class="desc">
      
            Initialises the receiver with the given
            <var>name</var> and namespace <var>URI</var>.
          
    </div>
    <hr width="25%" align="left" />
</div>
<div class="method">
    <h3><a name="method$NSXMLElement-initWithName$stringValue$">initWithName:&nbsp;stringValue:&nbsp;</a></h3>
    - (id) <b>initWithName:</b> (<a rel="gsdoc" href="NSString.html#class$NSString">NSString</a>*)name<b> stringValue:</b> (<a rel="gsdoc" href="NSString.html#class$NSString">NSString</a>*)string;<br />
    <div class="availability">
<b>Availability:</b> OpenStep</div>
<br />
    <div class="desc">
      
            Initialises the receiver as a text node with
            the given <var>name</var> and content.
          
    </div>
    <hr width="25%" align="left" />
</div>
<div class="method">
    <h3><a name="method$NSXMLElement-initWithXMLString$error$">initWithXMLString:&nbsp;error:&nbsp;</a></h3>
    - (id) <b>initWithXMLString:</b> (<a rel="gsdoc" href="NSString.html#class$NSString">NSString</a>*)string<b> error:</b> (<a rel="gsdoc" href="NSError.html#class$NSError">NSError</a>**)error;<br />
    <div class="availability">
<b>Availability:</b> OpenStep</div>
<br />
    <div class="desc">
      
            Initialises the receiver by parsing the XML
            <var>string</var> supplied.
          
    </div>
    <hr width="25%" align="left" />
</div>
<div class="method">
    <h3><a name="method$NSXMLElement-insertChild$atIndex$">insertChild:&nbsp;atIndex:&nbsp;</a></h3>
    - (void) <b>insertChild:</b> (<a rel="gsdoc" href="NSXMLNode.html#class$NSXMLNode">NSXMLNode</a>*)child<b> atIndex:</b> (<a rel="gsdoc" href="TypesAndConstants.html#type$NSUInteger">NSUInteger</a>)index;<br />
    <div class="availability">
<b>Availability:</b> OpenStep</div>
<br />
    <div class="desc">
      
            Inerts a <var>child</var> node.
          
    </div>
    <hr width="25%" align="left" />
</div>
<div class="method">
    <h3><a name="method$NSXMLElement-insertChildren$atIndex$">insertChildren:&nbsp;atIndex:&nbsp;</a></h3>
    - (void) <b>insertChildren:</b> (<a rel="gsdoc" href="NSArray.html#class$NSArray">NSArray</a>*)children<b> atIndex:</b> (<a rel="gsdoc" href="TypesAndConstants.html#type$NSUInteger">NSUInteger</a>)index;<br />
    <div class="availability">
<b>Availability:</b> OpenStep</div>
<br />
    <div class="desc">
      
            Inserts a number of <var>children</var>.
          
    </div>
    <hr width="25%" align="left" />
</div>
<div class="method">
    <h3><a name="method$NSXMLElement-namespaceForPrefix$">namespaceForPrefix:&nbsp;</a></h3>
    - (<a rel="gsdoc" href="NSXMLNode.html#class$NSXMLNode">NSXMLNode</a>*) <b>namespaceForPrefix:</b> (<a rel="gsdoc" href="NSString.html#class$NSString">NSString</a>*)name;<br />
    <div class="availability">
<b>Availability:</b> OpenStep</div>
<br />
    <div class="desc">
      
            Returns the namespace for the specified prefix in
            the receiver.
          
    </div>
    <hr width="25%" align="left" />
</div>
<div class="method">
    <h3><a name="method$NSXMLElement-namespaces">namespaces&nbsp;</a></h3>
    - (<a rel="gsdoc" href="NSArray.html#class$NSArray">NSArray</a>*) <b>namespaces</b>;<br />
    <div class="availability">
<b>Availability:</b> OpenStep</div>
<br />
    <div class="desc">
      
            Returns the namespaces of the receiver.
          
    </div>
    <hr width="25%" align="left" />
</div>
<div class="method">
    <h3><a name="method$NSXMLElement-normalizeAdjacentTextNodesPreservingCDATA$">normalizeAdjacentTextNodesPreservingCDATA:&nbsp;</a></h3>
    - (void) <b>normalizeAdjacentTextNodesPreservingCDATA:</b> (BOOL)preserve;<br />
    <div class="availability">
<b>Availability:</b> OpenStep</div>
<br />
    <div class="desc">
      
            Merges adjacent text nodes. If a node&apos;s value is the
            empty string, and <var>preserve</var> is
            <code>NO</code>, it is removed. <br /> This should
            be called with a value of <code>NO</code> before using
            XQuery or XPath.
          
    </div>
    <hr width="25%" align="left" />
</div>
<div class="method">
    <h3><a name="method$NSXMLElement-removeAttributeForName$">removeAttributeForName:&nbsp;</a></h3>
    - (void) <b>removeAttributeForName:</b> (<a rel="gsdoc" href="NSString.html#class$NSString">NSString</a>*)name;<br />
    <div class="availability">
<b>Availability:</b> OpenStep</div>
<br />
    <div class="desc">
      
            Removes the named attribute.
          
    </div>
    <hr width="25%" align="left" />
</div>
<div class="method">
    <h3><a name="method$NSXMLElement-removeChildAtIndex$">removeChildAtIndex:&nbsp;</a></h3>
    - (void) <b>removeChildAtIndex:</b> (<a rel="gsdoc" href="TypesAndConstants.html#type$NSUInteger">NSUInteger</a>)index;<br />
    <div class="availability">
<b>Availability:</b> OpenStep</div>
<br />
    <div class="desc">
      
            Removes a child node.
          
    </div>
    <hr width="25%" align="left" />
</div>
<div class="method">
    <h3><a name="method$NSXMLElement-removeNamespaceForPrefix$">removeNamespaceForPrefix:&nbsp;</a></h3>
    - (void) <b>removeNamespaceForPrefix:</b> (<a rel="gsdoc" href="NSString.html#class$NSString">NSString</a>*)name;<br />
    <div class="availability">
<b>Availability:</b> OpenStep</div>
<br />
    <div class="desc">
      
            Removes a named namespace.
          
    </div>
    <hr width="25%" align="left" />
</div>
<div class="method">
    <h3><a name="method$NSXMLElement-replaceChildAtIndex$withNode$">replaceChildAtIndex:&nbsp;withNode:&nbsp;</a></h3>
    - (void) <b>replaceChildAtIndex:</b> (<a rel="gsdoc" href="TypesAndConstants.html#type$NSUInteger">NSUInteger</a>)index<b> withNode:</b> (<a rel="gsdoc" href="NSXMLNode.html#class$NSXMLNode">NSXMLNode</a>*)theNode;<br />
    <div class="availability">
<b>Availability:</b> OpenStep</div>
<br />
    <div class="desc">
      
            Replaces the child at the specified
            <var>index</var>.
          
    </div>
    <hr width="25%" align="left" />
</div>
<div class="method">
    <h3><a name="method$NSXMLElement-resolveNamespaceForName$">resolveNamespaceForName:&nbsp;</a></h3>
    - (<a rel="gsdoc" href="NSXMLNode.html#class$NSXMLNode">NSXMLNode</a>*) <b>resolveNamespaceForName:</b> (<a rel="gsdoc" href="NSString.html#class$NSString">NSString</a>*)name;<br />
    <div class="availability">
<b>Availability:</b> OpenStep</div>
<br />
    <div class="desc">
      
            Returns the namespace found by searching the chain
            of namespaces.
          
    </div>
    <hr width="25%" align="left" />
</div>
<div class="method">
    <h3><a name="method$NSXMLElement-resolvePrefixForNamespaceURI$">resolvePrefixForNamespaceURI:&nbsp;</a></h3>
    - (<a rel="gsdoc" href="NSString.html#class$NSString">NSString</a>*) <b>resolvePrefixForNamespaceURI:</b> (<a rel="gsdoc" href="NSString.html#class$NSString">NSString</a>*)namespaceURI;<br />
    <div class="availability">
<b>Availability:</b> OpenStep</div>
<br />
    <div class="desc">
      
            Returns the URI by searching the chain of
            namespaces.
          
    </div>
    <hr width="25%" align="left" />
</div>
<div class="method">
    <h3><a name="method$NSXMLElement-setAttributes$">setAttributes:&nbsp;</a></h3>
    - (void) <b>setAttributes:</b> (<a rel="gsdoc" href="NSArray.html#class$NSArray">NSArray</a>*)attributes;<br />
    <div class="availability">
<b>Availability:</b> OpenStep</div>
<br />
    <div class="desc">
      
            Sets the <var>attributes</var> of the receiver,
            ignoring all but the first of any duplicates.
          
    </div>
    <hr width="25%" align="left" />
</div>
<div class="method">
    <h3><a name="method$NSXMLElement-setAttributesAsDictionary$">setAttributesAsDictionary:&nbsp;</a></h3>
    - (void) <b>setAttributesAsDictionary:</b> (<a rel="gsdoc" href="NSDictionary.html#class$NSDictionary">NSDictionary</a>*)attributes;<br />
    <div class="availability">
<b>Availability:</b> OpenStep</div>
<br />
    <div class="desc">
      
            Sets <var>attributes</var> from the supplied
            dictionary. <br /> DEPRECATED... use
            <a rel="gsdoc" href="#method$NSXMLElement-setAttributesWithDictionary$">
              -setAttributesWithDictionary:
            </a>

            instead.
          
    </div>
    <hr width="25%" align="left" />
</div>
<div class="method">
    <h3><a name="method$NSXMLElement-setAttributesWithDictionary$">setAttributesWithDictionary:&nbsp;</a></h3>
    - (void) <b>setAttributesWithDictionary:</b> (<a rel="gsdoc" href="NSDictionary.html#class$NSDictionary">NSDictionary</a>*)attributes;<br />
    <div class="availability">
<b>Availability:</b> MacOS-X 10.7.0</div>
<br />
    <div class="desc">
      
            Sets <var>attributes</var> from the supplied
            dictionary.
          
    </div>
    <hr width="25%" align="left" />
</div>
<div class="method">
    <h3><a name="method$NSXMLElement-setChildren$">setChildren:&nbsp;</a></h3>
    - (void) <b>setChildren:</b> (<a rel="gsdoc" href="NSArray.html#class$NSArray">NSArray</a>*)children;<br />
    <div class="availability">
<b>Availability:</b> OpenStep</div>
<br />
    <div class="desc">
      
            Replaces all existing child nodes with those from
            the array.
          
    </div>
    <hr width="25%" align="left" />
</div>
<div class="method">
    <h3><a name="method$NSXMLElement-setNamespaces$">setNamespaces:&nbsp;</a></h3>
    - (void) <b>setNamespaces:</b> (<a rel="gsdoc" href="NSArray.html#class$NSArray">NSArray</a>*)namespaces;<br />
    <div class="availability">
<b>Availability:</b> OpenStep</div>
<br />
    <div class="desc">
      
            Sets the <var>namespaces</var> for the receiver,
            ignoring all but the first of any duplicates.
          
    </div>
    <hr width="25%" align="left" />
</div>
    <br />
    <a href="Base.html">Up</a>
    </font>
</body>
</html>

VaKeR 2022