A python3 program to display quotes from whom or whatever you like.
Type python3 main.py
into a terminal to display the quotes contained in the cites.xml
file.
<?xml version="1.0" encoding="UTF-8"?>
<stoic>
<author name="Marcus Aurelius" image="marcus_aurelius.png">
<cite>You have power over your mind - not outside events. Realize this, and you will find strength.</cite>
</author>
<author>
<cite>If the will is strong there is no mountain too hard to climb.</cite>
<cite>...</cite>
<author>
</stoic>
- the root tag
<stoic>...</stoic>
is exchangeable. <cite></cite>
needs to be encapsulated by the<author></author>
tag- providing a
name
andimage
attribute is optional- providing no
name
attribute defaults to the name set to Unknown - not providing an
image
attribute displays the default.png
- providing no
- the image's default path is
./img/
, add them there