Exports the in-memory XML document as XML. Place resulting text in the supplied chain

Return TypeFunction nameArguments
hzEcodehzDocXml::Export(hzChain&,)

Declared in file: hzDocument.h
Defined in file : hzDocXml.cpp

Function Logic:

0:START 1:items 2:unknown 3:items 4:Return E_NODATA 5:unknown 6:items 7:unknown 8:items 9:items 10:Return E_OK

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 ;
}