Blog Archives
Page 1 of 2
1 2

Java and JAXB Tutorial – Marshaling

This blog posts extends Java and JAXB tutorial: Unmarshalling.

Q. Can you create your Java objects from XSDs?
A. Yes, you can by binding a schema. Binding a schema means generating a set of Java classes that represents the schema.

Read more ›



Java and JAXB tutorial – unmarshalling

Q. What does JAXB stand for? What is an XML Binding?
A. JAXB means Java API for Xml Binding. XML binding maps an XML to in-memory Java objects. The principle advantage of using JAXB when marshaling and demarshaling XML is that is simplifies the programming model by allowing us to simply annotate a few POJOs and use the JAXB API’s and you can serialize to XML and deserialize from XML very easily.

Read more ›



Java and XML tutorial with DOM Parser

Q. What is a DOM parser, and when will you use it? A. The Java DOM API for XML parsing is intended for working with small to medium XML documents as an object graph in memory. The DOM parser traverses the XML file and creates the corresponding DOM objects linked together...

Members Only Content
Log In Register Home


Java and XML tutorial with SAX parser – reading only

Q. What is a SAX Parser and when will you use it? A. SAX  (Simple API for XML) is a stream oriented API like StAX, but Unlike StAX, which can read and write, but SAX can only read. … Read more ›...

Members Only Content
Log In Register Home


Java and XML tutorial with StAX parser – reading

Q. What is a StAX Parser and when will you use it?
A. The StAX Java API for XML processing is designed for parsing XML streams, just like the SAX API’s, but

  • StAX is a “pull”

Read more ›



Java and XML tutorial with Stax Parser – writing cursor based and iterator based

Here is a simple example to write employee object to XML using simpler cursor based approach. Output: Here is a simple example to write employee object to XML using simpler  … Read more ›...

Members Only Content
Log In Register Home


Page 1 of 2
1 2

800+ Java Interview Q&As

Prepare to fast-track & go places
with multi-offers to choose from & increased earning potential. Expand your horizons along the way by taking the road less travelled.
Learn by categories on the go...
Learn by categories such as FAQs – Core Java, Key Area – Low Latency, Core Java – Java 8, JEE – Microservices, Big Data – NoSQL, etc. Some posts belong to multiple categories.
Top