OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   Re: whitespaces problem

[ Lists Home | Date Index | Thread Index ]
  • From: "Jamie Alessio" <Jalessio@FirmSeek.com>
  • To: "Silviu LEAHU" <sleahu@pentalog.fr>
  • Date: Tue, 6 Jun 2000 12:22:35 -0400

I was running into a similar problem with text nodes consisting of "\n"
becoming an annoyance so I just strip the whitespace from the XML file when
the DOM object is being created. That way, you never have those empty text
nodes to deal with. I'd need more information on what programming language
you are using but it should be fairly easy with the use of a regular
expression. Any reason that won't work for you?

- Jamie Alessio

----- Original Message -----
From: Silviu LEAHU <sleahu@pentalog.fr>
To: <xml-dev@xml.org>
Sent: Tuesday, June 06, 2000 4:44 AM
Subject: whitespaces problem

> So my question is: does an element with one 'child' contains some
> too, for '\n' characters and spaces? How can I ignore the 'whitespaces'?
> I have implemented myself the writing method and I can't understand why if
> loading a XML file and having it in memory, I still have those characters
> only for 'pretty-printing'.
> I would rather prefer some 'technical explanations' than pointing to some
> existing methods.

This is xml-dev, the mailing list for XML developers.
To unsubscribe, mailto:majordomo@xml.org&BODY=unsubscribe%20xml-dev
List archives are available at http://xml.org/archives/xml-dev/

  • Follow-Ups:
    • about saxon
      • From: Huaxin Zhang <hxzhang@cs.ualberta.ca>


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS