Link to home
Start Free TrialLog in
Avatar of no158
no158

asked on

Document object delimiters (at parse time)

Is there a way to add some delimiters(for example: to trim off the whitespaces and the newlines) to a Document object. I would like to do it at parse time, what would the code look like to add this functionality.

private static Document document;
private static DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();

DocumentBuilder builder = factory.newDocumentBuilder();
document = builder.parse(new File(args[0]));
Avatar of Mick Barry
Mick Barry
Flag of Australia image

not that I know of.
Avatar of no158
no158

ASKER

is there any way triming off the whitespaces and newlines at any point?
ASKER CERTIFIED SOLUTION
Avatar of Mick Barry
Mick Barry
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial