diff --git a/docs/source/how_do_i.rst b/docs/source/how_do_i.rst
index b0b476c..c1a904c 100644
--- a/docs/source/how_do_i.rst
+++ b/docs/source/how_do_i.rst
@@ -262,7 +262,7 @@ following
'Google'
But that would be painful. A better solution is to install the Python XMP
-Toolkit::
+Toolkit (make sure it is version 2.0)::
>>> from libxmp import XMPMeta
>>> from libxmp.consts import XMP_NS_XMP as NS_XAP
@@ -285,19 +285,77 @@ http://photojournal.jpl.nasa.gov/tiff/PIA17145.tif info JPEG 2000::
Next you can extract the XMP metadata.
>>> from libxmp import XMPFiles
- >>> xf = XMPFile()
+ >>> xf = XMPFiles()
>>> xf.open_file('PIA17145.tif')
>>> xmp = xf.get_xmp()
+ >>> print(xmp)
+
+
+
+
+ 1016
+ 1016
+
+
+ 8
+
+
+ 1
+ 1
+ 1
+ 1
+ 2
+
+
+
+
+ converted PNM file
+
+
+
+
+
+
If you are familiar with TIFF, you can verify that there's no XMP tag in the
TIFF file, but the Python XMP Toolkit takes advantage of the TIFF header
structure to populate an XMP packet for you. If you were working with a JPEG
file with Exif metadata, that information would be included in the XMP packet
-as well. Now you can append the XMP packet in a UUIDBox::
+as well. Now you can append the XMP packet in a UUIDBox. In order to do this,
+though, you have to know the UUID that signifies XMP data.::
>>> import uuid
- >>> the_uuid = uuid.UUID('be7acfcb-97a9-42e8-9c71-999491e3afac')
- >>> box = glymur.jp2box.UUIDBox(uuid, str(xmp).encode())
+ >>> xmp_uuid = uuid.UUID('be7acfcb-97a9-42e8-9c71-999491e3afac')
+ >>> box = glymur.jp2box.UUIDBox(xmp_uuid, str(xmp).encode())
>>> jp2.append(box)
-
-
+ >>> print(jp2.box[-1])
+ UUID Box (uuid) @ (592316, 1053)
+ UUID: be7acfcb-97a9-42e8-9c71-999491e3afac (XMP)
+ UUID Data:
+
+
+
+ 1016
+ 1016
+
+
+ 8
+
+
+ 1
+ 1
+ 1
+ 1
+ 2
+
+
+
+
+ converted PNM file
+
+
+
+
+