Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0
    • Fix Version/s: None
    • Labels:
      None
    • Environment:

      Operating System: other
      Platform: Other

    • Bugzilla Id:
      2892

      Description

      The elements of a simple xml file (no DOCTYPE declaration, so without
      validation) doesn't match with rules. The parser is Xerces 1.3.1.
      Example of simple xml file :
      <commands>
      <command name="ecranbouesan" class="SampleCommand" />
      <command name="ecranvjpluviometries" class="SampleCommand" />
      ...
      </commands>

      Solution : uses qualified name if local name is empty (in startElement() method
      of Digester class).

      // Compute the current matching rule
      if (localName.length() > 0)

      { if (match.length() > 0) match += "/" + localName; else match = localName; }

      else

      { if (match.length() > 0) match += "/" + qName; else match = qName; }

        Activity

        Hide
        craig.mcclanahan@sun.com Craig McClanahan added a comment -

        This has been fixed in the current CVS sources, and will be released in Commons
        Digester 1.1.

        In the meantime, if you call digester.setNamespaceAware(true) before calling
        digester.parse(), rules recognition will still work as expected.

        Show
        craig.mcclanahan@sun.com Craig McClanahan added a comment - This has been fixed in the current CVS sources, and will be released in Commons Digester 1.1. In the meantime, if you call digester.setNamespaceAware(true) before calling digester.parse(), rules recognition will still work as expected.

          People

          • Assignee:
            Unassigned
            Reporter:
            jlschwab@club-internet.fr Jean-Luc Schwab
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development