Dear all,
I am using JARVDemo.java example program provided by
dom4j. I am validating the xml against schema. I am able to get the
exception. But the line no and other information are not correct(I mean it is
null). On any data violation like for example, if any element
has to accept a enumeration of values(A/B/C) and on violation of the value , I
am getting the error which says " the value is not a member
of the enumeration: ("ClassB"/"ClassC"/"ClassA")" but it doesn't
describe which element has voilated. How can I figure out which element has
voilated this ??
Eg.
<?xml version="1.0"
encoding="UTF-8"?>
<level3CustomTags xmlns="http://www.level3.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.level3.com E:\temp\Level3Schema.xsd" > <performance>ClassU</performance> <!-- this can take only values A/B/C --> </level3CustomTags> Can anybody throw light on this.
Please consider this as a very urgent request.
Regards Chethan |
*********************************************************************** PLEASE VISIT US AT STAND E13B, AT 3GSM WORLD CONGRESS 2004, CANNES.
******************************************************************** SASKEN BUSINESS DISCLAIMER This message may contain confidential, proprietary or legally Privileged information. In case you are not the original intended Recipient of the message, you must not, directly or indirectly, use, Disclose, distribute, print, or copy any part of this message and you are requested to delete it and inform the sender. Any views expressed in this message are those of the individual sender unless otherwise stated. Nothing contained in this message shall be construed as an offer or acceptance of any offer by Sasken Communication Technologies Limited ("Sasken") unless sent with that express intent and with due authority of Sasken. Sasken has taken enough precautions to prevent the spread of viruses. However the company accepts no liability for any damage caused by any virus transmitted by this email. ***********************************************************************