Posts

Showing posts from December, 2008

Finding GPS using J2ME

The Global Positioning System (GPS) is a satellite based navigation system made up of a network of 24 satellites placed into orbit by the U.S. Department of Defense. GPS was originally intended for military applications, but in the 1980s, the government made the system available for civilian use. GPS works in any weather conditions, anywhere in the world, 24 hours a day. There are no subscription fees or setup charges to use GPS. The GPS is made up of three parts: satellites orbiting the Earth; control and monitoring stations on Earth; and the GPS receivers owned by users. GPS satellites broadcast signals from space that are picked up and identified by GPS receivers. Each GPS receiver then provides three-dimensional location (latitude, longitude, and altitude) plus the time. I have created a J2ME midlet which is used to get the Location,Country,Address and few other de

XML Validation

XML is stand for EXtensible Markup Language and it is easy to use XML as a markup language.XML haven't got any predefined tags as HTML.Therefor when we are using a XML content, we have to use a mechanism to read those tags and identify those tags separately. For this mechanism there are XML parsers.Specially we can use SAX parser and DOM parser.In most web browsers they have an inbuilt XML parser. DOM parser is effective than the SAX parser. SAX uses an event callback mechanism requiring you to code methods to handle events thrown by the parser as it encounters different entities within the XML document. DOM parses an XML document and returns an instance of org.w3c.dom.Document. This document object's tree must then be "walked" in order to process the different elements. JDOM is an open source API, designed specifically for Java programmers, that represents an XML tree as Elements and Attributes. JDOM can interact with SAX or DOM. With JDOM, y