Resolving entities while parsing xml file



My xml file has



<!DOCTYPE application [<!ENTITY % common SYSTEM "../common.ent">
%common;]>


and i have used &commonFaults;, (which is one of the entities defined in ./common.ent file), many where in the xml file


in my node application i want to input the stringifed xml file content. and in return i want all the entities to be resolved.


I search xmllint with --noent option which does this efficiently.


I am looking for a similar lib/tool which does this as npm module, which i can 'require' in node application and accomplish the same task as xmllint does.


I Do not want to use ChildProcess of node.


No comments:

Post a Comment