logo       

RE: element-default with DOM3: msg#00033

Subject: RE: element-default with DOM3
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: mrglavas@xxxxxxxxxx
E-mail: mrglavas@xxxxxxxxxx

"Decoker, Lydie \(Lydie\)" <decoker@xxxxxxxxxx> 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:mrglavas@xxxxxxxxxx] 
> Sent: Wednesday, October 11, 2006 19:00
> To: j-users@xxxxxxxxxxxxxxxxx
> 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: mrglavas@xxxxxxxxxx
> E-mail: mrglavas@xxxxxxxxxx
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: j-users-unsubscribe@xxxxxxxxxxxxxxxxx
> For additional commands, e-mail: j-users-help@xxxxxxxxxxxxxxxxx
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: j-users-unsubscribe@xxxxxxxxxxxxxxxxx
> For additional commands, e-mail: j-users-help@xxxxxxxxxxxxxxxxx


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
boot-loaders.gr...    php.pear.genera...    debugging.valgr...    kde.redhat.user...    text.xml.xsl.ge...    culture.languag...    hardware.microc...    java.servicemix...    redhat.release....    web.zope.plone....    user-groups.lin...    opendarwin.webk...    video.mjpeg.use...    sysutils.bcfg2....    encryption.gpg....    lx-office.devel...    xfree86.forum/2...    mail.mutt.devel...    acpi.devel/2003...    qnx.openqnx.dev...    network.irc.irs...    freebsd.devel.m...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe