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.new Instance() ;
DocumentBuilder builder = factory.newDocumentBuilder ();
document = builder.parse(new File(args[0]));
private static Document document;
private static DocumentBuilderFactory factory = DocumentBuilderFactory.new
DocumentBuilder builder = factory.newDocumentBuilder
document = builder.parse(new File(args[0]));
not that I know of.
ASKER
is there any way triming off the whitespaces and newlines at any point?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.