Quick Links:

bal | bbl | bdl | bsl

Static Public Member Functions

balxml::Util Struct Reference

#include <balxml_util.h>

List of all members.

Static Public Member Functions

static bool extractNamespaceFromXsd (const bsl::string_view &xsdSource, bsl::string *targetNamespace)
static bool extractNamespaceFromXsd (const bsl::string_view &xsdSource, std::string *targetNamespace)
static bool extractNamespaceFromXsd (bsl::streambuf *xsdSource, bsl::string *targetNamespace)
static bool extractNamespaceFromXsd (bsl::streambuf *xsdSource, std::string *targetNamespace)

Member Function Documentation

static bool balxml::Util::extractNamespaceFromXsd ( const bsl::string_view &  xsdSource,
bsl::string targetNamespace 
) [static]
static bool balxml::Util::extractNamespaceFromXsd ( const bsl::string_view &  xsdSource,
std::string *  targetNamespace 
) [static]
static bool balxml::Util::extractNamespaceFromXsd ( bsl::streambuf *  xsdSource,
bsl::string targetNamespace 
) [static]
static bool balxml::Util::extractNamespaceFromXsd ( bsl::streambuf *  xsdSource,
std::string *  targetNamespace 
) [static]

Extract the target namespace from the XSD schema in the specified xsdSource and load it into the specified targetNamespace. Return true on success, and false otherwise. Note that a valid XSD schema must have a targetNamespace attribute in the <schema> element that identifies the namespace that the XSD schema defines. If no such attribute is found, or the xsdSource is ill-formed, this method returns false. Otherwise, it returns true and populates the output parameter targetNamespace with the value in the first attribute="value" pair found for the target namespace.


The documentation for this struct was generated from the following file: