MonobjcMonobjc Documented Class Library
NSXMLElement Constructor (name, string)
NamespacesMonobjc.FoundationNSXMLElementNSXMLElement(NSString, NSString)

Returns an NSXMLElement object initialized with a specified name and a single text-node child containing a specified value.

Original signature is '- (id)initWithName:(NSString *)name stringValue:(NSString *)string'

Available in Mac OS X v10.4 and later.

Declaration Syntax
C#Visual BasicVisual C++
public NSXMLElement(
	NSString name,
	NSString string
)
Public Sub New ( _
	name As NSString, _
	string As NSString _
)
public:
NSXMLElement(
	NSString^ name, 
	NSString^ string
)
Parameters
name (NSString)
A string specifying the name of the element.
string (NSString)
The string value of the receiver's text node.
Return Value
The initialized NSXMLElement object or nil if initialization did not succeed.
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)