I had an autogenerated package from an XSD of mine. I just added a new
subtree to the spec, and updated my config xml to use it - Xray shows
that it validates.
I rebuild everything ok, rebuild the jars ok, start the client and get a
validation problem. The jars include the newly autogenerated classes,
so they aren't out of date.
"DefaultValidationEventHandler: [ERROR]: Unexpected element
{
http://www.temporal-wave.com/spec/guicfg}:col
Location:"
The schema portion as per the autogenerated javadocs from the xjc'd
files:
<complexType name="treeCfg">
<complexContent>
<restriction base="{
http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="title"
type="{
http://www.w3.org/2001/XMLSchema}string"/>
<element name="col"
type="{
http://www.temporal-wave.com/spec/guicfg}columnCfg"
maxOccurs="unbounded"/>
</sequence>
<attribute name="name" use="required"
type="{
http://www.w3.org/2001/XMLSchema}string" />
</restriction>
</complexContent>
</complexType>
The XML portion that is new:
<tree name="TaskList">
<title>Tasks</title>
<col name="name">
<title>Name</title>
</col>
<col name="desc">
<title>Description</title>
</col>
<col name="schedule" cls="java.util.Date">
<title>Schedule</title>
</col>
<col name="pri" cls="java.lang.Integer">
<title>Priority</title>
</col>
<col name="active" cls="java.lang.Boolean">
<title>Active</title>
</col>
</tree>
As I said, the XML editors show it as valid...
Any ideas?
Malachi