Iphone Xml Parsing Example

By admin  

iphone xml parsing example

Web Design Articles - Mobile Web Designing

The thing is, creating a great web experience for users of mobile devices is much easier than you might think. We present here the seven steps for you which will help you avoid the pitfalls that have caused many other mobile sites to fail. By the end of this article you'll know exactly where to focus your efforts in order to build a successful mobile site.

1. Don't Mix Up Your Markup

A few different types of markup are available for building a mobile web site. You'll need to choose one that suits the needs of your customers and stick with it.

WML

In the early days of mobile web devices, the only way to surf the mobile web was to browse WAP (Wireless Application Protocol) sites. A WAP site uses WML (Wireless Markup Language) as its primary markup language. WML is an XML markup language based on the card-and-deck metaphor.

Luckily for us, WML has since been superseded by several other technologies -- in fact, if you're just getting into the mobile web game, you can probably ignore WML entirely. WML is mostly used by legacy systems or by sites that explicitly target customers with low-end phones that are obsolete.

One potential group of customers still using WML browsers, however, is those in developing nations. The Nokia 1100 and 1101, for example, are extremely basic, extremely cheap phones, of which an estimated 200 million units have been solid worldwide, making this phone the best-selling model to date, worldwide. If your site is targeted to this market segment, WML might be the best solution for you.

XHTML

For most sites, we can ignore WML and make use of a markup language with which you're probably much more familiar -- XHTML.

Most built-in phone browsers these days can handle XHTML just fine. A mobile phone recognizes two flavors of HTML:

  1. XHTML -- the same, basic XHTML rendered by desktop web browsers
  2. XHTML-MP -- the MP here stands for Mobile Profile

The difference between these two languages is that XHTML-MP consists of slightly fewer elements and tighter restrictions. These differences exist to make it easier for the mobile device to parse and render a web document, but writing XHTML-MP markup shouldn't introduce any significant changes to your process for writing regular XHTML.

2. Know Your Phones

As plasma and HD TVs slowly hit the market, broadcasters have run into the problem of where to place their logo and news tickers. Previously, they knew that all TVs were the same 3x2 dimensions, so they knew the relative width of the screen. Now, they're beginning to feel the pain of dealing with a wide assortment of TV resolutions and dimensions -- an issue that web developers deal with on a daily basis.

Of course, the mobile world is even worse! Not only must we cater for different screen sizes and resolutions, but also different shapes. From rectangles that are short and long, to those that are tall and skinny, to perfect squares, the mobile world contains a variety of handsets that almost puzzle you!

If you consider the most common phones available, they can be categorized on the basis of screen size -- give or take a few pixels:

  • 128 x 160 pixels
  • 176 x 220 pixels
  • 240 x 320 pixels
  • 320 x 480 pixels

Knowing these screen dimensions helps you optimize some of your content, however it's best to keep the shape and style of your site as minimal and linear as possible. There is no mouse on a mobile phone -- only an up-down feature -- so you can't demand that users jump around the page.

iPhone/Internet-tablet versus old green-screen phones

There are a couple of exceptions to the norm in the mobile phone market. They are the really high-end devices like the iPhone or the Nokia Internet Tablet, and the very basic, old "green-screen" monochrome dot matrix devices such as the Nokia 3310.

Low-end mobile phones have several limitations, including screen resolution and a severely limited ability to render XHTML documents. At the other end of the spectrum, high-end devices often have the ability to run a web browser that's comparable to one you might use on a desktop machine. Delivering a quality user experience to these devices can be tricky -- while the device may be perfectly capable of rendering a full, traditional web page design, it's probably transmitting data over a cellular network, which is much slower than standard broadband Internet speeds. So even though the device can handle a normal web site, the customer's situation and the reason why they're requesting your services may mean that sending them the normal version of your web site isn't the best solution.

3. Target the Right Customers

The goal for any web site should be to know your customers in order to deliver to them the most appropriate content.

This goal is even more important with mobile sites -- not only do you need to know your customers, but you need to know what they are likely to be doing on your mobile site, as well as where they'll be when they're doing it. Traditional web site customers are most likely sitting at a desk facing a large monitor that has a decent resolution. Visitors who are browsing your mobile site are unlikely to be in the same circumstances -- they might be waiting in line, riding on the train or the bus, driving a car or in a shopping mall. Google is one company that has invested considerable effort into streamlining its web applications to suit mobile users. The web developers at Google have identified and focused on three main groups, and they attempt to target their applications to those customers' needs. These are three solid categories, and are worth examining for your own mobile site. Let's look at them now.

 

a) The Casual Surfer

These customers act in a similar way to customers of traditional web sites. Casual surfers are not really interested in any one thing, but have a few spare minutes between tasks to take a look around. In the world of desktop PCs, those few minutes might occur between meetings, or while the user's on a short break. For a mobile customer, those few minutes might occur when the user's sitting outside waiting to meet friends, in a car or taxi traveling somewhere, or even during the morning commute. If your site is focused on the sort of content that would appeal to casual surfers, then be aware of the limitations on the time and screen-size of your mobile customer.

The goal should be to make your content more "sticky", so that casual surfers come back for more. For example, you shouldn't serve up long pieces of content. Instead, aim for small, bite-sized chunks that are just enough to keep customers interested, but not so long that users can't browse your site in the time they have available.

b) The Repeat Visitor

Repeat customers are those that are constantly returning for some sort of specific news or data. If your site is the kind of site that offers information about stocks, gold & silver prices, weather or sports scores, you probably have plenty of repeat visitors. The interface of a mobile device is very limited, so if you know what your repeat visitors are coming back for, time and time again, let that naturally bubble up to the top of the site. Avoid burying the content your customers want behind 3 or 4 clicks.

Mobile web site customization can be difficult, but it's not impossible. A traditional site might ask you to log in, but on a mobile device, data entry is not as easy to perform, so it's best avoided.

One option is to allow visitors to use their desktop machines to streamline their mobile experience. Take a page from Apple's iTunes Music Store as an example. A repeat customer might customize his or her version of the mobile site while at a desktop machine; this could generate a special URL in which all of that user's preferences are encoded. The next time the user visits your site from a mobile device, he or she can take advantage of this special URL, enjoying an experience that's completely customized to his or her preferences.

c) The "Urgent, Now!" Visitor

Depending on your business, your definition of "Urgent, Now!" will vary. For an online store, a customer might consider the following message urgent:

"My books were supposed to arrive yesterday. They're late. Where are they?"

A more seriously urgent scenario might be:

"I'm running 10 minutes late. Will I be able to catch my fast train or a fight?"

For some customers, everything is urgent! But by identifying the most important needs of your customers and making the relevant information accessible within one click or less, you'll increase the usefulness of your mobile site enormously.

4. Publish the Bare Minimum

One of the common misconceptions about mobile web development is the misguided notion that content from your traditional web site can be easily re-purposed into smaller bit-sized chunks for the mobile version. A simple change of style from media="screen" to media="handheld" is all you need to do to magically mobilize your site, right?

You are mistaken here.

While it's indeed possible to filter content with the liberal use of display: none in your mobile style sheet, in reality, this isn't a good idea. In fact, many CMS systems can output a mobile, streamlined version of your web site, but even this is not always what your customers will want.

The W3C defines the concept of One Web as follows:

One Web means making, as far as is reasonable, the same information and services available to users irrespective of the device they are using. However, it does not mean that exactly the same information is available in exactly the same representation across all devices. The context of mobile use, device capability variations, bandwidth issues and mobile network capabilities all affect the representation. Furthermore, some services and information are more suitable for and targeted at particular user contexts.

As this definition suggests, some things are simply not available (or even usable) on some devices. Additionally, some devices (such as a mobile phone) are much better at certain activities (like making phone calls) than other devices. Therefore, a device designed for a specific activity should utilize its unique features on the Web.

While the concept of having only one site, and to simply style it differently depending on the medium the visitor is using, is popular with many standardistas, a separate mobile site is required in order to deliver an optimized experience for mobile users. Customers who are surfing on a mobile device have different needs and requirements, so to force-feed them the same content as that displayed on the traditional site is a recipe for disaster. The following images show a good example of this principle. The Best Buy mobile site displays only two functions (Product Search and Find A Store) -- a far cry from the traditional site.

About the Author

Head SEO, Marketing at AIT India

No items matching your keywords were found.


________________________________________________________________

Original Incipio Dotties Apple iPhone 3G 3GS Silicone Case  Rubber Skin w/ Customizable Colored Dots  IPH-450 - Black


Original Incipio Dotties Apple iPhone 3G 3GS Silicone Case Rubber Skin w/ Customizable Colored Dots IPH-450 - Black


$24.99


Original Incipio Dotties Apple iPhone 3G 3GS Silicone Case Rubber Skin w/ Customizable Colored Dots IPH-451 - BlueSatisfy your sweet tooth cravings with Incipio dotties™ a fun and exciting design for iPhone 3G / 3GS. This revolutionary case includes 15 colored dots loaded into the case and 30 additional colorfUL dots that can be easily interchanged depending on your mood style or outfit. dotties™ is a perfect example of personalization and protection while focusing on a fun and t

Original Incipio Dotties Apple iPhone 3G 3GS Silicone Case  Rubber Skin w/ Customizable Colored Dots  IPH-451 - Blue


Original Incipio Dotties Apple iPhone 3G 3GS Silicone Case Rubber Skin w/ Customizable Colored Dots IPH-451 - Blue


$24.99


Original Incipio Dotties Apple iPhone 3G 3GS Silicone Case Rubber Skin w/ Customizable Colored Dots IPH-451 - BlueSatisfy your sweet tooth cravings with Incipio dotties™ a fun and exciting design for iPhone 3G / 3GS. This revolutionary case includes 15 colored dots loaded into the case and 30 additional colorfUL dots that can be easily interchanged depending on your mood style or outfit. dotties™ is a perfect example of personalization and protection while focusing on a fun and t

Original Incipio Dotties Apple iPhone 3G 3GS Silicone Case  Rubber Skin w/ Customizable Colored Dots  IPH-455 - Solid White


Original Incipio Dotties Apple iPhone 3G 3GS Silicone Case Rubber Skin w/ Customizable Colored Dots IPH-455 - Solid White


$24.99


Original Incipio Dotties Apple iPhone 3G 3GS Silicone Case Rubber Skin w/ Customizable Colored Dots IPH-455 - Solid White Satisfy your sweet tooth cravings with Incipio dotties™ a fun and exciting design for iPhone 3G / 3GS. This revolutionary case includes 15 colored dots loaded into the case and 30 additional colorfUL dots that can be easily interchanged depending on your mood style or outfit. dotties™ is a perfect example of personalization and protection while focusing on a f

Original Incipio Dotties Apple iPhone 3G 3GS Silicone Case  Rubber Skin w/ Customizable Colored Dots  IPH-458 - Purple


Original Incipio Dotties Apple iPhone 3G 3GS Silicone Case Rubber Skin w/ Customizable Colored Dots IPH-458 - Purple


$24.99


Original Incipio Dotties Apple iPhone 3G 3GS Silicone Case Rubber Skin w/ Customizable Colored Dots IPH-458 - Purple Satisfy your sweet tooth cravings with Incipio dotties™ a fun and exciting design for iPhone 3G / 3GS. This revolutionary case includes 15 colored dots loaded into the case and 30 additional colorfUL dots that can be easily interchanged depending on your mood style or outfit. dotties™ is a perfect example of personalization and protection while focusing on a fun an

Apple iPhone 4  iPhone 3G  iPhone 3GS  Vehicle Charger - Black


Apple iPhone 4 iPhone 3G iPhone 3GS Vehicle Charger - Black


$4.99


This will ensure you always have a power source in your Car!Connect the 3G iPhone Car Charger into your car s power source and receive unlimited play and standby time while listening to your favorite music. The 3G iPhone Car Charger serves as an 3G iPhone battery charger for most 3G iPhone models. Its design is simple straight forward yet elegant. It s a must have 3G iPhone accessory.Apple iPhone 4 iPhone 3G iPhone 3GS Vehicle Charger - Black features Safely charge & play your 3G i

Apple iPhone 3G  Apple iPhone 3Gs  Apple iPhone 3G  Apple iPhone 3Gss Travel Charger - Black


Apple iPhone 3G Apple iPhone 3Gs Apple iPhone 3G Apple iPhone 3Gss Travel Charger - Black


$5.99


This will ensure you always have a power source during your travel!This lightweight compact Apple 3G iPhone home charger plugs directly into your 3G iPhone to provide power to your Apple 3G iPhone while simultaneously charging your battery. You can leave your 3G iPhone ON while charging but for faster charging time turn the phone OFF while charging. Integrated overcharging prevention I/C will help prevent battery explosion due to overcharging of the battery.Apple 3G iPhone wall cha

Belkin iPhone Headphone Adapter F8Z177


Belkin iPhone Headphone Adapter F8Z177


$12.99


Connect your own headphones into your iPhone with the Belkin iPhone Headphone AdapterThe Belkin iPhone Headphone Adapter (F8Z177) allows you to connect any 3.5mm headsetto your iPhone iPod Touch iPod Classic and iPod Nano (video). Simply plug inone end of the Belkin iPhone Headphone Adapter into your iPhone or iPod srecessed audio jack and the other end into your 3.5mm headset.Belkin iPhone Headphone Adapter Features Quickly and easily connect your favorite 3.5mm headphones. Works with all

Apple iPhone 3G External Battery - Black (Does not work on iPhone 3GS)


Apple iPhone 3G External Battery - Black (Does not work on iPhone 3GS)


$24.99


Recharge Apple iPhone 3G anywhere with this Apple iPhone 3G External Battery!Don t have the time to recharge your Apple 3G iPhone at home? Then recharge it anytime on the road with this Apple iPhone 3G External Battery! This Apple iPhone 3G External Battery will recharge your phone giving you more than enough time to use your iPhone again while on the road and away from home!Apple iPhone 3G External Battery features No need for computer to recharge Apple iPhone 3G Battery type: Lithium-ion bat

Premium Apple iPhone/iPhone 3G Vertical Leather Pocket Pouch w/ Sleeping Function - Black


Premium Apple iPhone/iPhone 3G Vertical Leather Pocket Pouch w/ Sleeping Function - Black


$12.99


The Premium Apple iPhone/iPhone 3G Vertical Leather Pocket Pouch w/ Sleeping Functionwill protect your Apple iPhone/iPhone 3G!This leather pouch for the Apple iPhone/iPhone 3G is custom-made for your phone s specificdimensions. Protection from dings scratches and dust will ensure your phone sform and function with practical accessibility. The belt loop allows you to carry your iPhone in the case securely without worry.Premium Apple iPhone/iPhone 3G Vertical Leather Pocket Pouch w/ Sleeping Func

Apple iPhone 3G  Apple iPhone 3Gs  iPod Travel Charger


Apple iPhone 3G Apple iPhone 3Gs iPod Travel Charger


$12.99


This will ensure you always have a power source during your travel!This lightweight compact Apple 3G iPhone home charger plugs directly into your 3G iPhone to provide power to your Apple 3G iPhone while simultaneously charging your battery. You can leave your 3G iPhone ON while charging but for faster charging time turn the phone OFF while charging. Integrated overcharging prevention I/C will help prevent battery explosion due to overcharging of the battery.Apple 3G iPhone wall cha

Apple iPhone Premium Screen Protector


Apple iPhone Premium Screen Protector


$6.99


Protect iPhone screen from scratches and dirt with an iPhoneScreen ProtectorPrevent scratches from developing on your iPhone touch screenand keep it protected with an iPhone Screen Protector. Includes a screenprotector and an additional protector to prevent accidental scratches from developing onyour iPhone s chrome backing. This screen protector is pre-cut to fit the dimensions ofthe iPhone. Find out more about screen protectors at our Screen Protectors FAQs page!FEATURES Crystal clear scr

Premium Apple iPhone 4  iPhone 3G 3Gs Car Carger - White


Premium Apple iPhone 4 iPhone 3G 3Gs Car Carger - White


$9.99


Premium Apple iPhone 3G Car Charger - WhiteRecharge your phone with a Premium Apple iPhone 3G Car Charger. Get the phone powered up on the drive before you hit the beaches a conference meeting or the next city.Features Rapid charger Blue Light Indicator Durable thick cording Charges iPhone 3G Compact lightweight to carry Better than most standard chargers Color - WhitePremium Apple iPhone 3G Car Charger - White Premium Apple iPhone 4 iPhone 3G 3Gs Car Carger - White

Apple iPhone Screen Protector & iPhone holster w/ belt clip Combo


Apple iPhone Screen Protector & iPhone holster w/ belt clip Combo


$9.99


Get Apple iPhone Screen Protector & iPhone Holster Combo w/Free Shipping todayiPhone screen protector features Crystal clear screen protector for Apple iPhone. Pre-cut to fit the dimensions of your screen Includes an additional protector for the iPhone s chrome backing Prevents Glare Protects against scratches scrapes and abrasion Removes without leaving residue Resists finger-prints Easy Installation - Peel and stick**Phone or Device if pictured; is NOT INCLUDED this is an accessory comp

Apple iPhone 3G  Apple iPhone 3Gs Retractable Travel Charger - Black


Apple iPhone 3G Apple iPhone 3Gs Retractable Travel Charger - Black


$13.99


Apple iPhone 3G Retractable home charger - BlackFor a convenenient recharge and organized cables use an Apple iPhone 3G Retractable wall charger. You don t have to deal with messiness or long charge time. Rapidly charge your iPhone 3G and see it to believe it.Apple iPhone 3G Retractable ac charger features Perfect length to carry & commute with Folding blade plug - easy to put away One-touch retract button Compact and lightweight Retractable cable - easy to organize Color: blackApple

Apple iPhone Armor Case - Black


Apple iPhone Armor Case - Black


$24.99


Give your Apple iPhone superior protection with this Metal Armor case!Accidents happen. You just got your brand new nice andshiny Apple iPhone phone. Prevent scratches by protecting your Apple iPhone with a custom made metal armor case.FEATURES   Stylish custom metal case for Apple iPhone Lined with neoprene to protect against shock Custom-cut with access to buttons and ports No tools are required for insertion just place it in the case and snap it closed Detachable swivel belt clip R

Apple iPhone 3G External Battery - White


Apple iPhone 3G External Battery - White


$29.99


Recharge Apple iPhone 3G anywhere with this Apple iPhone 3G External Battery!Don t have the time to recharge your Apple 3G iPhone at home? Then recharge it anytime on the road with this Apple iPhone 3G External Battery! This Apple iPhone 3G External Battery will recharge your phone giving you more than enough time to use your iPhone again while on the road and away from home!Apple iPhone 3G External Battery features No need for computer to recharge Apple iPhone 3G Battery type: Lithium-ion bat

OtterBox iPhone 3G Defender Series - Black/Black


OtterBox iPhone 3G Defender Series - Black/Black


$34.99


Get the Otterbox iPhone 3G Defender Case for protection that is always in element!Get protection from dust dirt drop and scratches for your iPhone 3G with the super durable and exclusive Otterbox iPhone 3G Defender Case! The Otterbox Defender Case will always protect your iPhone 3G no matter what the element is or weather is like. Mother Nature always hits unexpectedly and the Otterbox iPhone 3G Defender case will always be ready for anything that comes.Otterbox iPhone 3G Defender Case feature

Belkin iPhone Mini-Stereo Cable F8Z181-06-GLD


Belkin iPhone Mini-Stereo Cable F8Z181-06-GLD


$16.99


Connect to portable speakers with the Belkin iPhone Mini-StereoCableConnect the Belkin iPhone Mini-Stereo Cable with your iPhone to portablespeakers sound cards or home-stereo devices for great stereo sound quality.Belkin iPhone Headphone Adapter Features Connect your iPhone to portable speakers sound cards or home stereo devices. Chrome-finished connectors and nickel-plated contacts. 3.5mm plug to 3.5mm plug. 6 ft. cable Belkin Part #: F8Z181-06-GLDBelkin iPhone Mini-Stereo Cable F8

Premium Apple iPhone Skin Case - Blue


Premium Apple iPhone Skin Case - Blue


$14.99


Give your Apple iPhone superior protection with this PremiumSilicone Skin Case !Protect your Apple iPhone from all things bad. Secure your Apple iPhone withthis premium built durable case and keep it looking better than yourfriends . This Apple iPhone silicone case Featuresa custom cuts for fULlaccess to all buttons and ports. This silicone case gives fULl protectionagainst everyday wear and usage of your Apple iPhone!Premium Apple iPhone Silicone Case features Stylish premium custom cas

Apple iPhone Armor Case - Silver


Apple iPhone Armor Case - Silver


$19.99


LIMITEDTIME OFFER!! ACT NOW BEFORE IT S TOO LATE!!ONLY $19.99!!Give your Apple iPhone superior protection with this Metal Armor case!Accidents happen. You just got your brand new nice andshiny Apple iPhone phone. Prevent scratches by protecting your Apple iPhone with a custom made metal armor case.FEATURES   Stylish custom metal case for Apple iPhone Lined with neoprene to protect against shock Custom-cut with access to buttons and ports No tools are required for insertion just place


[mage lang="" source="youtube"]iphone xml parsing example[/mag]


Post a Comment

Your email is never shared. Required fields are marked *

*
*