element
The <element> element is used to specify the role of a certain element in the current XML format.
<x:roleMapping> <x:element name="bold" role="strong" /> <x:element name="italic" role="emphasis" /> <x:element name="a" role="hyperlink" /> <x:element name="picture" role="image" /> </x:roleMapping>
To specify a role for an element in a namespace, the namespace must be declared with a prefix.
<x:roleMapping xmlns:myprefix="http://www.example.com/xmlns/mynamespace"> <x:element name="myprefix:bold" role="strong" /> <x:element name="myprefix:italic" role="emphasis" /> <x:element name="myprefix:a" role="hyperlink" /> <x:element name="myprefix:picture" role="image" /> </x:roleMapping>
- Documentation
- › Configuration
- › Elements
- › element
element element
Namespace: http://www.xopus.com/xmlns/config