Leonidas-from-XIV / node-xml2js

XML to JavaScript object converter.
MIT License
4.88k stars 604 forks source link

no way to ignore out-of-the-box processors #631

Open paulyk1983 opened 3 years ago

paulyk1983 commented 3 years ago

It would be really nice to include an easy way to ignore processors (those found in lib/processors.js) that happen automatically when parseString method is called, preferably include an option to set a specific processor to 'false'.

Use case: I am parsing xml who's node values include '01', '02' etc. and need them to remain as strings and not be tampered with by the parseNumbers processor.

Leonidas-from-XIV commented 2 years ago

That's a good point. Have you tried setting valueProcessors: []?