Versions Compared
compared with
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Description
<ui/> is the root element of the int Helium view xsdfiles. 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
Code Block | ||||
---|---|---|---|---|
| ||||
<?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> |
Indicates that the default namespace isxmlns="http://uiprogram.mezzanine.com/View"
http://uiprogram.mezzanine.com/View
Indicates that the elements and data types used in the schema come from thexmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
http://www.w3.org/2001/XMLSchema-instance
namespace. It also specifies that the elements and data types that come from thehttp://www.w3.org/2001/XMLSchema-instance
namespace should be prefixed with xsi:
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.xsi:schemaLocation="http://uiprogram.mezzanine.com/View ../View.xsd"
Note that when using the Helium Netbeans Plugin (deprecated), 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
.