XML Editor"
From Documentation
Jimmyshiau (talk | contribs) |
m (correct highlight (via JWB)) |
||
Line 3: | Line 3: | ||
If you are using a XML editor, you could specify the schema directly in your ZUL document, such that the validation and '''Content Assist''' will be enabled automatically. Here is an example. | If you are using a XML editor, you could specify the schema directly in your ZUL document, such that the validation and '''Content Assist''' will be enabled automatically. Here is an example. | ||
− | <source lang="xml" | + | <source lang="xml" highlight="2,3"> |
<zk | <zk | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
Latest revision as of 12:37, 19 January 2022
If you are using a XML editor, you could specify the schema directly in your ZUL document, such that the validation and Content Assist will be enabled automatically. Here is an example.
<zk
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.zkoss.org/2005/zul http://www.zkoss.org/2005/zul/zul.xsd">
...
</zk>
Notice that you have to specify the schema location in the root element, and the root element could be any valid ZUL component, such as window.
Version History
Version | Date | Content |
---|---|---|