Peter,
To avoid your bug report get lost in the mailing list, please open a Bugzilla
Bug for the problem you found. See
http://xml.apache.org/xerces-c/bug-report.html for detail.
For other bugs you reported earlier (e.g. internalSubset related), I will try to
keep track of them. But to be safe, please also open a Bugzilla bug for them as
well.
Thanks!
Tinny
"Peter A. Volchek" wrote:
> 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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]