Exporting a node to xml

Are you joking? It’s three or four posts up in this thread.

I am soooo sorry! I think u posted at the same time I posted and then moved to the 2nd page and totally didn’t see it!!!

okay one more question , by wrapping in another object did you mean put the bitmap node in another node ? cz I did that and put them all in a node nModeNode and still the same issue

I mean, creating a MyBitmapNode that has a BitmapText field that you save and load yourself in the read() and write() methods of MyBitmapNode. That way you can delay creating the BitmapText until you know the font (which you would have saved by name, etc.).

Most people don’t ever need to save BitmapText in a file, I guess.

1 Like

sorry but i’m confused…

MyBitmapNode is just a Node that will hold the BitmapText (which is the same exact thing that I did with nModeNode) - the bitmaptexts I have are children of that node. Then I use: exporter.save(nModeNode, file); to save it into a file , then I import that file.

what am I missing from your logic?

I apologize again for being slow at getting your point

You have to implement your own read() and write() methods on MyBitmapNode that manages the BitmapText child.

I’m thinking this may be too hard for you and you might just have to abandon the idea of saving BitmapText.

oh no no I got it… thanks