Seems that ENTITY_NODE is not printed correctly (DOMPrint.cpp sample)
Below is the snapshot. It just writes the plain information about this node,
like
<!ENTITY namePUBLIC "publicId"SYSTEM "systemId"NDATA "ndata">
Here the rules from XMLrec:
EntityDef ::= EntityValue | (ExternalID NDataDecl?)
ExternalID ::= 'SYSTEM' S SystemLiteral | 'PUBLIC' S PubidLiteral S
SystemLiteral
NDataDecl ::= S 'NDATA' S Name
So valid output may be:
<!ENTITY name SYSTEM "systemId">
<!ENTITY name PUBLIC "publicId" "systemId">
<!ENTITY name SYSTEM "systemId" NDATA "ndata">
<!ENTITY name PUBLIC "publicId" "systemId" NDATA "ndata">
case DOM_Node::ENTITY_NODE:
{
*gFormatter << XMLFormatter::NoEscapes << gStartEntity
<< nodeName;
DOMString id = ((DOM_Entity &)toWrite).getPublicId();
if (id != 0)
*gFormatter << XMLFormatter::NoEscapes << gPublic
<< id << chDoubleQuote;
id = ((DOM_Entity &)toWrite).getSystemId();
if (id != 0)
*gFormatter << XMLFormatter::NoEscapes << gSystem
<< id << chDoubleQuote;
id = ((DOM_Entity &)toWrite).getNotationName();
if (id != 0)
*gFormatter << XMLFormatter::NoEscapes << gNotation
<< id << chDoubleQuote;
*gFormatter << XMLFormatter::NoEscapes << chCloseAngle << chLF;
break;
}
Peter A. Volchek
Software Engineer
Metis International, Inc.
[EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]