If someone did want to do a Flex/AIR front-end for Sword, it is now possible to port over C/C++ libraries: http://www.flashmagazine.com/news/detail/alchemy_toolkit_-_preview_version_out_on_adobe_labs/ (Though, I suspect using ActionScript's E4X for XML parsing could be beneficial).