How to print XML Node 2003-04-23 - By Sanjay Gupta (sanjaygu)
Hi, I have a Xml dom node and I want to print it to a file. I want all the node types to printed like element, doctype and comment nodes. Does anyone has a idea how to print it. Is there a convenient API? -Sanjay
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"> <TITLE>Message</TITLE>
<META content="MSHTML 6.00.2719.2200" name=GENERATOR></HEAD> <BODY> <DIV><FONT face=Arial size=2><SPAN class=856223700-24042003>Hi,</SPAN></FONT></DIV> <DIV><FONT face=Arial size=2><SPAN class=856223700-24042003>I have a Xml dom node and I want to print it to a file. I want all the node types to printed like element, doctype and comment nodes.</SPAN></FONT></DIV> <DIV><FONT face=Arial size=2><SPAN class=856223700-24042003>Does anyone has a idea how to print it. Is there a convenient API?</SPAN></FONT></DIV> <DIV><FONT face=Arial size=2><SPAN class=856223700-24042003></SPAN></FONT> </DIV> <DIV><FONT face=Arial size=2><SPAN class=856223700-24042003>-Sanjay</SPAN></FONT></DIV></BODY></HTML>
|
|