From Fedora Project Wiki
Description
This test case verifies that the expat library for parsing XML is functioning correctly in Fedora.
Setup
- Install the
expattools:sudo dnf install expat - Prepare an XML file named
sample.xmlwith the content:
<?xml version="1.0"?> <note> <to>Tove</to> <from>Jani</from> <heading>Reminder</heading> <body>Don't forget me this weekend!</body> </note>
How to test
- Open a terminal.
- Check the version of
expatinstalled:xmlwf -V - Use
xmlwfto verify the well-formedness of thesample.xmlfile:xmlwf sample.xml
Expected Results
- The
xmlwf -Vcommand should display the version ofexpatinstalled. - The
xmlwf sample.xmlcommand should not produce any output if the XML is well-formed.
Optional
Test parsing other XML files you have, or intentionally create malformed XML to see how expat responds.
