Einzelnen Beitrag anzeigen

Benutzerbild von MyRealName
MyRealName

Registriert seit: 19. Okt 2003
Ort: Heilbronn
673 Beiträge
 
Delphi 10.4 Sydney
 
#5

AW: XML Daten lesen

  Alt 3. Sep 2018, 01:46
Bin mal wieder auf einen Stolperstein gestossen, ein anderes XML, welches ich vom Provider bekomme, nutzt Prefixe, mit denen habe ich auch noch nichts gemacht :

Code:
<?xml version="1.0" encoding="utf-8"?>
<fe:Invoice xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:qdt="urn:oasis:names:specification:ubl:schema:xsd:QualifiedDatatypes-2" xmlns:clmIANAMIMEMediaType="urn:un:unece:uncefact:codelist:specification:IANAMIMEMediaType:2003" xmlns:sts="http://www.dian.gov.co/contratos/facturaelectronica/v1/Structures" xmlns:udt="urn:un:unece:uncefact:data:specification:UnqualifiedDataTypesSchemaModule:2" xmlns:sac="urn:sunat:names:specification:ubl:peru:schema:xsd:SunatAggregateComponents-1" xmlns:ccts="urn:un:unece:uncefact:documentation:2" xmlns="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2" xmlns:clm54217="urn:un:unece:uncefact:codelist:specification:54217:2001" xmlns:clm66411="urn:un:unece:uncefact:codelist:specification:66411:2001" xmlns:ext="urn:oasis:names:specification:ubl:schema:xsd:CommonExtensionComponents-2" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:fe="http://www.dian.gov.co/contratos/facturaelectronica/v1">
   <cbc:UBLVersionID>UBL 2.0</cbc:UBLVersionID>
   <cbc:ProfileID>DIAN 1.0</cbc:ProfileID>
   <cbc:ID>PRUE980020032</cbc:ID>
   <cbc:UUID schemeAgencyID="195" schemeAgencyName="CO, DIAN (Direccion de Impuestos y Aduanas Nacionales)">50d62edcf4d0d41125ce62527802a1e8b5ac2fa9</cbc:UUID>
</fe:Invoice>
Das XML ist noch etwas länger, ich habe es mal gekürzt.

ich versuche an den Wert der UUID (50d62edcf4d0d41125ce62527802a1e8b5ac2fa9) zu kommen, aber egal, welchen Pfad ich nutze ('//Invoice/UUID' oder '//fe:Invoice/cbc:UUID'), es wirds nicht gefunden
  Mit Zitat antworten Zitat