DocumentBuilderFactory.NewNSInstance Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| NewNSInstance() |
Creates a new NamespaceAware, Android-specific instance of a |
| NewNSInstance(String, ClassLoader) |
Creates a new NamespaceAware instance of a |
NewNSInstance()
Creates a new NamespaceAware, Android-specific instance of a DocumentBuilderFactory.
[Android.Runtime.Register("newNSInstance", "()Ljavax/xml/parsers/DocumentBuilderFactory;", "", ApiSince=37)]
public static Javax.Xml.Parsers.DocumentBuilderFactory? NewNSInstance();
[<Android.Runtime.Register("newNSInstance", "()Ljavax/xml/parsers/DocumentBuilderFactory;", "", ApiSince=37)>]
static member NewNSInstance : unit -> Javax.Xml.Parsers.DocumentBuilderFactory
Returns
a new instance of a DocumentBuilderFactory
- Attributes
Remarks
Creates a new NamespaceAware instance of a DocumentBuilderFactory. Parsers produced by the factory instance provide support for XML namespaces by default.
On Android, this method does not use system properties, property files, or the services API to select a provider. It uses the same implementation as NewDefaultNSInstance().
Java documentation for javax.xml.parsers.DocumentBuilderFactory.newNSInstance().
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
NewNSInstance(String, ClassLoader)
Creates a new NamespaceAware instance of a DocumentBuilderFactory
from the class name.
[Android.Runtime.Register("newNSInstance", "(Ljava/lang/String;Ljava/lang/ClassLoader;)Ljavax/xml/parsers/DocumentBuilderFactory;", "", ApiSince=37)]
public static Javax.Xml.Parsers.DocumentBuilderFactory? NewNSInstance(string? factoryClassName, Java.Lang.ClassLoader? classLoader);
[<Android.Runtime.Register("newNSInstance", "(Ljava/lang/String;Ljava/lang/ClassLoader;)Ljavax/xml/parsers/DocumentBuilderFactory;", "", ApiSince=37)>]
static member NewNSInstance : string * Java.Lang.ClassLoader -> Javax.Xml.Parsers.DocumentBuilderFactory
Parameters
- factoryClassName
- String
a fully qualified factory class name that provides
implementation of
javax.xml.parsers.DocumentBuilderFactory.
- classLoader
- ClassLoader
the ClassLoader used to load the factory class.
If it is null, the current Thread's
context classLoader is used to load the factory class.
Returns
a new instance of a DocumentBuilderFactory
- Attributes
Remarks
Creates a new NamespaceAware instance of a DocumentBuilderFactory from the class name. Parsers produced by the factory instance provide support for XML namespaces by default.
Java reference for javax.xml.parsers.DocumentBuilderFactory.newNSInstance.