## XPathExpression::Compile(const String\&) method


Compileert de opgegeven [XPath](../../)-expressie en retourneert een [XPathExpression](../)-object dat de [XPath](../../)-expressie vertegenwoordigt.

```cpp
static SharedPtr<XPathExpression> System::Xml::XPath::XPathExpression::Compile(const String &xpath)
```


| Parameter | Type | Beschrijving |
| --- | --- | --- |
| xpath | const String\& | Een [XPath](../../)-expressie. |

### ReturnValue

Een [XPathExpression](../)-object.

## Zie ook

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [XPathExpression](../)
* Class [String](../../../system/string/)
* Class [XPathExpression](../)
* Namespace [System::Xml::XPath](../../)
* Library [Aspose.Page for C++](../../../)
## XPathExpression::Compile(const String\&, const SharedPtr\<IXmlNamespaceResolver\>\&) method


Compileert de opgegeven [XPath](../../)-expressie, met het opgegeven [IXmlNamespaceResolver](../../../system.xml/ixmlnamespaceresolver/)-object voor namespace-resolutie, en retourneert een [XPathExpression](../)-object dat de [XPath](../../)-expressie vertegenwoordigt.

```cpp
static SharedPtr<XPathExpression> System::Xml::XPath::XPathExpression::Compile(const String &xpath, const SharedPtr<IXmlNamespaceResolver> &nsResolver)
```


| Parameter | Type | Beschrijving |
| --- | --- | --- |
| xpath | const String\& | Een [XPath](../../)-expressie. |
| nsResolver | const SharedPtr\<IXmlNamespaceResolver\>\& | Een object dat de [IXmlNamespaceResolver](../../../system.xml/ixmlnamespaceresolver/) interface implementeert voor naamruimte-resolutie. |

### ReturnValue

Een [XPathExpression](../)-object.

## Zie ook

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [XPathExpression](../)
* Class [String](../../../system/string/)
* Class [IXmlNamespaceResolver](../../../system.xml/ixmlnamespaceresolver/)
* Class [XPathExpression](../)
* Namespace [System::Xml::XPath](../../)
* Library [Aspose.Page for C++](../../../)
