XmlUtil

A lightweight collection of Java XML-related utils

License

License

GroupId

GroupId

eu.miltema
ArtifactId

ArtifactId

xmlutil
Last Version

Last Version

0.1.1
Release Date

Release Date

Type

Type

jar
Description

Description

XmlUtil
A lightweight collection of Java XML-related utils
Project URL

Project URL

https://github.com/tehnomaan/xmlutil
Source Code Management

Source Code Management

https://github.com/tehnomaan/xmlutil

Download xmlutil

How to add to project

<!-- https://jarcasting.com/artifacts/eu.miltema/xmlutil/ -->
<dependency>
    <groupId>eu.miltema</groupId>
    <artifactId>xmlutil</artifactId>
    <version>0.1.1</version>
</dependency>
// https://jarcasting.com/artifacts/eu.miltema/xmlutil/
implementation 'eu.miltema:xmlutil:0.1.1'
// https://jarcasting.com/artifacts/eu.miltema/xmlutil/
implementation ("eu.miltema:xmlutil:0.1.1")
'eu.miltema:xmlutil:jar:0.1.1'
<dependency org="eu.miltema" name="xmlutil" rev="0.1.1">
  <artifact name="xmlutil" type="jar" />
</dependency>
@Grapes(
@Grab(group='eu.miltema', module='xmlutil', version='0.1.1')
)
libraryDependencies += "eu.miltema" % "xmlutil" % "0.1.1"
[eu.miltema/xmlutil "0.1.1"]

Dependencies

runtime (1)

Group / Artifact Type Version
xerces : xercesImpl jar 2.12.0

test (1)

Group / Artifact Type Version
junit : junit jar 4.13

Project Modules

There are no modules declared in this project.

XmlUtil

XmlUtil is a lightweight collection of Java XML-related utils.

XML Validation

To use XML validation, schema files (XSD) have to be accessible in classpath. Basic usage:

new XmlValidator().validate("<abc>Just testing</abc>", "shiporder.xsd");

Usage with imported/included XSD's in a classpath subfolder:

new XmlValidator(new SubfolderUriComposer("schemas")).
	validate("<abc>Just testing</abc>", "schemas/shiporder.xsd");

Dependencies

Add XmlUtil dependency into build.gradle:

dependencies {
    implementation 'eu.miltema:xmlutil:0.0.1'
}

XmlUtil itself depends on xerces:xercesImpl. This is resolved by build system automatically.

Versions

Version
0.1.1