Hi Gareth,

could you give me a short code example how to use the properties?

        DOMBuilder* m_domBuilder;
        XMLCh ch[100];
        CString m_strExternalSchemaPath = "C:\test.xsd";
        XMLString::transcode(m_strExternalSchemaPath, ch, 99);

HOW do I set the property of m_domBuilder to the value of
m_strExternalSchemaPath?
How does the DomBuilder know if he should use the external schema or the
schema referenced by the instance document?

Thanks,
Michael


> -----Urspr�ngliche Nachricht-----
> Von: Gareth Reakes [mailto:[EMAIL PROTECTED]
> Gesendet: Freitag, 7. Mai 2004 09:18
> An: '[EMAIL PROTECTED]'
> Betreff: Re: Validation of instance documents, DOMParser vs. 
> DOMBuilder
> 
> 
> Hi,
> 
> 
> On Thu, 6 May 2004, Heeg, Michael wrote:
> 
> > 1) On page http://xml.apache.org/xerces-c/schema.html there is an
> > easy-to-understand example for parsing instance documents 
> with external
> > schemas. But: here the class DOMParser is used, and not 
> DOMBuilder. Is it
> > possible to validate an instance document with an external 
> schema also with
> > DOMBuilder? If yes, how?
> 
> You can use the same method, take a t look at the supported 
> properties.
> 
> http://xml.apache.org/xerces-c/program-dom.html#DOMBuilderProperties
> 
> > 2) I think this is an absolutely newbie question: What is 
> the difference
> > between DOMParser and DOMBuilder? The documentation of 
> Xerces-C API says:
> > "DOMBuilder provides an API for parsing XML documents and 
> building the
> > corresponding DOM document tree." So DOMBuilder is a 
> parser, too, isn't it?
> 
> Until DOM Level 3, there was no definition of what a DOM 
> Parser should be
> so Xerces had its own. Now the Load and Save specs define 
> one. That is DOM
> Builder. We are a touch behind, the final name decided on was 
> LSParser.
> This will change at some point in the future when we catch up.
> 
> 
> Gareth
> 
> -- 
> Gareth Reakes, Managing Director      Parthenon Computing
> +44-1865-811184                  http://www.parthcomp.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

Attachment: Heeg, Michael.vcf
Description: Binary data

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

Reply via email to