Returns a String for a JAXBElement

@param jaxbElement
JAXB representation of an XML Element to be printed.
@param prettyPrint
True for pretty print, otherwise false
@return String containing the XML mark-up.
423071
public static String toXMLString(JAXBElement<?> jaxbElement,
			boolean prettyPrint) {

		Document document = toDocument(jaxbElement);

		return toXMLString(document, prettyPrint);

	}
551172
@XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200908/", name = "filter", scope = GetProperties.class)
	public JAXBElement<String> createGetPropertiesFilter(String value) {
		return new JAXBElement<String>(_GetPropertiesFilter_QNAME,
				String.class, GetProperties.class, value);
	}
137767
@XmlElementDecl(namespace = "http://www.ibm.com/websphere/wim", name = "sn")
    public JAXBElement<String> createSn(String value) {
        return new JAXBElement<String>(_Sn_QNAME, String.class, null, value);
    }
282804
public static <T> String marshal(JAXBContext self, T jaxbElement) throws JAXBException {
        return marshal(self.createMarshaller(), jaxbElement);
    }
907685
public static String node2String(final Node node, boolean prettyPrint, String encoding) throws UnsupportedEncodingException 
   {
      final ByteArrayOutputStream baos = new ByteArrayOutputStream();
      new DOMWriter(new PrintWriter(baos), encoding).setPrettyprint(prettyPrint).print(node);
      return baos.toString(encoding);
   }
698031
public static String printNode(Node node, boolean prettyprint)
   {
      StringWriter strw = new StringWriter();
      new DOMWriter(strw).setPrettyprint(prettyprint).print(node);
      return strw.toString();
   }
851681
@XmlElementDecl(namespace = "http://www.ibm.com/websphere/wim", name = "cn")
    public JAXBElement<String> createCn(String value) {
        return new JAXBElement<String>(_Cn_QNAME, String.class, null, value);
    }
727844
@XmlElementDecl(namespace = "http://www.ibm.com/websphere/wim", name = "employeeType")
    public JAXBElement<String> createEmployeeType(String value) {
        return new JAXBElement<String>(_EmployeeType_QNAME, String.class, null, value);
    }
276060
@XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200908/", name = "streamId", scope = GetContentStream.class)
	public JAXBElement<String> createGetContentStreamStreamId(String value) {
		return new JAXBElement<String>(_GetContentStreamStreamId_QNAME,
				String.class, GetContentStream.class, value);
	}
1086602
@XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200908/", name = "changeLogToken", scope = GetContentChanges.class)
	public JAXBElement<String> createGetContentChangesChangeLogToken(
			String value) {
		return new JAXBElement<String>(_GetContentChangesChangeLogToken_QNAME,
				String.class, GetContentChanges.class, value);
	}
435095
@XmlElementDecl(namespace = "http://belframework.org/schema/1.0/xbel", name = "listValue")
    public
            JAXBElement<String> createListValue(String value) {
        return new JAXBElement<String>(_ListValue_QNAME, String.class, null,
                value);
    }
1062462
@XmlElementDecl(namespace = "http://belframework.org/schema/1.0/xbel", name = "disclaimer")
    public
            JAXBElement<String> createDisclaimer(String value) {
        return new JAXBElement<String>(_Disclaimer_QNAME, String.class, null,
                value);
    }
569540
@XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200908/", name = "renditionFilter", scope = Query.class)
	public JAXBElement<String> createQueryRenditionFilter(String value) {
		return new JAXBElement<String>(
				_GetObjectOfLatestVersionRenditionFilter_QNAME, String.class,
				Query.class, value);
	}
1242901
public static <T> String marshal(Marshaller self, T jaxbElement) throws JAXBException {
        StringWriter sw = new StringWriter();
        self.marshal(jaxbElement, sw);
        return sw.toString();
    }
1135825
@XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200908/", name = "renditionFilter", scope = GetRenditions.class)
	public JAXBElement<String> createGetRenditionsRenditionFilter(String value) {
		return new JAXBElement<String>(
				_GetObjectOfLatestVersionRenditionFilter_QNAME, String.class,
				GetRenditions.class, value);
	}
993016
@XmlElementDecl(namespace = "http://www.ibm.com/websphere/wim", name = "localityName")
    public JAXBElement<String> createLocalityName(String value) {
        return new JAXBElement<String>(_LocalityName_QNAME, String.class, null, value);
    }
112985
public static String format(final String xml) {
        try {
            final DocumentBuilder db = DocumentBuilderFactory.newInstance().newDocumentBuilder();
            final Document doc = db.parse(new InputSource(new StringReader(xml)));
            final Transformer transformer = TransformerFactory.newInstance().newTransformer();
            transformer.setOutputProperty(OutputKeys.INDENT, "yes");
            transformer.setOutputProperty("{http://xml.apache.org/xslt}indent-amount", "2");
            final StreamResult result = new StreamResult(new StringWriter());
            final DOMSource source = new DOMSource(doc);
            transformer.transform(source, result);

            return result.getWriter().toString();
        } catch (final Exception e) {
            LOGGER.log(Level.WARN, "Formats pretty XML failed: " + e.getMessage());

            return xml;
        }
    }