You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by "Decoker, Lydie (Lydie)" <de...@lucent.com> on 2006/10/11 15:32:39 UTC

element-default with DOM3

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?
 
Thx in advance,
 
Lydie

Re: element-default with DOM3

Posted by Michael Glavassevich <mr...@ca.ibm.com>.
"Decoker, Lydie \(Lydie\)" <de...@lucent.com> 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: mrglavas@ca.ibm.com
E-mail: mrglavas@apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: j-users-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-users-help@xerces.apache.org