Thema: XML Attribut

Einzelnen Beitrag anzeigen

value is NULL

Registriert seit: 10. Sep 2010
249 Beiträge
 
#6

AW: XML Attribut

  Alt 15. Mär 2011, 13:19
Das schaut ganz gut aus! wenn ich jetzt aber versuche mir "hw" vom type=ACCMgr auszugeben bekomme ich eine Zugriffsverletzung

Delphi-Quellcode:
  try
    CoInitialize(nil);
    xml := LoadXMLDocument('C:\voxtronic\voxct_v3\bin\test.xml');
    acc := xml.DocumentElement.ChildNodes.FindNode('domain\site\module[@type=ACCMgr]');
    index := acc.ChildNodes.First.Text;
    debug('HW : '+index);

  except
    on E: Exception do
      Writeln(E.ClassName, ': ', E.Message);
  end;
end.
LG
  Mit Zitat antworten Zitat