View Single Post
Old 07-20-2004, 10:12 AM   #3
Gadmovorg
A Fire Beetle
 
Join Date: Jan 2003
Posts: 3
Default

Its far more work than i have expected
The only big problem im facing if i use my schema definition i cant create the head

...
<Schema xmlns="EverquestData" xmlns:dt="EverQuestTypes"/>
...

Maybe i lack some knowledge but afaik i cant use ":" within an attribute definition. Can anyone confirm it ?
Any advice is welcome!

So i choose this workaround where i use "xmlnsdt" instead of "xmlns:dt". After you are done with your xml you will need to modify the headerpart or EQ wont use it ...

Quote:
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="XML">
<xs:element name="Schema">
<xs:complexType>
<xs:attribute name="xmlns" type="xs:string" use="required" fixed="EverQuestData"/>
<xs:attribute name="xmlnsdt" type="xs:string" use="required" fixed="EverQuestDataTypes"/>
</xs:complexType>
</xs:element>
...
<xs:element name="XML">
<xs:complexType>
<xs:sequence>
<xs:element ref="Schema"/>
<xs:element ref="Gauge" minOccurs="0" maxOccurs="unbounded"/>
<xs:element ref="Screen"/>
<xs:element ref="Location"/>
<xs:element ref="Size"/>
</xs:sequence>
<xs:attribute name="ID" type="xs:string" use="required" fixed="EQInterfaceDefinitionLanguage"/>
</xs:complexType>
</xs:element>
</xs:schema>




Still working on it... just finished the "Gauge" element.
Gadmovorg is offline   Reply With Quote