-//==========================================================================
-void GetTextOrClear(const XMLNode& node, std::string& var)
-{
- if (node.nText()>0)
- {
- var = node.getText();
- }
- else if (node.nClear()>0)
- {
- var = node.getClear().lpszValue;
- }
- else
- {
- std::string mess("Error : element <");
- mess += node.getName();
- mess += "> : no text nor <PRE></PRE> clear tag found";
- throw bbfyException(mess);
- }
-}
-//==========================================================================
-