[Project_owners] Pretty print an XML string

Alex Vincent ajvincent at gmail.com
Wed Apr 19 11:30:21 EDT 2006


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())

On 4/19/06, Axel Hecht <axel at pike.org> wrote:
> Brian King wrote:
> > Adam Judson wrote:
> >> Do you need to do the formatting yourself?
> >
> > Yes, or I wouldn't be asking ;)
> >
>
> You could e4x it.
>
> pretty = XML("..").toXMLString()
>
> Axel
> _______________________________________________
> Project_owners mailing list
> Project_owners at mozdev.org
> http://mozdev.org/mailman/listinfo/project_owners
>


--
"The first step in confirming there is a bug in someone else's work is
confirming there are no bugs in your own."
-- Alexander J. Vincent, June 30, 2001


More information about the Project_owners mailing list