ah.. problem is here:
var
PassNode: TDOMNode;
Doc: TXMLDocument;
s: string;
begin
ReadXMLFile(Doc, 'test.xml');
PassNode := Doc.DocumentElement.FindNode('name');
s := PassNode.FirstChild.NodeValue;
..
Doc.Free;
end;
No problems with compiling but in program it make "access violation" error.