XML : Not getting whole tag value when include "," in tag value using apache.commons.configuration.tree.ConfigurationNode.getValue()

I am trying to read xml using Apache commons configuration

this is my sample xml file

  <tu tuid="chan@">          <note>Label for iCare OLTP administration.</note>          <prop type="maxlength">75</prop><prop type="minlength">1</prop>          <tuv lang="ES-ES"><seg>`Programa`, tarjetas, cupones y reglas</seg></tuv>  </tu>    

this is my java code:

   List<ConfigurationNode> tuvNode = element.getChildren("tuv");   List<ConfigurationNode> segNode = tuvNode.get(0).getChildren("seg");                       System.out.println(segNode.get(0).getValue());    

out put is:

  Programa    

Actually it is working.problem is when it has , then it doesn't rest other values.i need whole value.any one can give idea. i really appreciate

thanks

No comments:

Post a Comment