Page 1
Page 2
Page 3
Page 4
I think the widely used XML based applications
will be the WAP applications. Every WML deck is an XML document.
You can find lot of WAP browsers in the internet which display
an XML based WML deck. But did you ever think how they can
be created, and especially with Visual Basic ? Moreover,
how can you give your XML document a windows look and feel?
In this article I will show you how to display an XML document
using windows common controls and EVB. Why EVB? Well, Visual
Basic code is very easy for understanding and maintaining
and yes, I love it.
The first prerequisite to understanding
this article is an understanding of what an XML document
is. Look into the MSDN(msdn.microsoft.com) library and you
will find lot of information. The second thing will be how
to parse an XML document using the free MSXML parser that
ships with WinCE 3.0. There is a great article on deVBuzz
called Getting Started
with XML in eVB (http://www.devbuzz.com/content/zinc_evb_xml_pg1.asp)
by Jim Poe which is very helpful. If you are not familiar
with XML, finish reading it first.
Our pizza order XML document
By now you have understood what XML
is and how you parse an XML document using EVB. Let us see
what you can do with it. Here is a simple XML document to
start with:
<?xml version="1.0"?>
<orderform>
Name:<input type="text" name="cli_name" value=""/><br/>
Address:<textarea name=cli_address rows=3></textarea>
Phone:<input type="text" name="cli_phone" value=""/><br/>
Pizza:<br/>
<select name="cli_pizza" multiple="true">
<option value="1" selected="true">The Edge</option>
<option value="2" selected="false">Stuffed Crust</option>
<option value="3" selected="false">The Italian</option>
<option value="4" selected="false">Pan Pizza</option>
</select>
Toppings:<br/>
<select name="cli_topings" multiple="false">
<option value="1" selected="false">Oil, olives and
mushrooms</option>
<option value="2" selected="false">Shredded veggies
topped with a favorite salad dressing</option>
<option value="3" selected="false">Tuna, onions and
veggie oil, salt and pepper</option>
</select>
Delivery:<br/>
<input type="radio" name="cli_delivery" checked="false"/>Delivery<br/>
<input type="radio" name="cli_delivery" checked="false"/>Table<br/>
<input type="radio" name="cli_delivery" checked="false"/>Take
away<br/>
</orderform>
And we will convert it into this:


Next Page