Hi Mike,
Yes, you want to call normalizeDocument() but first you have setup the DOMConfiguration (see the 'schema-location', 'schema-type' and 'validate' parameters) [1] so that the DOM will be validated when this method is called.
[1] http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/core.html#DOMConfiguration
Mike Hao <[EMAIL PROTECTED]> wrote on 08/25/2004 02:07:07 PM:
> Hi Neil,
>
> Thank you for your quick response.
>
> Which method should I use for this kind of validation? normalizeDocument()?
>
> Thanks,
> Mike
>
>
> Neil Delima <[EMAIL PROTECTED]> wrote:
>
>
>
>
> Hi Mike,
>
> See [1]
>
> Mike Hao wrote on 08/25/2004 11:10:08 AM:
>
> > I am trying to validate an in-memory DOM document using the DOM
> > level 3 functionality. And I am following the instruction in this page:
> >
> > http://xml.apache.org/xerces2-j/faq-dom.html#domparser
> >
> > My questions are:
> >
> > 1. Do I have to create a LSParser?
> Nope, it's not necessary to create an LSParser.
>
> > 2. Which Document class should I use? The one in the dom3-xml-apis.jar
> > or just the normal one?
> org.w3c.dom.Document.
>
> > 3. Where or How to get the APIs document of the DOM level 3
> functionalities?
> To build and access DOM Level 3 see [2].
>
> [1] http://xml.apache.org/xerces2-j/faq-dom.html#faq-9
> [2] http://xml.apache.org/xerces2-j/faq-dom.html#faq-6
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> Do you Yahoo!?
> New and Improved Yahoo! Mail - Send 10MB messages!
Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: [EMAIL PROTECTED]
E-mail: [EMAIL PROTECTED]
- Validate DOM document in memory using DOM level 3 Mike Hao
- Re: Validate DOM document in memory using DOM le... Neil Delima
- Re: Validate DOM document in memory using DO... Mike Hao
- Help needed: cannot resolve symbol symbo... Mike Hao
- Re: Validate DOM document in memory usin... Michael Glavassevich
- Re: Validate DOM document in memory ... Mike Hao
- Namespace-Aware node question Mike Hao
