Skip to content
This repository was archived by the owner on Feb 7, 2019. It is now read-only.
This repository was archived by the owner on Feb 7, 2019. It is now read-only.

Missing element definition for "<redirect>" #1

@wwentland

Description

@wwentland

xml2sql fail with recent WP dumps due to missing element definition for "redirect".

$ xml2sql swwiki-20090821-pages-articles.xml 
unexpected element <redirect>
xml2sql: parsing aborted at line 209 pos 16.

This issue can be solved by adding a definition for redirect to keywords:

--- a/keywords
+++ b/keywords
@@ -20,6 +20,7 @@ enum element {
   el_minor,
   el_comment,
   el_text,
+  el_redirect,
 };
 %}

and re-run gperf as explained in mediawiki.c.

babilen

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions