Project

Profile

Help

Story #1892

closed

Find or create XSD for every XML file we deal with

Added by jcline@redhat.com almost 8 years ago. Updated about 5 years ago.

Status:
CLOSED - WONTFIX
Priority:
Normal
Assignee:
-
Sprint/Milestone:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Platform Release:
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

As everyone is probably aware, the XML namespace used for yum repositories (http://linux.duke.edu/metadata/) is dead and gone. This is sad.

We deal with the yum metadata XML in this plugin, so we should have an XML Schema Definition (XSD) for the XML we accept. These XSD have probably already been written by someone, but we don't know where they are. We should find (or, as a last resort, write) an XSD for each file type. We should use them to validate incoming XML. This provides two benefits:

1) We know when upstream metadata doesn't match our expectations.
2) We document our expectations of the metadata format. This is helpful when we encounter a problem so people can either determine we are not expected the "correct" XML, or they are creating "incorrect" XML.

Also available in: Atom PDF