Java Reference
In-Depth Information
java
org.java8recipes.chapter20.recipe20_7.MarshalPatients
<xmlfile><context>
The context argument refers to the package of the Java classes that you will mar-
shal. In the previous example, because the code marshals a Patients object tree, the
correct context is the package name of the Patients class. In this case, the context is
org.java8recipes.chapter20 .
Summary
XML is commonly used to transfer data between disparate applications or to store data
of some kind to a file. Therefore, it is important to understand the fundamentals for
working with XML in your application development platform. This chapter provided
an overview of how to perform some key tasks for working with XML using Java.
This chapter began with the basics of writing and reading XML. It then demon-
strated how to transform XML into different formats, and how to validate against XML
schemas. Lastly, the chapter covered topics detailing how to perform various tasks us-
ing XML data within your applications.
Search WWH ::




Custom Search