Skip to content

Feature: Preserve position of elements #197

@amitguptagwl

Description

@amitguptagwl

For some processing purpose, it is requied to preserve the position of tags and text value of a tag. Eg

<store> locates in
        <region>US</region>
         and
        <region>Japan</region>
        only
</store>

currently parsed to following when arrayMode is true.

{
    "store": [
        {
            "#text": "locates inandonly",
            "region": [
                "US",
                "Japan"
            ]
        }
    ]
}

The expected output is one of the following

{
    "store": [
        { "#text": "locates in" },
        { "region": "US" },
        { "#text": "and" },
        { "region": "Japan" },
        { "#text": "only" }
    ]
}
{
    "store": [
        "locates in",
        { "region": "US" },
        "and",
        { "region": "Japan" },
        "only"
    ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Feature-RequestNew features suggested by usersdiscussionin-progressReported issue is in progress to be resolved.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions