On 28 juin 08, at 13:18, Stéphane Laurière wrote:
Hi everyone,
For your information, I started coding a "Texifier", i.e. a tool that converts XWiki pages into a Tex file: http://playground.xwiki.org/xwiki/bin/view/Main/Texifier
It relies on WikiModel and was written mainly for generating PDF from XWiki pages using the power of pdflatex.
Comments welcome!
For the XMLRPC you could directly use the xwiki-xmlrpc-client module that provides wrappers so that you don't need to explicitly write code like XmlRpcClient client = createXmlRpcClient(wikiUrl); String token = (String) client.execute("confluence1.login", new Object[] { username, password }); String[] pageNameData = getSpaceAndName(pageListDocumentFullName); Map page = (Map) client.execute("confluence1.getPage", new Object[] { token, pageNameData[0], pageNameData[1] }); String content = (String) page.get("content"); But you can do something more readable: XWikiXmlRcpClient client = new XWikiXmlRpcClient(endpoint); client.login(userName, password); XWikiPage page = client.getPage(pageId); String content = page.getContent(); ... -Fabio