The documentation for the DDR at :
says that CustomStyles for Objects are at the location of :
But in fact they're one level deeper, under ( for example, for a text object ) :
( replace TextObj with whatever type they are. ) You can recreate this in a test file :
Create a new file, put some text on the layout, select a style for the text object and then generate the DDR.
This makes it a harder to locate the CustomStyles data as you need to also match against all the possible child node types.
So either the documentation is wrong, ( and it doesn't seem to list all possible child node types as well ) or the DDR is wrong. I'd prefer that the DDR was wrong, and the correct location for the CustomStyles node was as a child of the Object.
This is also more of a issue for a Rect or Line object, because for them, the location of the CustomStyles node is as a child of the Object node ( as per the documentation ) because they don't seem to have their own custom child node.
So any XPath code to locate the CustomStyles data for any given Object needs to look in two possible places, one with a large number of non defined names.