There are many ways to generate Java classes from WSDL files – one of them is using the cxf-codegen-plugin, which comes from the Apache Maven CXF. Note that this post will not work with the JDK version beyond 1.8. (See
Validate XML against an XSD that imports other XSDs
This post demonstrates how to validate XML against XSD that imports other XSDs. This is different from validating against multiple independent XSDs.
How to read XML in Kotlin using DOM Parser
This post demonstrates how to read XML files using DOM Parser which parses and loads the entire XML into memory in a Tree structure which makes it very easy to traverse and manipulate elements.
Rust – Generate EPCIS 1.2 XML With Sample Codes
Processing a considerable number of large XML files may require a lot of memory and processing power. With Rust, we can create applications that process huge XML files with a relatively small memory footprint yet are still performant. This post
Very Slow XML Validation against XSDs with unique and key elements
This post shows that XML XSD validation with <xs:unique> is very slow, especially for a huge list of elements, e.g., 300,000 items. We are better off ensuring distinct values through Java codes. The problem also applies to <xs:key>. Worse, we can
Xerces C++: Validate Slow XML Validation Against XSD With Unique And Key Elements
We have encountered a performance issue with Java validating an XML with 300,00 elements against an XSD with <xs:unique> and <xs:key>. This post uses Xerces C++ to parse and validate a huge XML against an XSD with those elements. Also,
JAXB Pre And Post-processing with Unmarshaller Listener
This post shows how to perform JAXB pre and post-processing with Unmarshaller Listener. For instance, you may want to compare the contents of an object before and after you unmarshal an XML. Another use-case is when you may need to
CGI with Tomcat 8
This shows how to configure Apache Tomcat 8 for CGI. Software Environment These are the items we used for this post. Windows 7 Professional SP1 Any web browser Apache Tomcat 8.0.14 ActivePerl 5.16.3.1604 (Windows x86) Java 1.7 (1.7.0_67 – Windows x86)
Java – Convert JavaBean Using XMLEncoder and XMLDecoder
This post shows how to use the Java classes XMLEncoder and XMLDecoder to convert JavaBean objects to XML and back. Note that they support the specifications for JavaBeans to make things work. On the other hand, a conversion may not
Remove XML Element based on parameter in Java using XSLT
This post shows how to remove an XML element based on some parameters in Java using XSLT. We mean parameters for the Transformer object and let XSLT work its magic during the transformation. Therefore, three significant events will happen. First,