Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

com.github.ramalapure:xml-parser

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

com.github.ramalapure:xml-parser

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

  • 1.0
  • Source
  • Maven
  • Socket score

Version published
Maintainers
1
Source

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
    

FAQs

Package last updated on 28 Oct 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc