[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

DOM & whitespace Nodes

  • To: <xml-dev@l...>
  • Subject: DOM & whitespace Nodes
  • From: <srm@c...>
  • Date: Thu, 1 May 2003 09:29:43 +0100 (BST)
  • Importance: Normal

dom whitespace
Hi,

I am parsing an XML document into DOM. I end up with a DOM that contains
everything plus additional text nodes (type 3) containing just "\n". Can I
configure the apache.DOMParser or javax.DocumentBuilder (I am indifferent
to which to use) in such a way that they do not create whitespace nodes?
If not, how can I manage to not get them included -- currently I am
working through the resulting DOM and check all nodes and then remove the
whitespace ones, which seems not the best way of doing it.
My XML file is based on an XML Schema. I also would like to validate it
against the schema, maybe even validate the DOM when changes are made. How
can one do this.
many thanks,
Stephan

--
Dr Stephan Reiff-Marganiec
Research Fellow
Department of Computing Science; University of Stirling
email: srm@c...    tel: 01786 46 7448



-- 
The University of Stirling is a university established in Scotland by
charter at Stirling, FK9 4LA.  Privileged/Confidential Information may
be contained in this message.  If you are not the addressee indicated
in this message (or responsible for delivery of the message to such
person), you may not disclose, copy or deliver this message to anyone
and any action taken or omitted to be taken in reliance on it, is
prohibited and may be unlawful.  In such case, you should destroy this
message and kindly notify the sender by reply email.  Please advise
immediately if you or your employer do not consent to Internet email
for messages of this kind.  Opinions, conclusions and other
information in this message that do not relate to the official
business of the University of Stirling shall be understood as neither
given nor endorsed by it.


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.