- setDocument: function(document) {\r
- $('#rng-visualEditor-content', view).html(document2html(document));\r
+ setDocument: function(xml) {\r
+ var transformed = transformations.fromXML.getDocumentDescription(xml);\r
+ $('#rng-visualEditor-content', view).html(transformed.HTMLTree);\r