Exports the in-memory XML document as XML. Place resulting text in the supplied chain
| Return Type | Function name | Arguments |
|---|---|---|
| hzEcode | hzDocXml::Export | (hzChain&,) |
Declared in file: hzDocument.h
Defined in file : hzDocXml.cpp
Function Logic:
Function body:
hzEcode hzDocXml::Export (hzChain& Z)
{
// Exports the in-memory XML document as XML. Place resulting text in the supplied chain
//
// Arguments: 1) Z Chain to be populated by this operation as the XML form of this document
//
// Returns: E_NODATA If this XML document is empty
// E_OK If the document is exported
_hzfunc("hzDocXml::Export") ;
uint32_t relLine = 0; // For line management
Z.Clear() ;
if (!m_pRoot)
{ threadLog("Empty document\n") ; return E_NODATA ; }
if (m_Info.m_urlReq) Z.Printf("URL (req): %s\n", *m_Info.m_urlReq) ;
if (*m_Info.m_urlAct) Z.Printf("URL (act): %s\n", *m_Info.m_urlAct) ;
m_pRoot->Export_r(this, Z, relLine) ;
return E_OK ;
}