Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

What are the properties of the jaxb marshaller?


Asked by Aarya Owens on Dec 06, 2021 FAQ



JAXB Marshaller Properties All JAXB Providers are required to support the following set of properties. Some providers may support additional properties. jaxb.encoding – The output encoding to use when marshalling the XML data. The Marshaller will use “ UTF-8 ” by default if this property is not specified.
Likewise,
Whether or not the Marshaller will format the resulting XML data with line breaks and indentation. Default value is false. jaxb.schemaLocation – It allows the client application to specify an xsi:schemaLocation attribute in the generated XML data.
In this manner, The Marshaller will use “ UTF-8 ” by default if this property is not specified. jaxb.formatted.output – Value can be true or false. Whether or not the Marshaller will format the resulting XML data with line breaks and indentation. Default value is false.
Also,
Sets the Unmarshaller.Listener to be registered with the JAXB Unmarshaller. Indicates whether this marshaller can marshal instances of the supplied type. Indicates whether this marshaller can marshal instances of the supplied type. Unmarshals the given Source into an object graph.
Moreover,
JAXB annotated classes and artifacts contains all the information that the JAXB runtime API needs to process XML instance documents. The JAXB runtime API enables marshaling of JAXB objects to XML and unmarshaling the XML document back to JAXB class instances.