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 provides support for XML namespaces by default.
Java reference for javax.xml.parsers.DocumentBuilderFactory.newNSInstance.
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 provides support for XML namespaces by default.
Java reference for javax.xml.parsers.DocumentBuilderFactory.newNSInstance.