Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Difference in result dictionary between old XMLReader and current #6

Open
Ku6ep opened this issue Jun 18, 2013 · 1 comment
Open

Difference in result dictionary between old XMLReader and current #6

Ku6ep opened this issue Jun 18, 2013 · 1 comment

Comments

@Ku6ep
Copy link

Ku6ep commented Jun 18, 2013

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;
                }
            );
        };
    };
}
@amarcadet
Copy link
Owner

I assume that you have figured out a solution to your problem.

Nevertheless, could you explain me what was the "old XMLReader" you were referring to?
I've looked through the commits and kXMLReaderAttributePrefix has never been used in this repository. I cannot explain how you got the "@" prefix for XML attributes.

Sorry for the delay and thanks for your help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants