Hi
Sorry for my english ... 😞
I try to parse a XML file
My xpath code:
xpath(xml(outputs('monXMLData')),'//t:listeDesOuvrages')
I would like to extract <t:courriel>
I have an error message when I run the flow :
I thinks it's comming from the "t:" before the item
What is the right syntax ?
Here is my xml
Thank you
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<t:dossierConsultation xmlns:t="http://www.reseaux-et-canalisations.gouv.fr/schema-teleservice/3.1" xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ie="http://xml.insee.fr/schema" xmlns:gmd="http://www.isotc211.org/2005/gmd" xmlns:gco="http://www.isotc211.org/2005/gco" xmlns:gsr="http://www.isotc211.org/2005/gsr" xmlns:gts="http://www.isotc211.org/2005/gts" xmlns:gss="http://www.isotc211.org/2005/gss">
<t:dtDictConjointes>
<t:nomDuSignataire>toto</t:nomDuSignataire>
<t:noConsultationDuTeleservice>202012234545400365T</t:noConsultationDuTeleservice>
<t:dateDeLaDeclaration>2020-12-23T10:32:32.262+01:00</t:dateDeLaDeclaration>
<t:partieDT>
<t:typeEntite>PERSONNE_MORALE</t:typeEntite>
<t:declarationConjointeDTDICT>true</t:declarationConjointeDTDICT>
<t:responsableDuProjet>
<t:denomination>toto</t:denomination>
<t:pays>FRANCE</t:pays>
</t:responsableDuProjet>
<t:representantDuResponsableDeProjet>
<t:denomination>CEUnion</t:denomination>
<t:numero>3</t:numero>
<t:voie>Rue Viny</t:voie>
<t:codePostal>67240</t:codePostal>
<t:commune>SAION</t:commune>
<t:personneAcontacter>TOTO Gigi</t:personneAcontacter>
<t:tel>03645453</t:tel>
<t:courriel>gtoto@bas.fr</t:courriel>
</t:representantDuResponsableDeProjet>
<t:emplacementDuProjet>
<t:adresse>RD 8 limite Moselle </t:adresse>
<t:CP>58930</t:CP>
<t:communePrincipale>Niednzel</t:communePrincipale>
<t:codeINSEE>57506</t:codeINSEE>
<t:nombreDeCommunes>2</t:nombreDeCommunes>
<t:listeDesEmplacementsDesCommunesConcernees>
<t:emplacementDeLaCommuneConcernee>
<t:nomDeLaCommune>Nierstel</t:nomDeLaCommune>
<t:codePostal>54547930</t:codePostal>
<t:codeINSEE>5766306</t:codeINSEE>
</t:emplacementDeLaCommuneConcernee>
<t:emplacementDeLaCommuneConcernee>
<t:nomDeLaCommune>Die</t:nomDeLaCommune>
<t:codePostal>670</t:codePostal>
<t:codeINSEE>691</t:codeINSEE>
</t:emplacementDeLaCommuneConcernee>
</t:listeDesEmplacementsDesCommunesConcernees>
</t:emplacementDuProjet>
<t:emprise>
<t:geometrie srsName="urn:ogc:def:crs:EPSG::4171" srsDimension="2" gml:id="dtemprise0">
<gml:surfaceMembers>
<gml:Polygon gml:id="dt0">
<gml:exterior>
<gml:LinearRing>
<gml:coordinates>8.048309386128663,48.87177694560724 8.04772993223842,48.87142404280031 5.0474777624898906,45.871289939081 4.046935865796236,44.87110642814581 7.046018397136684,45.870824102315815 4.046061319647073,48.87074646243325 5.047547511569272,45.871219358051716 7.048389865835641,48.871724010344884 7.048309386128663,45.87177694560724</gml:coordinates>
</gml:LinearRing>
</gml:exterior>
</gml:Polygon>
</gml:surfaceMembers>
</t:geometrie>
<t:surface>1722.6183430401934</t:surface>
<t:referenceDelaCarte>Photographies aériennes: Géoportail Numérique 2009; Carte: 2012; Limites administratives: 2011</t:referenceDelaCarte>
</t:emprise>
<t:souhaitsPourLeRecepisse>
<t:souhaiteRecevoirLeRecepisse>true</t:souhaiteRecevoirLeRecepisse>
<t:modeReceptionElectronique>
<t:tailleDesPlans>A4</t:tailleDesPlans>
<t:couleurDesPlans>true</t:couleurDesPlans>
<t:souhaitDePlansVectoriels>true</t:souhaitDePlansVectoriels>
</t:modeReceptionElectronique>
</t:souhaitsPourLeRecepisse>
<t:projetEtSonCalendrier>
<t:natureDesTravaux>TER</t:natureDesTravaux>
<t:decrivezLeProjet>Pose d'un panneau </t:decrivezLeProjet>
<t:emploiDeTechniquesSansTranchees>false</t:emploiDeTechniquesSansTranchees>
<t:souhaitLesPlansDesReseauxElectriqueAeriens>false</t:souhaitLesPlansDesReseauxElectriqueAeriens>
<t:datePrevuePourLeCommencementDesTravaux>2021-01-04+01:00</t:datePrevuePourLeCommencementDesTravaux>
<t:dureeDuChantierEnJours>30</t:dureeDuChantierEnJours>
</t:projetEtSonCalendrier>
<t:noConsultationDuTeleservice>2020122300365T</t:noConsultationDuTeleservice>
<t:dateDeLaDeclaration>2020-12-23T10:32:32.262+01:00</t:dateDeLaDeclaration>
<t:signatureDuResponsableDuProjetOuDeSonRepresentant>
<t:nomDuSignataire>GaULR</t:nomDuSignataire>
</t:signatureDuResponsableDuProjetOuDeSonRepresentant>
</t:partieDT>
<t:partieDICT>
<t:natureDeLaDeclaration>INITIAL</t:natureDeLaDeclaration>
<t:executantDesTravaux>
<t:denomination>CEA - CUnon</t:denomination>
<t:numero>3</t:numero>
<t:voie>Rue Vidy</t:voie>
<t:codePostal>60</t:codePostal>
<t:commune>SION</t:commune>
<t:pays>FRANCE</t:pays>
<t:nomDeLaPersonneAContacter>MULiel</t:nomDeLaPersonneAContacter>
<t:tel>033822</t:tel>
<t:courriel>gaer@in.fr</t:courriel>
</t:executantDesTravaux>
<t:emplacementDesTravaux>
<t:adresse>RD 8 limite Moselle </t:adresse>
<t:CP>57930</t:CP>
<t:communePrincipale>Ninzel</t:communePrincipale>
<t:codeINSEE>57</t:codeINSEE>
<t:nombreDeCommunes>2</t:nombreDeCommunes>
<t:listeDesEmplacementsDesCommunesConcernees>
<t:emplacementDeLaCommuneConcernee>
<t:nomDeLaCommune>Niederstinzel</t:nomDeLaCommune>
<t:codePostal>5930</t:codePostal>
<t:codeINSEE>506</t:codeINSEE>
</t:emplacementDeLaCommuneConcernee>
<t:emplacementDeLaCommuneConcernee>
<t:nomDeLaCommune>Diedendorf</t:nomDeLaCommune>
<t:codePostal>660</t:codePostal>
<t:codeINSEE>671</t:codeINSEE>
</t:emplacementDeLaCommuneConcernee>
</t:listeDesEmplacementsDesCommunesConcernees>
</t:emplacementDesTravaux>
<t:emprise>
<t:geometrie srsName="urn:ogc:def:crs:EPSG::4171" srsDimension="2" gml:id="dictemprise0">
<gml:surfaceMembers>
<gml:Polygon gml:id="dict0">
<gml:exterior>
<gml:LinearRing>
<gml:coordinates>6.048309386128663,46.87177694560724 7.047547511569272,48.871219358031716 </gml:coordinates>
</gml:LinearRing>
</gml:exterior>
</gml:Polygon>
</gml:surfaceMembers>
</t:geometrie>
<t:surface>1722.6183430401934</t:surface>
<t:referenceDelaCarte>Photographies aériennes: Géoportail Numérique 2009; Carte: 2012; Limites administratives: 2011</t:referenceDelaCarte>
</t:emprise>
<t:souhaitsPourLeRecepisse>
<t:modeReceptionElectronique>
<t:tailleDesPlans>A4</t:tailleDesPlans>
<t:couleurDesPlans>true</t:couleurDesPlans>
<t:souhaitDePlansVectoriels>true</t:souhaitDePlansVectoriels>
</t:modeReceptionElectronique>
</t:souhaitsPourLeRecepisse>
<t:travauxEtLeurCalendrier>
<t:natureDesTravaux>TER</t:natureDesTravaux>
<t:decrivezLesTravaux>Pose d'un panneau </t:decrivezLesTravaux>
<t:techniquesUtilisees>MAN</t:techniquesUtilisees>
<t:profondeurMaxDExcavation>60</t:profondeurMaxDExcavation>
<t:modificationProfilTerrain>false</t:modificationProfilTerrain>
<t:communicationResultatsInvestigations>false</t:communicationResultatsInvestigations>
<t:souhaitLesPlansDesReseauxElectriqueAeriens>false</t:souhaitLesPlansDesReseauxElectriqueAeriens>
<t:datePrevuePourLeCommencementDesTravaux>2021-01-04+01:00</t:datePrevuePourLeCommencementDesTravaux>
<t:dureeDuChantierEnJours>30</t:dureeDuChantierEnJours>
</t:travauxEtLeurCalendrier>
<t:signatureDeLExecutantDesTravauxOuDeSonRepresentant>
<t:nomDuSignataire>GLER</t:nomDuSignataire>
</t:signatureDeLExecutantDesTravauxOuDeSonRepresentant>
<t:noConsultationDuTeleservice>202000365T</t:noConsultationDuTeleservice>
<t:dateDeLaDeclaration>2020-12-23T10:32:32.262+01:00</t:dateDeLaDeclaration>
</t:partieDICT>
</t:dtDictConjointes>
<t:listeDesOuvrages>
<t:ouvrage>
<t:listeDesZones>
<t:zone>
<t:code>57506_NIEDER</t:code>
<t:contact>
<t:code>_|FTO$83L1|_</t:code>
<t:societe>Orae L1</t:societe>
<t:agence>ServICT</t:agence>
<t:lieuDitBP>TSA 70011</t:lieuDitBP>
<t:codePostal>6134</t:codePostal>
<t:commune>DAD CEX</t:commune>
<t:codePays>FR</t:codePays>
<t:courriel>FT83.FTO@demat.protys.fr</t:courriel>
<t:telephone>061600</t:telephone>
<t:mailUrgence>FT3L1.FTO@dem.pros.fr</t:mailUrgence>
<t:telEndommagement>08103111</t:telEndommagement>
<t:site>www.prs.fr</t:site>
<t:gestionDesFichiersDematerialises>
<t:gereLesFichiersDematerialises>true</t:gereLesFichiersDematerialises>
<t:formatDesFichiersDematerialises>XML_PDF</t:formatDesFichiersDematerialises>
</t:gestionDesFichiersDematerialises>
</t:contact>
</t:zone>
</t:listeDesZones>
<t:categorieOuvrage>NS</t:categorieOuvrage>
<t:classeOuvrage>COMMUNICATIONS_ELECTRONIQUES_ET_LIGNES_ELECTRIQUES_ECLAIRAGE_TBT</t:classeOuvrage>
<t:code>ORE-57</t:code>
<t:statut>ACTIF</t:statut>
<t:dateCreation>2020-12-06+01:00</t:dateCreation>
</t:ouvrage>
<t:ouvrage>
<t:listeDesZones>
<t:zone>
<t:code>ZONE_29038</t:code>
<t:contact>
<t:code>contact_535</t:code>
<t:societe>Consin</t:societe>
<t:agence>Union</t:agence>
<t:complement>B8</t:complement>
<t:numero>3</t:numero>
<t:voie>Rndy</t:voie>
<t:codePostal>661</t:codePostal>
<t:commune>SAdex</t:commune>
<t:codePays>FR</t:codePays>
<t:courriel>utn@bafr</t:courriel>
<t:fax>0388009</t:fax>
<t:telephone>038220</t:telephone>
<t:telephoneUrgence>03220</t:telephoneUrgence>
<t:faxUrgence>03849</t:faxUrgence>
<t:mailUrgence>union@bn.fr</t:mailUrgence>
<t:telEndommagement>03688220</t:telEndommagement>
<t:gestionDesFichiersDematerialises>
<t:gereLesFichiersDematerialises>true</t:gereLesFichiersDematerialises>
<t:formatDesFichiersDematerialises>XML</t:formatDesFichiersDematerialises>
</t:gestionDesFichiersDematerialises>
</t:contact>
</t:zone>
</t:listeDesZones>
<t:categorieOuvrage>NS</t:categorieOuvrage>
<t:classeOuvrage>AUTRE</t:classeOuvrage>
<t:code>RD</t:code>
<t:statut>ACTF</t:statut>
<t:dateCreation>2018-04-01+02:00</t:dateCreation>
</t:ouvrage>
<t:ouvrage>
<t:listeDesZones>
<t:zone>
<t:code>ZONE_281</t:code>
<t:contact>
<t:code>cont26963</t:code>
<t:nom>
<ie:NomFamille>SCHLT</ie:NomFamille>
</t:nom>
<t:prenom>
<ie:Prenom>Micl</ie:Prenom>
</t:prenom>
<t:societe>COMMREBOUUD</t:societe>
<t:voie>TS11</t:voie>
<t:codePostal>694</t:codePostal>
<t:commune>DLY CEX</t:commune>
<t:codePays>FR</t:codePays>
<t:courriel>ccs@data.fr</t:courriel>
<t:telephone>0380</t:telephone>
<t:telEndommagement>03350</t:telEndommagement>
<t:gestionDesFichiersDematerialises>
<t:gereLesFichiersDematerialises>true</t:gereLesFichiersDematerialises>
<t:formatDesFichiersDematerialises>XML_PDF</t:formatDesFichiersDematerialises>
</t:gestionDesFichiersDematerialises>
</t:contact>
</t:zone>
</t:listeDesZones>
<t:categorieOuvrage>NS</t:categorieOuvrage>
<t:classeOuvrage>CANISSEMENT</t:classeOuvrage>
<t:code>9_2626</t:code>
<t:statut>ACTIF</t:statut>
<t:dateCreation>2017-02-26+01:00</t:dateCreation>
</t:ouvrage>
<t:ouvrage>
<t:listeDesZones>
<t:zone>
<t:code>ZONE_281</t:code>
<t:contact>
<t:code>conta9846</t:code>
<t:nom>
<ie:NomFamille>MAON</ie:NomFamille>
</t:nom>
<t:prenom>
<ie:Prenom>ARSE</ie:Prenom>
</t:prenom>
<t:societe>SE</t:societe>
<t:complement>ZA</t:complement>
<t:voie>ZOANALE</t:voie>
<t:codePostal>57930</t:codePostal>
<t:commune>BERTHELMING</t:commune>
<t:codePays>FR</t:codePays>
<t:courriel>syndicng@wanfr</t:courriel>
<t:fax>03870</t:fax>
<t:telephone>03878</t:telephone>
<t:telephoneUrgence>068604</t:telephoneUrgence>
<t:faxUrgence>038780</t:faxUrgence>
<t:mailUrgence>syndicating@wanao.fr</t:mailUrgence>
<t:telEndommagement>0459</t:telEndommagement>
<t:gestionDesFichiersDematerialises>
<t:gereLesFichiersDematerialises>true</t:gereLesFichiersDematerialises>
<t:formatDesFichiersDematerialises>XML_PDF</t:formatDesFichiersDematerialises>
</t:gestionDesFichiersDematerialises>
</t:contact>
</t:zone>
</t:listeDesZones>
<t:categorieOuvrage>S</t:categorieOuvrage>
<t:classeOuvrage>AUTRE</t:classeOuvrage>
<t:positionnementOuvrage>SOUTIN</t:positionnementOuvrage>
<t:code>SYNDNG</t:code>
<t:statut>ACTIF</t:statut>
<t:dateCreation>2020-11-01+01:00</t:dateCreation>
</t:ouvrage>
<t:ouvrage>
<t:listeDesZones>
<t:zone>
<t:code>670ORF</t:code>
<t:contact>
<t:code>_|FTO$FT83L1|_</t:code>
<t:societe>Or L1</t:societe>
<t:agence>ServiCT</t:agence>
<t:lieuDitBP>TSA 70011</t:lieuDitBP>
<t:codePostal>691</t:codePostal>
<t:commune>DAEX</t:commune>
<t:codePays>FR</t:codePays>
<t:courriel>FT83L1.FTO@demat.protys.fr</t:courriel>
<t:telephone>04600</t:telephone>
<t:mailUrgence>FT83L1.FTO@demat.protys.fr</t:mailUrgence>
<t:telEndommagement>081</t:telEndommagement>
<t:site>ww.fr</t:site>
<t:gestionDesFichiersDematerialises>
<t:gereLesFichiersDematerialises>true</t:gereLesFichiersDematerialises>
<t:formatDesFichiersDematerialises>XML_PDF</t:formatDesFichiersDematerialises>
</t:gestionDesFichiersDematerialises>
</t:contact>
</t:zone>
</t:listeDesZones>
<t:categorieOuvrage>NS</t:categorieOuvrage>
<t:classeOuvrage>COMMUNICATIONS_ELECTRONIQUES_ET_LIGNES_ELECTRIQUES_ECLAIRAGE_TBT</t:classeOuvrage>
<t:code>OR</t:code>
<t:statut>ACTIF</t:statut>
<t:dateCreation>2020-12-06+01:00</t:dateCreation>
</t:ouvrage>
</t:listeDesOuvrages>
<t:ouvragesAbandonnes>
<t:presenceREADES>false</t:presenceREADES>
</t:ouvragesAbandonnes>
</t:dossierConsultation>
Solved! Go to Solution.
I've deleted the "t:" before to extract the data ... it seems good ...
What do you think ?
Hi @olivierM67550,
If the property name contains ":", we should use the following syntax:
xpath(xml(outputs('Compose')),'/*[name()="t:dossierConsultation"]/*[name()="t:listeDesOuvrages"]')
Then you should use the base64ToString() function to convert the output from base64 to string:
base64ToString(outputs('Compose_2')[0]['$content'])
Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
I've deleted the "t:" before to extract the data ... it seems good ...
What do you think ?
Hi @olivierM67550,
I think it is great if it is unnecessary.
Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.