|
Hi Arnaud!
I'm using the castor-0.9.3-xml.jar
and when I use the xml like
...
<HTTP>
<Get/>
</HTTP>
...
the exception message was...
-------------------------------------------
ValidationException: Post is a required field.;
-------------------------------------------
however, what is CVS version?
It means that Full CVS snapshot
(castor-0.3.9-src.zip)??
I downloaded that version and build class files using
build.bat.
And I made jar file from class files that I
built.
but it say same Exception..
If my schema is good, what can I try
more ??
And I have one more question. :)
I want to use the schema like below,
-----------------------------------------------------------------------------------
<xsd:element name="OnlineResource">
<xsd:complexType> <xsd:attribute name="xmlns:xlink" type="xsd:string" fixed="http://www.w3.org/1999/xlink"/> <xsd:attribute name="xlink:type" type="xsd:string" fixed="simple"/> <xsd:attribute name="xlink:href" type="xsd:string" use="required"/> </xsd:complexType> </xsd:element> ----------------------------------------------------------------------------------- Can I use " : " in attribute name?
I generated the source code from that schema.
and unmarshal the xml file.
but it say Exception like below,
---------------------------------------------------------------------
org.xml.sax.SAXException: OnlineResource is missing required
attribute: href
---------------------------------------------------------------------
If I omitted " : " from the attribute name, It say no
Exception.
Can't I use " : " in attribute name?
If that is true, and I have to use the name like "aaa:aaa" for
attributd name,
Is there a way that can solve this problem?
thanks for your kindness, Arnaud
Regard,
sophia
|
