Last modified: 2013-10-18 13:43:53 UTC
Hi, I need to overwrite an existing Wiki page using Export and Import utility. I have followed the below steps : 1. Extracted data of an existing Wikipage in XML using the "export utility" (http://www.mediawiki.org/wiki/Special:Export) Note : kept the "Include Templates" checkbox untick. Other 2 were ticked. Eg : abcd.xml -<mediawiki xmlns="http://www.mediamediawiki.org/wiki " xmlns:xsl="http://www.w3.org/2001/" xsl:schemaLocation = "http://www.mediawiki.org/xml/export...." version="0.4" xml:tang='en"> -<siteinfo> -<sitename>ABCD</sitename> -<namespace>Media</namespace> </siteinfo> -<page> <title>NEW</title> <id>25</id> -<revision> <id>12345</id> <timestamp>2013-10-09</timestamp> <contributor> <username>rohi</username> <id>1</id> </contributor> <text xml:space="preserve"> {{ Documenation |name=XYZ |phonenumber=123456789 }} </text> </revision> </page> </mediawiki> 2. Made below changes in the above XML file. Changed phonenumber value as"phonenumber=9999999 ". Deleted the below tags from <revision> tag <id>12345</id> <timestamp>2013-10-09</timestamp> <id>1</id> Below is updated abcd.xml -<mediawiki xmlns="http://www.mediamediawiki.org/wiki " xmlns:xsl="http://www.w3.org/2001/" xsl:schemaLocation = "http://www.mediawiki.org/xml/export...." version="0.4" xml:tang='en"> -<siteinfo> -<sitename>ABCD</sitename> -<namespace>Media</namespace> </siteinfo> -<page> <title>NEW</title> <id>25</id> -<revision> <contributor> <username>rohi</username> </contributor> <text xml:space="preserve"> {{ Documenation |name=XYZ |phonenumber=9999999 }} </text> </revision> </page> </mediawiki> 3. Imported the above XML file. Is this this the correct procedure to overwrite an existing Wikipage? Do I need to add or remove any tags ? Thanks
*** Bug 55504 has been marked as a duplicate of this bug. ***
(In reply to comment #0) > Is this this the correct procedure to overwrite an existing Wikipage? Did things not work, or why do you ask? If things did not work, what was the outcome?
Hi, The import procedure completed successfully but, the changes made in the abcd.xml i.e Changed phonenumber value as "phonenumber=9999999" did not reflect even after importing the abcd.xml The wikipage contained the previous data for "phonenumber" as "123456789". Thanks
I don't know what abcd.xml is and at which exact step "changes made" happened. A specific testcase and clear, step-by-step descriptions might be helpful. See https://www.mediawiki.org/wiki/How_to_report_a_bug . Currently I don't see a valid bug report here yet, but a case for support at https://www.mediawiki.org/wiki/Project:Support_desk
Hi Andre, Sorry if I was not clear. I am trying to seek help on the import feature in Wiki and actually not reporting any bug. If I have landed into a wrong place, please suggest where this can be posted. Thanks Rohini.
I see. Please ask on https://www.mediawiki.org/wiki/Project:Support_desk instead.