Java - determine size of xml document

Evly

New Member
I have a simple code that gets xml file from given URL:\[code\]DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(link);\[/code\]that code returns xml document (org.w3c.dom.Document). I just need to get size of resulting xml document. Is there any elegant way to do it, WITHOUT involving third-party jars?P.S. size in KB, or MB, not number of nods
 
Back
Top