Closed imsmk closed 3 months ago
Thanks @imsmk - I don't suppose you had a look at a potential fix? Happy to take a PR. I'd imagine it's a fairly simple guard needed in this area: https://github.com/xBimTeam/XbimEssentials/blob/4ed33f7a0427ea91bc7825810c381779ecf5053c/Xbim.IO.MemoryModel/Xml/XbimXmlReader3.cs#L857
(...and maybe in the other cases in that switch). XbimXmlReader4 may also need review.
Merged. Thanks again @imsmk
load ifcxml with empty header elements throws exception 'Unexpected node type'
Assemblies and versions affected:
*Xbim.Essentials 5 and 6
Steps (or code) to reproduce the issue:
try to load an ifc xml file with this header
Author Element is empty and the GetTextFromElement function of XbimXmlReader throws the error "Unexpected node type"