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


Kompiliert den angegebenen [XPath](../../)-Ausdruck und gibt ein [XPathExpression](../)-Objekt zurück, das den [XPath](../../)-Ausdruck darstellt.

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


| Parameter | Typ | Beschreibung |
| --- | --- | --- |
| xpath | const String\& | Ein [XPath](../../)-Ausdruck. |

### ReturnValue

Ein [XPathExpression](../)-Objekt.

## Siehe auch

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


Kompiliert den angegebenen [XPath](../../)-Ausdruck, wobei das angegebene [IXmlNamespaceResolver](../../../system.xml/ixmlnamespaceresolver/)-Objekt für die Namensauflösung verwendet wird, und gibt ein [XPathExpression](../)-Objekt zurück, das den [XPath](../../)-Ausdruck darstellt.

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


| Parameter | Typ | Beschreibung |
| --- | --- | --- |
| xpath | const String\& | Ein [XPath](../../)-Ausdruck. |
| nsResolver | const SharedPtr\<IXmlNamespaceResolver\>\& | Ein Objekt, das das [IXmlNamespaceResolver](../../../system.xml/ixmlnamespaceresolver/)-Interface für die Namensauflösung implementiert. |

### ReturnValue

Ein [XPathExpression](../)-Objekt.

## Siehe auch

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