2
« on: June 01, 2023, 04:23:48 PM »
Iam Quite New to CMOD and we started using Z/os CMOd to store XML Documents and from application we creates specific Out put file(XML) and generated before we create indexe file. ,In the original Input file we extract Few fields for Indexing and Entire message copy of swift written as Encoded filed Also we add this in fields information as One of Index field expecting to global Search with %% . But this field is alone encoded format and Cant be read unless it is decoded .
<encodedDocument name="Record" format="TEXT"><xsl:value-of select="$MXRecord"/></encodedDocument>
But when we defined Like below it not reading value at all .Second is we use On demand client to view searched records , When we view this encoded text How to set up Client view actual xml after decoding .
<odindex>
<xsl:attribute name="field">MXRecord</xsl:attribute>
<xsl:attribute name="value">
<xsl:value-of select="document/MXRecord" />
</xsl:attribute>
</odindex>
Another Issue from Input XML is mos tof our Index fields are optionalAttribute and they can be Null as it depends On input data recoprds ,
Inout :
<optionalAttribute name="Name"></optionalAttribute>
<optionalAttribute name="Address">blablabla </optionalAttribute>
In indexer we defined like below,But it is Not reading correctly ,
<odindex>
<xsl:attribute name="field">AcctSvcrRef</xsl:attribute>
<xsl:attribute name="value">
<xsl:value-of select="document/AcctSvcrRef" />
</xsl:attribute>
</odindex>
Any Help would be very helpfull.