- Remove commited JAXB stubs

- Export support multiline notes.
This commit is contained in:
Paulo Gustavo Veiga
2012-03-06 23:26:11 -03:00
parent 6506b60977
commit 25f1e2f549
84 changed files with 3322 additions and 10578 deletions

View File

@@ -0,0 +1,36 @@
package com.wisemapping.importer;
import java.io.OutputStream;
import org.apache.xml.serialize.OutputFormat;
import org.apache.xml.serialize.XMLSerializer;
import org.jetbrains.annotations.NotNull;
import org.w3c.dom.Document;
@SuppressWarnings("deprecation")
public class JaxbCDATAMarshaller {
public static XMLSerializer createMindmapXMLSerializer(@NotNull OutputStream out) {
// configure an OutputFormat to handle CDATA
OutputFormat of = new OutputFormat();
// specify which of your elements you want to be handled as CDATA.
// The use of the '^' between the namespaceURI and the localname
// seems to be an implementation detail of the xerces code.
// When processing xml that doesn't use namespaces, simply omit the
// namespace prefix as shown in the third CDataElement below.
of.setCDataElements(
new String[]{"^text"}); //
// set any other options you'd like
// of.setPreserveSpace(true);
of.setIndenting(true);
// create the serializer
XMLSerializer result = new XMLSerializer(of);
result.setOutputByteStream(out);
return result;
}
}