Leonidas-from-XIV / node-xml2js

XML to JavaScript object converter.
MIT License
4.84k stars 596 forks source link

return parsed object instead of string ? #701

Closed vulkanosaure closed 4 months ago

vulkanosaure commented 4 months ago

Hi,

Thanks for the library, it works great.

I was just wondering if there's any way to receive an object (non stringified) rather than a string, i didn't find anything in the doc. Of course i can call parse, but i think it's a waste because i imagine you must have it as an object and then call stringify on it ? (unless i'm wrong on that point and you directly construct it as a string, in which nvm)

Leonidas-from-XIV commented 4 months ago

I don't understand your question because it always returns an object and never stringifies it.

vulkanosaure commented 4 months ago

I'm so confused, i just realized i'm using xml-js, I don't know which misclick lead me to your repository instead ! You can ignore/close my question ! (i'll try your lib if i'm not happy with the other one)

Leonidas-from-XIV commented 4 months ago

Ah ok, that clears things up!