Skip to content

Conversation

@dddwwwbbb
Copy link

@dddwwwbbb dddwwwbbb commented Aug 6, 2025

Updated several .html documentation files to fix code examples that incorrectly called TNativeXml.Create without a parameter which would cause error E2035: Not enough actual parameters on the Create. The NativeXml.pas constructor Create(AOwner: TComponent) requires one so nil was passed. Note that Create suppresses the first line header (version, encoding) of a saved xml file versus CreateName('Root'). Fix 000063.html code to match file.

Create to Create(nil) per NativeXml.pas constructor Create(AOwner: TComponent)
Create to Create(nil) per NativeXml.pas constructor Create(AOwner: TComponent)
Create to Create(nil) per NativeXml.pas constructor Create(AOwner: TComponent)
Create to Create(nil) per NativeXml.pas constructor Create(AOwner: TComponent)
Default encoding="utf-8" but example .xml file shows encoding="windows-1252". Set Charset accordingly, analogous to ExternalEncoding := seAnsi; ExternalCodepage := 1252;.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant