[fpc-pascal] XML - Indent, text content, special char

wkitty42 at windstream.net wkitty42 at windstream.net
Tue Apr 30 18:12:31 CEST 2019


On 4/30/19 9:36 AM, Bernd Oppolzer wrote:
> Am 30.04.2019 um 02:45 schrieb wkitty42 at windstream.net:
>> On 4/29/19 1:27 PM, Gabor Boros wrote:
>>> Is this not a bug? Lost of formatting is not disturb me but text between > 
>>> and < is the data/text content of a node.
>>
>> are you saying that you are trying to use fixed-width fields that are 
>> space-padded in XML files???
> 
> There is nothing wrong with that,

agreed...

> in fact I am aware of a typesetting system which uses XML as input,
> and if you enclose your input text between certain tags (<pre> or <sourcecode>)
> you expect that the blanks between those tags are preserved.

true but the given examples do not show that...

[code]
<?xml version="1.0" encoding="utf-8"?>
<doc>
   <text1>    a</text1>
   <text2>     </text2>
</doc>
[/code]



-- 
  NOTE: No off-list assistance is given without prior approval.
        *Please keep mailing list traffic on the list unless*
        *a signed and pre-paid contract is in effect with us.*



More information about the fpc-pascal mailing list