Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Java in General
How to remove first line from an String containing XML?
Joined: May 18, 2010
Dec 24, 2011 02:56:28
I have a
which contains XML.
I want to remove its first line and save it back to String.
How can I do that?
Joined: May 31, 2011
Dec 24, 2011 22:40:18
Can you show a sample String with the xml... do you mean the string contains "xml" or a xml document? Is there a line separator (\n) between the xml string and other strings?
I agree. Here's the link:
subject: How to remove first line from an String containing XML?
simple sed command
Removing linefeed from String.
removing first line from JAXB generated XML
Remove first three bytes in a file.
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015