libxmljs2 icon indicating copy to clipboard operation
libxmljs2 copied to clipboard

parseXml() and addChild() inserts an unexpected dtd

Open SudeshKumarSK opened this issue 4 years ago • 0 comments

articleTag = xmlDoc.root() subArticle_string = fs.readFileSync("/Users/sk/Microbiology_Task/01FirstPreprint/subarticle.xml"); var fragment = libxmljs.parseXml(subArticle_string); articleTag.addChild(fragment);

Screenshot 2021-08-19 at 1 31 32 PM

My Output file had the dtd in between. Is there anyway to add xml fragments into the mail xml file without the dtd being added inbetween?

SudeshKumarSK avatar Aug 19 '21 08:08 SudeshKumarSK