Java XML JAXB Marshaller removeStandalone(final Marshaller marshaller)

Here you can find the source of removeStandalone(final Marshaller marshaller)

Description

remove Standalone

License

Open Source License

Declaration

public static void removeStandalone(final Marshaller marshaller)
            throws PropertyException 

Method Source Code

//package com.java2s;
/*/*from   w  w w. j  a  v a 2s.co m*/
 * [y] hybris Platform
 *
 * Copyright (c) 2000-2014 hybris AG
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of hybris
 * ("Confidential Information"). You shall not disclose such Confidential
 * Information and shall use it only in accordance with the terms of the
 * license agreement you entered into with hybris.
 *
 *  
 */

import javax.xml.bind.Marshaller;
import javax.xml.bind.PropertyException;

public class Main {
    public static void removeStandalone(final Marshaller marshaller)
            throws PropertyException {
        marshaller.setProperty(Marshaller.JAXB_FRAGMENT, Boolean.TRUE);
    }
}

Related

  1. marshalObjectToXml(Object object, String xmlFilePath)
  2. marshalPackage(OutputStream printStream, final Package p)
  3. marshalToString(Object obj)
  4. marshalToString(Object obj)
  5. marshalV2(Class clazz, T obj, String uri, String nodeName)
  6. setEncoding(@Nonnull final Marshaller aMarshaller, @Nullable final Charset aEncoding)
  7. xmlMarshal(Object obj, Class clazz)