Please help if you know about this.  I've
had this problem for awhile.

   I'm writing a custom deserializer which
extends the DeserializerImpl class.  I'm having
trouble with multi-referenced elements in
my XML instances.  I have a XML schema defined
with the following definitions:

   <xsd:complexType name="ElementType">
      <xsd:attribute name="id" type="xsd:ID"
                     use="optional"/>
   </xsd:complexType>

   <xsd:complexType name="Reference">
      <xsd:attribute name="href" type="xsd:IDREF"
                     use="required"/>
   </xsd:complexType>



It would seem that AXIS requires
any references in the XML instance to have an
attribute of the following form:

  href="#123"

Where the attribute name is exactly "href",
and the id is preceded with a # character.
Is this true?  I've changed my attribute name
to be "href".  And, I serialize the id with
a preceding #.  But when I valid my XML instance
against the XML schema, the type IDREF considers
a preceding # character as invalid.  What
should the type of the attribute be set to
in my XML schema?  Is this a problem with AXIS?




Thanks for any help,



__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

Reply via email to