From Fedora Project Wiki
(Created page with "{{QA/Test_Case |description=This test case verifies that the `expat` library for parsing XML is functioning correctly in Fedora. |setup= # Install the `expat` tools: `sudo dnf install expat` # Prepare an XML file named `sample.xml` with 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>'' |actions= # Open a terminal. # Check the version of `expat` insta...") |
(No difference)
|
Latest revision as of 13:17, 21 August 2023
Description
This test case verifies that the expat
library for parsing XML is functioning correctly in Fedora.
Setup
- Install the
expat
tools:sudo dnf install expat
- Prepare an XML file named
sample.xml
with 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
expat
installed:xmlwf -V
- Use
xmlwf
to verify the well-formedness of thesample.xml
file:xmlwf sample.xml
Expected Results
- The
xmlwf -V
command should display the version ofexpat
installed. - The
xmlwf sample.xml
command 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.