earwig / mwparserfromhell

A Python parser for MediaWiki wikicode
https://mwparserfromhell.readthedocs.io/
MIT License
741 stars 74 forks source link

mwxml.errors.MalformedXML: Unexpected tag found when processing a <revision>: 'origin' #324

Closed kilgarenone closed 1 month ago

kilgarenone commented 1 month ago

My XML contains the origin tag

<page>
    <title>Game of Thrones</title>
    <ns>0</ns>
    <id>20715044</id>
    <revision>
      <id>1233128318</id>
      <parentid>1232227109</parentid>
      <timestamp>2024-07-07T12:07:38Z</timestamp>
      <contributor>
        <username>Cheezknight</username>
        <id>39594742</id>
      </contributor>
      <comment>/* A Knight of the Seven Kingdoms */ added main article link</comment>
      <origin>1233128318</origin>
      <model>wikitext</model>

If I remove it, I don't see that error.

How do I ask mwparserfromhell to ignore that tag?