[Project_owners] Turn node to text
eric.jung at yahoo.com
eric.jung at yahoo.com
Thu Aug 3 21:54:00 EDT 2006
var serializer = new XMLSerializer();
var xml = serializer.serializeToString(node);
----- Original Message ----
From: Michael Buckley <michael.buckley at hotmail.com>
To: project_owners at mozdev.org
Sent: Thursday, August 3, 2006 11:22:05 PM
Subject: [Project_owners] Turn node to text
I use this to turn an textString into an xul node that I can inset in
the user interface.
var parser=new DOMParser();
var resultDoc=parser.parseFromString(textString,"text/xml");
But how do I go the other way, and turn a node back into text? DOMi
seams to do this when you select "copy XUL" But I have failed to find
the function be hind that viewer.cmdCopySelectedXML()
Does any one know to do this?
God Bless
Michael
_________________________________________________________________
Need FREE FUEL? Become a member of Qualified Opinions
http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fwww%2Equalifiedopinions%2Ecom%2Fsurvey%2Ephp%3Fsource%3Dhml%5Ftgl%5F1&_t=757739466&_r=emailtagline_july_harris&_m=EXT
_______________________________________________
Project_owners mailing list
Project_owners at mozdev.org
http://mozdev.org/mailman/listinfo/project_owners
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mozdev.org/pipermail/project_owners/attachments/20060803/1d70af62/attachment.htm
More information about the Project_owners
mailing list