I understood perfectly how to use XMP to store information categories in the pictures!
- Create your categories as normal, with the hierarchy you want.
- Under Tools, Settings, Metadata, enable "export categories to IPTC or XMP".
- In each picture or set of photos, select the categories in the information panel.
- The XnView will create XMP in the file, but not the IPTC (it's better that way because the IPTC gives problem with accented letters).
- Probably the XnView will not include XMP in the last subcategory of the hierarchy, but there is as correct.
For example:
Say you have the following categories:
- Category A [list]
- Subcategory A1
- Subcategory A2 [list]
- Subcategory A2a
- Subcategory A2b
[/list]
[*]Category B[/*]
[/list]
When selecting A2b, XnView automatically select A2 and A. However, XMP will be:
dc
subject[] A
subject[] A2
lr
hierarchicalSubject[] A
hierarchicalSubject[] A|A2
So missing:
dc
subject[] A2b
lr
hierarchicalSubject[] A|A2|A2b
To correct it, re-select the category A2b with drop-down menu, clicking the right mouse button on the photos and selecting "category".
Thus, the XMP will be complete and may be read by other programs such as Shotwell or F-Spot (note: these two programs only read non-hierarchical categories, "dc".)! See:
dc
subject[] A
subject[] A2
subject[] A2b
lr
hierarchicalSubject[] A
hierarchicalSubject[] A|A2
hierarchicalSubject[] A|A2|A2b
Then I try to put images to make it easier to understand!