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

XMLString returning plist #46

Open
azplanlos opened this issue Oct 8, 2015 · 4 comments
Open

XMLString returning plist #46

azplanlos opened this issue Oct 8, 2015 · 4 comments

Comments

@azplanlos
Copy link

XMLDictionary's [NSDictionary XMLString] method returns a plist XML on OS X 10.10.5 but returns a correct XML on OS X 10.7.5.

@sweetppro
Copy link

did you ever figure out the cause of this?
I get the same thing on OSX 10.11.1

@azplanlos
Copy link
Author

Yes, Apple implemented a similar method with the same name -(NSData_)XMLData. I was able to use -(NSData_)innerXML instead in my case where I don't need the root object. But this might be different in your project. The only way to get rid of this would be to rename the method in the XMLDictionary category which will break old projects. That's why I didn't file a pull request yet.

Am 08.11.2015 um 01:11 schrieb SweetPPro notifications@github.com:

did you ever figure out the cause of this?
I get the same thing on OSX 10.11.1


Reply to this email directly or view it on GitHub.

@sweetppro
Copy link

ah - you rock! thanks!
Ive been trying to figure this out all day.
I took your advice and renamed:
- (NSString *)XMLString;
To
- (NSString *)XMLDictionaryString;

then it worked right away.
:)

this fix should really be added to Master, so it doesn't trip other ppl up.
thanks again,
such a simple fix

@Workshed
Copy link

I've just hit this exact issue on a legacy application that I occasionally work on, thank you for pointing out this issue!

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

3 participants