Quantcast
Channel: beginners - openFrameworks
Viewing all articles
Browse latest Browse all 4929

Adding a child using ofXML

$
0
0

@Dofl_Yun wrote:

I am trying to generate an XML data and save it as a file. Case 1 works but Case 2 doesn’t add a child. For some reason, I would like to create a child first and add it into parent later. How can I do that?

Case1:
ofXml doc;
auto data = doc.appendChild(“data”);

Case2:
ofXml doc;
ofXml data;
doc.appendChild(data);

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4929

Trending Articles