[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Using Tidy for XML correction

  • From: Linda van den Brink <lvdbrink@b...>
  • To: "Xml-Dev (E-mail)" <xml-dev@x...>
  • Date: Thu, 05 Oct 2000 15:00:12 +0200

tidy xml
Hi all, 

I'm hoping there's some Tidy expertise on this list. I've been trying to use
this tool with its -xml option for cleaning up my XML files, unsuccesfully
up till now. 

I'm dealing with a very large number of help topics, which are exported by a
program from our application and dumped as a very large number of XML files.
Unfortunately, the program that does the conversion from plain text to XML
is not perfect: on occasion it creates mallformed XML files. It is unlikely
that this program will start to output 100% wellformed XML soon, and we have
to do a new export of the help topics on a regular basis, so manual
correction of the errors in the XML files is not really an option. 

We need wellformed XML, because I'm using XSLT to create HTML files for HTML
Help, our output format. 

I thought I'd see if Tidy can correct the wellformedness errors for me, but
it seems as though it can't. What I get are things like 
<p>
<list>
<listitem>
<courier>
Some text
</courier>
</p>
To which Tidy replies: "Unexpected </p> in <listitem>. The document has
errors that must be fixed before using HTML Tidy to generate a tidied up
version."

Another example: 
<p>Some text <link>this is a link<
/link></p>
To which Tidy replies: "Unexpected </p> in <link>" (rest is same as above)

Is there something I can do to make Tidy work for me? Or is it just not
suited for this job? Are there other tools or approaches that are? 

Thanks, 
Linda van den Brink


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.