SetXMLSchema |
[Top] [Chapter] [Previous] [Next] |
Declaration int SetXMLSchema(string Value; int Mode) Description This feature is used to manage an XML schema which is used to create popup menus (Mode=0-5) and to load a CSS stylesheet to highlight the text in certain tags (Mode=6 + 7). Note: This method requires the "Premium" License. Since it is an editing feature, You can not use it in TextDynamic Server. You can load an XML schema file, i.e:
<?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified"> <xs:element name="NATURWISSENSCHAFTEN"> <xs:annotation> <xs:documentation>....</xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Artikel" maxOccurs="unbounded"> ....
This information will be used to create a popup menu when the user clicks inside the text. The User can now select a tag from the popup menu.
In the present version the control does not check rules in the schema, such as maxOccurs. |