git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/information-system/gCubeIS/Registry@4305 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
e4f1b6ea6a
commit
b841833fed
|
@ -77,8 +77,12 @@ public class ProfileResource extends GCUBEWSResource {
|
|||
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
|
||||
factory.setNamespaceAware(true);
|
||||
DocumentBuilder builder = factory.newDocumentBuilder();
|
||||
|
||||
StringReader reader = new StringReader(writer.toString().substring(writer.toString().indexOf("?>")+2, writer.toString().length()));
|
||||
InputSource source = new InputSource(reader);
|
||||
InputSource source = new InputSource();
|
||||
source.setEncoding("UTF-8");
|
||||
source.setCharacterStream(reader);
|
||||
System.out.println("-----------"+source.getCharacterStream());
|
||||
dom =builder.parse(source);
|
||||
} catch (Exception e1) {
|
||||
throw new ResourceException(e1);
|
||||
|
|
Loading…
Reference in New Issue