#include <XMLSerializer.hpp>
Public Methods | |
XMLSerializer (XmlWriter &str) | |
~XMLSerializer () | |
void | RegisterPrefixForURI (const std::string &prefix, const std::string &uri) |
Register a Prefix for a namespace URI. More... | |
std::string | GetPrefixForURI (const std::string &uri) |
Get a prefix for a given namespace URI. More... | |
std::string | GetPrefixForURI (const std::string &uri, std::string defaultPrefix) |
Get a prefix for the given namespace URI. More... | |
std::string | QNameToStr (ax::QName &qName) |
Convert Qualified Name to a string as: prefix:local-name. More... | |
void | SetTypeMappingRegistry (TypeMappingRegistry *p_TypMapper) |
Sets a reference to the TypeMapping Registry. More... | |
TypeMappingRegistry* | GetTypeMapper () |
Obtain a reference to the TypeMappingRegistry we're using. More... | |
void | StartElem (ax::QName &p_qName, AttList &p_attList) |
Start building DOM sub-tree rooted at element having tag name with the given QName. More... | |
void | EndElem () |
End this branch of the DOM tree. More... | |
void | WriteStr (const std::string &str) |
Write TEXT- node. More... | |
DOM_Element& | Append (ax::QName &p_qName, AttList &p_attList) |
Append a subtree to the current node. More... | |
void | Serialize (ax::QName p_qName, AttList &p_attList, const char *value) |
Serialize a SOAP body element by appending a branch to the current node. More... | |
void | flush () |
Write the content of the DOM document into a stream. More... | |
Private Attributes | |
NsStack | m_nsStk |
Namespace stack for namespace mapping for the current context. More... | |
bool | m_bStartDoc |
Starting to build a DOM document from SOAP Message components. More... | |
int | m_nIndent |
To make pertty. More... | |
int | m_PrefixIndx |
To make pretty. More... | |
XmlWriter* | m_xmlBuffer |
output stream to dump serilized DOM document. More... | |
TypeMappingRegistry* | m_pTypeMapper |
DOM_Document | m_Doc |
DOM_Node | m_CurNode |
DOM_Element | m_CurElm |
DOM_Element | m_ChildElm |
DOM_Text | m_CurTxtElm |
Friends | |
std::ostream& | operator<< (std::ostream &target, const DOMString &toWrite) |
std::ostream& | operator<< (std::ostream &target, DOM_Node &toWrite) |
XMLFormatter& | operator<< (XMLFormatter &strm, const DOMString &s) |
Manage a serialization, including keeping track of namespace mappings and element stacks.
Definition at line 93 of file XMLSerializer.hpp.
|
Definition at line 86 of file XMLSerializer.cpp. |
|
Definition at line 104 of file XMLSerializer.cpp. |
|
Append a subtree to the current node.
Definition at line 128 of file XMLSerializer.cpp. Referenced by Serialize(), and StartElem().
|
|
End this branch of the DOM tree.
Definition at line 165 of file XMLSerializer.cpp. Referenced by SOAPHeader::Serialize(), SOAPFaultElement::Serialize(), SOAPBodyElement::Serialize(), and RPCElement::Serialize().
|
|
Get a prefix for the given namespace URI.
Definition at line 189 of file XMLSerializer.cpp. |
|
Get a prefix for a given namespace URI.
Definition at line 182 of file XMLSerializer.cpp. Referenced by QNameToStr(), and RPCParam::Serialize().
|
|
Obtain a reference to the TypeMappingRegistry we're using.
Definition at line 115 of file XMLSerializer.hpp. Referenced by RPCParam::Serialize().
|
|
Convert Qualified Name to a string as: prefix:local-name.
Definition at line 211 of file XMLSerializer.cpp. Referenced by Append().
|
|
Register a Prefix for a namespace URI.
Definition at line 177 of file XMLSerializer.cpp. Referenced by GetPrefixForURI().
|
|
Serialize a SOAP body element by appending a branch to the current node.
Definition at line 171 of file XMLSerializer.cpp. Referenced by RPCParam::Serialize().
|
|
Sets a reference to the TypeMapping Registry.
Definition at line 112 of file XMLSerializer.hpp. Referenced by SOAPMessage::Serialize().
|
|
Start building DOM sub-tree rooted at element having tag name with the given QName.
Definition at line 110 of file XMLSerializer.cpp. Referenced by SOAPHeader::Serialize(), SOAPFaultElement::Serialize(), SOAPEnvelope::Serialize(), SOAPBodyElement::Serialize(), and RPCElement::Serialize().
|
|
Write TEXT- node.
Definition at line 159 of file XMLSerializer.cpp. Referenced by Serialize().
|
|
Write the content of the DOM document into a stream.
Definition at line 218 of file XMLSerializer.cpp. Referenced by SOAPEnvelope::Serialize().
|
|
Definition at line 429 of file XMLSerializer.cpp. |
|
Definition at line 261 of file XMLSerializer.cpp. |
|
Definition at line 420 of file XMLSerializer.cpp. |
|
Definition at line 157 of file XMLSerializer.hpp. |
|
Definition at line 156 of file XMLSerializer.hpp. |
|
Definition at line 155 of file XMLSerializer.hpp. |
|
Definition at line 158 of file XMLSerializer.hpp. |
|
Definition at line 154 of file XMLSerializer.hpp. |
|
To make pretty.
Definition at line 147 of file XMLSerializer.hpp. |
|
Starting to build a DOM document from SOAP Message components.
Definition at line 145 of file XMLSerializer.hpp. |
|
To make pertty.
Definition at line 146 of file XMLSerializer.hpp. |
|
Namespace stack for namespace mapping for the current context.
Definition at line 143 of file XMLSerializer.hpp. |
|
Definition at line 151 of file XMLSerializer.hpp. |
|
output stream to dump serilized DOM document.
Definition at line 149 of file XMLSerializer.hpp. |
Copyright © 2001 SL_OpenSource XML Project. All Rights Reserved