How to replace a small string from a big StringBuffer
Joined: Sep 20, 2007
I have a big string buffer, which has data in xml format. I wann to change a particular small stings from the String buffer. I don't think String's find/replace policy, or even xml parsing is good option here.
What would be best option in this senarieo?
Joined: Mar 22, 2005
I don't think String's find/replace policy, or even xml parsing is good option here.
What do you mean by "policy"? If you're certain that the text occurs only in within text elements (and not in attribute or element names), then find/replace should work fine.