public static void valueToDocument(Value value,String rootNodeName,Document document,XSType type){
  Element root=document.createElement(rootNodeName);
  document.appendChild(root);
  _valueToDocument(value,root,document,type);
}

public static void valueToDocument ( Value value , String rootNodeName , Document document , XSType type ) { Element root = document . createElement ( rootNodeName ) ; document . appendChild ( root ) ; _valueToDocument ( value , root , document , type ) ; }
transforms a jolie . value object to an xml document instance following a given xml type definition .
