BloombergLP::balxml::Util::extractNamespaceFromXsd

Extract the target namespace from an XSD schema.

Synopsis

Declared in <balxml_util.h>

static
bool
extractNamespaceFromXsd(
    std::streambuf* xsdSource,
    std::string* targetNamespace);

Description

Extract the target namespace from the XSD schema read from the specified xsdSource and load it into the specified targetNamespace. Return true on success, and false otherwise.

Return Value

true on success, and false otherwise

Parameters

NameDescription
xsdSourcestream buffer from which to read the XSD schema
targetNamespacestring to receive the extracted namespace