[Project_owners] Pretty print an XML string

Alex Vincent ajvincent at gmail.com
Tue Apr 18 08:44:43 EDT 2006


Yeah, I've got a script I wrote that does it for me.  I just XBL'ized
it, but I haven't yet tested & debugged it.

I'll be traveling today, so I can't send it just yet.  Send me a
private e-mail and I'll drop it in your inbox.

On 4/18/06, Brian King <brian at mozdev.org> wrote:
> I want to convert an XML string to a nicer XML string for display
> purposes. Something like:
>
> <a><b>hi</b></a>
>
> to
>
> <a>
> <b>hi</b>
> </a>
>
> I thought there was an interface in Mozilla to do this, but can't find
> it. I could write a regex, but figured someone here has done something
> similar before. Any tips?
>
> --
> Brian King
> www.mozdev.org - free project hosting for the Mozilla community
> _______________________________________________
> 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