using a XmlFilter, you can ignore the child elements that you don't want to validate. but what Phil has written still applies. ie you cannot filter out the parents of the element you wish specifically to validate.
thanks, nishant On Tue, 2004-08-31 at 16:09, Phil Weighill-Smith wrote: > You may or may not be able to validate a document fragment against a > given schema depending on how the schema is written. > > If your schema is written to restrict the location of any given > element to the context of its allowed parent you probably can't just > validate the "child" element (even creating a dummy parent may not be > enough, depending on the schema rules for the content of that parent > and so on up to your schema's root element). > > If, however, your schema doesn't restrict a given element to a > specific context you can easily validate that element by simply > applying validation to that element (how you do this depends on which > DOM level you're using; below DOM level 3 you need to essentially > serialize your DOM sub-tree such that you can parse it again with a > (SAX) parser, looking for errors. At DOM level 3 you *should* be able > to utilize DOM-based re-validation... (having said that, I'm no XERCES > expert and don't know if it supports DOM-based re-validation). > > Don't know if that helps... > > Phil :n. > On Tue, 2004-08-31 at 10:38, [EMAIL PROTECTED] wrote: > > hi > > > > i am currently trying to find a solution to the following problem: > > > > I would like to be able to validate some node of my xml file instead of > > validate all the document. > > Moreover, is this is possible with a unique xml schema, i.e., the one that > > apply to the whole document. > > > > Why i want to do that? > > > > just because my xml file is huge, and from this file, according to my needs, > > i have to extract only a subset of this file. And this subset is not always > > the same. > > > > thanks in advance > > > > Serge Scevenels > > > > __________________________________________________________________ > > Tiscali ADSL Senza Canone, paga solo quello che consumi! > > Non perdere la promozione valida fino al 31 agosto. Per te gratis il modem > > in comodato e l'attivazione. In piu' navighi a soli 1,5 euro l'ora per i > > primi tre mesi. Cosa aspetti? Attivala subito! > > http://abbonati.tiscali.it/adsl/prodotti/640Kbps/ > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- > > Phil Weighill-Smith <[EMAIL PROTECTED]> > > Volantis Systems --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]