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

203
Views
Estoy tratando de obtener datos del archivo kml usando el objeto dom de nodejs pero obtengo un valor nulo

tratando de obtener datos del archivo kml usando el objeto dom de nodejs. Estoy obteniendo un valor nulo usando este código

 const fs = require("fs"); const jsdom = require("jsdom"); const { JSDOM } = jsdom; const app = express(); const port = process.env.PORT || "8888"; var dom, docu; const libNS = "http://www.opengis.net/kml/2.2"; function loadLibData() { fs.readFile( "./data/library-data.kml", "utf-8", (err, data) => { dom = new JSDOM(data, { contentType: "application/xml" }); docu = dom.window.document; console.log(docu.textContent); } ); }

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!