Autor Beitrag
Computerbabalulu
Hält's aus hier
Beiträge: 2

WinXP Prof
Delphi 7 Prof
BeitragVerfasst: Mi 06.10.04 17:37 
Hallo

Also, ich komme bei folgendem Problem einfach zu keinem Ergebnis:

Ich möchte die Daten aus dem XML File (s. unten) in eine MySQL Tabelle bringen.
Dazu habe ich bisher die Info bekommen, das ich das mit einer Master-Detail Tabelle machen muss!
Allerdings habe ich noch nie mit Master-Detail Tabellen gearbeitet. Für die Verbindung nehme ich die ZEOS komponenten.

Kann mir mal jemand genauer erklären wie ich das machen muss?

Aus dem XML File brauche ich folgende Daten:

>>>Alle Daten einer <order-section> entsprechen einem Kundenauftrag!!<<<

Folgende Daten sind für mich wichtig:

Dealer
Envelope
Linecode >> wenn vorhanden
article
qty


Hier der XML File:

ausblenden volle Höhe Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
<batch-section>
    <machine-id>        1 </machine-id>
    <equipment-type>    2 </equipment-type>
    <pricing-data>      0 </pricing-data>
    <order-section>
      <dealer>  809983  </dealer>
      <envelope>  181828  </envelope>

      <department> 41  </department>

      <global>
    <article>  1740  </article>
      </global>

      <part>
      <linecode>8901</linecode>
      <article-section>
    <article>  2651  </article>
    <qty>    52  </qty>
      </article-section>
      </part>

      <part>
      <linecode>8902</linecode>
      <article-section>
    <article>  2651  </article>
    <qty>    53  </qty>
      </article-section>
      </part>

    </order-section>
    <order-section>
      <dealer>  225909  </dealer>
      <envelope>  182025  </envelope>

      <department> 41  </department>

      <article-section>
    <article>  1701  </article>
    <qty>    3  </qty>
      </article-section>

      <article-section>
    <article>  1740  </article>
    <qty>    1  </qty>
      </article-section>

    </order-section>
    <order-section>
      <dealer>  593315  </dealer>
      <envelope>  181994  </envelope>

      <department> 41  </department>

      <global>
    <article>  1740  </article>
      </global>

      <part>
      <linecode>8901</linecode>
      <article-section>
    <article>  1491  </article>
    <qty>    1  </qty>
      </article-section>
      </part>

      <part>
      <linecode>8902</linecode>
      <article-section>
    <article>  1498  </article>
    <qty>    43  </qty>
      </article-section>
      </part>

      <part>
      <linecode>8903</linecode>
      <article-section>
    <article>  1498  </article>
    <qty>    41  </qty>
      </article-section>
      </part>

      <part>
      <linecode>8904</linecode>
      <article-section>
    <article>  1701  </article>
    <qty>    9  </qty>
      </article-section>
      </part>

    </order-section>
    <order-section>
      <dealer>  474080  </dealer>
      <envelope>  182070  </envelope>

      <department> 41  </department>

      <article-section>
    <article>  1491  </article>
    <qty>    1  </qty>
      </article-section>

      <article-section>
    <article>  1740  </article>
    <qty>    1  </qty>
      </article-section>

    </order-section>
    <order-section>
      <dealer>  226251  </dealer>
      <envelope>  182087  </envelope>

      <department> 41  </department>

      <article-section>
    <article>  1357  </article>
    <qty>    11  </qty>
      </article-section>

      <article-section>
    <article>  1149  </article>
    <qty>    1  </qty>
      </article-section>

    </order-section>
   
</batch-section>


Gruß Frank
Computerbabalulu Threadstarter
Hält's aus hier
Beiträge: 2

WinXP Prof
Delphi 7 Prof
BeitragVerfasst: Do 07.10.04 23:30 
:flehan: *malnachvorneschieb*

_________________
Geld macht nicht glücklich.... aber ich weine lieber im Taxi als im Bus!