JAXP is
the Java API for XML Processing. You need an understanding of this API
if you want to process the XML document using Java. There are classes
and methods that are available for processing the XML document. You
should know what packages should be imported to work with these classes.
_______________________________________________
_______________________________________________
To
work with XML document using Java you need a document object into which
the XML file is loaded. Then using the available methods in the document
object, you can parse the XML document. The following should be present
in the import statements at the top of the java file.
import
org.w3c.dom.Document;
import org.w3c.dom.*;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.DocumentBuilder;
you cannot
create a document object straightaway. To create it you need to first
create a DocumentBuilderFactory object and then a Document Builder object
from that DocumentBuilderFactory object. Then using the DocumentBuilder
you can create the Document object for loading the XML file.
The next
task is to get all the elements to be navigated and then create a node
list of those elements. To get all the elements by a particular tag
name, you can use the method getElementsByTagName(). This would return
a NodeList. By using a "for" loop you can print them out.
What Is the Problem with JavaME? (Developer.com)
This section is interesting only for programmers who never have developed a JavaME application, because every JavaME developer has encountered the same pitfalls when trying to make an appealing user interface.
Google releases serialization scheme (The Register)
Pedantic programmers hold love-in Fail and You Protocol buffer : it's the object serialization scheme the pretentious little shit on your development team has been talking at you about during lunch hours for the past couple of days. You've been feigning interest with a steady stream of "oh-yeahs" and "that-sounds-cools", so you don't really know what it is.…
Google open-sources XML-alternative Protocol Buffers (CNET via Yahoo! News)
XML, it seems, has run out of steam for Google.