hi,
i want to get a
string from a fragment of Document. something like:
public String getStringFromDocumentElement(Element element);
param element is a node somewhere in a Document.
i thought i could import given element to another document and write it to a StringWriter. or just by passing it as a Node directly to the following:
but it does not work. to me it is an obvious functionality to get a document fragment as a String. but i haven't found anything on the net so far.
thanks.