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

[eluser]The Spider[/eluser]
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.

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.

[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.

The answers you seek are in example #2 of the PHP manual for strtr.

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?

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

Theme © iAndrew 2016 - Forum software by © MyBB