Ok, problem is as follows i have a bunch of collada files, referenced form a master file and possibly form the sub files themselves. I’m using the collada dom to recurse the application (i have no choice on the matter its a testbed for suitability of collada dom)
Now each file defines its own scaling,
My problem is that theres no nice way in the dom to point me to the value. So i have to resolve the document form uri and get the asset element back up form the domCOLLADA object with getAsset and so on.
However if theres a more natural way then I´m all ears, because quite frankly it feels most of the time that the dom isn’t doing me any favors. (in fact i would probably have been ready ages ago had i not bothered to use it, but thats not in my hands)
And sax style parsing is out of the question, as i do have to do this in a certain order otherwise everything craps up totally. (the target system is somewhat limited)
PS: my current alternate strategy is to try to resolve scale every time i encounter a instance that jumps over a url and push the scale in a hash then retrieve it for each and every object based on that.