Skip to content

Difference in result dictionary between old XMLReader and current #6

@Ku6ep

Description

@Ku6ep

Can I get result dictionary like on old version of XMLReader?

NSString *xmlString = @"<items><one id=\"1\">1</one><two><some>Test</some><some>Test2</some></two><three id=\"3\">3</three><four>4</four></items>";

Old XMLReader output

{
    items =     {
        four = 4;
        one =         {
            "@id" = 1;
            text = 1;
        };
        three =         {
            "@id" = 3;
            text = 3;
        };
        two =         {
            some =             (
                Test,
                Test2
            );
        };
    };
}

New XMLReader output:

{
    items =     {
        four =         {
            text = 4;
        };
        one =         {
            id = 1;
            text = 1;
        };
        three =         {
            id = 3;
            text = 3;
        };
        two =         {
            some =             (
                                {
                    text = Test;
                },
                                {
                    text = Test2;
                }
            );
        };
    };
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions