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

141
Views
JavaScript convert XML RAW Mode from SQL Server to array of objects

This post is hidden. You deleted this post 6 mins ago. I have data stored in SQL server in XML format. The query returns:

<row foo1="foo11" foo2="foo12" foo3="foo13" />
<row foo1="foo21" foo2="foo22" foo3="foo23" />
<row foo1="foo31" foo2="foo32" foo3="foo33" />

I need to convert it to a array of objects on Javascript.

[{foo1: 'foo11', foo2: 'foo12', foo3:'foo13'},
{foo1: 'foo21', foo2: 'foo22', foo3:'foo23'},
{foo1: 'foo31', foo2: 'foo32', foo3:'foo33'}].

I tried to use xml2js, and XML Parser both only returning first row and not in a format i need.

about 4 years ago · Santiago Gelvez
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!