Share via


DocumentBuilderFactory.NewInstance Method

Definition

Overloads

NewInstance()

Returns Android's implementation of DocumentBuilderFactory.

NewInstance(String, ClassLoader)

Returns an instance of the named implementation of DocumentBuilderFactory.

NewInstance()

Returns Android's implementation of DocumentBuilderFactory.

[Android.Runtime.Register("newInstance", "()Ljavax/xml/parsers/DocumentBuilderFactory;", "")]
public static Javax.Xml.Parsers.DocumentBuilderFactory? NewInstance ();
[<Android.Runtime.Register("newInstance", "()Ljavax/xml/parsers/DocumentBuilderFactory;", "")>]
static member NewInstance : unit -> Javax.Xml.Parsers.DocumentBuilderFactory

Returns

a new DocumentBuilderFactory.

Attributes

Remarks

Returns Android's implementation of DocumentBuilderFactory. Unlike other Java implementations, this method does not consult system properties, property files, or the services API.

Java documentation for javax.xml.parsers.DocumentBuilderFactory.newInstance().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

NewInstance(String, ClassLoader)

Returns an instance of the named implementation of DocumentBuilderFactory.

[Android.Runtime.Register("newInstance", "(Ljava/lang/String;Ljava/lang/ClassLoader;)Ljavax/xml/parsers/DocumentBuilderFactory;", "")]
public static Javax.Xml.Parsers.DocumentBuilderFactory? NewInstance (string? factoryClassName, Java.Lang.ClassLoader? classLoader);
[<Android.Runtime.Register("newInstance", "(Ljava/lang/String;Ljava/lang/ClassLoader;)Ljavax/xml/parsers/DocumentBuilderFactory;", "")>]
static member NewInstance : string * Java.Lang.ClassLoader -> Javax.Xml.Parsers.DocumentBuilderFactory

Parameters

factoryClassName
String
classLoader
ClassLoader

Returns

a new DocumentBuilderFactory.

Attributes

Exceptions

if factoryClassName is not available or cannot be instantiated.

Remarks

Returns an instance of the named implementation of DocumentBuilderFactory.

Added in 1.6.

Java documentation for javax.xml.parsers.DocumentBuilderFactory.newInstance(java.lang.String, java.lang.ClassLoader).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to