I wrote a method to scan a directory for XML files and dynamically create WordPress metaboxes for page and post types. All works fine except wh