XSugar enables one to define a single set of mapping rules between a non-XML and an XML format for the same information. The rule-set can then be used in either direction. This is a far superior approachh to requiring one to write two one-way transformations.
Unfortunately, although they claim to have a declarative model-representation language, it is not immediately obvious, when visiting their site, where this is defined.