Welcome Guest, Not a member yet? Register   Sign In
XML to wiki
#1

[eluser]The Spider[/eluser]
Hi,
I have to convert the contents of a tutorial to media wiki.These contents are stored in XML files.
The task is to write a script to convert these XML files to wiki. Can any one help me to do this.
Thanks
#2

[eluser]TheFuzzy0ne[/eluser]
You should be able to do that easily enough with [url="http://www.php.net/strtr"]strtr[/url] or [url="http://www.php.net/preg_replace"]preg_replace[/url]. strtr would probably be easier, since you don't need any regexes, but it may not be 100% suitable.
#3

[eluser]The Spider[/eluser]
Thanks a lot for your reply.
But how can I do that with strstr ... If possible can you pls tell me more.
#4

[eluser]TheFuzzy0ne[/eluser]
The answers you seek are in example #2 of the PHP manual for strtr.
#5

[eluser]jedd[/eluser]
What's wrong with [url="http://us3.php.net/manual/en/function.simplexml-load-file.php"]simplexml_load_file()[/url] - or am I missing something?
#6

[eluser]The Spider[/eluser]
Has anyone did convertion of xml to mediawiki?




Theme © iAndrew 2016 - Forum software by © MyBB