[PLUG-TALK] Structuring .xml File

Dan Young danielmyoung at gmail.com
Tue Mar 1 08:24:21 PST 2011

On Mon, Feb 28, 2011 at 11:03 AM, Rich Shepard <rshepard at appl-ecosys.com> wrote:
>   I have a metadata file in .xml format that has been re-structured into a
> single paragraph. The top of the file has:
> <?xml version="1.0"?>
> <!--<!DOCTYPE metadata SYSTEM
> "http://www.esri.com/metadata/esriprof80.dtd">--><metadata xml:lang="en">
>   Is there a way other than manual newline insertion to format this so it's
> readable?

Tidy can pretty-print XML with something like:

tidy -qi -xml /path/to/foo.xml

Dan Young

More information about the PLUG-talk mailing list