This content has been marked as final. Show 5 replies
Try using GetData function instead of ?.
For your example, search mask would be Xpath for the dailybenefitamount field.
For first occurence use "0" in second argument, second occurence use "1" and so on.
Here "5" is the length of field value which needs to be extracted from xml.
XML Xpath statements can be tricky when trying to deal with occurrences. In your example, where you might think of this as the second occurrence of DailyBenefitAmount it is really the "first" DailyBenefitAmount of the second occurrence of Rider that I think you want. So, the Xpath statement is more like this:
Now, you probably don't want to have a specific XPath statement per occurrence you might want to retrieve. To get the occurrence to apply at the right level, you need to be able to be able to specify where the occurrence should apply within the XPath. This is accomplished using **** inside the brackets.
When this XPath is executed, the occurrence value will substitute into the desired node level and return the appropriate value.
It's unfortunate that you did not get expected results. It might be helpful if you could provide more details on exactly what you have tried and any results (erroneous or not) that you received. Despite the popularity of XML as a means of transferring data, XML XPath is very syntax sensitive - and that has nothing to do with Documaker in general.
In the past, I've found that it can be helpful to have an XPath tool - like XMLSpy - where you can try out specific searches to see what results are returned. Now it is true that an outside tool is not going to know about the [****] syntax that Documaker allows for substituting occurrence values. However, you can test specific XPath values within the bracket until you learn what will return your expected results and then try to transfer that syntax into Maker.