fast-xml-parser icon indicating copy to clipboard operation
fast-xml-parser copied to clipboard

Some properties are wiped

Open kylemh opened this issue 1 year ago • 5 comments

  • [X] Are you running the latest version?
  • [X] Have you included sample input, output, error, and expected output?
  • [X] Have you checked if you are using correct configuration?
  • [X] Did you try online tool?

Description

Input

https://operationcode.libsyn.com/rss

Code

const { data } = await axios.get('https://operationcode.libsyn.com/rss');

const xmlParser = new XMLParser();

const { rss } = xmlParser.parse(data, {
    ignoreNameSpace: true,
    ignoreAttributes: false,
    attributeNamePrefix: '',
});

console.log(rss.channel.item);

Output

**rss.channel.item (as JS)**
[
{
  title: 'Karla Gil, JavaScript programmer',
  pubDate: 'Wed, 26 Feb 2020 17:32:03 +0000',
  guid: '3b18d6bce25b79e3f0283cc72c26b8cc',
  link: 'https://traffic.libsyn.com/secure/operationcode/Karla.mp3',
  'itunes:image': '',
  description: "<p>She was always attracted to coding and pursued her interest while still in the service. Upon getting out, she went to the General Assembly coding school. She spent a year helping someone with their website and then landed a job at a startup in Des Moines, Iowa, which has a worker-safety system, with a badge that workers wear and a cloud service. Karla has a lot to say about resilience, self-confidence, and under-promising and over-delivering. Her story should be an inspiration to anyone who thinks they'd like to get into software but isn't sure they can do it. She did it and maybe you can, too!</p>",
  'content:encoded': "<p>She was always attracted to coding and pursued her interest while still in the service. Upon getting out, she went to the General Assembly coding school. She spent a year helping someone with their website and then landed a job at a startup in Des Moines, Iowa, which has a worker-safety system, with a badge that workers wear and a cloud service. Karla has a lot to say about resilience, self-confidence, and under-promising and over-delivering. Her story should be an inspiration to anyone who thinks they'd like to get into software but isn't sure they can do it. She did it and maybe you can, too!</p>",
  enclosure: '',
  'itunes:duration': '23:30',
  'itunes:explicit': false,
  'itunes:keywords': '',
  'itunes:subtitle': 'She was always attracted to coding and pursued her interest while still in the service. Upon getting out, she went to the General Assembly coding school. She spent a year helping someone with their website and then landed a job at a startup in Des...',
  'itunes:episodeType': 'full'
},
{
  title: 'Vincent Abruzzo, Marine',
  pubDate: 'Tue, 04 Feb 2020 17:39:43 +0000',
  guid: '1ca9ac736e4895703d23c9e216b2efba',
  link: 'https://traffic.libsyn.com/secure/operationcode/Vincent.mp3',
  'itunes:image': '',
  description: '<p>Vincent started programming in the mid-90s when he stumbled across AOL punters and similar tools. At the age of 18, he joined the Marine Corps. His specialty for the Corps was "data network specialist." Vincent spent time in Bahrain and Djibouti, Africa, where he won a Navy and Marine Corps achievement medal for building the first defense message system network in the field. He was honorably discharged at the rank of Sergeant after 4 years. After being discharged Vincent pursued a career in academia. He was awarded a Master’s degree in 2012 in philosophy and cognitive science and went on to a Ph.D. program at UMass, Amherst where he taught philosophy classes and did research for his dissertation. He decided to leave academia in 2015 and return to programming professionally. Since returning to programming he has worked as a software engineer and lead instructor for the General Assembly web development immersive course and the React part-time course. He is now a senior software engineer at First Look Media. He loves to teach and spends a lot of time in the Operation Code Slack channels where he sometimes mentors. He also volunteers for Codebar, Code Nation, and Back On My Feet, where he exercises with homeless veterans and will be headed to Puerto Rico in March to help with disaster relief with All Hearts All Hands.</p>',
  'content:encoded': '<p>Vincent started programming in the mid-90s when he stumbled across AOL punters and similar tools. At the age of 18, he joined the Marine Corps. His specialty for the Corps was "data network specialist." Vincent spent time in Bahrain and Djibouti, Africa, where he won a Navy and Marine Corps achievement medal for building the first defense message system network in the field. He was honorably discharged at the rank of Sergeant after 4 years. After being discharged Vincent pursued a career in academia. He was awarded a Master’s degree in 2012 in philosophy and cognitive science and went on to a Ph.D. program at UMass, Amherst where he taught philosophy classes and did research for his dissertation. He decided to leave academia in 2015 and return to programming professionally. Since returning to programming he has worked as a software engineer and lead instructor for the General Assembly web development immersive course and the React part-time course. He is now a senior software engineer at First Look Media. He loves to teach and spends a lot of time in the Operation Code Slack channels where he sometimes mentors. He also volunteers for Codebar, Code Nation, and Back On My Feet, where he exercises with homeless veterans and will be headed to Puerto Rico in March to help with disaster relief with All Hearts All Hands.</p>',
  enclosure: '',
  'itunes:duration': '22:32',
  'itunes:explicit': false,
  'itunes:keywords': '',
  'itunes:subtitle': 'Vincent started programming in the mid-90s when he stumbled across AOL punters and similar tools. At the age of 18, he joined the Marine Corps. His specialty for the Corps was "data network specialist." Vincent spent time in Bahrain and Djibouti,...',
  'itunes:episodeType': 'full'
},
{
  title: 'Ali Taylor-Cipolla',
  pubDate: 'Mon, 13 Jan 2020 23:47:27 +0000',
  guid: '328995eda07afc7ee0a81e5dfbdf2499',
  link: 'https://traffic.libsyn.com/secure/operationcode/Ali.mp3',
  'itunes:image': '',
  description: "<p>Ali Taylor-Cipolla is married to an Air Force vet of 14 years. Among her jobs prior to studying at the Microsoft Military Spouse Training Academy, Ali was the head chef at a fraternity at Mississippi State University, and a cook at a Popeye's on a military base in Germany. She and her future husband drove from London to Ulan Bator in Mongolia, which is 10,000 miles, in a $500 car. She's now learning the Microsoft cloud infrastructure and graduates very soon.</p>",
  'content:encoded': "<p>Ali Taylor-Cipolla is married to an Air Force vet of 14 years. Among her jobs prior to studying at the Microsoft Military Spouse Training Academy, Ali was the head chef at a fraternity at Mississippi State University, and a cook at a Popeye's on a military base in Germany. She and her future husband drove from London to Ulan Bator in Mongolia, which is 10,000 miles, in a $500 car. She's now learning the Microsoft cloud infrastructure and graduates very soon.</p>",
  enclosure: '',
  'itunes:duration': '29:00',
  'itunes:explicit': false,
  'itunes:keywords': '',
  'itunes:subtitle': "Ali Taylor-Cipolla is married to an Air Force vet of 14 years. Among her jobs prior to studying at the Microsoft Military Spouse Training Academy, Ali was the head chef at a fraternity at Mississippi State University, and a cook at a Popeye's on a...",
  'itunes:episodeType': 'full'
},
{
  title: 'Seth Lewis, 9 years Air Force',
  pubDate: 'Thu, 05 Dec 2019 17:22:10 +0000',
  guid: '503088b1386f7c223b94a7ef1ca35d3b',
  link: 'https://traffic.libsyn.com/secure/operationcode/Seth.mp3',
  'itunes:image': '',
  description: "<p>Seth spent 9 years in the Air Force, flying on transport planes to every continent but Australia. He spent his downtime on the flights studying technology, and after separating, went to Lambda School and then Hack Reactor. He's now applying his skills, especially Docker and Kubernetes, at one of the biggest names in technology. If you've ever wondered what students learn in a code school, Seth explains that in considerable depth.</p>",
  'content:encoded': "<p>Seth spent 9 years in the Air Force, flying on transport planes to every continent but Australia. He spent his downtime on the flights studying technology, and after separating, went to Lambda School and then Hack Reactor. He's now applying his skills, especially Docker and Kubernetes, at one of the biggest names in technology. If you've ever wondered what students learn in a code school, Seth explains that in considerable depth.</p>",
  enclosure: '',
  'itunes:duration': '23:56',
  'itunes:explicit': false,
  'itunes:keywords': '',
  'itunes:subtitle': "Seth spent 9 years in the Air Force, flying on transport planes to every continent but Australia. He spent his downtime on the flights studying technology, and after separating, went to Lambda School and then Hack Reactor. He's now applying his...",
  'itunes:episodeType': 'full'
},
{
  title: 'Silas Avilez',
  pubDate: 'Wed, 20 Nov 2019 23:23:07 +0000',
  guid: '428ff15841ea99bc2ddcca35d1904915',
  link: 'https://traffic.libsyn.com/secure/operationcode/Silas.mp3',
  'itunes:image': '',
  description: "<p>Silas enlisted in the Army at age 17, served in logistics, and was deployed to Afghanistan. While he was in, he studied accounting, finance, and investing on his own, and when he separated, he was ready. He enrolled in the Veteran Capital program and built his sales and networking skills, and now he's just starting a new job at Lucid Dream VR in North Carolina.</p>",
  'content:encoded': "<p>Silas enlisted in the Army at age 17, served in logistics, and was deployed to Afghanistan. While he was in, he studied accounting, finance, and investing on his own, and when he separated, he was ready. He enrolled in the Veteran Capital program and built his sales and networking skills, and now he's just starting a new job at Lucid Dream VR in North Carolina.</p>",
  enclosure: '',
  'itunes:duration': '24:06',
  'itunes:explicit': false,
  'itunes:keywords': '',
  'itunes:subtitle': 'Silas enlisted in the Army at age 17, served in logistics, and was deployed to Afghanistan. While he was in, he studied accounting, finance, and investing on his own, and when he separated, he was ready. He enrolled in the Veteran Capital program and...',
  'itunes:episodeType': 'full'
},
{
  title: 'Jeff Kenworthy',
  pubDate: 'Tue, 17 Sep 2019 21:34:39 +0000',
  guid: '0e5f65599392df9437ca6c14ffebce4c',
  link: 'https://traffic.libsyn.com/secure/operationcode/Jeff-2.mp3',
  'itunes:image': '',
  description: "<p>Jeff is an Army vet who's had some tough times but he prefers to think about how far he's come. One day after moving into a Salvation Army shelter with his wife and two kids, they found out she was pregnant with twins! But now he's got a job helping victims of ransom attacks and moved his family into their own place. Jeff is also in a degree program with the University of Maryland. (Note: you will hear some background kid noise in spots. This is just Jeff's life right now.)</p>",
  'content:encoded': "<p>Jeff is an Army vet who's had some tough times but he prefers to think about how far he's come. One day after moving into a Salvation Army shelter with his wife and two kids, they found out she was pregnant with twins! But now he's got a job helping victims of ransom attacks and moved his family into their own place. Jeff is also in a degree program with the University of Maryland. (Note: you will hear some background kid noise in spots. This is just Jeff's life right now.)</p>",
  enclosure: '',
  'itunes:duration': '23:05',
  'itunes:explicit': false,
  'itunes:keywords': '',
  'itunes:subtitle': "Jeff is an Army vet who's had some tough times but he prefers to think about how far he's come. One day after moving into a Salvation Army shelter with his wife and two kids, they found out she was pregnant with twins! But now he's got a job helping...",
  'itunes:episodeType': 'full'
},
{
  title: 'Keith Fosmire',
  pubDate: 'Tue, 03 Sep 2019 20:13:32 +0000',
  guid: '5fb6cf9c19f016ce018b8f21d93ca4bd',
  link: 'https://traffic.libsyn.com/secure/operationcode/keith.mp3',
  'itunes:image': '',
  description: '<p>Keith Fosmire spent 10 years in the Air Force as a satellite technician and then volunteered for combat duty in the Army. He got his degree in Computer Science, is married, and now works for CoveyCS in upstate New York. He works with electronics in his spare time and his great ambition is to work in Linux Kernel development!</p>',
  'content:encoded': '<p>Keith Fosmire spent 10 years in the Air Force as a satellite technician and then volunteered for combat duty in the Army. He got his degree in Computer Science, is married, and now works for CoveyCS in upstate New York. He works with electronics in his spare time and his great ambition is to work in Linux Kernel development!</p>',
  enclosure: '',
  'itunes:duration': '22:47',
  'itunes:explicit': false,
  'itunes:keywords': '',
  'itunes:subtitle': 'Keith Fosmire spent 10 years in the Air Force as a satellite technician and then volunteered for combat duty in the Army. He got his degree in Computer Science, is married, and now works for CoveyCS in upstate New York. He works with electronics in...',
  'itunes:episodeType': 'full'
},
{
  title: 'Gary Krause',
  pubDate: 'Sun, 25 Aug 2019 21:35:06 +0000',
  guid: 'e8c5133d2d4877b98cb518c8d4049d39',
  link: 'https://traffic.libsyn.com/secure/operationcode/Gary.mp3',
  'itunes:image': '',
  description: "<p>Gary is an active-duty Navy cryptologic technician, getting out of the Navy in a few months. He's a Chief Petty Officer who is now interning at SIXGEN, which is a company that does all sorts of cybersecurity tasks. Gary has a deep background in cybersecurity and knows Ruby on Rails and Python, and is also fluent in Mandarin! (I test him on this at 4:00)</p>",
  'content:encoded': "<p>Gary is an active-duty Navy cryptologic technician, getting out of the Navy in a few months. He's a Chief Petty Officer who is now interning at SIXGEN, which is a company that does all sorts of cybersecurity tasks. Gary has a deep background in cybersecurity and knows Ruby on Rails and Python, and is also fluent in Mandarin! (I test him on this at 4:00)</p>",
  enclosure: '',
  'itunes:duration': '26:05',
  'itunes:explicit': false,
  'itunes:keywords': '',
  'itunes:subtitle': "Gary is an active-duty Navy cryptologic technician, getting out of the Navy in a few months. He's a Chief Petty Officer who is now interning at SIXGEN, which is a company that does all sorts of cybersecurity tasks. Gary has a deep background in...",
  'itunes:episodeType': 'full'
},
{
  title: 'Rod Levy, Code Platoon',
  pubDate: 'Thu, 25 Jul 2019 21:22:47 +0000',
  guid: '7e1d16f7a02e301934bfb52e4b853f39',
  link: 'https://traffic.libsyn.com/secure/operationcode/CodePlatoon.mp3',
  'itunes:image': '',
  description: "<p>Rod Levy and Alicia Boddy of Code Platoon, a code school for veterans, active duties, and military spouses join us for a panel discussion. Kelly Macleod, an Army veteran and Operation Code (OC) member represents the OC community. Code Platoon has recently been certified for VET-TEC, an exciting new program where the student doesn't even have to use their GI Bill benefits! Rod and Alicia tell us all about Code Platoon's history, how the VET-TEC program works, and why hiring veterans is just smart business.</p>",
  'content:encoded': "<p>Rod Levy and Alicia Boddy of Code Platoon, a code school for veterans, active duties, and military spouses join us for a panel discussion. Kelly Macleod, an Army veteran and Operation Code (OC) member represents the OC community. Code Platoon has recently been certified for VET-TEC, an exciting new program where the student doesn't even have to use their GI Bill benefits! Rod and Alicia tell us all about Code Platoon's history, how the VET-TEC program works, and why hiring veterans is just smart business.</p>",
  enclosure: '',
  'itunes:duration': '32:05',
  'itunes:explicit': false,
  'itunes:keywords': '',
  'itunes:subtitle': 'Rod Levy and Alicia Boddy of Code Platoon, a code school for veterans, active duties, and military spouses join us for a panel discussion. Kelly Macleod, an Army veteran and Operation Code (OC) member represents the OC community. Code Platoon has...',
  'itunes:episodeType': 'full'
},
{
  title: 'Josh Carter',
  pubDate: 'Mon, 15 Jul 2019 22:22:47 +0000',
  guid: '3b4452e36538062707b0ef67d4669cd6',
  link: 'https://traffic.libsyn.com/secure/operationcode/Josh.mp3',
  'itunes:image': '',
  description: "<p>Josh Carter Joined with David Molina and others to launch Operation Code. Together they led the campaign to make code schools eligible for GI Bill payments, enabling our vets to train for good, high-paying jobs without college. Josh tells us how that happened, and also traces his career path from art school to the Navy, to a job pulling cable for a telecomm company, to his current roles as entrepreneur and CEO. We also talk about the changing face of software development, and how hiring veterans isn't charity -- it's just smart business.</p>",
  'content:encoded': "<p>Josh Carter Joined with David Molina and others to launch Operation Code. Together they led the campaign to make code schools eligible for GI Bill payments, enabling our vets to train for good, high-paying jobs without college. Josh tells us how that happened, and also traces his career path from art school to the Navy, to a job pulling cable for a telecomm company, to his current roles as entrepreneur and CEO. We also talk about the changing face of software development, and how hiring veterans isn't charity -- it's just smart business.</p>",
  enclosure: '',
  'itunes:duration': '30:11',
  'itunes:explicit': false,
  'itunes:keywords': '',
  'itunes:subtitle': 'Josh Carter Joined with David Molina and others to launch Operation Code. Together they led the campaign to make code schools eligible for GI Bill payments, enabling our vets to train for good, high-paying jobs without college. Josh tells us how that...',
  'itunes:episodeType': 'full'
},
{
  title: 'Katie Swisher',
  pubDate: 'Sun, 09 Jun 2019 21:46:25 +0000',
  guid: 'b7f11b6b7525f24f90e62cf1cd782d45',
  link: 'https://traffic.libsyn.com/secure/operationcode/Katie.mp3',
  'itunes:image': '',
  description: "<p>Katie is a military spouse; her husband is on active duty in the Army. She works from home for a mobile app development company, as a Product Manager! in this interview Katie tells us her career history and how she came to be moving across the country to an area where she didn't know anyone, as a newlywed. Fortunately her company in Pennsylvania offered to keep her on as a remote worker, and we get to hear how that's worked out for her. Katie also has advice for military spouses and others thinking about moving into high tech (spoiler: jump right in!)</p>",
  'content:encoded': "<p>Katie is a military spouse; her husband is on active duty in the Army. She works from home for a mobile app development company, as a Product Manager! in this interview Katie tells us her career history and how she came to be moving across the country to an area where she didn't know anyone, as a newlywed. Fortunately her company in Pennsylvania offered to keep her on as a remote worker, and we get to hear how that's worked out for her. Katie also has advice for military spouses and others thinking about moving into high tech (spoiler: jump right in!)</p>",
  enclosure: '',
  'itunes:duration': '23:34',
  'itunes:explicit': false,
  'itunes:keywords': '',
  'itunes:subtitle': 'Katie is a military spouse; her husband is on active duty in the Army. She works from home for a mobile app development company, as a Product Manager! in this interview Katie tells us her career history and how she came to be moving across the country...',
  'itunes:episodeType': 'full'
},
{
  title: 'Mike Rodriguez',
  pubDate: 'Tue, 21 May 2019 06:14:46 +0000',
  guid: '52e3d5b24a1234fc9e269cb428f4615c',
  link: 'https://traffic.libsyn.com/secure/operationcode/Mike.mp3',
  'itunes:image': '',
  description: "<p>Mike Rodriguez is an former Marine who became a Windows XP administrator in the service, and he's stayed with it. He wanted to be a tank crewman, but unfortunately his partial color blindness limited the jobs he could perform inside a tank, so he had to take a different career path, and now here he is! There are all kinds of ways people come to computers. Mike was deployed to Iraq in 2005. Now he works for Teradata as an Application Security Analyst.</p>",
  'content:encoded': "<p>Mike Rodriguez is an former Marine who became a Windows XP administrator in the service, and he's stayed with it. He wanted to be a tank crewman, but unfortunately his partial color blindness limited the jobs he could perform inside a tank, so he had to take a different career path, and now here he is! There are all kinds of ways people come to computers. Mike was deployed to Iraq in 2005. Now he works for Teradata as an Application Security Analyst.</p>",
  enclosure: '',
  'itunes:duration': '24:13',
  'itunes:explicit': false,
  'itunes:keywords': '',
  'itunes:subtitle': "Mike Rodriguez is an former Marine who became a Windows XP administrator in the service, and he's stayed with it. He wanted to be a tank crewman, but unfortunately his partial color blindness limited the jobs he could perform inside a tank, so he had...",
  'itunes:episodeType': 'full'
},
{
  title: 'Dick Sonderegger',
  pubDate: 'Mon, 13 May 2019 22:59:29 +0000',
  guid: 'b14d45b867698c35f34b26e857c4bafd',
  link: 'https://traffic.libsyn.com/secure/operationcode/Dick_-_5-13-19_3.39_PM.mp3',
  'itunes:image': '',
  description: `<p>Dick Sonderegger has a much different story than most of our veterans -- he learned computers in the Marines during the Vietnam era. His story of HOW he got into computers is probably the best one I've ever heard, and you'll just have to listen to find it out! We shared an office for a few months on the Xerox Star project in the late 70's, and then I lost track of him. In this interview we talk about his Harvard and Marines experiences, his time at Data General during the "Soul of a New Machine" era (he knew those people), the Xerox Star effort and the big lightning storm that fried the local Ethernet, and much more.</p>`,
  'content:encoded': `<p>Dick Sonderegger has a much different story than most of our veterans -- he learned computers in the Marines during the Vietnam era. His story of HOW he got into computers is probably the best one I've ever heard, and you'll just have to listen to find it out! We shared an office for a few months on the Xerox Star project in the late 70's, and then I lost track of him. In this interview we talk about his Harvard and Marines experiences, his time at Data General during the "Soul of a New Machine" era (he knew those people), the Xerox Star effort and the big lightning storm that fried the local Ethernet, and much more.</p>`,
  enclosure: '',
  'itunes:duration': '42:50',
  'itunes:explicit': false,
  'itunes:keywords': '',
  'itunes:subtitle': "Dick Sonderegger has a much different story than most of our veterans -- he learned computers in the Marines during the Vietnam era. His story of HOW he got into computers is probably the best one I've ever heard, and you'll just have to listen to...",
  'itunes:episodeType': 'full'
},
{
  title: 'Rami Mouro',
  pubDate: 'Fri, 03 May 2019 22:38:43 +0000',
  guid: '567ce41479638892782d9e2edd2ccbd4',
  link: 'https://traffic.libsyn.com/secure/operationcode/Rami_-_5-2-19_3.19_PM.mp3',
  'itunes:image': '',
  description: '<p>Rami Mouro was born in Syria, and came to the US in his teens. He served in the National Guard in between going to the University of Colorado at Boulder, and is currently finishing up his degree. He has an internship coming up at Qualcomm, and is especially interested in embedded systems and cybersecurity. In this interview, we hear about Capture the Flag contests at hacker conferences, and also what it was like growing up in Damascus!</p>',
  'content:encoded': '<p>Rami Mouro was born in Syria, and came to the US in his teens. He served in the National Guard in between going to the University of Colorado at Boulder, and is currently finishing up his degree. He has an internship coming up at Qualcomm, and is especially interested in embedded systems and cybersecurity. In this interview, we hear about Capture the Flag contests at hacker conferences, and also what it was like growing up in Damascus!</p>',
  enclosure: '',
  'itunes:duration': '19:57',
  'itunes:explicit': false,
  'itunes:keywords': '',
  'itunes:subtitle': 'Rami Mouro was born in Syria, and came to the US in his teens. He served in the National Guard in between going to the University of Colorado at Boulder, and is currently finishing up his degree. He has an internship coming up at Qualcomm, and is...',
  'itunes:episodeType': 'full'
},
{
  title: 'Emilie Schario',
  pubDate: 'Mon, 22 Apr 2019 17:15:21 +0000',
  guid: 'c82755eb6118fa83444d3900efae9a58',
  link: 'https://traffic.libsyn.com/secure/operationcode/Emilie_-_4-17-19_4.29_PM.mp3',
  'itunes:image': '',
  description: "<p>Emilie is a data analyst with GitLab, and is married to an active duty military officer. She came to the profession in a non-standard way -- via a degree in Political Science from Princeton! Being a military spouse meant that she needed the ability to work remotely, since she might be moving constantly. At GitLab, ALL employees are remote, so it's perfect. She had a natural ability to think critically and use data to make decisions, and she was able to pick up coding from books and online resources. If you're interested in Data Science, this is the interview for you, since we go into a lot of detail on how she thinks and what a data scientist actually does day to day.</p>",
  'content:encoded': "<p>Emilie is a data analyst with GitLab, and is married to an active duty military officer. She came to the profession in a non-standard way -- via a degree in Political Science from Princeton! Being a military spouse meant that she needed the ability to work remotely, since she might be moving constantly. At GitLab, ALL employees are remote, so it's perfect. She had a natural ability to think critically and use data to make decisions, and she was able to pick up coding from books and online resources. If you're interested in Data Science, this is the interview for you, since we go into a lot of detail on how she thinks and what a data scientist actually does day to day.</p>",
  enclosure: '',
  'itunes:duration': '28:09',
  'itunes:explicit': false,
  'itunes:keywords': '',
  'itunes:subtitle': 'Emilie is a data analyst with GitLab, and is married to an active duty military officer. She came to the profession in a non-standard way -- via a degree in Political Science from Princeton! Being a military spouse meant that she needed the ability to...',
  'itunes:episodeType': 'full'
},
{
  title: 'Robert E. Woods III',
  pubDate: 'Fri, 29 Mar 2019 21:27:00 +0000',
  guid: '73c2f0e523f28c9ac9d304f2680ddc24',
  link: 'https://traffic.libsyn.com/secure/operationcode/Robert_-_3-29-19_2.09_PM.mp3',
  'itunes:image': '',
  description: "<p>Robert is an Air Force veteran who's now in grad school at Columbia.  He's running Banneret, a company working to create opportunities for vets by making on-the-job training eligible for GI Bill benefits. In this interview, he traces his path through ROTC, active duty in the Air Force, and current work with Banneret. He talks about his program and other non-college paths to a post-military career, the unique strengths that veterans bring to the job, and the importance of having non-negotiable goals in your life.</p>",
  'content:encoded': "<p>Robert is an Air Force veteran who's now in grad school at Columbia.  He's running Banneret, a company working to create opportunities for vets by making on-the-job training eligible for GI Bill benefits. In this interview, he traces his path through ROTC, active duty in the Air Force, and current work with Banneret. He talks about his program and other non-college paths to a post-military career, the unique strengths that veterans bring to the job, and the importance of having non-negotiable goals in your life.</p>",
  enclosure: '',
  'itunes:duration': '20:27',
  'itunes:explicit': false,
  'itunes:keywords': '',
  'itunes:subtitle': "Robert is an Air Force veteran who's now in grad school at Columbia.  He's running Banneret, a company working to create opportunities for vets by making on-the-job training eligible for GI Bill benefits. In this interview, he traces his...",
  'itunes:episodeType': 'full'
},
{
  title: 'Kelly MacLeod',
  pubDate: 'Wed, 20 Mar 2019 00:12:40 +0000',
  guid: 'bceb0888fab3a92fd63e79e8d9762a8d',
  link: 'https://traffic.libsyn.com/secure/operationcode/kelly_-_3-19-19_4.46_PM.mp3',
  'itunes:image': '',
  description: `<p>Kelly served in the Guard in Iraq and Afghanistan, learned to code via online courses and self-teaching, worked as a freelancer, and is now with Topcoder, a crowdsourcing solutions company. She talks about her career path through college, military service, getting out and being an Admin, and deciding she could do even more. So she used the free resources on the Web and some of the online academies to learn to code, worked as a freelance developer, and now has a full time job with Topcoder.com. Kelly also talks about the challenges facing military spouses and how "freelance developer" is a great career that they can practice anywhere there's Internet.</p>`,
  'content:encoded': `<p>Kelly served in the Guard in Iraq and Afghanistan, learned to code via online courses and self-teaching, worked as a freelancer, and is now with Topcoder, a crowdsourcing solutions company. She talks about her career path through college, military service, getting out and being an Admin, and deciding she could do even more. So she used the free resources on the Web and some of the online academies to learn to code, worked as a freelance developer, and now has a full time job with Topcoder.com. Kelly also talks about the challenges facing military spouses and how "freelance developer" is a great career that they can practice anywhere there's Internet.</p>`,
  enclosure: '',
  'itunes:duration': '31:25',
  'itunes:explicit': false,
  'itunes:keywords': '',
  'itunes:subtitle': 'Kelly served in the Guard in Iraq and Afghanistan, learned to code via online courses and self-teaching, worked as a freelancer, and is now with Topcoder, a crowdsourcing solutions company. She talks about her career path through college, military...',
  'itunes:episodeType': 'full'
},
{
  title: 'Colleen Schnettler',
  pubDate: 'Wed, 13 Mar 2019 16:41:24 +0000',
  guid: '291e720a15b7b8a0bfc5d4d4a60c6beb',
  link: 'https://traffic.libsyn.com/secure/operationcode/Colleen_OpCode_Pod_Shared_-_3-12-19_3.49_PM.mp3',
  'itunes:image': '',
  description: "<p>Colleen is the wife of an active-duty pilot with 17 years in the service. She was getting frustrated with the career difficulties that come with the military's constant moves, and so she taught herself Ruby On Rails! Now she works from home with a variety of clients, and she could practice her new career from anywhere there's Internet. Colleen describes how she got into coding, what her clients are like, and how much she loves what she's doing. She also recounts her first contribution to Operation Code's open source codebase and what a difference a supportive community makes for a beginner.</p>",
  'content:encoded': "<p>Colleen is the wife of an active-duty pilot with 17 years in the service. She was getting frustrated with the career difficulties that come with the military's constant moves, and so she taught herself Ruby On Rails! Now she works from home with a variety of clients, and she could practice her new career from anywhere there's Internet. Colleen describes how she got into coding, what her clients are like, and how much she loves what she's doing. She also recounts her first contribution to Operation Code's open source codebase and what a difference a supportive community makes for a beginner.</p>",
  enclosure: '',
  'itunes:duration': '15:29',
  'itunes:explicit': false,
  'itunes:keywords': '',
  'itunes:subtitle': "Colleen is the wife of an active-duty pilot with 17 years in the service. She was getting frustrated with the career difficulties that come with the military's constant moves, and so she taught herself Ruby On Rails! Now she works from home with a...",
  'itunes:episodeType': 'full'
},
{
  title: 'David Silvia Interview',
  pubDate: 'Wed, 27 Feb 2019 00:21:18 +0000',
  guid: '70d90ea47eea698855b7490e1139c79f',
  link: 'https://traffic.libsyn.com/secure/operationcode/dos_-_2-26-19_3.38_PM.mp3',
  'itunes:image': '',
  description: "<p>David had no particular interest in Computer Science when he left the Marines, but he went to Mass Bay Community College and caught the bug. He transferred to Northeastern's co-op program and did two co-op gigs, one of which led to an offer for a full-time job. David talks about his journey to being a computer scientist, what languages he likes, what skills military veterans bring to a potential employer, and how Operation Code is helping him & others like him.</p>",
  'content:encoded': "<p>David had no particular interest in Computer Science when he left the Marines, but he went to Mass Bay Community College and caught the bug. He transferred to Northeastern's co-op program and did two co-op gigs, one of which led to an offer for a full-time job. David talks about his journey to being a computer scientist, what languages he likes, what skills military veterans bring to a potential employer, and how Operation Code is helping him & others like him.</p>",
  enclosure: '',
  'itunes:duration': '18:57',
  'itunes:explicit': false,
  'itunes:keywords': '',
  'itunes:subtitle': "David had no particular interest in Computer Science when he left the Marines, but he went to Mass Bay Community College and caught the bug. He transferred to Northeastern's co-op program and did two co-op gigs, one of which led to an offer for a...",
  'itunes:episodeType': 'full'
},
{
  title: 'James Fitzer Interview',
  pubDate: 'Mon, 18 Feb 2019 18:18:14 +0000',
  guid: '2b4ca2f4642790a6aa1d0a24341577d2',
  link: 'https://traffic.libsyn.com/secure/operationcode/Fitz.mp3',
  'itunes:image': '',
  description: "<p>In this interview, James tells us about his path into computer software from a 10-year Army career, including a stint as Drill Instructor (hear how the movie Full Metal Jacket continues to influence DI's!). James also has a fairly unusual hobby: he wrestles professionally, in an independent organization in Dallas.</p>",
  'content:encoded': "<p>In this interview, James tells us about his path into computer software from a 10-year Army career, including a stint as Drill Instructor (hear how the movie Full Metal Jacket continues to influence DI's!). James also has a fairly unusual hobby: he wrestles professionally, in an independent organization in Dallas.</p>",
  enclosure: '',
  'itunes:duration': '33:13',
  'itunes:explicit': false,
  'itunes:keywords': '',
  'itunes:subtitle': "In this interview, James tells us about his path into computer software from a 10-year Army career, including a stint as Drill Instructor (hear how the movie Full Metal Jacket continues to influence DI's!). James also has a fairly unusual hobby: he...",
  'itunes:episodeType': 'full'
},
{
  title: 'Kyle Holmberg, Part 1',
  pubDate: 'Wed, 13 Feb 2019 19:25:44 +0000',
  guid: '79e2ea85f147a6b559491b07fe42ff3f',
  link: 'https://traffic.libsyn.com/secure/operationcode/kylemh-5_-_2-11-19_11.44_AM.mp3',
  'itunes:image': '',
  description: `<p>Kyle was a developer with AutoGravity in Sept. 2018 when we conducted this interview. Since then he's moved on to a different job, which is why we titled this "Part 1." We're looking forward to catching up with him when he's settled in his new job! Kyle was enrolled in ROTC in college, but never actually went on active duty. He's also working actively on Operation Code's own website. Many, or even most of Kyle's colleagues at AutoGravity attended code schools, and we talk about that in depth. The job market is so hot now that some of them receive job offers before they even finish!</p>`,
  'content:encoded': `<p>Kyle was a developer with AutoGravity in Sept. 2018 when we conducted this interview. Since then he's moved on to a different job, which is why we titled this "Part 1." We're looking forward to catching up with him when he's settled in his new job! Kyle was enrolled in ROTC in college, but never actually went on active duty. He's also working actively on Operation Code's own website. Many, or even most of Kyle's colleagues at AutoGravity attended code schools, and we talk about that in depth. The job market is so hot now that some of them receive job offers before they even finish!</p>`,
  enclosure: '',
  'itunes:duration': '16:33',
  'itunes:explicit': false,
  'itunes:keywords': '',
  'itunes:subtitle': `Kyle was a developer with AutoGravity in Sept. 2018 when we conducted this interview. Since then he's moved on to a different job, which is why we titled this "Part 1." We're looking forward to catching up with him when he's settled in his new job!...`,
  'itunes:episodeType': 'full'
},
{
  title: 'Lito Villanueva interview',
  pubDate: 'Tue, 22 Jan 2019 01:35:14 +0000',
  guid: '419eeb01672725dbbf1a407f12ca1ae8',
  link: 'https://traffic.libsyn.com/secure/operationcode/Lito_2_edited_-_1-3-19_4.49_PM.mp3',
  'itunes:image': '',
  description: '<p>Lito served in the Air Force and then did two terms as a contractor in networking at forward operating bases in Afghanistan. In this interview he tells what it was like maintaining the network while coming under mortar fire every day, and what his startup Battle Buddy is aiming to do for veterans coming back from service.</p>',
  'content:encoded': '<p>Lito served in the Air Force and then did two terms as a contractor in networking at forward operating bases in Afghanistan. In this interview he tells what it was like maintaining the network while coming under mortar fire every day, and what his startup Battle Buddy is aiming to do for veterans coming back from service.</p>',
  enclosure: '',
  'itunes:duration': '26:05',
  'itunes:explicit': false,
  'itunes:keywords': '',
  'itunes:subtitle': 'Lito served in the Air Force and then did two terms as a contractor in networking at forward operating bases in Afghanistan. In this interview he tells what it was like maintaining the network while coming under mortar fire every day, and what his...',
  'itunes:episodeType': 'full'
},
{
  title: 'David Molina interview',
  pubDate: 'Tue, 15 Jan 2019 21:59:52 +0000',
  guid: '6a9f949e5724d8a1e3160c169675f6eb',
  link: 'https://traffic.libsyn.com/secure/operationcode/David_re-edited_2_-_1-6-19_7.54_PM.mp3',
  'itunes:image': '',
  description: '<p>Ep. 002 - David Molina is the founder of Operation Code. In this interview, he describes his Army career, how he found his way into the tech industry with no prior training, and how he started Operation Code to help veterans like him learn software and code the future.</p>',
  'content:encoded': '<p>Ep. 002 - David Molina is the founder of Operation Code. In this interview, he describes his Army career, how he found his way into the tech industry with no prior training, and how he started Operation Code to help veterans like him learn software and code the future.</p>',
  enclosure: '',
  'itunes:duration': '20:49',
  'itunes:explicit': false,
  'itunes:keywords': '',
  'itunes:subtitle': 'Ep. 002 - David Molina is the founder of Operation Code. In this interview, he describes his Army career, how he found his way into the tech industry with no prior training, and how he started Operation Code to help veterans like him learn software...',
  'itunes:episodeType': 'full'
},
{
  title: 'Conrad Hollomon interview',
  pubDate: 'Tue, 15 Jan 2019 21:59:14 +0000',
  guid: '813c115f2cb55feb1def92f22cf10d13',
  link: 'https://traffic.libsyn.com/secure/operationcode/Conrad-edited-2_-_1-8-19_1.48_PM.m4a',
  'itunes:image': '',
  description: '<p>Ep. 001 - Conrad Hollomon went to Berklee School of Music and originally wanted to write scores for film and TV. Finding that a tough career to enter, he moved over into video games and technology, joined ROTC, went to Afghanistan for the National Guard, and is now Executive Director of Operation Code! In this interview, Conrad recounts his career and the work Operation Code is doing to help veterans, active duty personnel and military spouses.</p>',
  'content:encoded': '<p>Ep. 001 - Conrad Hollomon went to Berklee School of Music and originally wanted to write scores for film and TV. Finding that a tough career to enter, he moved over into video games and technology, joined ROTC, went to Afghanistan for the National Guard, and is now Executive Director of Operation Code! In this interview, Conrad recounts his career and the work Operation Code is doing to help veterans, active duty personnel and military spouses.</p>',
  enclosure: '',
  'itunes:duration': '24:50',
  'itunes:explicit': false,
  'itunes:keywords': '',
  'itunes:subtitle': 'Ep. 001 - Conrad Hollomon went to Berklee School of Music and originally wanted to write scores for film and TV. Finding that a tough career to enter, he moved over into video games and technology, joined ROTC, went to Afghanistan for the National...',
  'itunes:episodeType': 'full'
}
]

Expected Data

Within the JS item array, I'd expect itunes.image to have a string representing a URL for an image. They're all empty strings despite the XML included values.

Would you like to work on this issue?

  • [ ] Yes
  • [X] No

kylemh avatar Jul 24 '22 21:07 kylemh

Running into the same issue. enclosure is no longer parsed correctly.

iby avatar Aug 04 '22 20:08 iby

This is working fine for me

{
    "item": {
        "title": "Karla Gil, JavaScript programmer",
        "pubDate": "Wed, 26 Feb 2020 17:32:03 +0000",
        "guid": {
            "#text": "3b18d6bce25b79e3f0283cc72c26b8cc",
            "isPermaLink": "false"
        },
        "link": "https://traffic.libsyn.com/secure/operationcode/Karla.mp3",
        "itunes:image": {
            "href": "https://ssl-static.libsyn.com/p/assets/1/7/d/a/17da2699fa220a16/Karla.jpg"
        },
        "description": "<p>She was always attracted to coding and pursued her interest while still in the service. Upon getting out, she went to the General Assembly coding school. She spent a year helping someone with their website and then landed a job at a startup in Des Moines, Iowa, which has a worker-safety system, with a badge that workers wear and a cloud service. Karla has a lot to say about resilience, self-confidence, and under-promising and over-delivering. Her story should be an inspiration to anyone who thinks they'd like to get into software but isn't sure they can do it. She did it and maybe you can, too!</p>",
        "content:encoded": "<p>She was always attracted to coding and pursued her interest while still in the service. Upon getting out, she went to the General Assembly coding school. She spent a year helping someone with their website and then landed a job at a startup in Des Moines, Iowa, which has a worker-safety system, with a badge that workers wear and a cloud service. Karla has a lot to say about resilience, self-confidence, and under-promising and over-delivering. Her story should be an inspiration to anyone who thinks they'd like to get into software but isn't sure they can do it. She did it and maybe you can, too!</p>",
        "enclosure": {
            "length": "19746977",
            "type": "audio/mpeg",
            "url": "https://traffic.libsyn.com/secure/operationcode/Karla.mp3?dest-id=2342276"
        },
        "itunes:duration": "23:30",
        "itunes:explicit": false,
        "itunes:keywords": "",
        "itunes:subtitle": "She was always attracted to coding and pursued her interest while still in the service. Upon getting out, she went to the General Assembly coding school. She spent a year helping someone with their website and then landed a job at a startup in Des...",
        "itunes:episodeType": "full"
    }
}

Can you please check if you're working with latest version of the library?

amitguptagwl avatar Aug 08 '22 01:08 amitguptagwl

It was with the latest version that I encountered this issue (4.0.9). <4 versions do not have the same problem.

kylemh avatar Aug 08 '22 13:08 kylemh

Mine was too. Happening with the Sparkle appcast file trying to parse to JSON and build back into XML:

<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:sparkle="http://www.andymatuschak.org/xml-namespaces/sparkle" xmlns:dc="http://purl.org/dc/elements/1.1" version="2.0">
    <channel>
        <title>Example</title>
        <language>en</language>
        <item><enclosure sparkle:shortVersionString="0.0.0"/></item>
        <item><enclosure sparkle:shortVersionString="0.1.0"/></item>
        <item><enclosure sparkle:shortVersionString="1.0.0"/></item>
        <item><enclosure sparkle:shortVersionString="1.1.0"/></item>
        <item><enclosure sparkle:shortVersionString="2.0.0-beta.0"/></item>
        <item><enclosure sparkle:shortVersionString="2.0.0-beta.1"/></item>
    </channel>
</rss>

Works perfectly fine with the latest v3. I use the following options with it, I noticed some are missing in v4 though.

private static readonly options: X2jOptionsOptional & J2xOptionsOptional = {
    ignoreAttributes: false,
    parseAttributeValue: false,
    parseNodeValue: false
};

iby avatar Aug 08 '22 13:08 iby

@kylemh The parsed output I shared above is with latest version only.

amitguptagwl avatar Aug 23 '22 00:08 amitguptagwl

having this issue as well. latest version is missing attributes that are visible when using ignoreAttributes in v3.

nitzan-blink avatar Nov 28 '22 15:11 nitzan-blink

Can you plz give an example?

amitguptagwl avatar Nov 30 '22 03:11 amitguptagwl

The example I put in the original post still is missing fields in v4 that are present in v3. You can use it to check.

kylemh avatar Nov 30 '22 12:11 kylemh

Okay. But after that I commented the response on 8th Aug with latest version. Was it having any missing property? If yes then which one?

amitguptagwl avatar Dec 02 '22 00:12 amitguptagwl

to which I said

It was with the latest version that I encountered this issue (4.0.9). <4 versions do not have the same problem.

I provided a reproduction and it still does not parse with the same response as v3

Would you like me to record a video?

kylemh avatar Dec 02 '22 00:12 kylemh

@kylemh did you tried to use ignoreAttributes: false option? Because it's true by default and itunes:image have href attribute.

chugunomi avatar Dec 02 '22 09:12 chugunomi

Screenshot 2022-12-02 at 1 51 28 PM

kylemh avatar Dec 02 '22 12:12 kylemh

I've found the problem:

  1. The configuration object is meant to be the constructor argument for XMLParser now instead of as the 2nd argument to .parse(). I wasn't using TS in this older project so it wasn't obvious to me - even after reading release notes. Luckily, I tried to make another reproduction inside Codesandbox with a TS setup and realized this issue. There's no runtime error for passing the config to parse(), so if you do this, you'll get back a feed where itunes:image is an empty string as I mentioned. Probably better for there to be a runtime error thrown for all the breaking changes!
  2. ignoreNameSpace was deprecated in https://github.com/NaturalIntelligence/fast-xml-parser/releases/tag/v4.0.0

That being said, the online tool still seems broken, but locally I'm able to remove the ignoreNameSpace field form the configuration and move the configuration to the class instead of the parse method and things work again.

kylemh avatar Dec 02 '22 13:12 kylemh

nice catch @kylemh, I was making the same error. thanks for pointing this out!

nitzan-blink avatar Dec 02 '22 18:12 nitzan-blink