Hi Yuan, "contr" is an attribute which is defaulted [1] from the DTD associated with personal.xml. The attribute declaration which declares the default value is in personal.dtd: <!ATTLIST person contr (true|false) 'false'>.
Thanks. [1] http://www.w3.org/TR/2006/REC-xml-20060816/#sec-attr-defaults Michael Glavassevich XML Parser Development IBM Toronto Lab E-mail: [EMAIL PROTECTED] E-mail: [EMAIL PROTECTED] "Yuan Yuan" <[EMAIL PROTECTED]> wrote on 05/05/2008 11:29:01 PM: > I used dom.Writer and personal.xml from the Xerces sample. > > but I got an extra contr="false" for element "person" from the output. > > The original xml file is: > > <person id="four.worker"> > <name><family>Worker</family> <given>Four</given></name> > <email>[EMAIL PROTECTED]</email> > <link manager="Big.Boss"/> > </person> > > > but I got: > > <person contr="false" id="four.worker"> > <name><family>Worker</family> <given>Four</given></name> > <email>[EMAIL PROTECTED]</email> > <link manager="Big.Boss"></link> > </person> > > Could please somebody tell me where is this contr="false" attribute come from? > > Thanks a lot! > > Yuan Yuan