String sSchema = "http://v8.1c.ru/8.1/data/enterprise/current-config";
OCXMLSchemaSet schemaSet = factory.exportXMLSchema(sSchema);
OCXMLSchema schema = schemaSet.getSchema(0);
OCXSNamedComponentMap typeMap = schema.getTypeDefinitions();
OCXSBasicComponent bc = typeMap.getByName(xmlType.getTypeName());
System.out.println("BC toString: " + bc);
System.out.println("DOMElement of BC: " + bc.getDOMElement());
OCXMLWriter xmlWriter = app.newXMLWriter();
xmlWriter.setString();
OCDOMWriter domWriter = app.newDOMWriter();
domWriter.write(bc.getDOMElement(), xmlWriter);
String res = xmlWriter.close();
System.out.println(res);
}