Hi Martin,

I assume you're referring to the DOM's behaviour when you remove an 
attribute that has a default value defined in the DTD. The DOM spec says 
[1] that a new attribute is added when a default value exists. There's no 
user option for turning this off, though if you're eventually going to 
serialize the document you can instruct an LSSerializer [2] to discard 
default attributes (and content).

[1] http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-D589198
[2] 
http://www.w3.org/TR/2004/REC-DOM-Level-3-LS-20040407/load-save.html#parameter-discard-default-content

Martin Vysny <[EMAIL PROTECTED]> wrote on 04/03/2005 11:45:44 AM:

> Hi everyone,
>   is there a way to turn off the 'DTD default attributes' Xerces
> functionality? I would really love to delete attribute A but it's
> impossible: when I delete A, another attribute is generated immediately,
> with default contents as stated in the DTD. Is there a way to disable
> this default attribute generation?
> Thanks,
> Martin Vysny
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: [EMAIL PROTECTED]
E-mail: [EMAIL PROTECTED]

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

Reply via email to