Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
HydraExpress C++ API Reference Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

rwsf::XmlNamespace

Group:  Core XML


Does not inherit

Local Index

Members

Header File

#include rwsf/core/XmlNamespace.h

Description

Class rwsf::XmlNamespace encapsulates an XML namespace declaration. The class holds the prefix (namespace prefix) and the URI (namespace name) as instances of std::string.

For example, an rwsf::XmlNamespace object containing the prefix string "rw" and the URI string "http://xml.roguewave.com/" represents a namespace declaration serializable as xmlns:rw="http://xml.roguewave.com/".

rwsf::XmlNamespace treats the prefix as an arbitrary placeholder for the URI. Two namespaces with identical URI strings compare equal even if the namespaces have different prefixes.

The class also contains static convenience functions that return namespaces commonly used in XML documents. Each method is named according to the prefix conventionally used for the namespace that the method returns. The namespaces returned match namespaces in the 24 Oct 2000 draft of the W3C XML Schema recommendation and the SOAP 1.1 specification.

Note

The URIs returned by this class match specific versions of the SOAP and XML Schema recommendations. Previous and subsequent versions of the specifications contain different URIs.

Public Constructors

XmlNamespace();
XmlNamespace(const std::string & prefix,
    const std::string & URI);
XmlNamespace(const XmlNamespace &);

Public Destructors

~XmlNamespace();

Public Static Member Functions

const XmlNamespace &
getEmptyNamespace();
const XmlNamespace &
getXmlns();
XmlNamespace &
getXsd();
XmlNamespace &
getXsi();

Public Member Functions

int
compareTo(const XmlNamespace & other) const;
bool
empty() const;
const std::string &
getPrefix() const;
const std::string &
getURI() const;
bool
isNull() const;
void
setPrefix(const std::string & pfx);
void
setURI(const std::string & uri);

Public Operators

XmlNamespace &
operator=(const XmlNamespace &);


Previous fileTop of DocumentContentsIndex pageNext file

© Copyright Rogue Wave Software, Inc. All Rights Reserved. All Rights Reserved. Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. HydraExpress is a trademark of Rogue Wave Software, Inc. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.