Recent

Author Topic: How to keep whitespace when parsing XML  (Read 6043 times)

eny

  • Hero Member
  • *****
  • Posts: 1634
How to keep whitespace when parsing XML
« on: February 12, 2010, 11:14:06 am »
I'm trying to parse XML files via ReadXMLFile (unit XMLRead).
In the process of parsing XML all whitespace is skipped; this includes relevant whitespace like:

Code: [Select]
<separator> </separator>

Is there a way to keep the whitespace in the resulting TXMLDocument?
(In this case the whitespace character describes the separator character in a CSV file; therefore it's highly relevant that the space is read correctly from the XML file.)

(Lazarus 0.9.29; 22302; FPC 2.3.1 on WinXP)
All posts based on: Win10 (Win64); Lazarus 2.0.10 'stable' (x64) unless specified otherwise...

 

TinyPortal © 2005-2018