public String getAsString()
throws JAXBException, UnsupportedEncodingException
{
public String getAsString()
throws JAXBException, UnsupportedEncodingException
{
private Marshaller createMarshaller(Class xmlRootClass) throws JAXBException {
JAXBContext jaxbContext = JAXBContext.newInstance(xmlRootClass);
Marshaller marshaller = jaxbContext.createMarshaller();
private Marshaller createMarshaller(Class xmlRootClass) throws JAXBException {
JAXBContext jaxbContext = JAXBContext.newInstance(xmlRootClass);
Marshaller marshaller = jaxbContext.createMarshaller();
marshaller.setProperty(
Marshaller.JAXB_ENCODING,
charset.name()
);
marshaller.setProperty(
Marshaller.JAXB_FORMATTED_OUTPUT,
marshaller.setProperty(
Marshaller.JAXB_ENCODING,
charset.name()
);
marshaller.setProperty(
Marshaller.JAXB_FORMATTED_OUTPUT,
marshaller.setProperty(Marshaller.JAXB_FRAGMENT, Boolean.TRUE);
marshaller.setProperty(
XSPFConstants.XML_HEADER_NAME,
marshaller.setProperty(Marshaller.JAXB_FRAGMENT, Boolean.TRUE);
marshaller.setProperty(
XSPFConstants.XML_HEADER_NAME,