Re: [fpc-pascal] XML - Indent, text content, special char
2019. 04. 30. 2:45 keltezéssel, wkitt...@windstream.net írta: are you saying that you are trying to use fixed-width fields that are space-padded in XML files??? No. The XML files are exists already. The task is... Load the contents/file to a TObject descendant, modify the data in the object(s) then build up XMLs from it a save back to file(s). Without lost any "TDOMNode.TextContent". Gabor ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] XML - Indent, text content, special char
On 4/30/19 9:36 AM, Bernd Oppolzer wrote: Am 30.04.2019 um 02:45 schrieb wkitt...@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 ( or ) you expect that the blanks between those tags are preserved. true but the given examples do not show that... [code] a [/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.* ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] XML - Indent, text content, special char
Am 30.04.2019 um 02:45 schrieb wkitt...@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, in fact I am aware of a typesetting system which uses XML as input, and if you enclose your input text between certain tags ( or ) you expect that the blanks between those tags are preserved. The W3C standards, IMO, don't tell anything about what a certain parser etc. should do to XML content (IMO, not much), there are not many restrictions (<, of course, should be ) ... attributes are different, of course. Kind regards Bernd ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal