xml editor

   XML Editor
   XML Author
      DITA Editor
      DocBook Editor
      TEI Editor
      XHTML Editor
      Schema Editor
      XML Schema Editor
      RelaxNG Editor
   XQuery
   SVN Client
      Office Open XML
      XSL:FO Editor
      SVG Editor
      WSDL Editor
Supported platforms
Compatible with Windows7 & Mac OS X Snow Leopard
Ready for
data server software
[XML-DEV Mailing List Archive Home] [By Thread] [By Date]

Re: whitespaces problem


  • From: "Jamie Alessio" <Jalessio@...>
  • To: "Silviu LEAHU" <sleahu@...>
  • 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@...>
To: <xml-dev@...>
Sent: Tuesday, June 06, 2000 4:44 AM
Subject: whitespaces problem

> So my question is: does an element with one 'child' contains some
_TextNode_s
> 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
I'm
> loading a XML file and having it in memory, I still have those characters
used
> 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@...&BODY=unsubscribe%20xml-dev
List archives are available at http://xml.org/archives/xml-dev/
***************************************************************************

Keywords
xml
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2009 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>® XML Editor