While searching the codes, I saw that there are some cxf codes are using
new String(String value). like in StaxUtils, I am wondering is there any
special reason for this ?
public static Document read(XMLStreamReader reader, boolean recordLoc)
throws XMLStreamException {
Document doc = DOMUtils.createDocument();
if (reader.getLocation().getSystemId() != null) {
try {
doc.setDocumentURI(new
String(reader.getLocation().getSystemId()));
<-----------------------------------
} catch (Exception e) {
//ignore - probably not DOM level 3
}
}
readDocElements(doc, doc, reader, true, recordLoc);
return doc;
}
Thanks
--
Ivan