Uploaded image for project: 'Commons Configuration'
  1. Commons Configuration
  2. CONFIGURATION-555

XMLConfiguration doesn't seem to be preserving whitespace for the current node where xml:space="preserve" is set.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.9
    • Fix Version/s: 2.0, 1.10
    • Component/s: None
    • Labels:
    • Environment:

      Windows 7, Java 7 64 bit.

      Description

      if I give this in the configuration:

      <test xml:space="preserve"> a b c </test>

      It does not seem to preserve the whitespace on the current node. However, if I do

      <space xml:space="preserve>
      <test> a b c </test>
      </space>

      it does preserve it. I would like to be able to turn on whitespace preservation on the current node without changing the path to my node.

      I tested my values by printing out values retrieved from getList() method.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              dwayne@predictabledata.com Dwayne Smurdon @ Predictable Data
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: