Benutzung von HImportXML
Verfasst: 24. Februar 2017, 14:02
Liebe Windev Benutzer, ich versuche mit hIMportXML einige Daten in's windev zu bekommen, werde aber nicht aus der Doku schlaue
Hier mein XML
Nun gibt es den root Parameter nur
Node of the XML file from which the import will be performed. Used to import a section of the XML file into the HFSQL data file. The type of this parameter is "root/clients".
Ich habe es mit FormatDescript/Fields Versucht nur mit Fields und was weiß ich noch. Was funktioniert ist
<level1>
<level2>
<tag></tag>
Dann werden die Elemente importiert nur in diesem Fall für das was in Format steht ein Record mit den Standardwerten.
Was ich will ist klar ich möchte Was innerhalb "<Field> steht importieren.
Hier mein XML
Code: Alles auswählen
<?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?>
<FormatDescription>
<Format>
<FormatId></FormatId>
<Description></Description>
<Name></Name>
<StandardType></StandardType>
<Importable></Importable>
<Exportable></Exportable>
<DataCategory></DataCategory>
<GroupSeperator />
<DecimalSeperator>,</DecimalSeperator>
<DateFormatExpression>TTMM</DateFormatExpression>
<DateFormatSeperator />
<CurrencySignExpression />
<DirectoryName />
<FileName />
<Version></Version>
<IsDefaultFormat></IsDefaultFormat>
<DataExtendedZone></DataExtendedZone>
</Format>
<Field>
<FieldId>1</FieldId>
<DisplayGroupId>106</DisplayGroupId>
<OrdinalNumber>0</OrdinalNumber>
<Label>DATEV-Format-KZ</Label>
<LabelAlias />
<Importable>1</Importable>
<Exportable>1</Exportable>
<Length>4</Length>
<DecimalPlaces>0</DecimalPlaces>
<FormatType>Text</FormatType>
<Necessary>1</Necessary>
<IsFormatable>0</IsFormatable>
<DecimalsEditable>0</DecimalsEditable>
<GroupingSymbol>1</GroupingSymbol>
<CreditDebitSign>0</CreditDebitSign>
<BaseFieldId>351</BaseFieldId>
<FixedLength>4</FixedLength>
<AddCreditDebitSign>0</AddCreditDebitSign>
<MaxCount>0</MaxCount>
</Field>
<Field>
<FieldId>2</FieldId>
<DisplayGroupId>106</DisplayGroupId>
<OrdinalNumber>1</OrdinalNumber>
<Label>Versionsnummer</Label>
<LabelAlias />
<Importable>1</Importable>
<Exportable>1</Exportable>
<Length>3</Length>
<DecimalPlaces>0</DecimalPlaces>
<FormatType>Zahl</FormatType>
<Necessary>1</Necessary>
<IsFormatable>0</IsFormatable>
<DecimalsEditable>0</DecimalsEditable>
<GroupingSymbol>0</GroupingSymbol>
<CreditDebitSign>0</CreditDebitSign>
<BaseFieldId>352</BaseFieldId>
<FixedLength>1</FixedLength>
<AddCreditDebitSign>0</AddCreditDebitSign>
<MaxCount>0</MaxCount>
</Field>
</FormatDescription>
Nun gibt es den root Parameter nur
Node of the XML file from which the import will be performed. Used to import a section of the XML file into the HFSQL data file. The type of this parameter is "root/clients".
Ich habe es mit FormatDescript/Fields Versucht nur mit Fields und was weiß ich noch. Was funktioniert ist
<level1>
<level2>
<tag></tag>
Dann werden die Elemente importiert nur in diesem Fall für das was in Format steht ein Record mit den Standardwerten.
Was ich will ist klar ich möchte Was innerhalb "<Field> steht importieren.