fcl-xml compatility (fpc 2.6.1+)

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2479 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
inoussa 2012-07-19 17:23:59 +00:00
parent 471d6294ec
commit 2075b60834

View File

@ -93,7 +93,9 @@ end;
function CreateDoc() : TXMLDocument ;
begin
Result := TXMLDocument.Create();
{$IF ((FPC_VERSION = 2) and (FPC_RELEASE = 6)) }
Result.Encoding := 'UTF-8';
{$IFEND}
end;
function FindNode(ANode : TDOMNode;const ANodeName : string) : TDOMNode;{$IFDEF USE_INLINE}inline;{$ENDIF}