Adobe 38000382 JRun Guide - Page 110

Understanding the XML metadata classes, JRun-specific XML files. For example, the element

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

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116

96
Chapter 9
Editing XML Files
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.