how to remove spaces while updating xml and How to get indenting?
Joined: Aug 15, 2001
i am able to update the xml using below code ;but i when i see the xml there is no indenting and some square blocks r coming in xml;how to remove those blocks and how to achieve indenting;i think these blocks r coming because of spaces in xml;
Yes, that's just the way Transformer works... If you want "true" indentation, you need to use a non-standard API such as Xerces' XMLSerializer or something from JDOM, or try to find a parser of which Transformer implementation performs true indentation (if I remember correctly, neither Xerces or Crimson do). If you find such a parser, please let us know