[Project_owners] Pretty print an XML string

Adam Judson adamsplugins at gmail.com
Tue Apr 18 12:26:27 EDT 2006


Do you need to do the formatting yourself?

Maybe you can just load it in an iframe and let it display the tree
automatically.

A

On 18/04/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
>


More information about the Project_owners mailing list