Hi all,
New to the forums. Been working on a starter project to familiarize myself with ATF. Like what I'm learning so far!
I've been trying to create my own tool, based off the new SimpleDomEditorWpf sample project. I've gone through and updated the schema with my own data type, very simple for now:
<?xml version="1.0" encoding="utf-8"?>
<xs:schema
targetNamespace="character_1_0"
elementFormDefault="qualified"
xmlns="character_1_0"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
>
<xs:complexType name="characterType" >
<xs:attribute name="name" type="xs:string" />
<xs:attribute name="gender" type="xs:string" />
<xs:attribute name="race" type="xs:string" />
<xs:attribute name="class" type="xs:string" />
<xs:attribute name="level" type="xs:integer" />
</xs:complexType>
<!--Declare the root element of the document-->
<xs:element name="character" type="characterType"/>
</xs:schema>
And of course I've gone through and stubbed out some of the objects to match (Context, Document, View, Editor). Everything builds, but I get a runtime error (see subject line), in the SchemaLoader constructor
public SchemaLoader()
{
// set resolver to locate embedded .xsd file
SchemaResolver = new ResourceStreamResolver(Assembly.GetExecutingAssembly(), "TableTop/schemas");
Load("character.xsd");
}
Error is on the Load call. I updated the string passed to the resolver constructor, as I assumed it needed to reflect the namespace/project name. But I'm not exactly sure if that's right.
I'm not terribly familiar with using XSDs, so this might not be specific to ATF.
Is there something I've overlooked?
Thanks!
JJ