你好,歡迎來到IOS教程網

 Ios教程網 >> IOS訊息 >> 關於IOS >> ios官方文檔( dom數據解析用到方法)

ios官方文檔( dom數據解析用到方法)

編輯:關於IOS

elementsForName:

Returns the child element nodes (as NSXMLElement objects) of the receiver that have a specified name.

返回子元素節點(如NSXMLElement對象)的接收方指定的名字

- (NSArray *)elementsForName:(NSString *)name

Parameters
name

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

一個字符串指定子元素節點的名稱查找並返回。如果名稱是一個合格的名稱,那麼這個方法調用elementsForLocalName:URI:URI參數設置為與前綴相關聯的URI。否則比較是基於平等的合格或沒有名稱的字符串。

Return Value

An array of of NSXMLElement objects or an empty array if no matching children can be found.

rootElement

Returns the root element of the receiver.

- (NSXMLElement *)rootElement

Return Value

The root element of the receiver.

Availability
  • Available in OS X v10.4 and later.
    See Also
    • C setRootElement:
      Related Sample Code
      • Quartz Composer MiniSOAP
      • SimpleScriptingPlugin
        Declared In

        NSXMLDocument.h

        stringValue

        Returns the string assigned to the annotation.

        - (NSString *)stringValue

        Return Value

        The string assigned to the annotation.

        Availability
        • Available in OS X v10.4 and later.
          See Also
          • C setStringValue:
            Declared In

            PDFAnnotationTextWidget.h Next

  1. 上一頁:
  2. 下一頁:
蘋果刷機越獄教程| IOS教程問題解答| IOS技巧綜合| IOS7技巧| IOS8教程
Copyright © Ios教程網 All Rights Reserved