FW: [jdom-interest] Newbie: Schema validation of a document being built via JDOM

Kevin Baynes kbaynes at renex.com
Thu Mar 22 08:05:02 PST 2001


I'm just forwarding this to the group.

-----Original Message-----
From: Carsten Karkola [mailto:karkola at rcs.urz.tu-dresden.de]
Sent: Thursday, March 22, 2001 2:31 AM
To: Kevin Baynes
Subject: RE: [jdom-interest] Newbie: Schema validation of a document
being built via JDOM


Maybe it could also be interesting to get all possible childs of an xml-
node using the schema information (like psgml in emacs it does with 
a dtd).
My scenario would be:
I can ask an List element.getValidContent() and i can compare the 
type/name of the element/attribute, which I try to insert in my 
document against the result of the above method.
I think this is also helpfull in a GUI. I can fill a popupmenu with the 
reuslts build on the schema information and can avoid the insertion 
of wrong elements.
In an second part I have to validate the document to find out missing 
elements/attributes via Document.validate().

regards, carsten

==================================================
==
==    Dipl.-Ing. Carsten Karkola
==
==    TU Dresden - Dez.4; SG 4.2
==
==      Tel.:  +49 351 463 7817
==       Fax:  +49 351 463 7179
==    e-mail:  karkola at rcs.urz.tu-dresden.de
==
==================================================



More information about the jdom-interest mailing list