RE: JDom&DTD
"Kyle Cunningham" <[email protected]>
| Newsgroups | gmane.comp.java.jdom.general,gmane.spam.detected |
|---|---|
| Message-ID | <[email protected]> |
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. Kyle -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of NP Sent: Monday, October 01, 2007 9:47 AM To: [email protected] 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 want...) Thanks! _______________________________________________ To control your jdom-interest membership: http://www.jdom.org/mailman/options/jdom-interest/[email protected] _______________________________________________ To control your jdom-interest membership: http://www.jdom.org/mailman/options/jdom-interest/[email protected]