Hi
I am a young guy who come from
China.
I am a programmer.
I have some trouble with validate a
xml file through a xsd file using the dom4j,do you have any good
advice?
Thank you very much.
Now My problem is:
the verifier cann't find the
minOccurs and maxOccurs element in the xsd file,
for example,in the xsd:an element
defines like following:
<xsd:element name="print-target-list">
<xsd:complexType> <xsd:sequence> <xsd:element ref="target" minOccurs="2" maxOccurs="2" /> </xsd:sequence> </xsd:complexType> </xsd:element> in the xml file,there is a part
like this:
<print-target-list>
<target type="setting" available="true" /> <target type="printer" available="true" /> </print-target-list> and the validator can't work well
and tell me exception occurs.
and when I change the part like
this:
<print-target-list>
<target type="setting" available="true" /> </print-target-list> It works well.
Thank you for your
help.
waiting for your
reply. Confidentiality Notice: The information contained in this e-mail and any accompanying attachment(s) is intended only for the use of the intended recipient and may be confidential and/or privileged of Neusoft Group Ltd., its subsidiaries and/or its affiliates. If any reader of this communication is not the intended recipient, unauthorized use, forwarding, printing, storing, disclosure or copying is strictly prohibited, and may be unlawful. If you have received this communication in error, please immediately notify the sender by return e-mail, and delete the original message and all copies from your system. Thank you. |
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ dom4j-dev mailing list dom4j-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dom4j-dev