Giter VIP home page Giter VIP logo

mhxmlp's Introduction

MHXMLP

My Horrible XML Parser

Exercise for UNIX classes at ISEN school.

Usage

cat plant_catalog.xml | ./mhxmlp.sh

Tests

tester.sh allows testing a few conditions with different files :

  • plant_catalog.xml: 0: No error
  • empty.xml: 11: Error, the file is empty
  • no_catalog.xml: 19: Error, malformed XML, catalog not found
  • no_plant.xml: 19: Error, malformed XML, unexpected data not in plant line 123
  • no_opening.xml: 19: Error, no opening tag on line 284
  • no_closing.xml: 19: Error, no closing tag on line 166
  • double_plant.xml: 19: Error, you can't define a plant inside a plant (no plantception) line 90
  • duplicated.xml: 19: Error, malformed XML, duplicated entry line 62
  • no_preamble.xml: 19: Error, no xml preamble
  • no_common.xml: 19: Error, malformed XML, COMMON field not found
  • ./mhxmlp.sh [arg]: 5: Error, wrong arguments

mhxmlp's People

Watchers

 avatar

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.