SAX based approach to build/create XML documents

If you dont want to build a xml document using StringBuffer or DOM then you can look at doing it with SAX. A  sample code that does this and passes the document to a byte array stream is as follows
SAXTransformerFactory factory = (SAXTransformerFactory) SAXTransformerFactory.newInstance();
TransformerHandler handler=factory.newTransformerHandler();
Transformer transformer = handler.getTransformer();
//set the stream
ByteArrayOutputStream bos = new ByteArrayOutputStream();
StreamResult streamResult [...]

Jboss Seam problem with Pages.xml – Does not recognize Page actions

I had a strange problem where Seam (used 2.1.0) did not recognize the page actions specified in the pages.xml which was placed under WEB-INF. I searched around and found no one had such a problem and of course the problem was finally in the way I was declaring the view id. View id needs to [...]

Jerry Yang, Yahoo CEO, finally takes a bow! Does it open the door to Microsoft?

So finally the inevitable happens. Jerry Yang, who founded Yahoo and who is currently its CEO, decides to quit from the top post. Its more or less expected after he and the rest of the Yahoo board rejected Microsoft Offer. You cannot blame this guy for the stock hammering that took place in recent times, [...]

Infosys asks employees to take Sabbatical!! What is the Real Intention?

View the original post about Infosys asking employees to take Sabbatical at the india stock market blog
We are in midst of a huge Financial Crisis, that’s clear. And its also clear that the impact is not going to be limited to financial sector, the effect is now being slowly but surely felt on industries that [...]

Attractive Stocks for making money in the turbulent Indian Stock Market

Axis bank is very close to its support levels at the moment and is a good choice as per me to get into for a quick trade. I put in half of my money around Rs 505 and I will put the other half after a couple to days seeing where the markets go.
Actually I [...]