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


Compila l'espressione [XPath](../../) specificata e restituisce un oggetto [XPathExpression](../) che rappresenta l'espressione [XPath](../../).

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


| Parametro | Tipo | Descrizione |
| --- | --- | --- |
| xpath | const String\& | Un'espressione [XPath](../../). |

### ReturnValue

Un oggetto [XPathExpression](../).

## Vedi anche

* 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


Compila l'espressione [XPath](../../) specificata, con l'oggetto [IXmlNamespaceResolver](../../../system.xml/ixmlnamespaceresolver/) specificato per la risoluzione dei namespace, e restituisce un oggetto [XPathExpression](../) che rappresenta l'espressione [XPath](../../).

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


| Parametro | Tipo | Descrizione |
| --- | --- | --- |
| xpath | const String\& | Un'espressione [XPath](../../). |
| nsResolver | const SharedPtr\<IXmlNamespaceResolver\>\& | Un oggetto che implementa l'interfaccia [IXmlNamespaceResolver](../../../system.xml/ixmlnamespaceresolver/) per la risoluzione dei namespace. |

### ReturnValue

Un oggetto [XPathExpression](../).

## Vedi anche

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