Clearly, I'm new to XMP/XML for Photoshop. I'm building a script to handle illustrator files differently than PS files, and would like to do this through the XMP as it seems to be more stable than simply File("blah.txt").type, and the other methods require searching the filename, which the extension is left off of it when opening Illustrator in Photoshop. Plus since it keeps the font info, I may be able to use this for even more!
What I have is:
var xmp = new XMPMeta( activeDocument.xmpMetadata.rawData);
alert(xmp.getProperty(XMPConst.NS_XMP,"dc:format"))
This of course doesn't work. Anybody have an good XML Parse 101 tips?