XdmReader.Create Method (string, XdmReaderSettings, XmlParserContext)XdmReader.Create Method (String, XdmReaderSettings, XmlParserContext)XdmReader::Create Method (String^, XdmReaderSettings^, XmlParserContext^)
- XmlPrime 3.0
- Other Versions ▼
- Namespace: XmlPrime.SerializationXmlPrime.SerializationXmlPrime.Serialization
- Assembly: XmlPrime (in XmlPrime.dll)
Syntax
Public Shared Function Create( _ inputUri As String, _ settings As XdmReaderSettings, _ inputContext As System.Xml.XmlParserContext _ ) As XdmReader
public static XdmReader Create( string inputUri, XdmReaderSettings settings, System.Xml.XmlParserContext inputContext )
public: static XdmReader^ Create( String^ inputUri, XdmReaderSettings^ settings, System.Xml::XmlParserContext^ inputContext )
Parameters
- inputUri
Type: System.StringSystem.StringSystem::String^
The URI for the file containing the XML data. The XmlUrlResolverXmlUrlResolverXmlUrlResolver class is used to convert the path to a canonical data representation.
- settings
Type: XmlPrime.Serialization.XdmReaderSettingsXmlPrime.Serialization.XdmReaderSettingsXmlPrime.Serialization::XdmReaderSettings^
The XdmReaderSettingsXdmReaderSettingsXdmReaderSettings object used to configure the new XdmReaderXdmReaderXdmReader instance. If this is
null
a null reference (Nothing
in Visual Basic)nullptr
, an XdmReaderSettingsXdmReaderSettingsXdmReaderSettings with default settings is used.- inputContext
Type: System.Xml.XmlParserContextSystem.Xml.XmlParserContextSystem.Xml::XmlParserContext^
The XmlParserContextXmlParserContextXmlParserContext object that provides the context information required to parse the XML fragment. The context information can include the XmlNameTableXmlNameTableXmlNameTable to use, encoding, namespace scope, the current xml:lang and xml:space scope, base URI, and document type definition. This value can be
null
a null reference (Nothing
in Visual Basic)nullptr
.
Return Value
Type: XmlPrime.Serialization.XdmReaderXmlPrime.Serialization.XdmReaderXmlPrime.Serialization::XdmReader^
Exceptions
Exception | Condition |
FileNotFoundExceptionFileNotFoundExceptionFileNotFoundException | |
ArgumentNullExceptionArgumentNullExceptionArgumentNullException | inputUri is null
a null reference (Nothing in Visual Basic)
nullptr . |
FileNotFoundExceptionFileNotFoundExceptionFileNotFoundException | The file specified by the URI cannot be found.. |
UriFormatExceptionUriFormatExceptionUriFormatException | The URI format is not correct. |