3 Replies Latest reply on Jul 17, 2007 5:55 PM by ntsiii

    xml.contains

    jeroencornelissen
      Can someone explain me how the contains(xml) function works?
      Because it always returns false.

      I use it like this: xml.*.contains(<art5/>)

      And my xml looks like this:

      <root>
      <art5 aa15="05" aa25="372" acd5="" amc5="" abr5="000" aln5="000" apr5="000056,00">
      <agr6 a16="05" a26="PBD" an6="1">
      <art6 aa16="05" aa26="370" acd6="" amc6="" abr6="000" aln6="000" apr6="000030,00"/>
      </agr6>
      <agr6 a16="05" a26="PBE" an6="1">
      <art6 aa16="05" aa26="369" acd6="" amc6="" abr6="000" aln6="000" apr6="000030,00"/>
      <art6 aa16="05" aa26="371" acd6="" amc6="" abr6="000" aln6="000" apr6="000030,00"/>
      </agr6>
      </art5>
      <art5 aa15="05" aa25="373" acd5="" amc5="" abr5="000" aln5="000" apr5="000056,00">
      <agr6 a16="05" a26="PBD" an6="1">
      <art6 aa16="05" aa26="370" acd6="" amc6="" abr6="000" aln6="000" apr6="000030,00"/>
      </agr6>
      <agr6 a16="05" a26="PBE" an6="1">
      <art6 aa16="05" aa26="369" acd6="" amc6="" abr6="000" aln6="000" apr6="000030,00"/>
      <art6 aa16="05" aa26="371" acd6="" amc6="" abr6="000" aln6="000" apr6="000030,00"/>
      </agr6>
      </art5>
      <art5 aa15="05" aa25="374" acd5="" amc5="" abr5="000" aln5="000" apr5="000056,00">
      <agr6 a16="05" a26="PBD" an6="1">
      <art6 aa16="05" aa26="370" acd6="" amc6="" abr6="000" aln6="000" apr6="000030,00"/>
      </agr6>
      <agr6 a16="05" a26="PBE" an6="1">
      <art6 aa16="05" aa26="369" acd6="" amc6="" abr6="000" aln6="000" apr6="000030,00"/>
      <art6 aa16="05" aa26="371" acd6="" amc6="" abr6="000" aln6="000" apr6="000030,00"/>
      </agr6>
      </art5>
      </root>


      Thx!