[Project_owners] Pretty print an XML string

Brian King brian at mozdev.org
Tue Apr 18 17:37:39 EDT 2006

I want to convert an XML string to a nicer XML string for display 
purposes. Something like:




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

More information about the Project_owners mailing list