## XmlTextWriter::LookupPrefix method


Returns the closest prefix defined in the current namespace scope for the namespace URI.

```cpp
String System::Xml::XmlTextWriter::LookupPrefix(String ns) override
```


| Parameter | Type | Description |
| --- | --- | --- |
| ns | String | Namespace URI whose prefix you want to find. |

### ReturnValue

The matching prefix. Or **nullptr** if no matching namespace URI is found in the current scope.

## See Also

* Class [String](../../../system/string/)
* Class [XmlTextWriter](../)
* Namespace [System::Xml](../../)
* Library [Aspose.PDF for C++](../../../)
