I'd like to develop an iPhone application that get's it's data from a web pages using regex applied on that web page. I was wondering if that's possible by the SDK.
Thanks
Do NOT parse HTML using regular expressions.
Read this if you don't believe me :)
Yes it is. From my understanding RegexKit is widely used and it can be applied as a part of your project or as a static library.
Related
Is it possible to use XML instead of Html for design the screen in nativescript with angular app template?
Thank you for reading, looking forward to reading your responses!
The answer is yes: Angular is perfectly happy to accept XML for its templates in NativeScript -- we are doing that at my company Yollerhorn right now as we develop our mobile app, and we made the decision to help disambiguate our web templates from our native templates. The one caveat is that we've run into some strange errors around commenting and unrecognized XML, but in general it should work just fine.
Even though you're adding your user interface to HTML files in a NativeScript with Angular project, you're not writing HTML.
NativeScript markup is XML. Technically HTML is XML, but NativeScript won't understand it and a web browser won't understand NativeScript XML.
Hopefully that makes sense and answers your question.
Best,
I want to build an iPhone app that is really a wrapper around a wiki. Specifically, I have some static reference content that can be represented by a hyperlinked set of pages and want to build an app that will provide a nice interface over this content, including search, bookmarking, and annotating. I'm wondering what the best approach is for building something like this.
(I'm spent a fair bit of time googling for answers but pretty much every combination of search terms I can think of returns links to wikis, not links about putting a wiki into an app).
Are there libraries out there for handling wiki content (rendering, navigating links etc.)? I imagine I could just represent my content as a set of local HTML pages and point the web browser control at these but that doesn't seem right. Any ideas on how best to approach this in the iOS world?
Thanks in advance!
Try looking at TWedit, it is a wrapper for the excellent TiddlyWiki which is a single file WIKI built around JavaScript and HTML. TW is very powerful and well supported with many plugins available.
I saw a tweet today referring to the MVCHTML5 helpers on Codeplex. I'm wondering if
Anybody has tried this out yet?
Does it add any real significant benefit over the default HTML helpers?
What are the actual HTML5 aspects of this library?
I would definitely recommend checking it (I am a little biased as I wrote it!).
But it's just a simple DLL that you include in your MVC project and it will give you all the benefits of HTML5 input types. If the browser doesn't support it - it will just fall back to a normal textbox.
To answer your questions though, it only adds a benefit if you are looking to add HTML5 functionality to your application or website. It uses the exact same syntax and the normal HTML helpers that ASP.net MVC comes with, but this just makes life easier if you are looking to add HTML5 functionality to your site.
Here is another link regarding HTML5 and the input types: http://diveintohtml5.ep.io/
I've just been trying it out, it doesn't seem to support the Required DataAnnotations for unobtrusive client side validation
I'm want to know how's correct way to use Xml in sdk for web base application
i'm trying to do magazine in iphone but they told me that i have to use XML to take body and other thing from that web site?
please some one direct me to that and if you have any tutorial for that
thanks
I think I know what you're talking about, but it may be off because your English is a little off.
I think you're trying to parse the HTML of a web page. The easy way to do this (assuming the web page is valid XHTML), is to use NSXMLParser. It's an event driven parser, so you provide a delegate and as the parser moves through the document it will send messages to your delegate. Watch to see if the opening element is a body tag, grab the string, then close the string when the closing body tag is found.
The Apple guide is here
I am building an iPhone Wikipeida game app, that requires modifying the default Wiki HTML a little bit (mostly simplifying the page).
So far I am directly downloading the HTML output from en.wikipedia.org/wiki/Article_Foo to a python Google App Engine, and then modify its CSS and HTML structure, cache it, and finally output to iPhone. It works but I find this method quite tedious, there must be a better method?
Please note that I use App Engine not just for parsing the Wiki, but the game also requires it to keep the stores...etc, hence not a overkill. Also, I would prefer doing all the work with python on App Engine, to keep the iPhone client as thin and mobile as possible (XML on iPhone is a big no fun)
Thanks a lot.
=======
Nick mentions why not use the mobile Wiki which already optimizes for iPhone. However, the issue is that it goes down quite frequently (every couple weeks or so), also its HTML structure changes quite frequently too.
You can use the MediaWiki API to download the markup text and use some API tools for Python that could make the process/modify work easier.
Caching and outputting to iPhone is fine. I believe there is not much to simplify here.
Why not just fetch the mobile version of the page from http://en.m.wikipedia.org/? This is already formatted for mobile devices.
You can set up your own copy of the server used by m.wikimedia.org:
http://github.com/hcatlin/wikimedia-mobile
It's written in Ruby, but this shouldn't be an issue if your app just uses the HTML output.