users@jaxb.java.net

RE: Rebuilding problem

From: Malachi de Aelfweald <malachid_at_temporal-wave.com>
Date: Wed, 27 Aug 2003 11:33:29 -0700

Nevermind. my fault.

 

The XML file was stored in Perforce. The XML editor was letting me edit
and save, and didn't notify me the changes were not being written to
disk (because I forgot to check out the file). All is fine now, no
error. Thanks.

 

Malachi

 

________________________________

From: Malachi de Aelfweald
Sent: Wednesday, August 27, 2003 9:46 AM
To: users_at_jaxb.dev.java.net

 

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