Parse an xml file using fast-xml-parser -- 2

I need to parse an xml file that is inside another xml file. Please modify the follow code to parse it correctly. Thank you.

You should use the package [login to view URL]

The second xml is on the route ["AttachedDocument"]["cac:Attachment"]["cac:ExternalReference"]["cbc:Description"]

When you parse it you should be able to get an json object. To check if is working you should be able to get the route ["Invoice"]["cbc:ID"] on the second xml.

//Parse xml file Intermediate obj

const tObj = [login to view URL](xmlData,options); //[login to view URL](data, 'base64').toString()

const jsonObj = [login to view URL](tObj,options);

const prueba = jsonObj["Invoice"];

if(prueba != undefined){

numFactura = jsonObj["Invoice"]["cbc:ID"];


} else {

//Get Invoice text

const invoice = jsonObj["AttachedDocument"]["cac:Attachment"]["cac:ExternalReference"]["cbc:Description"].toString();

const tObj1 = [login to view URL](invoice,options);

const jsonObj1 = [login to view URL](tObj1, options).toString();

numFactura = 'Prueba2'; //jsonObj1["Invoice"]["cbc:ID"];


Skills: Javascript, JSON, node.js, XML

See more: saving grid data xml file using extjs, mysql xml file using php, read xml file using net insert sql server, fast-xml-parser github, fast-xml-parser example, fast-xml-parser demo, npm fast-xml-parser, fast-xml-parser typescript, npm xml parser, javascript xml parser, typescript xml parser, parsing xml file using vbnet, using excel parse file, create xml file using mysql, edit xml file using flash, read xml file using extjs, multiuser xml file using php, extract data xml file using 2008, create xml file using mysql php, search text xml file using script

About the Employer:
( 10 reviews ) Bogota, Colombia

Project ID: #24523804

17 freelancers are bidding on average $28 for this job


I can make this multi-level parser. My average project completion time is within 3-5 hours on the same day. The skills I have include PHP, HTML5, CSS3, JavaScript, jQuery, WordPress Themes & Plugins, Web Scrapers & Aut More

$30 USD in 1 day
(117 Reviews)

Hello, My name is Miguel Febres and you can locate my resume and certifications in the following links: [login to view URL] [login to view URL] In my 10+ years of experien More

$30 USD in 7 days
(25 Reviews)

Hello I have experience with JavaScript , including working with XML parsing. I checked fast-xml-parser and it looks easy to use.

$25 USD in 2 days
(113 Reviews)

Hello, ⭐⭐⭐⭐⭐ i am interested in this project , can begin now waiting your answer on chat Regards ⭐⭐⭐⭐⭐

$30 USD in 1 day
(45 Reviews)

Hi I hope you are well. I am a Software Developer with 9+ years of experience in .NET technologies e.g. C#, VB.NET, ASP.NET, WCF, Web Services, Javascript, JQuery, Node.js, Angular.js, D3.js, [login to view URL], SQL, XML ,XSLT More

$30 USD in 7 days
(11 Reviews)

Hello there! :) I am an experienced developer and I can help you with this project! Send me a message so we can discuss details and start it already!

$23 USD in 1 day
(7 Reviews)

Thanks for submitting a project. You’re looking for a expert. As I am an talent web full-stack deleloper with JSON, XML, JAVASCRIPT, CakePHP for 9years. This is exactly what I specialise in. Talk about a perfect ma More

$50 USD in 7 days
(2 Reviews)

Hi. How are you? I am a full stack senior developer having lots of experiences on Web development for more than 7 years. I read your task description carefully. I will do my best for your success and will be responsibl More

$20 USD in 7 days
(1 Review)

Dear Client, my name is Pavel and I’m a Web Developer from Russia who is specialized in JavaScript and PHP. I have 6 years of experience in JavaScript and PHP, working as an independent freelancer for 4 years now, both More

$15 USD in 1 day
(2 Reviews)

Hi, Client! Thanks for the opportunity. I read your requirements carefully. I have deep experiences in NodeJs. If you give me the assignment, I will satisfy you with good result. And I will always dedicate myself f More

$20 USD in 3 days
(1 Review)

Hi, Now, i'm avalible I'm a Web developer with 2+ yearh exp. My skill: PSD to HTML, Sass, bootstrap, javascript, es6, reactjs, nodejs, express, mobile, UI, animation. Please send me a psd and we can work together. I More

$27 USD in 3 days
(1 Review)

Hi, sir! I have a rich experience of parsing xml and json. I have checked my attachment file and I am sure I can parse it correctly. Let's have a chat and start work right now. best regards.

$25 USD in 1 day
(0 Reviews)

Hello. I have just read your opinions all. I understand what you mean and I can do it enough. if you are interested in me, please contact me without any thinking. I look forward to having a great, successful and reward More

$20 USD in 1 day
(0 Reviews)

Hi, How are you? I've read the job description carefully and understood the requirements. Yes, I'll do it now. CAN WE DISCUSS MORE IN THE CHAT ROOM? Looking forward to your positive response. Thanks & Regards, Anve More

$50 USD in 1 day
(0 Reviews)
$25 USD in 1 day
(0 Reviews)

Hi! My name is Renan and I'm a desktop/web developer. I can help you with this on NodeJS. Can you send me a PM so I can send you the job after it's done?

$30 USD in 7 days
(1 Review)

Dear friend, I am a skilled engineer with experience in the field you require. Currently I am working in Germany, and part of my experience is in parsing long xml files. The current speed I manage is of 1,5 M of reco More

$20 USD in 15 days
(0 Reviews)