[fpc-pascal] XML: how to change first line?
reinierolislagers at gmail.com
Sun Jul 24 13:09:35 CEST 2011
On 24-7-2011 12:49, Michael Van Canneyt wrote:
> On Sun, 24 Jul 2011, Reinier Olislagers wrote:
>> <?xml version="1.0" standalone="yes"?>
>> I tried adding an attribute like this:
>> 'standalone', UTF8Decode('yes'));
>> but that gave an access violation: DocumentElement property is
> I don't think that currenly there is a way to set this attribute ?
> Unless Sergei Gorelkin knows a way, we'll have to adapt the fpdoc package.
> In each case, the 'standalone' attribute is not valid XML according to:
> So I don't think you should bother adding that. Probably some M$
> specific addition.
Had a look at the specification link you sent, I don't get it (that part
deals with valid spaces in nodes?).
I did see this:
Standalone Document Declaration
An example XML declaration with a standalone document declaration:
<?xml version="1.0" standalone='yes'?>
Anyway, I'll leave it be and try if it imports without that addition. If
it doesn't, I'll get back on the list & bug tracker.
More information about the fpc-pascal