Einzelnen Beitrag anzeigen

bernhard_LA

Registriert seit: 8. Jun 2009
Ort: Bayern
1.123 Beiträge
 
Delphi 11 Alexandria
 
#1

Verwendung XML databinding wizard

  Alt 27. Feb 2020, 07:58
ich möchte folgende XML Datei mit Delphi Lesen / schreiben, Quelle : http://graphml.graphdrawing.org/prim...ml-primer.html , die XML files beschreiben Graphen.

Delphi-Quellcode:
<?xml version="1.0" encoding="UTF-8"?>
<graphml xmlns="http://graphml.graphdrawing.org/xmlns"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://graphml.graphdrawing.org/xmlns
        http://graphml.graphdrawing.org/xmlns/1.0/graphml.xsd">
  <key id="d0" for="node" attr.name="color" attr.type="string">
    <default>yellow</default>
  </key>
  <key id="d1" for="edge" attr.name="weight" attr.type="double"/>
  <graph id="G" edgedefault="undirected">
    <node id="n0">
      <data key="d0">green</data>
    </node>
    <node id="n1"/>
    <node id="n2">
      <data key="d0">blue</data>
    </node>
    <node id="n3">
      <data key="d0">red</data>
    </node>
    <node id="n4"/>
    ......


    <edge id="e0" source="n0" target="n2">
      <data key="d1">1.0</data>
    </edge>
    <edge id="e1" source="n0" target="n1">
      <data key="d1">1.0</data>
    </edge>
    <edge id="e2" source="n1" target="n3">
      <data key="d1">2.0</data>
    </edge>

    .........
    </edge>
  </graph>
</graphml>


die hier ( https://edn.embarcadero.com/article/34110 ) beschriebenen automatisch erzeugten Klassen, Interfaces via XML Databinding wizard würden mir gefallen, nur leider bekomme ich keinen Delphi Code , meine Schritte

Databinding Wizard starten Menue Databinding Wizard durchlaufen , incl. der Fehlermeldung (siehe die 3 Screen dumps)

Was mache ich falsch ?
Miniaturansicht angehängter Grafiken
xml_databinding.png   xml_databinding2.png   xml_databinding3.png  

Geändert von bernhard_LA (27. Feb 2020 um 12:10 Uhr)
  Mit Zitat antworten Zitat