[JS CS3] How to show xml tag attributes
Hello,
I have a series of xml tags, all of which have attributes. Sometimes I want to see the attributes along with the tags in the structure bay, but sometimes I do not.
The following always hides the attributes:
var myDoc = app.activeDocument;
myDoc.xmlViewPreferences.showStructure = true;
myDoc.xmlViewPreferences.showAttributes = false;
However, the following does not show the attributes unless I have already manually revealed them myself and then hid them (either manually or via script). How can make the attributes show?
var myDoc = app.activeDocument;
myDoc.xmlViewPreferences.showStructure = true;
myDoc.xmlViewPreferences.showAttributes = true;
Thanks,
Tom