Giter Club home page Giter Club logo

xmlparser's Introduction

Table of contents

Table of Contents
  1. General Info
  2. Run
  3. Input
  4. Query

General Info

  • This is a xml parser that creates a database and accepts query.
  • Only one attribute is supported per element.
  • Attributes supported in the xsd files are name, type, fixed, default and use.
  • Type reference to another element is not permitted in the xsd.
  • Use the DbInterface class to access the database.
  • Input xsd and xml files are given try to follow then or you might get a syntax or semantic error

Run

  • To make the xmlParser executable
  make
  • To clean derived files
  make clean

Input

There are 3 ways to give Input (!!!Caution xml filename must follow xsd filename)

  1. Parse xsd and xml files without verbose
  ./xmlParser input.xsd input.xml
  1. Parse xsd and xml files and see trace parsing verbose
  ./xmlParser -p input.xsd input.xml
  1. Parse xsd and xml files and see trace scanning verbose
  ./xmlParser -s input.xsd input.xml

Query

There are 2 types of query you can make

  1. element query
  .childElementName
  1. specific element with attribute query
  .childElementName(attribute_value)
  • If query successful then all the results will be shown.
  • If query results are complex type then those cannot pe printed as strings.
  • Enter -q to quit the program.

Query example (To get results from the below queries you have to use the given xsd and xml files)

  • shiporder.shipto.name
  • shiporder(889923).shipto.name
  • shiporder(889923).orderperson

xmlparser's People

Contributors

suvajit790 avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

abelgeressu

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.