JBoss EAP6 has provided the schema documents in docs/schema
. Each schema has defined a namespace used by the EAP6 configuration file. For example, we can check the beginning of standalone.xml
and see the xml namespace it's using:
<?xml version='1.0' encoding='UTF-8'?> <server xmlns="urn:jboss:domain:1.4"> ...
We can see that the namespace used is urn:jboss:domain:1.4
. Let's find the defined namespace in the docs/schema
directory by using the grep
command:
$ grep -rl 'urn:jboss:domain:1.4' * jboss-as-config_1_4.xsd
We can see that jboss-as-config_1_4.xsd
contains the definition of the xml namespace we are searching for. Now we can check the definitions for each element in this namespace. For example, if we want to understand the meaning of the server section in standalone.xml
, we can check its definition in the xsd
file:
<xs:element name="server"> <xs:annotation> <xs:documentation> Root element for a document specifying the configuration of a single "standalone" server that does not operate as part of a domain... </xs:documentation> </xs:annotation> ... </xs:element>
As we have seen in the previous code snippet, the xsd
schemas are very useful documents. They can help us to understand the meaning of the elements in configuration files.