* @param encoding установка кодировки в заголовке вывода xml
* @return строковое представление xsd
* @throws JIException
*/
public String getSchemaAsString(String encoding) throws JIException{
OCApp app = OCApp.getInstance(getAssociatedSessionID());
OCDOMDocument document = getDOMDocument();
OCXMLWriter xmlWriter = app.newXMLWriter();
xmlWriter.setString(encoding);
OCDOMWriter domWriter = app.newDOMWriter();
domWriter.write(document, xmlWriter);
String res = xmlWriter.close();
return res;