Hi
You can easy convert RTF to WML using Aspose.Words. Here is code:
//Open RTF doc
Document doc = new Document("in.rtf");
//save in WML
doc.Save("out.xml", SaveFormat.WordML);
Also here is code with input RTF string.
string rtfString = @"{\rtf1\ansi\ansicpg1252\deff0\deflang1033\deflangfe1033{\fonttbl{\f0\froman\fprq2\fcharset0 Times New Roman;}{\f1\fnil\fcharset2 Symbol;}}\b\fs24Test text.\b0\par}";
//Get bytes from string, this is needed to create MemoryStream
byte[] rtfBytes = Encoding.UTF8.GetBytes(rtfString);
//Create memorystream
MemoryStream rtfStream = new MemoryStream(rtfBytes);
//Create document from stream
Document rtfDoc = new Document(rtfStream);
//Save document in WML format
rtfDoc.Save(htmlStream, SaveFormat.WordML);
See the following link for more information.
http://www.aspose.com/documentation/file-format-components/aspose.words-for-.net-and-java/introducing-aspose-words.html
WBR,
Alex