Memorynotfound Java Programming Tutorials
Validate XML against XSD Schema using JDOM
An XSD Schema is used to validate an XML document, it describes what elements, attributes, types are allowed and in which order. In the following tutorial we explain how you can validate an XML...
Validate XML against DTD using JDom
A Document Type Definition (DTD) defines which elements and attributes you can use inside an XML document. Typically this DTD document is specified inside the XML document. In this example we explain haw you...
Write XML File in Java using JDom XMLOutputter
JDom has an intuitive API and is therefore easy to use. In this example we explain how you can create a XML file using JDom. First we load the entire Document into memory. When...
Read XML in Java using JDom Parser
JDom is an open source library for manipulating XML documents. It has an easier API then the standard Java JDK libraries. In the following tutorial we explain how you can read an XML file...
Configure JNDI Datasource in Tomcat
Almost all web applications need to access a database. So we need to be aware what the best practices are in order to configure these databases efficiently. A database connection is expensive to make,...
JAX-RS Jersey Gson Serializer and Deserializer
This tutorial shows how to use Gson to marshal and unmarshal a Java object to and from JSON representation. You could also use the default implementations like: Jackson, JSONP or MOXy. But the power...
Spring Profiles Java and XML Configuration
In an enterprise application, you can have different configurations for different environments. For example, maybe in development you are developing against an in-memory datasource rather than looking up that same datasource from JNDI in...
Mixing XML and Java Config in Spring
In an enterprise application, you’ll probably have multiple configuration files to structure your application. Using spring, these configuration files can vary from XML to Java Configuration. This tutorial shows you how to import an...
Spring Ws Digital Certificate Authentication Wss4J
You can use digital certificates to secure your soap services. In this tutorial we explain certificate authentication, we show how to encrypt and decrypt your messages via digital certificates, we show how to sign...