wankdanker / node-object-to-xml

Convert any JavaScript object to XML
MIT License
19 stars 8 forks source link

Package allows generation of invalid XML element names #6

Open jancurn opened 8 years ago

jancurn commented 8 years ago

If object has attributes with special characters (e.g. diacritic), the package doesn't generate a valid XML document, because element names will contain those invalid characters. It would be great if the package could guarantee valid XML output at all times, for example, by skipping invalid characters from the element names.