Closed blopez closed 5 years ago
@blopez that looks like a bug. Could you please send me a complete reqif file that we can use as an example to fix this. Would us get it fixed faster.
Sure, please find attached a zip file, with a reqif file inside. I just cut out some SPEC-OBJECTS for simplicity, so I'm not sure if I somehow disturbed the SPEC-HIERARCHY nodes below. Looking forward to hearing from you!
@blopez I just updated the testreqif.reqif file with XHTML content based on the original issue and added a unit test for it at ReqIFDeSerializerTestFixture. and it seems to be working as is.
@blopez I just added the sample_dubg reqif file to the test project and checked with a unit test whether i can read the value of the XHTML attributes, seems to be working. Perhaps i didn't understand the original question. Can you have a look at the test and let me know if this solves the issue?
https://github.com/RHEAGROUP/reqifsharp/blob/development/ReqIFSharp.Tests/SampleDebugTestFixture.cs
@blopez working on a web based reqif viewer, check it out here: https://viewer.reqifsharp.org/ and let us know what you think!
Prerequisites
Description
I got a ReqIF file where some SPEC-OBJECT elements have ATTRIBUTE-VALUE-XHTML fields that are not properly read after Deserialize. Is there any way to read these values, including formatting or just as plain text?
Steps to Reproduce
Example of SPEC-OBJECT within my ReqIF file:
The way I'm deserializing my file:
ReqIFDeserializer deserializer = new ReqIFDeserializer(); ReqIF reqIf = deserializer.Deserialize(@"myFile.reqif");
As a result, I the SpecObjects are created properly within the ReqIF item, but in the list of Values, this ATTRIBUTE-VALUE-XHTML field is never read.
System Configuration