Hi all,

         sorry for posting XML related query here...

         I am using  com.sun.xml.parser.ValidatingParser() to validate
         XML file.

         my DTD contains following Element :
         <!ELEMENT DataResponse (MCL?, CallbackUrl?, UrlData*) >


         does the order of MCL, CallbackUrl, UrlData in my XML file
         matters to decide whether that XML is valid according to DTD or
not.

          for eg:

                My XML is :
                            <DataResponse>
                            <CallbackUrl> ...</CallbackUrl>
                            <MCL> ...</MCL>
                            <UrlData> ...</UrlData>
                            </DataResponse>

           Then the ValidatingParder throwing a SAXParserException saying
that MCL not allowed here in Element DataResponse.

           if I give MCL, CallbackUrl, UrlData in same order as they appears
in DTD ..
           ValidatingParser is not throwing any Error.

           Does this order really matters for ValidatingParser to validate
XML.



thanks,
-Ramesh

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to