Mohamed Shakeel
Mohamed Shakeel

Reputation: 89

How to create a Windows Phone app that parses html data from a website

I'm planning to create a Windows Phone App for my own site (still not up and running).

I don't know how to go about it. What I know is that I don't want to use the webview control as it would make the app primitive and ugly.

I am thinking of downloading the html content and parsing it into XAML elements to build the app controls.

But, I am a beginner developer and have no experience in this. If anyone could guide me on how to proceed further it would be very helpful.

Upvotes: 0

Views: 100

Answers (4)

Mohamed Shakeel
Mohamed Shakeel

Reputation: 89

I used AngleSharp to parse html and construct XAML elements based on that. https://github.com/AngleSharp/AngleSharp

Upvotes: 1

Alexan
Alexan

Reputation: 8637

If you have web application, you have two easy ways to convert it to mobile:

  1. Cordova

  2. Hosted Web App

But Cordova uses webview, so probably you want to use second option:

You can create app by wrapping existing web site:

Click “File -> New Project” and choose “JavaScript -> Windows -> Windows Universal -> Blank App (Windows Universal)”

I think it's much easier than designing XAML application.

Upvotes: 0

VasileF
VasileF

Reputation: 2916

"I am thinking of downloading the html content and parsing it into XAML elements to build the app controls."

Hell, no!

In my opinion this is the way you should go: your current web app should have calls to services which provide you the data you need to display on the UI. Your web app is a client. Another client could be the Windows Mobile app.

Windows Store apps can be developed using HTML5+JS or C#+XAML. Pick one way, you know best.

Just saying, if you have some REST service behind everything, it will help you out build clients with ease.

Upvotes: 1

Luis Gar
Luis Gar

Reputation: 471

"I don't want to use the webview control as it would make the app primitive"

This is that you believe. It's possible it's because you have not knowledge enough.

You can make beautiful apps with html. More this if your are trying only make a web as app.

Try making php get_contents and calling that from ajax. Into the app you can style the data you parsed

Upvotes: 0

Related Questions