node-xml
node-xml copied to clipboard
Parser accepts and translates non-XML entities
I didn't see anything in the documentation about defining additional entities for the parser to recognize, so I was a bit surprised to discover it recognizes entities not defined in XML -- for example, © is translated into © in spite of being undefined by the XML specification. The only entities defined by XML are " / & / ' / < / > and those are the only ones that should be accepted by the parser unless the document contains additional definitions.