XPath.Compile Method (string)XPath.Compile Method (String)XPath::Compile Method (String^)
- XmlPrime 4.0
- Other Versions ▼
Compiles an XPath expression and returns a XPathXPathXPath object that represents the
expression using a new XmlNameTableXmlNameTableXmlNameTable and the default settings.
Parameters
- expression
Type: System.StringSystem.StringSystem::String^
An XPath expression.
Return Value
Type: XmlPrime.XPathXmlPrime.XPathXmlPrime::XPath^
An XPathXPathXPath object, or null
a null reference (Nothing
in Visual Basic)
nullptr
if an unrecoverable error was raised and handled
by a subscriber to CompilationErrorCompilationErrorCompilationError
Exceptions
Exception | Condition |
ArgumentNullExceptionArgumentNullExceptionArgumentNullException |
expression is null
a null reference (Nothing in Visual Basic)
nullptr
|
XdmExceptionXdmExceptionXdmException | An error occurred compiling the expression. |
LicenceExceptionLicenceExceptionLicenceException | This version of XmlPrime has expired. |
Remarks
Any errors or warnings encountered during compilation raise the CompilationErrorCompilationErrorCompilationError event. If nothing subscribes to this event then an XdmExceptionXdmExceptionXdmException is thrown if an unrecoverable error is encountered. If this event is subscribed to then the exception is not thrown, and this method returnsnull
a null reference (Nothing
in Visual Basic)
nullptr
instead.