[jdom-interest] JDom&DTD

Kyle Cunningham kcunning at cs.cmu.edu
Mon Oct 1 09:22:55 PDT 2007

Hi - 

I'm not entirely clear on what you're asking.  Sounds like you already
have the DTD created and now you are trying to validate against it?  If
you are not allowing duplicate <name> elements then the builder is doing
it's work.


-----Original Message-----
From: jdom-interest-bounces at jdom.org
[mailto:jdom-interest-bounces at jdom.org] On Behalf Of NP
Sent: Monday, October 01, 2007 9:47 AM
To: jdom-interest at jdom.org
Subject: [jdom-interest] JDom&DTD

Hi all!
I've written a XML database, but now i have the need to validate it. For

example this XML must have one tag (and only one) called <name>. So i 
can write a dtd grammar to do this work.
But my necessity is that when i parse the xml file (with jdom's -better,

sax's- functions, like SAXBuilder.build) with duplicate TAG <name>, 
there is an exception that alerts this situation.

How I can resolve this problem?
(My fear is to write a by hand (and raw) function that works like i

To control your jdom-interest membership:

More information about the jdom-interest mailing list