Monday, February 23, 2009

XML software

Can someone explain to me why it is that org.w3c.dom.Document (java api) does NOT have a method something like "writeToStream(OutputStream os)" which will dump the entire document to some stream (i.e., a file)?

Why? If the corresponding class "DocumentBuilder" can read a file (or URL), why can we not have a method to write?

I wrote one about 8 years ago, I know I can go find it, but sheesh...why?

(continuing here with man's favorite activity)

No comments: