data.setAttribute("value", name);
result.appendChild(data);
data = doc.createElement("textureinfo");
for (int i = 0; i < textures.size(); i++) {
N3Texture t;
t = (N3Texture) textures.elementAt(i);
textNode = doc.createElement("textureitem");
textNode.setAttribute("index", "" + resources.indexOf(t));
data.appendChild(textNode);
}