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


Menyusun ekspresi [XPath](../../) yang ditentukan dan mengembalikan objek [XPathExpression](../) yang mewakili ekspresi [XPath](../../).

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


| Parameter | Tipe | Deskripsi |
| --- | --- | --- |
| xpath | const String\& | Sebuah ekspresi [XPath](../../). |

### ReturnValue

Sebuah objek [XPathExpression](../).

## Lihat Juga

* 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


Menyusun ekspresi [XPath](../../) yang ditentukan, dengan objek [IXmlNamespaceResolver](../../../system.xml/ixmlnamespaceresolver/) yang ditetapkan untuk resolusi namespace, dan mengembalikan objek [XPathExpression](../) yang mewakili ekspresi [XPath](../../).

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


| Parameter | Tipe | Deskripsi |
| --- | --- | --- |
| xpath | const String\& | Sebuah ekspresi [XPath](../../). |
| nsResolver | const SharedPtr\<IXmlNamespaceResolver\>\& | Sebuah objek yang mengimplementasikan antarmuka [IXmlNamespaceResolver](../../../system.xml/ixmlnamespaceresolver/) untuk resolusi namespace. |

### ReturnValue

Sebuah objek [XPathExpression](../).

## Lihat Juga

* 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++](../../../)
