From Fedora Project Wiki

Revision as of 13:17, 21 August 2023 by Sumantrom (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Description

This test case verifies that the expat library for parsing XML is functioning correctly in Fedora.

Setup

  1. Install the expat tools: sudo dnf install expat
  2. 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

  1. Open a terminal.
  2. Check the version of expat installed: xmlwf -V
  3. Use xmlwf to verify the well-formedness of the sample.xml file: xmlwf sample.xml

Expected Results

  1. The xmlwf -V command should display the version of expat installed.
  2. 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.