Ios official documentation (methods used for dom data parsing)

Source: Internet
Author: User

ElementsForName:

Returns the child element nodes (NSXMLElementObjects) of the specified er that have a specified name.

Returns the name specified by the receiver of a child element node (such as an NSXMLElement object ).

-(NSArray *) elementsForName :( NSString *) nameParameters
Name

A string specifying the name of the child element nodes to find and return. IfNameIs a qualified name, then this method invokeselementsForLocalName:URI:With the URI parameter set to the URI associated with the prefix. Otherwise comparison is based on string associity of the qualified or non-qualified name.

A string refers to the name of the child element node to be searched and returned. If the name is a qualified name, this method calls elementsForLocalName: URI to set the parameter to the URI associated with the prefix. Otherwise, the comparison is based on equal pass or no name strings.Return Value

An arrayNSXMLElementObjects or an empty array if no matching children can be found.

RootElement

Returns the root element of the specified er.

-(NSXMLElement *) rootElementReturn Value

The root element of the specified er.

Availability
  • Available in OS X v10.4 and later. See Also
    • – setRootElement:Related Sample Code
      • Quartz Composer MiniSOAP
      • SimpleScriptingPluginDeclared InNSXMLDocument.h
        StringValue

        Returns the string assigned to the annotation.

        -(NSString *) stringValueReturn Value

        The string assigned to the annotation.

        Availability
        • Available in OS X v10.4 and later. See Also
          • – setStringValue:Declared InPDFAnnotationTextWidget.hNext

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.