ich steh grad ein wenig auf der Leitung, ich soll eine XML-Datei importieren mit folgendem Aufbau:
- Code: Alles auswählen
<?xml version="1.0" encoding="UTF-16" standalone="no"?>
<Parts>
<Part>
<Properties>
<PartProperty PropertyIndex="1">EPLAN11001</PartProperty>
<PartProperty PropertyIndex="2"/>
<PartProperty PropertyIndex="3">SIEMENS ASI-Slave Montageplatte 3RK1901-0CA00</PartProperty>
<PartProperty PropertyIndex="4"/>
<PartProperty PropertyIndex="5"/>
<PartProperty PropertyIndex="6">Kompaktmodul</PartProperty>
<PartProperty PropertyIndex="7"/>
<PartProperty PropertyIndex="8"/>
<PartProperty PropertyIndex="9"/>
<PartProperty PropertyIndex="10"/>
<PartProperty PropertyIndex="11"/>
<PartProperty PropertyIndex="12">0.071</PartProperty>
<PartProperty PropertyIndex="13">0</PartProperty>
<PartProperty PropertyIndex="14">E</PartProperty>
<PartProperty PropertyIndex="15"/>
<PartProperty PropertyIndex="16"/>
<PartProperty PropertyIndex="17"/>
<PartProperty PropertyIndex="18">131422</PartProperty>
</Properties>
</Part>
</Parts>
Mein XML-Port sieht so aus:
- Code: Alles auswählen
Node Name Node Type Source Type Data Source
Parts Element Text <Parts>
Part Element Text <Part>
Properties Element Table <Item Request Line>(Item Request Line)
PartProperty Element Field Item Request Line::SOURCE ITEM NO
PropertyIndex Attribute Text 1
PartProperty Element Field Item Request Line::ITEM NO
PropertyIndex Attribute Text 2
PartProperty Element Field Item Request Line::DESCRIPTION
PropertyIndex Attribute Text 3
PartProperty Element Field Item Request Line::DESCRIPTION (EN)
PropertyIndex Attribute Text 4
Beim Versuch die Datei zu importieren erhalte ich die Fehlermeldung "das Element PartProperty liegt mehrfach vor.
Ich hab schon lange keine XML-Ports mehr erstellt, war aber der Ansicht dass die Knoten in NAV genauso wie die Tags benannt werden mĂĽssen, oder?
Danke fĂĽr UnterstĂĽtzung
Viele GrĂĽĂźe,
Matthias