MonobjcMonobjc Documented Class Library
NSXMLDTD Constructor (url, mask, error)
NamespacesMonobjc.FoundationNSXMLDTDNSXMLDTD(NSURL, NSUInteger, NSError%)

Initializes and returns an NSXMLDTD object created from the DTD declarations in a URL-referenced source.

Original signature is '- (id)initWithContentsOfURL:(NSURL *)url options:(NSUInteger)mask error:(NSError **)error'

Available in Mac OS X v10.4 and later.

Declaration Syntax
C#Visual BasicVisual C++
public NSXMLDTD(
	NSURL url,
	NSUInteger mask,
	out NSError error
)
Public Sub New ( _
	url As NSURL, _
	mask As NSUInteger, _
	<OutAttribute> ByRef error As NSError _
)
public:
NSXMLDTD(
	NSURL^ url, 
	NSUInteger mask, 
	[OutAttribute] NSError^% error
)
Parameters
url (NSURL)
An NSURL object identifying a URL source.
mask (NSUInteger)
A bit mask specifying input options; bit-OR multiple options. The current valid options are NSXMLNodePreserveWhitespace and NSXMLNodePreserveEntities; these constants are described in the "Constants" section of the NSXMLNode reference.
error (NSError%)
On return, this parameter holds an NSError object describing any errors and warnings related to parsing and remote connection.
Return Value
An initialized NSXMLDTD object or nil if initialization fails because of parsing errors or other reasons.
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)