Parsing XML in iOS? [closed] - ios

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I need to parse simple XML coming from my webserver and store this in database.
How do I do the same?

Please have a look at Touch XML, a Objective-C framework for reading and writing XML. It's usage is similar (drop-in replacement) for Apple's NSXMLDocument (which is not available for the iPhone SDK).

Apple has two built in solutions for parsing XML data on the iphone:
1) Apple has an objective-c implementation of an XML parser called NSXMLParser. See documentation here.
2) Apple also has a C based implementation of an XML parser called libXML2. See documentation here. - scroll down to see section on XML support

At the end of the article you can find a full project example.
http://www.hivestudio.cat/index.php?option=com_content&view=article&id=60:xml-parser-for-iphone&catid=35:technical-note-category&Itemid=76

you can check here ,might be it will help you.
http://homepages.ius.edu/rwisman/C490/html/nsxmlparser.html

Check out http://www.tbxml.co.uk for a super-fast, lightweight, easy to use XML parser!

The above mentioned Touch XML, seems to be discountinued. KissXML is an alternative. It is based on Touch XML, but has more features.
GDataXML could also be an alternative, its developed by Google.

Related

Parsing JSON before iOS5 [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
Since it seems that NSJSONSerialization class is only available in iOS 5.0+ (NSJSONSerialization Class Reference), is there another option to parse JSON objects prior that version?
Thanks
Have a look at JSONKit.
I've used it prior to iOS5 and it has better performance, and is easier to use than SBJSON.
SBJSON is great option, I have used in it two app store apps.
There are many options on github, for example SBJSON.
There was no JSON support prior to iOS 5. You can use third party code from here:
https://github.com/johnezang/JSONKit

Concise guide to rails? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
I'm looking for a very concise guide to using rails. I've done lots of work with other similar frameworks like Django so I just need a very short tutorial. Does anything like that exist?
Thanks!
This is best guide for those who are new to rails..
http://ruby.railstutorial.org/ruby-on-rails-tutorial-book
If you're willing to put up with a few quick video tutorials, Rails for Zombies by EnvyLabs (railsforzombies.org) gives a good overview of the framework.
If you decide to check it out, know this: at the time of this writing, there's one error in the tutorials. The code they show you for writing a basic redirect is missing a prepended slash on the URI. (At least, according to the interpreter they use for the accompanying exercises, it's incorrect.)
Other than that small gripe, in my opinion it's a great way to onboard yourself and colleagues in Rails, before drilling down into the gritty details.

ios: Please give me the smtp mail coding according to attached pic [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
Please can anyone help me. how to create connect to server for mail sending.
ans is http://iphonesdksnippets.com/post/2009/04/15/Send-email-with-attachments-on-iPhone.aspx
You can do it using: skpsmtpmessage
This is a nice article Sending emails from Cocoa, please check it also.
You need a middle server to receive REST call and process it in any way you want. Any iOs networking interface might be used for this purpose, there's a lot of samples how to create a simple request.
Please give more context of your question. Do you want to achieve it solely by IOS? Or you don't mind to write a bit of server code?
If you are OK to write a bit of server code, you can try Google App Engine API for sending email ( using googgle account ). You have 3 choices of language : Java, Phyton or Go.
Full documentation is located at Google App Engine website.

Asp .Net Word Automation [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
We have a situation where we have to
Open up a Word document(template)
Get data from DB and merge it to that document
Give the users ability to add or modify sections in that merged document
finally save the document (which needs to go back to the DB)
I know that atleast the first two is possible. But is it possible for 3 to happen through a web site?
Any ideas or information or third party tools to accomplish this is much appreciated.
Thanks,
Raja
THe Aspose component is pretty good for being able to manipulate docs through an API:
http://www.aspose.com/categories/.net-components/aspose.words-for-.net/default.aspx
Alternatively if you are using the docx file formats you can read up on the Office OpenXML format and make the changes directly to the file.
In general, you should avoid automating Office from server-side apps.
A better approach is to use OOXML.
You can use the packaging APIs to produce a word file, or... you can produce the "template" .docx file in Word 2007/2010, then in the ASPNET app, open the .docx with a zip library like DotNetZip, modify the portion you need to modify (it's an XML doc) then re-zip and you have a valid .docx file.

iOS alternative PDF Renderer [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I am looking for a good alternative PDF Renderer.
Currently I am using Quartz Core for PDF rendering, which is great and pretty fast, but I find it still slow compared to other iOS Apps (GoodReader has an own renderer or has adapted some kind of alternative renderer and is not disclosing any information about it).
I am wondering if there are some good open source or payd PDF Renderers for iOS that I could try out.
I tried muPDF, but it does not support iOS and it would take a lot of time to make it compatible.
Thank you!
I don't believe GoodReader has a custom render engine. It's all a matter of caching and using the idle times.
You can try this viewer: http://www.vfr.org/2011/06/pdf-reader-viewer-v1-2-1/
MuPDF compiles and runs just fine on iOS.
All you need to do is create an Xcode project for it, drop in the MuPDF, thirdparty and generated data file sources and compile. I used to have an iOS demo app for testing on the platform, but I haven't been paying the Apple developer tax so it's not up to date.
The best open source project I've found yet for iOS (iPhone/iPad) is http://www.vfr.org/ ( source code available here : https://github.com/vfr/Reader ).
It has a very nice design and some nice features !

Resources