File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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?
removing first line from JAXB generated XML
Removing linefeed from String.
Remove first three bytes in a file.
simple sed command
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014