You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: A ReqIF document with a prefixed root element (reqif:REQ-IF) is read as zero documents
#87
I have verified that I am running the latest version of the reqifsharp
I have searched open and closed issues to ensure it has not already been reported
Description
ReqIFDeserializer recognizes the root element with xmlReader.Name == "REQ-IF". Name includes the namespace prefix, so a document that binds the ReqIF namespace to a prefix (<reqif:REQ-IF xmlns:reqif="http://www.omg.org/spec/ReqIF/20110401/reqif.xsd">) is skipped. Deserialize returns an empty list, without an error and without a validation problem: the document is valid against the schema.
The same check is likely used for other elements that are read by name; they should be checked too.
Proposal
Match on LocalName and NamespaceURI instead of Name, in the sync and async paths and for the nested elements.
Acceptance criteria
The prefixed copy of a test document deserializes to the same object graph as the unprefixed original.
Steps to Reproduce
Write a valid document with the serializer (coffee.reqif, 3 spec objects).
Make a copy in which the ReqIF namespace is bound to the prefix reqif and every ReqIF element is written as reqif:....
Activity
[Update] remove references to GitHub issues from code comments
[Add] AttributeValueXHTML.ExtractNormalizedTextFromValue for plain te…