8,DTD for XML file.
- By William Louth
- November 17, 2000
ENTERPRISE JAVA
Bridging the Gap Between Java Clients and EJBs Using XML
William Louth
Listing 8. DTD for XML file.
<!DOCTYPE descriptors [
<!ELEMENT descriptors (object-descriptor*)>
<!ELEMENT object-descriptor (class-name,name,type,icon,
property-descriptor*,children-descriptor?,action-descriptor*, security-descriptor?)>
<!ELEMENT property-descriptor (name,method, security-descriptor?)>
<!ATTLIST property-descriptor width CDATA "75">
<!ATTLIST property-descriptor alignment (left | centered | right) "left">
<!ATTLIST property-descriptor description CDATA "none">
<!ELEMENT children-descriptor (method*,folder-descriptor*)>
<!ELEMENT folder-descriptor (class-name,name,icon,collection, condition?)>
<!ATTLIST folder-descriptor folder CDATA "Folder">
<!ELEMENT action-descriptor (name,icon,class-name,parameter*, security-descriptor?)>
<!ATTLIST action-descriptor group CDATA "0">
<!ATTLIST action-descriptor description CDATA "none">
<!ELEMENT parameter (name,value)>
<!ELEMENT name-value (name,value)>
<!ELEMENT collection (#PCDATA)>
<!ELEMENT condition (#PCDATA)>
<!ELEMENT class-name (#PCDATA)>
<!ELEMENT name (#PCDATA)>
<!ELEMENT type (#PCDATA)>
<!ELEMENT method (#PCDATA)>
<!ELEMENT icon (#PCDATA)>
<!ELEMENT value (#PCDATA)>
<!ELEMENT security-descriptor (security-role+)>
<!ELEMENT security-role (name)>
<!ATTLIST security-role readonly (true | false) "false">
]>