Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

198
Views
obteniendo el elemento xml en nodejs con dos puntos en el xml

Traté de obtener el elemento xml del archivo xml usando la biblioteca xml-js en nodejs. pero cuando traté de obtener el elemento dentro del xml que tiene dos puntos como este código a continuación, no puedo obtener el elemento

 <gml:boundedBy> <gml:Enve srsDimension="3" srsName="EPSG:31467"> </gml:Enve> </gml:boundedBy>

y este es el código javascript que uso

 const convert = require('xml-js'); const fs = require('fs'); // read file const xmlFile = fs.readFileSync('georef.xml', 'utf8'); // parse xml file as a json object const jsonData = JSON.parse(convert.xml2json(xmlFile, {compact: true, spaces: 2})); const targetNode = jsonData.['gml:boundedBy'].['gml:Enve'] console.log(targetNode._attributes.srsName); // outputs: 2

y obtuve este código arriba de este enlace

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!