How to preserve the xml as it is with only the inner text changes in java

Font

New Member
I have to update an xml file BY using \[code\]DOM parser\[/code\]. Problem is before updating it has spaces[\[code\]\[/code\]] in the xml and once update is done and saved I can see instead of space it is replacing as \[code\]'?'\[/code\]. I want to preserve the xml as it is with only the inner text changes. How do I remove the extra appended text.Before:-\[code\][description] [/description]\[/code\]After:-\[code\][description]?[/description]\[/code\]im posting with only one space but it is replacing for every space.
 
Back
Top