In this post I will show you how to convert XML to HTML using XSLT in Java using Saxon HE version 11 library We will add the dependency to our pom: Our sample XML will be: The XSLT we will… Read More ›
XML
Parsing XML in Groovy using XmlSlurper
In my previous post I showed different ways in which we can parse XML document in Java. You must have noticed the code being too much verbose. Other JVM languages like Groovy, Scala provide much better support for parsing XML… Read More ›
Parsing XML using DOM, SAX and StAX Parser in Java
I happen to read through a chapter on XML parsing and building APIs in Java. And I tried out the different parser available on a sample XML. Then I thought of sharing it on my blog so that I can… Read More ›
Using JAXB to generate Java Objects from XML document
Quite sometime back I had written about Using JAXB to generate XML from the Java, XSD. And now I am writing how to do the reverse of it i.e generating Java objects from the XML document. There was one comment… Read More ›
Parsing XML is fun again- thanks to Groovy
I happened to work on Groovy while I was developing using Gaelyk and I found Groovy lot easier to write- I never thought of the types and this really helped me to make my code simpler and easier to write…. Read More ›
Using JAXB to generate XML from the Java, XSD
We can use JAXB to marshal the Java objects into XML using the given Schema and vice versa- unmarshal XML into Java objects. The xml schema can be specified in DTD, XSD or other format. The tool “xjc” is used… Read More ›
JSON- JavaScript Object Notation
JSON- JavaScript Object Notation JSON (JavaScript Object Notation) is a lightweight data-interchange format based on the object notation of the JavaScript language. It does not require JavaScript to read or write; it is easy to parse by any language and… Read More ›