Try the latest version of Xerces-C 1.7.0 or one of its snapshots. I tested
1.7.0 DOMPrint example on my XML document with duplicit ID attribute with full
schema processing on and validation turned off and no error message has been
reported as expected since the document is well formed although not valid. I
believe the Xerces-J works this way too. Anyway Xerces-C 1.4 is toooo old now
:-)
Cheers
Radovan
> -----Original Message-----
> From: Wuebben, Anthony E. (LNG) [mailto:[EMAIL PROTECTED]]
> Sent: Friday, 24 May 2002 19:52
> To: '[EMAIL PROTECTED]'
> Subject: RE: ID IDREF
>
>
> A follow up question why does the Xerces Java version allow this?
>
> I'm getting beat up by the java programmers :)
>
> -----Original Message-----
> From: Radovan Chytracek [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 24, 2002 9:02 AM
> To: [EMAIL PROTECTED]
> Subject: RE: ID IDREF
>
>
> Hi,
>
> it can't be done. XML Spec clearly says, that ID must be unique inside
> XML
> document. Your XML document is invalid. Sad but true.
>
> Cheers
>
> Radovan
>
>
> > -----Original Message-----
> > From: Wuebben, Anthony E. (LNG) [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, 24 May 2002 14:41
> > To: [EMAIL PROTECTED]
> > Subject: ID IDREF
> >
> >
> > Quick question:
> >
> > When reading a file the DOMParser throws an "error" when elements contain
> > the same ID value. Is there a way to turn this off or have it throw a
> > "warning" instead?
> >
> >
> > I'm using XERCES V1.4 on Solaris & I have validation turned off.
> >
> > DOMParser _parser;
> > ........
> > _parser.setDoValidation(false);
> > _parser.setValidationScheme(DOMParser::Val_Never);
> > ..........
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]