Try setting "http://apache.org/xml/features/validation/schema/element-default" as a parameter with a Boolean value and see what happens.
Michael Glavassevich XML Parser Development IBM Toronto Lab E-mail: [EMAIL PROTECTED] E-mail: [EMAIL PROTECTED] "Decoker, Lydie \(Lydie\)" <[EMAIL PROTECTED]> wrote on 10/12/2006 03:53:18 AM: > Thx Michael. But looking the links provided, I do not see what could > help me to add element default value in my DOM tree. > > I see that for LSSerialzer, you have an option > "discard-default-content". If you set it to false, I should get the > default value. But from > what I understand LSSerializer will output a string but I want to keep > my DOM tree. > > Lydie. > > -----Original Message----- > From: Michael Glavassevich [mailto:[EMAIL PROTECTED] > Sent: Wednesday, October 11, 2006 19:00 > To: [email protected] > Subject: Re: element-default with DOM3 > > "Decoker, Lydie \(Lydie\)" wrote on 10/11/2006 > 09:32:39 AM: > > > Hello! > > > > I am using now the LSParser (in order to get rid of the empty text > > node) adn LSParserFilter. > > I am trying to replicate what I was doing with the DocumentBuilder. > > To augment my xml with the default values, the feature I had set was: > > > > domFactory.setFeature("http://apache. > > org/xml/features/validation/schema/element-default",true); > > Is there something similar for DOMImplementationLS used to create the > > LSParser? > > See DOMConfiguration [1]. This is what you use to configure [2] an > LSParser. > > > Thx in advance, > > > > Lydie > > [1] http://www.w3.org/TR/DOM-Level-3-Core/core.html#DOMConfiguration > [2] > http://www.w3.org/TR/2004/REC-DOM-Level-3-LS-20040407/load-save.html#LS- > LSParser-config > > 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] > > > --------------------------------------------------------------------- > 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]
