(* Collection of code snippets by Arne Vajhøj *)
(* (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) *)
program xml;

{$APPTYPE CONSOLE}

uses
  SysUtils, XMLDoc, XMLDom, ActiveX;

var
  doc : TXMLDocument;
  pris : string;

begin
  CoInitialize(nil);
  doc := TXMLDocument.Create(nil);
  doc.LoadFromFile('C:\d.xml');
  pris := (doc.DOMDocument As IDOMNodeSelect).selectNode('//tshirt/pris[@size="large"]/text()').nodeValue;
  CoUnInitialize;
  writeln(pris);
  readln;
end.
