Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
cosmetics
  • Loading branch information
rquetiez authored Nov 29, 2024
1 parent b6206de commit bc10859
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ The attribute **id** of the **class** is the name of this class.
The **parent** tag is optional. If present it *must* contain the **class** tag with the attribute **id** defining the name of the parent class.

## Exercise 1
Create PHP program (to be launched from the command line) which takes as input the name of a XML file, reads the specified file and outputs the number of classes defined in the XML file.
Create a PHP program (to be launched from the command line) which takes as input the name of a XML file, reads the specified file and outputs the number of classes defined in the XML file.

When running your program against the provided **sample1.xml** file, the expected result is: 4.

## Exercise 2
Create PHP program (to be launched from the command line) which takes as input a XML file, reads the specified file and outputs a PHP file containing a valid PHP declaration of all the classes defined in the given XML file.
Create a PHP program (to be launched from the command line) which takes as input a XML file, reads the specified file and outputs a PHP file containing a valid PHP declaration of all the classes defined in the given XML file.

Run your program against the provided **sample1.xml** and check that the result is a valid PHP file.

Expand Down

0 comments on commit bc10859

Please sign in to comment.