NaturalIntelligence / fast-xml-parser

Validate XML, Parse XML and Build XML rapidly without C/C++ based libraries and no callback.
https://naturalintelligence.github.io/fast-xml-parser/
MIT License
2.59k stars 309 forks source link

converted JSON object not capturing spaces between tags #694

Closed satyajitnayk closed 1 week ago

satyajitnayk commented 1 week ago

Description

When I am parsing xml to Json with spaces between tags, it is not reflecting in the expected output

### Input ```xml ```

Code

Output

We can observe that "a:t": [] is empty array instead of "a:t": [" "]

image

expected data

[
    {
        "a:r": [
            {
                "a:solidFill": [
                    {
                        "a:srgbClr": [],
                        ":@": {
                            "@_val": "000000"
                        }
                    }
                ]
            },
            {
                "a:t": ["    "]
            }
        ]
    }
]

Would you like to work on this issue?

Bookmark this repository for further updates. Visit SoloThought to know about recent features.

github-actions[bot] commented 1 week ago

We're glad you find this project helpful. We'll try to address this issue ASAP. You can vist https://solothought.com to know recent features. Don't forget to star this repo.

satyajitnayk commented 1 week ago

sorry! my mistake I have enabled Trim

image