Commit 836af2f9 authored by Dimitri van Heesch's avatar Dimitri van Heesch

Fixed difference between generated XML schema and XML files for HTML entities

parent f9b80aff
...@@ -475,9 +475,12 @@ void HtmlEntityMapper::writeXMLSchema(FTextStream &t) ...@@ -475,9 +475,12 @@ void HtmlEntityMapper::writeXMLSchema(FTextStream &t)
{ {
for (int i=0;i<g_numHtmlEntities - g_numberHtmlMappedCmds;i++) for (int i=0;i<g_numHtmlEntities - g_numberHtmlMappedCmds;i++)
{ {
QCString bareName = g_htmlEntities[i].item; QCString bareName = g_htmlEntities[i].xml;
bareName = bareName.mid(1,bareName.length()-2); if (!bareName.isEmpty() && bareName.at(0)=='<' && bareName.right(2)=="/>")
t << " <xsd:element name=\"" << bareName << "\" type=\"docEmptyType\" />\n"; {
bareName = bareName.mid(1,bareName.length()-3); // strip < and />
t << " <xsd:element name=\"" << bareName << "\" type=\"docEmptyType\" />\n";
}
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment