[jdom-interest] No duplicates element's values in a list of element

Kyle Cunningham kcunning at cs.cmu.edu
Mon Oct 1 13:50:05 PDT 2007


Hhmm I don't know of anything in a DTD that will allow that.  Seems like
a java method is the way to go.

-----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 2:45 PM
To: jdom-interest at jdom.org
Subject: [jdom-interest] No duplicates element's values in a list of
element

Hi!

let's suppose that we have this xml:
...
<name>name1</name>
<name>name2</name>
...
<name>nameN</name>

Is there a ddt rule that forces to don't have duplicate value of name?
or: i must write a function (using jdom) that recovers all the elements 
and controls if there is a duplicate value?
_______________________________________________
To control your jdom-interest membership:
http://www.jdom.org/mailman/options/jdom-interest/youraddr@yourhost.com



More information about the jdom-interest mailing list