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


Compila la expresión [XPath](../../) especificada y devuelve un objeto [XPathExpression](../) que representa la expresión [XPath](../../).

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


| Parámetro | Tipo | Descripción |
| --- | --- | --- |
| xpath | const String\& | Una expresión [XPath](../../). |

### ReturnValue

Un objeto [XPathExpression](../).

## Ver también

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


Compila la expresión [XPath](../../) especificada, con el objeto [IXmlNamespaceResolver](../../../system.xml/ixmlnamespaceresolver/) especificado para la resolución de espacios de nombres, y devuelve un objeto [XPathExpression](../) que representa la expresión [XPath](../../).

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


| Parámetro | Tipo | Descripción |
| --- | --- | --- |
| xpath | const String\& | Una expresión [XPath](../../). |
| nsResolver | const SharedPtr\<IXmlNamespaceResolver\>\& | Un objeto que implementa la interfaz [IXmlNamespaceResolver](../../../system.xml/ixmlnamespaceresolver/) para la resolución de espacios de nombres. |

### ReturnValue

Un objeto [XPathExpression](../).

## Ver también

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