I am not able to understand why the resulst are different when using XMLNS and XNLNSC parsers. I have gone through the forum some documentation in info center, however, I could not get a clear idea why I am not able to get the same output with XMLNS and XMLNSC parsers. Please guide me if I have to write some extra code to achieve the same result with XMLNSC parser.
However, I could get the same output with XMLNSC domain what I am getting with the XMLNS domain set code (case 1) by using the below code.
Code:
SET OutputRoot.XMLNSC.TestCase.Division[1].(XMLNSC.Attribute)Number = 'Premiership';
You should not expect to migration to XMLNSC without making code changes. XMLNSC is not code-compatible with XMLNS. As you have just discovered, XMLNSC uses different field type constants. It also builds a differently-shaped message tree. The infocenter contains a lot of information about the XML parsers, and you should read it carefully before continuing with your migration.
Your fix ( setting the field type to XMLNSC.Attribute ) is correct.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum