Adobe 38000382 JRun Guide - Page 110
Understanding the XML metadata classes, JRun-specific XML files. For example, the element
UPC - 718659575946
View all Adobe 38000382 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 110 highlights
Understanding the XML metadata classes Each XML file has an XML metadata class equivalent. When you want to add, remove, or edit the elements of a particular XML file, you find what class instantiates that XML file and then execute the available methods on that class to edit the file. For example, for the web.xml file, there is a JRunWebAppMetaData class that contains getters and setters for all the elements available in the web.xml DTD (Document Type Definition). JRun contains classes for all elements in the XML files, including the J2EE files and the JRun-specific XML files. For example, the element web-app in the web.xml file has an equivalent JRun class with convenience methods for setting attributes, and adding or removing the element. 96 Chapter 9 Editing XML Files