Hi, I'm looking to write a script that parses XML files exported by Doxygen, to then select some parts, and generate an HTML document from it (maybe rearranging some nodes, adding CSS classes, adding links, etc).I do have some experience with editing the DOM in the browser using JavaScript, so I figured Node could do similar things. It looks like the jsdom package does what I need to build the HTML page, since it supports the WHATWG DOM.Am I right to assume that building nested HTML nodes and modifying their attributes is the same as in a browser?There seem to be many packages out there that can parse XML, with the most popular being xml2js. Would that be a good choice?I have zero experience with any of those libraries, and limited experience with Node in general, so I'm coming here for recommendations and advice.How would you approach this problem, and what packages would you use? Would you use Node, or some other language?Here's an example of an XML file I'd like to parse: https://gist.github.com/tttapa/16046ad186b9abdc41974ba2d2036f6eThanks for reading.
Submitted August 07, 2019 at 01:50AM by treddit22
No comments:
Post a Comment