[#BloombergLP-balxml-Util-extractNamespaceFromXsd-03b]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balxml.adoc[balxml]::xref:BloombergLP/balxml/Util.adoc[Util]::extractNamespaceFromXsd
:relfileprefix: ../../../
:mrdocs:

Extract the target namespace from an XSD schema&period;

== Synopsis

Declared in `&lt;balxml&lowbar;util&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
bool
extractNamespaceFromXsd(
    std::string&lowbar;view const& xsdSource,
    std::pmr::string* targetNamespace);
----

== Description

Extract the target namespace from the XSD schema in the specified `xsdSource` and load it into the specified `targetNamespace`&period; Return `true` on success, and `false` otherwise&period;

== Return Value

`true` on success, and `false` otherwise

== Parameters

[cols="1,4"]
|===
| Name| Description
| *xsdSource*
| XSD schema text to parse
| *targetNamespace*
| string to receive the extracted namespace
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
