[jdom-interest] generate XML conformly to dtd

Alex Rosen arosen at silverstream.com
Fri Feb 15 10:12:49 PST 2002

This seems very related to the in-memory validation feature that we'd
eventually like to add - see TODO.txt. (Jason, should we add this specific
feature to the list too? Also, would XNI provide this info better than
dtdparser, if we were using Xerces2 (or another XNI parser)?)

So, it's probably something we'd like to do, but we don't know if/when it's
going to happen, unless you'd like to tackle it.


> -----Original Message-----
> From: jdom-interest-admin at jdom.org
> [mailto:jdom-interest-admin at jdom.org]On Behalf Of Mauerwerk, Mark
> Sent: Thursday, February 14, 2002 9:39 AM
> To: jdom-interest at jdom.org
> Subject: [jdom-interest] generate XML conformly to dtd
> Hi,
> I'm developing a sort of XML generator which shall build up a XML
> document from the scratch but conformly to a DTD. While I found the
> first task quite simple to build XML documents from the scratch with
> JDOM, it seems more difficult to do this in a more generic 
> way conformly
> to a DTD (e.g retrieving a DOM object from a DTD, put the data values
> from an arbitrary data source in and build the XML document).
> I think a DTD parser could be heplful to support that work 
> but it seems
> that the most common packages supporting XML don't support that way
> (extracting a document structure from a DTD). 
> My method of resolution is to use schema instead: e.g. parse 
> the schema
> (i.e. get the structure and constraints), vailidate the data from any
> data source (represented by Java data) and build the document 
> containing
> the validated Java data with the structure derived from the schema.
> But, I think a generic XML generator is a very common approach in
> practice and may be I have overseen something already 
> existing. So whats
> your experience with similar approaches.
> Thanks in advance
> Mark 
> _______________________________________________
> To control your jdom-interest membership:
> http://lists.denveronline.net/mailman/options/jdom-interest/yo
uraddr at yourhost.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 2656 bytes
Desc: not available
Url : http://jdom.org/pipermail/jdom-interest/attachments/20020215/7ffe1d50/winmail.bin

More information about the jdom-interest mailing list