Forum Discussion

Sahil's avatar
Sahil
Contributor
4 years ago
Solved

Map XML attribute to a field

Hi, I need to map “id” and “header” field in mapper. Data.txt (785 Bytes) I am using file reader snap,xml parser and mapper. in mapper, tried different expressions but not able to get the fie...
  • marjan_karafilo's avatar
    4 years ago

    Hi @Sahil ,

    With this expression in mapper, you can get the IDs:

    With this expression in mapper, you can get the Headers:

    Let me know if this helps you.

    BR,
    Marjan