JDom&DTD
NP <[email protected]>
| Newsgroups | gmane.comp.java.jdom.general |
|---|---|
| Message-ID | <[email protected]> |
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]