4 Replies Latest reply on Oct 30, 2008 9:34 AM by Newsgroup_User

    Delete(xml) in Flex namespace problem

    jadezoole
      hihi
      I have problem with AS3 xml

      I want delete nodes in the folowing XML, which has title "undefined". A sample from the xml:
      <xml>
      <page>
      <title>Szabályalapú reprezentáció</title>
      <id>tudásterület_74</id>
      <revision>
      <id>1</id>
      <timestamp>2008-05-27T09:58:13Z</timestamp>
      <contributor>
      <ip>Wikiadmin</ip>
      </contributor>
      <text aaa:space="preserve"></text>
      </revision>
      </page>
      <page>
      <title>undefined</title>
      <id>tudásterület_22</id>
      <revision>
      <id>1</id>
      <timestamp>2008-05-27T09:58:13Z</timestamp>
      <contributor>
      <ip>Wikiadmin</ip>
      </contributor>
      <text aaa:space="preserve"></text>
      </revision>
      </page>
      <page>
      <title>Döntési folyamat</title>
      <id>tudásterület_22</id>
      <revision>
      <id>1</id>
      <timestamp>2008-05-27T09:58:13Z</timestamp>
      <contributor>
      <ip>Wikiadmin</ip>
      </contributor>
      <text aaa:space="preserve"></text>
      </revision>
      </page>
      ...
      </xml>

      I tried this script but didnt worked:
      delete xml.*::page.(title=="undefined")
      In a basic this shuold be like:
      delete xml.page.(title=="undefined")

      How does it work in xmls with namespace?