|
Re: Validate DOM document in memory using DOM level 3: msg#00032text.xml.xerces-j.devel
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 <mike_jjhao@xxxxxxxxx> 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 <nddelima@xxxxxxxxxx> 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: xerces-j-dev-unsubscribe@xxxxxxxxxxxxxx > For additional commands, e-mail: xerces-j-dev-help@xxxxxxxxxxxxxx > Do you Yahoo!? > New and Improved Yahoo! Mail - Send 10MB messages! Michael Glavassevich XML Parser Development IBM Toronto Lab E-mail: mrglavas@xxxxxxxxxx E-mail: mrglavas@xxxxxxxxxx |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: no more Bugzilla e-mails--and anyone want to moderate this list?: 00032, Michael Glavassevich |
|---|---|
| Next by Date: | Re: Xerces on JDK 1.5 (on Gump) (fwd): 00032, Michael Glavassevich |
| Previous by Thread: | Re: Help needed: cannot resolve symbol symbol : method getConfig ()i: 00032, Mike Hao |
| Next by Thread: | Re: Validate DOM document in memory using DOM level 3: 00032, Mike Hao |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |