Hi all!

I am experiencing some strange results using the DOMParser.  I am trying to 
validate an XML file which contains multiple registration elements.  Each 
registration element has an attribute called "aim:AIMChgStops", however 
when the file is validated I get the error:


Fatal Error at file S:\Work\Dev\txc\TXCVP\Debug\tmt18.xml, line 3394, char 
2
  Message: The attribute 'aim:AIMChgStops' is already used in element 
'Registrat
ion'

Errors occured, no output available

However if I change the attribute name to "aim:AIMChgStps" everything works 
fine and the file is correctly validated.  The schema used to validate the 
file specifies that anything not found in a different namespace should 
simply be ignored (using the lax operative).

Does anybody know why this is happening ? and why simply changing the name 
slightly seems to fix the problem ?

I also tried the DOMCount example to test if it was my code that was 
causing problems but I get the same problem.

Many thanks for your help and time

Neil

Attached :


tmt18BAD.xml            -       Copy of the XML file that causes the error (i.e. with 
attribute names aim:AIMChgStops)
tmt18GOOD.xml   -       Copy of the XML file that works (i.e. with attribute names 
aim:AIMChgStps)
schema.xsd              -       Schema used to validate> clean:

Attachment: code.zip
Description: Zip compressed data

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to