Java configuration with XML Schema

A sample XML Schema and Java class show you how

返回原文..

Appendix B: Sample configuration file
<?xml version="1.0" encoding="UTF-8"?>
<Application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="XMLConfigurator.xsd" name="String">
   <Parameter name="String">
      <Boolean>true</Boolean>
   </Parameter>
   <Parameter name="trace_level">
      <Integer>0</Integer>
   </Parameter>
   <Parameter name="Double">
      <Double>0.37E-12</Double>
   </Parameter>
   <Property name="Application_property_01" value="Application Property #1"/>
   <Object name="Locale" class="java.util.Locale">
      <String>en</String>
      <String>US</String>
   </Object>
   <ClassMethod name="Application_MsgBundle" class="java.util.ResourceBundle" method="getBundle">
      <String>Application_MsgBundle</String>
      <Reference>Locale</Reference>
   </ClassMethod>
   <Package name="xmlconfig">
      <Class name="XMLConfigurator">
         <ClassMethod name="class_bundle" class="java.util.ResourceBundle" method="getBundle">
            <String>Class_MsgBundle</String>
            <Reference>Locale</Reference>
         </ClassMethod>
      </Class>
   </Package>
</Application>

返回原文.