[jdom-interest] jdom build a JAva Object with a file XML with more than one item

Christian Avril christian.avril at dpma.finances.gouv.fr
Wed Jan 26 10:17:28 PST 2005


Hello , 

Have You Please an example with an XML File and more than one item.
I would build this file in a Java Object. But there are more than one "application"
See
<?xml version="1.0" encoding="utf-8"?>
<applications  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  xsi:noNamespaceSchemaLocation="applications.xsd">
   <application key="appli1">
  <rule>rule_a</rule>
        <role>admin</role>
        <permission>0</permission>
        <population>allperson
           <filter>ou=ldapfilter123</filter>
        </population>
   </application>
   <application key="appli1">
  <rule>rule_u</rule>
        <role>user</role>
        <permission>1</permission>
        <population>users
            <filter>ou=ldapfilter456</filter>
        </population>
   </application>
   <application key="appli2">
  <rule>rule_a</rule>
        <role>admin</role>
        <permission>2</permission>
        <population>allperson
            <filter>ou=ldapfilter789</filter>
        </population>
    </application>
 </applications>

Thanks 

Chris

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.jdom.org/pipermail/jdom-interest/attachments/20050126/d9ec0e03/attachment.htm


More information about the jdom-interest mailing list