Page MenuHomePhabricator

update export-0.4.xsd
Closed, ResolvedPublic

Description

There are a few errors in export-0.4.xsd:

  • LogItemType is not a part of PageType. It is a own dump
  • "Image:" is used (Export.php use NS_IMAGE, too)
  • fields logtitle and params are missing in LogItemType
  • field text only used when there is deleted text

Thanks.


Version: unspecified
Severity: enhancement

Details

Reference
bz22750

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 11:00 PM
bzimport set Reference to bz22750.
bzimport added a subscriber: Unknown Object (MLST).

Umherirrender, can you provide an example XML dump that doesn't validate when it should (or if the problem is that it validates when it shouldn't, that would also be helpful as a separate example). Thanks!

It looks like the 0.5 xsd file has added most of that stuff in r79877 -- anything else missing, other than the file itself being missing from its canonical location (bug 29819)?

When validate a xml log dump. I get the following error:
Validation of the XML Document failed! Error message(s):
The element 'mediawiki' in namespace 'http://www.mediawiki.org/xml/export-0.5/' has invalid child element 'logitem' in namespace 'http://www.mediawiki.org/xml/export-0.5/'. List of possible elements expected: 'http://www.mediawiki.org/xml/export-0.5/:page'. Line: 1 Column:1890

I have done the necessary change to the xsd with gerrit 9517