Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
xml
xml
linenumberstrue

<?xml version="1.0" encoding="UTF-8"?>

<config xmlns="urn:com.cohga.server.config#1.0">       
<!-- configuration items defined here -->
</config>

...

Code Block
xml
xml
linenumberstrue

<?xml version="1.0" encoding="UTF-8"?>

<config xmlns="urn:com.cohga.server.config#1.0" xmlns:example="urn:com.cohga.weave.example#1.0">
</config>

...

Code Block
xml
xml
linenumberstrue

<?xml version="1.0" encoding="UTF-8"?>

<config xmlns="urn:com.cohga.server.config#1.0" xmlns:example="urn:com.cohga.weave.example#1.0">

  <example:greeting id="greeting.english">
    <text>Hello World</text>
  </example:greeting>

</config>

...

The important things to note in our example are the use of the namespace to enclose the configuration of this particular item, the setting of the configuration item type (in this example it's greeting), the unique identifier given to the item ( greeting.english), and the actual content of the configuration item.

The id, in this example (greeting.english), is used to uniquely identify individual configuration items, and should be unique for each combination of namespace and type. That is you can have the same id for an example:greeting configuration item, an example:message configuration item and a test:greeting configuration item, but you can not have the same id for two example:greeting configuration items.

...