Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Current »

Description

<ui/> is the root element int Helium view files. All other view components are placed within it. This will in most cases be standard and can be used exactly as shown in the example below.

 

 

Example

<?xml version="1.0" encoding="UTF-8"?>
<ui xmlns="http://uiprogram.mezzanine.com/View"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://uiprogram.mezzanine.com/View ../View.xsd">
    .
    .
</ui>
  • xmlns="http://uiprogram.mezzanine.com/View"

    Indicates that the default namespace is http://uiprogram.mezzanine.com/View
  • xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

    Indicates that the elements and data types used in the schema come from the http://www.w3.org/2001/XMLSchema-instance namespace. It also specifies that the elements and data types that come from the http://www.w3.org/2001/XMLSchema-instance namespace should be prefixed with xsi:
  • xsi:schemaLocation="http://uiprogram.mezzanine.com/View ../View.xsd"

    Indicates the schema location. First the namespace to use is specified followed by a space followed by the relative path to the actual XML schema to use for that namespace.

Note that when using the netbeans plugin, it is not required to specify the schema location as shown above. The plugin will automatically download and include the latest version of the Helium View.xsd.

 

 

  • No labels