Overview
Features
Download
Documentation
Community
Add-Ons & Services

XMLConfiguration getString returns child values concatenated

Please post support and help requests here.

XMLConfiguration getString returns child values concatenated

Postby cbigler » 14 Jan 2013, 19:17

Starting with a simple XML document:
Code: Select all
<?xml version="1.0" encoding="UTF-8" ?>
<root>
  <parent>xyz
    <child1>abc</child1>
    <child2>123</child2>
  </parent>
</root>

Calling getString/getRawString with "parent" as the key returns the value "xyzabc123" (I would expect it to return just "xyz"). Is there justification for this behavior or is this a bug? If this is intended behavior, then is there a mechanism to get just the value from "parent"? I'd like to do this through AbstractConfiguration, instead of having to work directly with an XMLConfiguration, or worse yet, dropping down to the XML layer.

Thanks in advance!
cbigler
 
Posts: 1
Joined: 14 Jan 2013, 19:04

Return to Support

Who is online

Users browsing this forum: No registered users and 4 guests