Just pushed out a minor bugfix release to Objective-XML-5.0:
- Re-enabled character-set conversion code that had gotten disabled
- Fixed a compile-error for some targets
- Other minor improvements
Download here:
http://www.metaobject.com/downloads/Objective-C/Objective-XML-5.0.1.tgz
I'm intrigued by your MPWMAXParser - I've hooked it into the XML Performance sample for iPhone and can see that it's pretty close to the libXML path - nice!
ReplyDeleteDo you have more robust example of usage of it (more than the RSS.m)?
Do you generally expect that your parser will run on a background thread? Is it recommended?
Hi, do you have any examples on how objective-XML should be used for parsing and generating XML files?
ReplyDeleteMarcel,
ReplyDeleteObjective-XML simply looks awesome! It is definitely going to be my project's go-to XML parser. I've dug around in the source a bit and took a look at the RSS.m class. I have a general idea of how things work, based on the RSS.m file, but I'm still a little confused, especially with what exactly gets parsed into the headerItems. A small example would do wonders in understanding how this beast works and reacts. For example,
[?xml version="1.0" encoding="utf-8"?]
[rss version="2.0"]
[channel]
[title]Website Feed[/title]
[description]Channel desc[/description]
[link]http://www.yourdomain.com[/link]
[item]
[title]Story Title 1[/title]
[description]Story 1 desc[/description]
[link]http://example.com[/link]
[/item]
[item]
[title]Story Title 2[/title]
[description]Story 2 desc[/description]
[link]http://example.com[/link]
[/item]
[/channel]
[/rss]
Step-by-step:
How to efficiently parse out channel info like [title], [description], and [link]. I would assume we implement a method in our handler, something like: -channelElements:childern .... ;
where the children are all the child tags below [channel]? But doesn't that basically include the entire file?
Getting at the data between the [item] tags is pretty straight forward, as shown by your iTunes Song example.
Hi -
ReplyDeleteThis really seems great, but I obviously don't know what I'm doing. I want to use this as part of an iPhone app, but I don't even know where to begin. I've tried to build the MPWFoundation project changing the SDK to the iPhone 3.0 simulator, but I just get an error:
"target specifies product type 'com.apple.product-type.framework', but there's no such product type for the 'iphonesimulator' platform"
HELP!!!
Can someone please explain the steps for using this in an iPhone application?
Thanks,
Seth
I want to add to the comments about needing some documentation or examples. Obj-XML looks great but I am not even sure which of the seven targets I should build, let alone how to implement it in an iPhone app.
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteHello Mr. Weiher,
ReplyDeleteI've downloaded the sources from SourceForge for 5.2 to my Mac. However, with the exception of the MPWXmlCore framework, I have been unable to get any of the targets to buiild. In most cases, much of the code won't even compile. I've looked briefly through the code, and MPWTestCase was not even implemented correctly. Methods named in the header are not in the implementation file. Where should I be looking for information on how to get this code to work and including this code in my project?
Thanks,
Jason Mazzotta