Subject: Re: JDom&DTD 2007-10-01 - By Grzegorz Kaczor
Back Hi,
Please see here: http://www.topxml.com/tutorials/main.asp?id=jdom&page=17.
Regards, Grzegorz
2007/10/1, NP <nicola.padovano@(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/youraddr@(protected) >
-- "Cho? tyle wiemy w?asnym do?wiadczeniem: W nas jest Raj, Piek?o - i do obu - szlaki." J.K.
Hi,<br><br>Please see here: <a href="http://www.topxml.com/tutorials/main.asp ?id=jdom&page=17">http://www.topxml.com/tutorials/main.asp?id=jdom&page =17</a>.<br><br>Regards,<br>Grzegorz<br><br><div><span class="gmail_quote"> 2007/10/1, NP <<a href="mailto:nicola.padovano@(protected)">nicola.padovano @(protected)</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> Hi all!<br>I've written a XML database, but now i have the need to validate it. For<br>example this XML must have one tag (and only one) called <name> ;. So i<br>can write a dtd grammar to do this work.<br>But my necessity is that when i parse the xml file (with jdom's -better, <br>sax's- functions, like SAXBuilder.build) with duplicate TAG <name> ;,<br>there is an exception that alerts this situation.<br><br>How I can resolve this problem?<br>(My fear is to write a by hand (and raw) function that works like i want...) <br><br>Thanks!<br>__ ____ ____ ____ ____ ____ ____ ____ ____ ____<br>To control your jdom-interest membership:<br><a href="http://www.jdom.org/mailman /options/jdom-interest/youraddr@(protected)">http://www.jdom.org/mailman /options/jdom-interest/youraddr@(protected) </a><br></blockquote></div><br><br clear="all"><br>-- <br>"Cho? tyle wiemy w?asnym do?wiadczeniem:<br>W nas jest Raj, Piek?o - i do obu - szlaki."<br >J.K.
__ ____ ____ ____ ____ ____ ____ ____ ____ ____ To control your jdom-interest membership: http://www.jdom.org/mailman/options/jdom-interest/youraddr@(protected)
|
|