MonobjcMonobjc Documented Class Library
ElementWithNameStringValue Method (name, string)
NamespacesMonobjc.FoundationNSXMLNodeElementWithNameStringValue(NSString, NSString)

Returns an NSXMLElement object with a single text-node child containing the specified text.

Original signature is '+ (id)elementWithName:(NSString *)name stringValue:(NSString *)string'

Available in Mac OS X v10.4 and later.

Declaration Syntax
C#Visual BasicVisual C++
public static Id ElementWithNameStringValue(
	NSString name,
	NSString string
)
Public Shared Function ElementWithNameStringValue ( _
	name As NSString, _
	string As NSString _
) As Id
public:
static Id^ ElementWithNameStringValue(
	NSString^ name, 
	NSString^ string
)
Parameters
name (NSString)
A string that is the name (tag identifier) of the element.
string (NSString)
A string that is the content of the receiver's text node.
Return Value
An NSXMLElement object with a single text-node child—an NSXMLNode object of kind NSXMLTextKind—containing the text specified in string. Returns nil if the object couldn't be created.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.Foundation (Module: Monobjc.Foundation)