{"action":"created","issue":{"url":"https://api.github.com/repos/CESNET/libyang/issues/5","labels_url":"https://api.github.com/repos/CESNET/libyang/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/CESNET/libyang/issues/5/comments","events_url":"https://api.github.com/repos/CESNET/libyang/issues/5/events","html_url":"https://github.com/CESNET/libyang/issues/5","id":104525508,"number":5,"title":"lyd_print doesn't work","user":{"login":"randyrandhawa","id":10538322,"avatar_url":"https://avatars.githubusercontent.com/u/10538322?v=3","gravatar_id":"","url":"https://api.github.com/users/randyrandhawa","html_url":"https://github.com/randyrandhawa","followers_url":"https://api.github.com/users/randyrandhawa/followers","following_url":"https://api.github.com/users/randyrandhawa/following{/other_user}","gists_url":"https://api.github.com/users/randyrandhawa/gists{/gist_id}","starred_url":"https://api.github.com/users/randyrandhawa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/randyrandhawa/subscriptions","organizations_url":"https://api.github.com/users/randyrandhawa/orgs","repos_url":"https://api.github.com/users/randyrandhawa/repos","events_url":"https://api.github.com/users/randyrandhawa/events{/privacy}","received_events_url":"https://api.github.com/users/randyrandhawa/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/CESNET/libyang/labels/invalid","name":"invalid","color":"e6e6e6"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-09-02T16:47:30Z","updated_at":"2015-09-02T17:03:25Z","closed_at":"2015-09-02T16:53:27Z","body":"Calling lyd_print() dumps the loaded schemas not the data:\r\n```\r\n<libyang>\r\n  <modules>\r\n    <module>\r\n      <name>ietf-inet-types</name>\r\n      <revision>2013-07-15</revision>\r\n      <namespace>urn:ietf:params:xml:ns:yang:ietf-inet-types</namespace>\r\n      <conformance>implement</conformance>\r\n    </module>\r\n    <module>\r\n      <name>ietf-yang-types</name>\r\n      <revision>2013-07-15</revision>\r\n      <namespace>urn:ietf:params:xml:ns:yang:ietf-yang-types</namespace>\r\n      <conformance>implement</conformance>\r\n    </module>\r\n    <module>\r\n      <name>ietf-yang-library</name>\r\n      <revision>2015-07-03</revision>\r\n      <namespace>urn:ietf:params:xml:ns:yang:ietf-yang-library</namespace>\r\n      <conformance>implement</conformance>\r\n    </module>\r\n    <module-set-id>4</module-set-id>\r\n  </modules>\r\n</libyang>\r\n```\r\nHow do I dump/parse/access the data which was added via lyd_parse()"},"comment":{"url":"https://api.github.com/repos/CESNET/libyang/issues/comments/137171989","html_url":"https://github.com/CESNET/libyang/issues/5#issuecomment-137171989","issue_url":"https://api.github.com/repos/CESNET/libyang/issues/5","id":137171989,"user":{"login":"rkrejci","id":6471899,"avatar_url":"https://avatars.githubusercontent.com/u/6471899?v=3","gravatar_id":"","url":"https://api.github.com/users/rkrejci","html_url":"https://github.com/rkrejci","followers_url":"https://api.github.com/users/rkrejci/followers","following_url":"https://api.github.com/users/rkrejci/following{/other_user}","gists_url":"https://api.github.com/users/rkrejci/gists{/gist_id}","starred_url":"https://api.github.com/users/rkrejci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rkrejci/subscriptions","organizations_url":"https://api.github.com/users/rkrejci/orgs","repos_url":"https://api.github.com/users/rkrejci/repos","events_url":"https://api.github.com/users/rkrejci/events{/privacy}","received_events_url":"https://api.github.com/users/rkrejci/received_events","type":"User","site_admin":false},"created_at":"2015-09-02T17:03:25Z","updated_at":"2015-09-02T17:03:25Z","body":"libyang stores only schemas inside the context, data parsed by lyd_parse() are returned and under the control of the caller."}}