diff options
Diffstat (limited to 'src/htmlentity.cpp')
-rw-r--r-- | src/htmlentity.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/htmlentity.cpp b/src/htmlentity.cpp index 9f83991..c1a9ad0 100644 --- a/src/htmlentity.cpp +++ b/src/htmlentity.cpp @@ -475,9 +475,12 @@ void HtmlEntityMapper::writeXMLSchema(FTextStream &t) { for (int i=0;i<g_numHtmlEntities - g_numberHtmlMappedCmds;i++) { - QCString bareName = g_htmlEntities[i].item; - bareName = bareName.mid(1,bareName.length()-2); - t << " <xsd:element name=\"" << bareName << "\" type=\"docEmptyType\" />\n"; + QCString bareName = g_htmlEntities[i].xml; + if (!bareName.isEmpty() && bareName.at(0)=='<' && bareName.right(2)=="/>") + { + bareName = bareName.mid(1,bareName.length()-3); // strip < and /> + t << " <xsd:element name=\"" << bareName << "\" type=\"docEmptyType\" />\n"; + } } } |