Yousuf

Results 34 comments of Yousuf

@eug48 , you are right. I got it wrong when I based my solution on that StackOverflow thread. I wasn't aware about https://validator.w3.org/#validate_by_input+with_options online checking. Now I can conclude correctly...

Thanks Vlad for this important feedback. I based my assumption on this line on [sax project](https://github.com/isaacs/sax-js) "Designed with node in mind, but should work fine in the browser or other...

These are great findings to share! Thanks. I wonder if there is also a way I can require sax in a fully browser-compatible way so that I don't force the...

@ntodorov , Sorry for late reply. By default, this library expects json input to be in **non-compact** format. See the example in [Synopsis](https://github.com/nashwaan/xml-js#synopsis) section to know the difference. [Read here](https://github.com/nashwaan/xml-js#compact-vs-non-compact)...

@alencarrh This is possible under a hidden option flag `captureSpacesBetweenElements `. Here is how to use it: ```js var convert = require('xml-js'); var test = ` element1 element2 element3 `...

No, it is not experimental. This option was there in the early releases. I added it based on a user request. I forgot why I did not want to expose...

@sangupta007 As highlighted by @euberdeveloper, the library assumes the input is in **non-compact** form unless you explicitly pass `compact: true` option to indicate the input is in **compact** form. So,...

@euberdeveloper I admit the documentation doesn't tell or warn the library works in non-compact form by default. I got tripped into this issue many times myself 😅. Changing the default...

I am not sure if I understand the issue correctly. Are you facing the problem when converting from xml → json or from json → xml? Or is it from...

Here is my understanding of the problem: `sample1.xml`: ```xml something ``` converting `sample1.xml` using `convert.xml2js(sample1, {compact: true})` results (_using compact form for the sake of brevity_): ```json { "d:foo": {...