{"action":"opened","issue":{"url":"https://api.github.com/repos/zeux/pugixml/issues/31","labels_url":"https://api.github.com/repos/zeux/pugixml/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/zeux/pugixml/issues/31/comments","events_url":"https://api.github.com/repos/zeux/pugixml/issues/31/events","html_url":"https://github.com/zeux/pugixml/issues/31","id":58712659,"number":31,"title":"Setting text of node","user":{"login":"secondVISION","id":8403152,"avatar_url":"https://avatars.githubusercontent.com/u/8403152?v=3","gravatar_id":"","url":"https://api.github.com/users/secondVISION","html_url":"https://github.com/secondVISION","followers_url":"https://api.github.com/users/secondVISION/followers","following_url":"https://api.github.com/users/secondVISION/following{/other_user}","gists_url":"https://api.github.com/users/secondVISION/gists{/gist_id}","starred_url":"https://api.github.com/users/secondVISION/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/secondVISION/subscriptions","organizations_url":"https://api.github.com/users/secondVISION/orgs","repos_url":"https://api.github.com/users/secondVISION/repos","events_url":"https://api.github.com/users/secondVISION/events{/privacy}","received_events_url":"https://api.github.com/users/secondVISION/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-24T09:25:32Z","updated_at":"2015-02-24T09:25:32Z","closed_at":null,"body":"Hey, I'm trying to set the value of a node but I can't get it to work.\r\n\r\nI have a file:\r\n<config> \r\n   <info/>\r\n   <test></test>\r\n</config>\r\n\r\nWhen I try to set either of these to a value it won't work.\r\nI've tried the following:\r\npugi::xml_node tagNode = mDoc.child(\"config\").child(info);\r\n\ttagNode.append_child(pugi::node_pcdata);\r\n\ttagNode.first_child().set_value(\"value\");\r\n\r\nor:\r\n\ttagNode.text().set(\"value\");\r\n\r\n"}}