XmlCursor is your friend here. Because by stripping the namespace prefix you in fact are modifying the names of elements.
Radu On Mon, 2008-02-25 at 10:24 -0800, dave wrote: > On a related note, Is there a way to strip off only > the namespace prefix for all the children(elements and > attrs) under certain namespace prefixed element? > > -D > --- Wing Yew Poon <[EMAIL PROTECTED]> wrote: > > > Dave, > > the xs:any can have a namespace attribute, which, if > > not present, > > defaults to "##any", which means that the content > > can be in any > > namespace whatsoever or no namespace. > > I think that solves your problem. > > - Wing Yew > > > > -----Original Message----- > > From: dave [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, February 12, 2008 1:00 PM > > To: Henry S. Thompson > > Cc: [email protected] > > Subject: Re: how to restrict validation to part of > > the W3C schema? > > > > > > is there a way to instruct the validator to ignore > > namespace as well for this 'noValidation' element's > > children? > > > > Thanks > > -D > > > > --- "Henry S. Thompson" <[EMAIL PROTECTED]> wrote: > > > > > -----BEGIN PGP SIGNED MESSAGE----- > > > Hash: SHA1 > > > > > > dave writes: > > > > > > > 1. How would I specify in the Schema that > > > > 'noValidation' element should not get validated? > > > Is > > > > using ANY a valid use case in this situation > > > although > > > > it's not used for Schema extension purpose here? > > > CDATA > > > > may not be a good choice because I would NOT be > > > able > > > > to parse anything under 'noValidation'. > > > > > > <xs:element name="noValidation"> > > > <xs:complexType mixed="true"> > > > <xs:sequence> > > > <xs:any processContents='skip' minOccurs="0" > > > maxOccurs="unbounded"/> > > > </xs:sequence> > > > </xs:complexType> > > > </xs:element> > > > > ____________________________________________________________________________________ > Looking for last minute shopping deals? > Find them fast with Yahoo! Search. > http://tools.search.yahoo.com/newsearch/category.php?category=shopping > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > Notice: This email message, together with any attachments, may contain information of BEA Systems, Inc., its subsidiaries and affiliated entities, that may be confidential, proprietary, copyrighted and/or legally privileged, and is intended solely for the use of the individual or entity named in this message. If you are not the intended recipient, and have received this message in error, please immediately return this by email and then delete it. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

