{"action":"created","issue":{"url":"https://api.github.com/repos/xBimTeam/XbimEssentials/issues/248","repository_url":"https://api.github.com/repos/xBimTeam/XbimEssentials","labels_url":"https://api.github.com/repos/xBimTeam/XbimEssentials/issues/248/labels{/name}","comments_url":"https://api.github.com/repos/xBimTeam/XbimEssentials/issues/248/comments","events_url":"https://api.github.com/repos/xBimTeam/XbimEssentials/issues/248/events","html_url":"https://github.com/xBimTeam/XbimEssentials/issues/248","id":408832188,"node_id":"MDU6SXNzdWU0MDg4MzIxODg=","number":248,"title":"XML representations","user":{"login":"Gonsco","id":5613709,"node_id":"MDQ6VXNlcjU2MTM3MDk=","avatar_url":"https://avatars1.githubusercontent.com/u/5613709?v=4","gravatar_id":"","url":"https://api.github.com/users/Gonsco","html_url":"https://github.com/Gonsco","followers_url":"https://api.github.com/users/Gonsco/followers","following_url":"https://api.github.com/users/Gonsco/following{/other_user}","gists_url":"https://api.github.com/users/Gonsco/gists{/gist_id}","starred_url":"https://api.github.com/users/Gonsco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gonsco/subscriptions","organizations_url":"https://api.github.com/users/Gonsco/orgs","repos_url":"https://api.github.com/users/Gonsco/repos","events_url":"https://api.github.com/users/Gonsco/events{/privacy}","received_events_url":"https://api.github.com/users/Gonsco/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-02-11T15:21:27Z","updated_at":"2019-02-11T15:36:43Z","closed_at":null,"author_association":"NONE","body":"Question: I am comparing two IFC 4 files in XML format:\r\n\r\n1) Generated with the Revit exporter (20170223_1515(x64) - Exporter 18.0.0.420 - Alternate UI 18.1.0.0)\r\n2) Generated through the transformation of the same model exported in IFC STEP to XML using the XBIM lib (Xbim.Essentials.5.0.213). \r\n\r\nI used the default sample model provided in Revit 2018 (rac_basic_sample_project.rvt)\r\n\r\nEven though both files can be validated (exceptuating a couple of very specific issues) against the same XSD, in this case http://www.buildingsmart-tech.org/ifc/IFC4/Add2/IFC4_ADD2.xsd, the resulting representation is very different.\r\n\r\nIn the second case (using XBIM library), and unlike the first one (using REVIT IFC exporter), the concepts appear in different depth levels. \r\n\r\nApparently, this could hinders the development of parsers, especially those based on XPath.\r\n\r\nIs there any reason to generate the XML files following this kind of structure using XBIM?"},"comment":{"url":"https://api.github.com/repos/xBimTeam/XbimEssentials/issues/comments/462372547","html_url":"https://github.com/xBimTeam/XbimEssentials/issues/248#issuecomment-462372547","issue_url":"https://api.github.com/repos/xBimTeam/XbimEssentials/issues/248","id":462372547,"node_id":"MDEyOklzc3VlQ29tbWVudDQ2MjM3MjU0Nw==","user":{"login":"martin1cerny","id":773078,"node_id":"MDQ6VXNlcjc3MzA3OA==","avatar_url":"https://avatars1.githubusercontent.com/u/773078?v=4","gravatar_id":"","url":"https://api.github.com/users/martin1cerny","html_url":"https://github.com/martin1cerny","followers_url":"https://api.github.com/users/martin1cerny/followers","following_url":"https://api.github.com/users/martin1cerny/following{/other_user}","gists_url":"https://api.github.com/users/martin1cerny/gists{/gist_id}","starred_url":"https://api.github.com/users/martin1cerny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martin1cerny/subscriptions","organizations_url":"https://api.github.com/users/martin1cerny/orgs","repos_url":"https://api.github.com/users/martin1cerny/repos","events_url":"https://api.github.com/users/martin1cerny/events{/privacy}","received_events_url":"https://api.github.com/users/martin1cerny/received_events","type":"User","site_admin":false},"created_at":"2019-02-11T15:36:43Z","updated_at":"2019-02-11T15:36:43Z","author_association":"MEMBER","body":"As you said, both are valid IFC XML files. Any entity can be on any level of the hierarchy because there is no hierarchy in IFC schema. And because it is not a hierarchy but general object graph structure, references must be utilised in XML anyway. For that reason I wouldn't recommend using IFC XML + XPath for any job where reliability is required."}}
{"actor":{"display_login":"martin1cerny"}}