Type Method 型メソッド

DTDNodeWithXMLString:

Returns a NSXMLDTDNode object representing the DTD declaration for an element, attribute, entity, or notation based on a given string. NSXMLDTDNodeオブジェクトを返します、与えられた文字列に基づく要素、属性、エンティティ、または表記法に対するDTD宣言を表しています。

Declaration 宣言

+ (id)DTDNodeWithXMLString:(NSString *)string;

Parameters パラメータ

string

A string that is a DTD declaration. The receiver parses this string to determine the kind of DTD node to create. ある文字列、それはあるDTD宣言です。レシーバは、この文字列を構文解析して、作成するDTDノードの種類を決定します。

Return Value 戻り値

An NSXMLDTDNode object representing the DTD declaration or nil if the object couldn't be created. あるNSXMLDTDNodeオブジェクト、それはDTD宣言を表しています、またはnil、もしオブジェクトが作成できなかったならば。

Discussion 議論

For example, if string is the following: 例えば、もしstringが以下のものであるならば:


<!ENTITY name (#PCDATA)>

NSXMLNode is able to assign the created node object a kind of NSXMLEntityDeclarationKind by parsing “ENTITY”. NSXMLNodeは、作成されたノードオブジェクトをNSXMLEntityDeclarationKindの種類に割り当てることが “ENTITY” を構文解析することによって可能です。

Note that if an attribute-list declaration (<!ATTLIST...> )has multiple attributes NSXMLNode only creates an NSXMLDTDNode object for the last attribute in the declaration. 注意してください、もし属性リスト宣言(<!ATTLIST...>)が複数の属性を持つならばNSXMLNodeはただ1つのNSXMLDTDNodeオブジェクトをその宣言の最後の属性に対して作成します。

See Also 参照

Creating and Initializing Node Objects ノードオブジェクトの作成と初期化