0

If a string attribute(with t_uniqueIdentifier32) is passed empty value, exception is not thrown from check restrictions. Instead leads to assertion. Using liquid-xml 2017.

1 Answers1

0

Looks like this may have been resolved in the latest 2018 version as I get an Exception as expected:

Error - Invalid Value for test [].

When I try to call

elm->SetTest(_T(""));

Where Test is defined in XSD as:

<xs:attribute name="test" type="t_uniqueIdentifier32" use="required" />
  • I tried using LiquidXml 2018, but the issue is still seen. Using FromXml to convert xml message to liquid object. FromXml(LPCSTR lpszXMLIn, const CXmlSerializationContext& context = CXmlSerializationContext::GetDefaultContext()); The mentioned function returns exception for above scenario with liquid-xml (LtXmlLib5) but doesn't for 2017 and 2018. – tushar pandey Sep 03 '18 at 09:25
  • Sorry but I don't see that. When I use elm->FromXml(_T("string")); I get the Exception...Error - Failed to set the property value []. Path: /root/@test Invalid Value for test []. – Liquid Support Team Sep 04 '18 at 10:27
  • Please create a support ticket and send a zip showing this issue: https://www.liquid-technologies.com/create-support-ticket – Liquid Support Team Sep 04 '18 at 10:31