XmlParser

The library performs an operation on XML, XSD and returns CSV data in the following output formats: String, File, and Writer.

License

License

GroupId

GroupId

com.github.ramalapure
ArtifactId

ArtifactId

xml-parser
Last Version

Last Version

1.0
Release Date

Release Date

Type

Type

jar
Description

Description

XmlParser
The library performs an operation on XML, XSD and returns CSV data in the following output formats: String, File, and Writer.
Project URL

Project URL

https://github.com/RamAlapure/xmlparser
Source Code Management

Source Code Management

https://github.com/RamAlapure/xmlparser

Download xml-parser

How to add to project

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

Dependencies

runtime (5)

Group / Artifact Type Version
com.github.xmlet : xsdParser jar 1.0.23
in.jlibs : jlibs-xsd jar 2.2.3
org.glassfish.jaxb : xsom jar 2.3.3-b02
com.fasterxml.jackson.core : jackson-databind jar 2.10.0
com.github.ramalapure : json-parser jar 1.1

Project Modules

There are no modules declared in this project.

The library perform operation on xml and returns csv data in multiple output formats:

  1. String
  2. File
  3. Writer

How you can use it:

Maven Central

Maven

<dependency>
  <groupId>com.github.ramalapure</groupId>
  <artifactId>xml-parser</artifactId>
  <version>1.0</version>
</dependency>

Gradle

implementation 'com.github.ramalapure:xml-parser:1.0'

Note: The following default separator "_" and delimiter "," are used while creating CSV.

To parse xml input file to csv, you can do it by following ways:

  1. Output as String

    XmlParser.xml2Csv(XML_FILE);
    
  2. Output as Writer

    XmlParser.xml2Csv(XML_FILE, WRITER_OBJECT); //e.g. StringWriter, FileWriter, etc.
    
  3. Output as File

    XmlParser.xml2Csv(XML_FILE, CSV_FILE_PATH); // CSV_FILE_PATH e.g. test.csv or D://somefolder/test.csv or /home/user/downloads/test.csv
    

To parse xsd input file to csv, you can do it by following ways:

  1. Output as String

    XmlParser.xsd2Csv(XSD_FILE);
    
  2. Output as Writer

    XmlParser.xsd2Csv(XSD_FILE, WRITER_OBJECT); //e.g. StringWriter, FileWriter, etc.
    
  3. Output as File

    XmlParser.xsd2Csv(XSD_FILE, CSV_FILE_PATH); // CSV_FILE_PATH e.g. test.csv or D://somefolder/test.csv or /home/user/downloads/test.csv
    

To parse xml, xsd input file to csv, you can do it by following ways:

  1. Output as String

    XmlParser.xmlAndXsd2Csv(XML_FILE, XSD_FILE);
    
  2. Output as Writer

    XmlParser.xmlAndXsd2Csv(XML_FILE, XSD_FILE, WRITER_OBJECT); //e.g. StringWriter, FileWriter, etc.
    
  3. Output as File

    XmlParser.xmlAndXsd2Csv(XML_FILE, XSD_FILE, CSV_FILE_PATH); // CSV_FILE_PATH e.g. test.csv or D://somefolder/test.csv or /home/user/downloads/test.csv
    

Versions

Version
1.0