General purpose parser for the markup format used in PSD files