On Wed, 10 Jan 2001, Stephen wrote:

> Is there a simple way of checking the well-formness of an XML file?

Yep, run a parser over the file. There must be thousands of them by now.
See the software pages under the SGML/XML main page at
http://www.oasis-open.org/cover/

Some I use (I validate rather then WF-check cos I deal mostly with
files that use a DTD, but validators will also do WF checks):

nsgmls -s -wxml xml.dec myfile.xml     (www.jclark.com)
python xpcmd.py myfile.xml                (Python's xmlproc)
rxp myfile.xml                                      (Univ of Edinburgh LTG)

///Peter

Reply via email to