Language

DocumentBuilderFactory.NewInstance Method

Definition

Overloads

Name Description
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

The fully qualified name of the factory implementation class.

classLoader
ClassLoader

The class loader to use to load the factory class. If null, the current thread's context class loader is used to load the factory class.

Returns

a new DocumentBuilderFactory.

Attributes

Exceptions

if factoryClassName is null; or if factoryClassName cannot be loaded, 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