Okay, you wrote a lot of Log4j debug statements all over your codebase but do not want them to appear in QA and/or Production environment. How to do that? You need to configure Log4j by modifying log4j.xml. You could also use log4j.properties in place of log4j.xml but some advanced settings can only be set using the latter. Might as well use something that offers greater benefits.
How to Log to Separate Files in Log4j2
You have a batch application that reads, parses interface files (i.e., data files from other sources usually legacy systems), and inserts data into your batch application’s database. All logs are written to a single file. Now, the business starts a
Write Out XML Tags in Java using Lambda
Missed writing out an XML element end tag in your Java codes? You’re not alone. It is acceptable for small XML documents because spotting the erring codes is relatively easy. However, things may get very frustrating when writing huge XML
How To Validate XML String against XSD Without Writing To A File
This post shows how to validate XML string data against XSD files in Java. Most of the time, we work directly with XML files instead of string format. We point to an XML file and validate it against XSDs. However,
Web Service Using Apache XML-RPC: Server And Client-Side
This articles demonstrates how to use Apache XML-RPC in Java command-line applications. We will create programs both for XML-RPC server and client.
Kotlin – Validate XML Against Multiple XSDs
This post is about XML validation against more than one related XSDs – one XSD is included into the main XSD.
Modify XML Element Content in Java using XSLT
This post demonstrates how to modify some parts of the XML content in Java using XSLT. The example herein is rather straight-forward but will provide us a basic working codes before going further to learn the more advanced stuff.
Java, XSLT, and XML with Namespaces
When a XML uses namespaces, they need to be declared and used in the .xsl file so that the javax.xml.transform.Transformer knows how to deal with various elements in the XML. This post demonstrates how to deal with namespaces when performing transformation from or on XMLs.
How to write XML in Kotin using DOM
This post demonstrates how to write XML files using DOM in Java.
Render XML using Thymeleaf
This post demonstrates how to render an XML to a file from a given XML template using Spring Boot and Thymeleaf.