I have a technical question regarding a problem with the colladadom.
I was navigating on the webpage and am not quite sure if this is the place to ask such a question. If it is not please tell me where should I ask it.
My problem is using the function setCharData() for a daeElement* of the type init_from.
So the code is declare an imagelib, then an image, then the init_from
daeElement* imageLib = root->add(“library_images”);
daeElement* image = imageLib->add(“image”);
daeElement* init_from = image->add(“init_from”);
Then, I just use function setCharData to give the uri to the image file, called texture.bmp
In the export.cpp, you have a similar more compacted example at line 194
The problem is that the setCharData does not work for the init_from (it works for other atributes, no problem). The xml file shows nothing in the init_from
<image id=“img” name=“myimage”>
Since I know the function return a daeBool, I can do the following
printf(“result of adding char data %d
And the result is 0 (it fails, this is why I don’t see anything in the xml)
Then I used the hasCharData function
printf("result of adding char data %d
And the result is 0 also, meaning that the atribute init_from does not allow charData as is suggested in the export example.
Can you help me with this problem?