DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24256>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24256

entity expansion multiplies

           Summary: entity expansion multiplies
           Product: Xerces-C++
           Version: 2.3.0
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Samples/Tests
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


following bug occures with DOMPrint sample:
--- start of test-xml ---
<?xml version="1.0" encoding="UTF-8" standalone="no" ?><!DOCTYPE test [
  <!ELEMENT bar EMPTY>
  <!ELEMENT test (foo)*>
  <!ELEMENT foo (#PCDATA)>

  <!ENTITY x "bar">
]><test>
<foo>&x;</foo>
<foo>&x;</foo>
<foo>&x;</foo>
<foo>&x;</foo>
</test>
--- end of test-xml ---

DOMPrint gives the following result:

--- start of DOMPrint result ---
<?xml version="1.0" encoding="UTF-8" standalone="no" ?><!DOCTYPE test [
  <!ELEMENT bar EMPTY>
  <!ELEMENT test (foo)*>
  <!ELEMENT foo (#PCDATA)>

  <!ENTITY x "bar">
]><test>
<foo>bar</foo>
<foo>barbar</foo>
<foo>barbarbar</foo>
<foo>barbarbarbar</foo>
</test>
--- end of DOMPrint result ---

the entity-expansion gets multiplied each other time

Problem occures also with xerces 2.2.0 but not with 2.1.0

i don't know if it's only a problem of DOMPrint.

robert

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to