Search code examples
xmldomcolladasketchup

Huge xml Collada file. Use dom on it, how?


We got a huge assignment (don't worry, the deadline passed last week so this ain't for cheating) and now I'm trying to figure out what this file is about.

I got no information about the file, just the code in an email and my task was to represent the data in a "good way". I chose to use DOM for this. The thing is, I don't really know what this file is about. 1. What do you use it for? 2. why and how do you use it? 3. What kind of data in this thing would be interesting to show on a webpage?

Sorry for a relly vauge "question", don't really know what to ask for. Any information about this file is interesting to me, just want to understand it!

Lastly: Link to the XML-document/structure tree


Solution

  • That is a COLLADA file and contains 3D content. Actually, it is not really that huge for a 3D content, I have seen some examples over 100 Mb. That's how it looks like in Sketchup:

    Your content

    There are some image files missing, which are needed to display the textures. But they were not on the link, so texturing was not successful. You can try to parse the file with DOM and display it yourself, which is not possibly the fastest way. Or you can use some existing API for your web page like three.js, which I would recommend to do. You don't really want to deal with the intern structure of COLLADA.