[Project_owners] Pretty print an XML string

Jon Stritar jstritar at MIT.EDU
Wed Apr 19 18:15:00 EDT 2006


Do you know how to access the XML function from an XPCOM context?
Firefox just reports the following error:

Error: xml is a reserved identifier

Jon

On Wed, 2006-04-19 at 22:16 +0200, Brian King wrote:
> Alex Vincent wrote:
> > You've gotten my attention.  DevMo is rather sparse on examples of the
> > XML object, and I'm not able to make what you describe work from the
> > URL bar with XML or XUL documents:
> > 
> > javascript:alert(XML(document).toXMLString())
> 
> What type is the document parameter in this example? It has to be a string.
> 



More information about the Project_owners mailing list