XML - Are parsing APIs too complex? 

I just analyzed my design work for the past day.

It turns out that I implemented simple two level hierarchy in strings, rather than XML, which is strange for my liking.

I had to implement this: A, where A has children a1, a2, ..., an, B, where B has children b1, b2, ..., bm, C, where ... and so on. Had to save the definition somewhere.

What was the first implementation like?

"A:a1:a2:a3|B:b1:b2:b3:b4:b5|C:c1:c2:c3:c4:c5:c6", where first-level node was always array[i][0] if I just parsed the string with is-everywhere split() method, passing "|" as the second parameter.

This is how it went:

var firstLevel = split(array, "|");
var secondLevel = split(firstLevel[i], ":");
var item = secondLevel(j);

Why?

My <insert worship preference>, it is still easier to parse strings than XML in JavaScript.

Categories:  XML
Monday, December 11, 2006 5:53:39 PM (Central Europe Standard Time, UTC+01:00)  #    Comments

 

 Windows Vista Gadgets - Exchange Rates 

Four banks. Three types of exchange rates. Two clicks. One installation.

 

We support four banks:

  • Bank of Slovenia
  • NLB
  • SKB
  • NKBM

The same is true for the backend programmatic interface (read SOAP). Here's the service.

Download here:

Update: Version 1.0.0.1 - EUR bugfixing release available (2007-01-25)

Disclaimer: We are tracking usage. Anonymously of course.

Categories:  Windows Vista
Monday, December 11, 2006 1:36:14 AM (Central Europe Standard Time, UTC+01:00)  #    Comments

 

 Windows Vista Gadgets - Portfolio 

As promised, our second gadget went gold today. We call it Slovenian Portfolio and as the name suggests, it allows you to track your portfolio on LJSE.

            

Here's the feature list:

  • Stock selection
  • Stock search on LJSE (Ljubljana Stock Exchange)
  • Display of selected stock values
  • Display of relative daily changes
  • Stock value graphs for the previous week, month, three months, six months and year
  • Complete portfolio market value

Again, this Gadget supports English and Slovenian locale too, so fellow citizens should get a nice Slovenian UI when Windows Vista Slovenian MUI ships.

Download here:

Post about the Slovenian Radio gadget is available here.

Disclaimer: We are tracking usage. Anonymously of course. No financial data is being transferred to our servers.

Categories:  Windows Vista
Friday, December 08, 2006 9:58:02 PM (Central Europe Standard Time, UTC+01:00)  #    Comments

 

Copyright © 2003-2014 , Matevž Gačnik
Recent Posts
RD / MVP
Feeds
RSS: Atom:
Archives
Categories
Blogroll
Legal

The opinions expressed herein are my own personal opinions and do not represent my company's view in any way.

My views often change.

This blog is just a collection of bytes.

Copyright © 2003-2014
Matevž Gačnik

Send mail to the author(s) E-mail