aquafina
2010-03-01
Is there a way I can display the entire element using a method?
Currently, getAtttibutes(name for e.g. href) or getTextContent() will display the attribute value or the content of the tag respectively.
Say,
<a href="www.google.com"> Google </a>
will shows www.google.com and Google for the above functions.
How can I read this entire element i.e. 'a' tag and write to a file using node/element ?
i.e.
if ( element.getTagName.toUpper.equal("A") )
write (element.WHAT ??) so that it writes "<a href="www.google.com"> Google </a>" to a file.
Thanks,
Arjun