More details on second question...

I will be provided with an XML file from another party.  We will agree on
the DTD beforehand, of course.  But they could send me a file which a
modified DTD and the XML data in the rest of the file could match that
modified DTD.  So Xerces would parse and validate the file without any
problems.  But my code to walk the doc tree and extract data would likely
break.  So I would like to keep our agreed-upon DTD in a separate file.
Then apply that DTD to the file they provide me.  Ideally, I would ignore
any DTD that they provided with their XML file.




                                                                                       
         
                    David_N_Bertoni                                                    
         
                    @lotus.com             To:     [EMAIL PROTECTED]         
         
                                           cc:                                         
         
                    06/23/01 07:42         Subject:     Re: 2 questions about parsing  
         
                    AM                                                                 
         
                    Please respond                                                     
         
                    to xerces-c-dev                                                    
         
                                                                                       
         
                                                                                       
         





XML is case-sensitive, so there is no way to do case-insensitive
validation.  Documents which are not case-sensitive are not XML.

For your second question, I think you need to give more details about what
you're trying to accomplish.  You can always have a DTD in a separate file
and specify that DTD in multiple documents, but I'm not sure that's what
you're trying to do.

Dave




                    Houman.Azarm@

                    wink.com             To:
[EMAIL PROTECTED]
                                         cc:     (bcc: David N
Bertoni/CAM/Lotus)
                    06/22/2001           Subject:     2 questions about
parsing
                    06:56 PM

                    Please

                    respond to

                    xerces-c-dev






If an XML file contains the DOCTYPE element with a DTD, the parser will
automatically validate its format.  This is pretty cool.  How do I make it
so this validation is case insensitive in regards to element names?

What is the easiest way to read a DTD from one file and validate another
XML file with the same DTD?

Thanks,
Houamn



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to