Hi all,
How can I convert/export a wiki page to xml file by using the API:data formats[1]? If the wiki page is [2], how can I get the xml file of it?
Many thank, Hurry
[1] http://en.wikipedia.org/w/api.php [2] http://en.wikipedia.org/wiki/Wiki
2011/1/10 He Rui rhe@redhat.com:
Hi all,
How can I convert/export a wiki page to xml file by using the API:data formats[1]? If the wiki page is [2], how can I get the xml file of it?
To get an XML file that can be imported into another wiki using Special:Import or importDump.php , use
http://en.wikipedia.org/w/api.php?action=query&titles=Wiki&export&am...
Is that what you were looking for?
Roan Kattouw (Catrope)
2011/1/10 Roan Kattouw roan.kattouw@gmail.com
2011/1/10 He Rui rhe@redhat.com:
Hi all,
How can I convert/export a wiki page to xml file by using the API:data formats[1]? If the wiki page is [2], how can I get the xml file of it?
To get an XML file that can be imported into another wiki using Special:Import or importDump.php , use
http://en.wikipedia.org/w/api.php?action=query&titles=Wiki&export&am...
Is that what you were looking for?
If you're trying to convert wikitext into xml, there're talks in progress about, but the best you can get so far is XHTML 1.0 Transitional... that is simply the code of html pages built by servers after parsing od wikitext. Am I wrong?
Alex brollo
2011/1/10 Alex Brollo alex.brollo@gmail.com:
If you're trying to convert wikitext into xml, there're talks in progress about, but the best you can get so far is XHTML 1.0 Transitional... that is simply the code of html pages built by servers after parsing od wikitext. Am I wrong?
Questions like these are usually about XML dumps generated by Special:Export and dumpBackup.php and accepted by Special:Import and importDump.php . They wrap the wikitext entirely without structuring it, and only contain metadata about revisions and pages.
Roan Kattouw (Catrope)
Greetings Roan!
On Mon, 2011-01-10 at 14:38 +0100, Roan Kattouw wrote:
2011/1/10 He Rui rhe@redhat.com:
Hi all,
How can I convert/export a wiki page to xml file by using the API:data formats[1]? If the wiki page is [2], how can I get the xml file of it?
To get an XML file that can be imported into another wiki using Special:Import or importDump.php , use
http://en.wikipedia.org/w/api.php?action=query&titles=Wiki&export&am...
Is that what you were looking for?
Yeah, but it doesn't work on wiki 1.14 such as the parameter 'export'. Is there an alternative way to achieve this? If no, I'll use Special:Export[1] instead.
Many Thanks, Hurry [1] http://en.wikipedia.org/wiki/Help:Export
2011/1/11 He Rui rhe@redhat.com:
Yeah, but it doesn't work on wiki 1.14 such as the parameter 'export'. Is there an alternative way to achieve this? If no, I'll use Special:Export[1] instead.
When working with MW 1.14, you should use Special:Export, yes.
Roan Kattouw (Catrope)
mediawiki-api@lists.wikimedia.org