W3C home > Mailing lists > Public > html-tidy@w3.org > April to June 2000

Indenting XML

From: Mike Depot <mike@openair.com>
Date: Fri, 21 Apr 2000 12:33:40 -0400
Message-ID: <007701bfabaf$6c3bfb40$0a00a8c0@datatrader.com>
To: <html-tidy@w3.org>
I realize XML support isn't all there yet, but I've got a simple situation
that I was hoping tidy would help with.  All I'm looking for is to indent a
simple (well-formed but not valid) xml file.  I'm using this config:

indent: yes
input-xml: yes
output-xml: yes
new-blocklevel-tags: DATABASE, TABLE
new-inline-tags: FIELD

and here's a sample of the xml:

<?xml version="1.0" standalone="yes"?>
<DATABASE VERSION='1.0'>
Database definition here.
<TABLE NAME="table1">
Table definition here.
<FIELD NAME="field1" TYPE="INTEGER">
Field 1 Description
</FIELD>
<FIELD NAME="field2" TYPE="CHAR(50)">
Field 2 Description
</FIELD>
</TABLE>
</DATABASE>

After running tidy, I still don't get the indenting.  The release I'm using
is 13th January 2000.  I've already checked to make sure my config file is
actually being used.  Thanks for the help.
Received on Friday, 21 April 2000 12:34:19 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:13:43 GMT