[Project_owners] Pretty print an XML string

Brian King brian at mozdev.org
Wed Apr 19 23:16:27 EDT 2006

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.

Brian King
www.mozdev.org - free project hosting for the Mozilla community

More information about the Project_owners mailing list