Message-ID: <1308138109.28971.1394366353151.JavaMail.firstname.lastname@example.org> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_28970_1134448025.1394366353150" ------=_Part_28970_1134448025.1394366353150 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
Here is an example of using
to create a new XML file:
StreamingMarkupBuilder.bind returns a
Writable instance that may be use=
d to stream the markup to a
Writer, in addition to capturing t=
he output in a String (as shown above).
We have used XMLUnit to compare the XML we created with ou= r sample XML. To do this, make sure the sample XML is available, i.e. that = the following class is added to your CLASSPATH:=20 =20
Here's another example illustrating how to produce mixed content:=20 =20
You may also want to see Using MarkupBuilder for Agile XML creation.