Closed SpringsTea closed 2 years ago
I'm glad you find this repository helpful. I'll try to address your issue ASAP. You can watch the repo for new changes or star it.
@SpringsTea , If you want to preserve order, you should use probably preserveOrder property. Please check the docs. If you're facing issue while using isArray option. Let me check why it is not working for you.
This is working for me. I believe you're using some old version of FXP. please update and try again. Feel free to reopen the issue.
Description
I had been working on a project with v3 and wanted to add order preservation. I updated to v4 to use
isArray
along side this, with my goal being to get a single array of mixed tags in the order they appear in the xml. Here is an example xml:And my configuration:
My expected output would be something like
But instead, all of children of ImageNode and TextNode are arrays, instead of objects.
When I was using V3, setting arrayMode to true would have all the child elements as single objects:
Even setting isArray to always return false, the children of
TextNode
will still be arrays. How can I achieve the array behavior I had in V3 in V4?