21 const std::string& dictName,
22 const std::vector<std::string>&
34 outStream <<
"<!DOCTYPE " << dictName
44 const std::string& dictName)
46 std::vector<std::string> emptyList;
54 outStream <<
"]>" << std::endl;
60 const std::string& theElement,
61 const std::vector<std::string>&
64 outStream <<
"<!ELEMENT " << theElement;
66 if ( listOfElements.size() == 0 )
68 outStream <<
">" << std::endl;
73 if ( listOfElements[0] ==
"ANY" ||
74 listOfElements[0] ==
"EMPTY" ||
75 listOfElements[0] ==
"ALL" )
77 outStream <<
" " << listOfElements[0] <<
" >" << std::endl;
81 outStream <<
" (" << listOfElements[0];
82 for (
unsigned int i=1;
i<listOfElements.size();
i++ )
84 outStream <<
"," << listOfElements[
i];
86 outStream <<
") >" << std::endl;
94 const std::string& theElement,
95 const std::vector<std::string>&
98 outStream <<
" <!ATTLIST " << theElement << std::endl;
99 for (
unsigned int i=0;
i<listOfAttr.size();
i++ )
101 outStream <<
" " << listOfAttr[
i] << std::endl;
103 outStream <<
">" << std::endl;
109 const std::string& theElement,
110 const std::vector<std::string>&
112 const std::vector<std::string>&
116 outStream <<
"<" << theElement;
117 if ( listOfAttr.size() > 0 && listOfValues.size() == listOfAttr.size() )
119 for (
unsigned int i=0;
i<listOfAttr.size();
i++ )
121 outStream <<
" " << listOfAttr[
i] <<
"="
127 outStream <<
">" << std::endl;
135 outStream <<
"</" <<
m_elementList[thisSize] <<
">" << std::endl;
142 const std::string& theElement)
148 outStream <<
"</" << (*inVec) <<
">" << std::endl;
153 outStream <<
"<!-- XML Structural Problem! \n\n"
154 <<
" cannot find an element " << theElement <<
"!\n\n"
155 <<
"-->" << std::endl;