Einzelnen Beitrag anzeigen

Ghostwalker

Registriert seit: 16. Jun 2003
Ort: Schönwald
1.299 Beiträge
 
Delphi 10.3 Rio
 
#341

AW: himXML (gesprochen himix ML)

  Alt 11. Apr 2018, 04:57
Ja path stimmt, ich bekomme ja auch den Knoten an und für sich. Nur eben mit einer leeren Attributliste.

Beispiel:

Delphi-Quellcode:
path := 'Label1';
xnode := xml[path]
if (xnode <> NIL) then
  writeln(IntToStr(xnode.attributes.count));
Ergibt 0

Delphi-Quellcode:
path := 'Label1\Anchors';
xnode := xml[path]
if (xnode <> NIL) then
  writeln(IntToStr(xnode.attributes.count));
Ergibt 0

Während

  writeln(IntToStr(xml.rootnode.attributes.count)); Ergibt 6
Uwe
e=mc² or energy = milk * coffee²
  Mit Zitat antworten Zitat