![]() |
Home |
The QtSoapNamespaces class provides a registry for XML namespaces and prefixes for use in QtSoap. More...
#include <QtSoapNamespaces>
The QtSoapNamespaces class provides a registry for XML namespaces and prefixes for use in QtSoap.
When a QtSoapMessage is converted to XML via QtSoapMessage::toXmlString(), this class is used to find appropriate XML namespace prefixes for the QNames (qualified names) in the message.
To register a namespace with a prefix, call register(). prefixFor() will then return the prefix that is registered for the given namespace, or it will optionally create a new prefix.
To access the QtSoapNamespaces registry, call QtSoapNamespaces::registry().
QtSoapNamespaces ®istry = QtSoapNamespaces::registry(); registry.register("pre", "http://www.example.com/"); QString prefix = registry.prefixFor("http://www.example.com/"); // returns "pre"
See also QtSoapMessage.
Returns a reference to the QtSoapNamespaces singleton.
Returns the prefix for the namespace uri. If the namespace has not been registered, it is implicitly registered with a generated prefix.
Registers the namespace uri with the prefix prefix.
Copyright © 2009 Nokia | Trademarks | Qt Solutions |