XML translate question

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf XML translate question

  • Creator
    Topic
  • #55416
    David Barr
    Participant

      I’m writing a translate to go from XML to CSV, and I’m confused about how to do a few things.

      My translate has some kind of “Choice” that seems to act like a repeating group. The problem is that I’m trying to iterate over the elements within the Choice, and I don’t see a way to figure out which type of element I’m currently iterating over. What I’m currently doing is trying to access a specific child using the iterate variable, and skipping the section of the xlate if the copy fails, but that doesn’t seem like the right way to do it. Does anyone have suggestions?

      Also, the “#tag” thing was an experiment that doesn’t work.

    Viewing 0 reply threads
    • Author
      Replies
      • #85249
        David Barr
        Participant

          I think what makes this difficult is the extra .0 in the path (after Claims.Claim(0)). I was looking at the schema, and I think this is there because all of the child elements are under an element instead of an element. This implies that the children can appear in any order.

      Viewing 0 reply threads
      • The forum ‘Cloverleaf’ is closed to new topics and replies.