Here's a little program that I wrote a while ago as a convenience class to
test the validity and well-formedness of documents I created with a seperate
program.

Enjoy!

Brion Swanson


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, March 05, 2001 9:52 AM
To: [EMAIL PROTECTED]
Subject: newbie request


I'm doing some work with an organisation
that is using namespaces in a set of xml 
documents which require validation to the
stated DTD.

I believe its possible to parse the document
against the DTD, and do proper namespace 
checking, using the xerces set properties.

Being quite new to Java, I'm having trouble
finding a simple enough example that I can
adapt. 

All the examples do far more than I actually need.

Sax2Writer.java has good examples of what I
want in terms of setting the properties, but
each time I start to strip out the additional
code, I founder on my lack of java knowledge.

Does anyone have either  simple parser code
that does no more than parse / validate,
or even a command line version that I can
pass the required properties into from the
command line please.

TIA, Regards DaveP

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Attachment: SimpleParser.java
Description: Binary data

Reply via email to