You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2004/08/11 17:30:10 UTC

DO NOT REPLY [Bug 30598] New: - [configuration] Problem adding property XMLConfiguration

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

http://issues.apache.org/bugzilla/show_bug.cgi?id=30598

[configuration] Problem adding property XMLConfiguration

           Summary: [configuration] Problem adding property XMLConfiguration
           Product: Commons
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Configuration
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: ricardo.gladwell@btinternet.com


CharacterData data = document.createTextNode((String) value); seems to be
adding array elements into one string versus multiple elements.  The XML
should look like:

 <test>
          	<array>value1</array>
		<array>value2</array>
		<array>value3</array>
		<array>value4</array>
</test>

However, it looks like:
 <test>
         <array>value1value2value3value4</array>
</test>

The same basic problem occurs with this loop:
        // add an array of strings in an attribute
        for (int i = 1; i < 5; i++)
        {
            conf.addProperty("test.attribute[@array]", "value" + i);
        }

However, in this case, instead of add value1, value2, etc:
 <test>
          	<attribute array="value1"/>
          	<attribute array="value2"/>
          	<attribute array="value3"/>
          	<attribute array="value4"/>
</test>

we get just:
 <test>
          	<attribute array="value4"/>
</test>

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org