19 const std::string& dictName,
20 const std::vector<std::string>&
32 outStream <<
"<!DOCTYPE " << dictName
42 const std::string& dictName)
44 std::vector<std::string> emptyList;
52 outStream <<
"]>" << std::endl;
58 const std::string& theElement,
59 const std::vector<std::string>&
62 outStream <<
"<!ELEMENT " << theElement;
64 if ( listOfElements.size() == 0 )
66 outStream <<
">" << std::endl;
71 if ( listOfElements[0] ==
"ANY" ||
72 listOfElements[0] ==
"EMPTY" ||
73 listOfElements[0] ==
"ALL" )
75 outStream <<
" " << listOfElements[0] <<
" >" << std::endl;
79 outStream <<
" (" << listOfElements[0];
80 for (
unsigned int i=1; i<listOfElements.size(); i++ )
82 outStream <<
"," << listOfElements[i];
84 outStream <<
") >" << std::endl;
92 const std::string& theElement,
93 const std::vector<std::string>&
96 outStream <<
" <!ATTLIST " << theElement << std::endl;
97 for (
unsigned int i=0; i<listOfAttr.size(); i++ )
99 outStream <<
" " << listOfAttr[i] << std::endl;
101 outStream <<
">" << std::endl;
107 std::string_view theElement,
108 const std::vector<std::string>&
110 const std::vector<std::string>&
114 outStream <<
"<" << theElement;
115 if ( listOfAttr.size() > 0 && listOfValues.size() == listOfAttr.size() )
117 for (
unsigned int i=0; i<listOfAttr.size(); i++ )
119 outStream <<
" " << listOfAttr[i] <<
"="
125 outStream <<
">" << std::endl;
133 outStream <<
"</" <<
m_elementList[thisSize] <<
">" << std::endl;
140 const std::string& theElement)
142 std::vector<std::string>::iterator inVec =
146 outStream <<
"</" << (*inVec) <<
">" << std::endl;
151 outStream <<
"<!-- XML Structural Problem! \n\n"
152 <<
" cannot find an element " << theElement <<
"!\n\n"
153 <<
"-->" << std::endl;
std::string find(const std::string &s)
return a remapped string