Uploaded image for project: 'Xerces-C++'
  1. Xerces-C++
  2. XERCESC-1033

entity expansion multiplies

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Resolution: Incomplete
    • 2.3.0
    • None
    • Samples/Tests
    • None
    • Operating System: Linux
      Platform: PC
    • 24256

    Description

      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

      Attachments

        Activity

          People

            Unassigned Unassigned
            rz@webde-ag.de Robert Zimmermann
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: