Sunday, February 28, 2010

'Travu 'L' og

Trip: Chennai - Bangalore - Kasargod - Bangalore - Chennai

My Car: Zen Estilo LXi 2008 Make
Driving: All alone by me. Hmmmm thats boring....
Kms Covered: 900 + 800 (Including roaming around in Bangalore which accounts to around 50 kms)
Date: August 2009
Mileage: Pretty less this time because of the vehicle not been serviced on time, and also due to up-hill driving. Otherwise 15kmpl in city and 17kmpl on highways. Both with A/C on. Seriously!

How daring it should have been, when it took wheeling around 1700 Kms (onward+return), that too in a car not loaded with a spare tyre! Yeah, the spare tyre was missing for a pretty long time but, thanks to my carelessness, I have not checked it for quite a long period and nothing surprising that I was clueless when, where and how this tyre was stolen. Hmmm, I am desperately in need of a reminder program to be run to reminding me of periodical chores, such as these. Mmm, not my job, it's thier (parents) job to search for such a program!



Ok, well said all those, let me brief about my car.



A Zen Estilo (She is a virgin blue :-) She is, because I get her a daily wash with my own hands! Awhh. Too much.... She just jets to 150 kmphr without jerks and I am really amazed at her pickup (It's disheartening when I gave her a big time growl while overtaking an Innova @ 150 kmpl near Velore) << FYI, the car still runs like a charm. Thanks to those cRV
Scoda drivers for lacking that energy.>> [SPEEDING UNNECESSARILY OR EVEN NECESSARILY IS DANGEROUS. So, play safe. Play with utmost driving sense. There is no restart. I repeat, (Tony's words), NO RESTARTS. It's not NFS.]

Alright, thats it about it!

I must say that I have been deprived of sleep the last night due to the late night stay @ office. Oops, are you one among them who knows me very well? Okay, then I must confess that I stayed back in the office the previous night just to clock 9 hours @ office (Reason: Got up late and came late to office. Well, that's now becoming a habit. I must take up some time management course to avoid such punctuality-mishaps!)
 
I started from home by 5.30 PM on the friday evening and took the tambaram route << Link to maps>> to reach Sriperumbadur. Then straight towards Bangalore. <>

Saturday, February 27, 2010

XML Processing

1 Introduction to XML Processing

 
XML Processing can be done in either of the following ways:-

1) Parsing
     a. Involves scanning the document in the following ways:-
         i. Push approach (Example for push parsers:- SAX )
         ii. Pull approach (Example for pull parsers:- STaX)

2) Binding
      a. Involves the following steps
          i. Binds XML to Java objects (Generating java classes from XML Schema),
          ii. Marshalling and Unmarshalling (Unmarshalling means creating a tree of content [java] objects from the XML document [not schema]. Marshalling means creating the XML document from the java objects. Both uses parsing techniques)

3) Transformation
    a. Transformation engine and filter

 
2 Why Binding?

 
   We are primarily interested in binding, because of the fact that XML binding allows Java developers to access and process XML data without having to know XML or XML processing. For example, there's no need to create or use a SAX parser or write callback methods while going with binding tools such as JAXB or JiBX.

 
3 Binding tools

 
   Some of the binding tools available in the market are:-

 
  • Castor (open source)
  • JAXB (open source)
  • JiBX (open source)
  • XML Spy (commercial)
  • Jakarta Digester (open source)

 
A listing of these can be found @ http://www.xmldatabinding.org/