By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,890 Members | 1,050 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,890 IT Pros & Developers. It's quick & easy.

a help for newbie

P: 1
Hello,
I'm looking for a script to search in xml like that

Expand|Select|Wrap|Line Numbers
  1. <?xml....>
  2. <global>
  3.  
  4.    <parent name="A" age="40" add="DDD">
  5.  
  6.       <child x="..." y="..." z="..." i="...">
  7.                   <data a="..." b="..."/>
  8.                  <data a="..." b="..."/>
  9.                  <data a="..." b="..."/>
  10.           </child>
  11.  
  12.           <child x="..." y="..." z="..." i="...">
  13.                   <data a="..." b="..."/>
  14.                  <data a="..." b="..."/>
  15.                  <data a="..." b="..."/>
  16.           </child>
  17.  
  18. .
  19. .
  20. .
  21.    </parent>
  22. .
  23.    <parent name="B" age="50" add="FFF">
  24.  
  25.       <child x="..." y="..." z="..." i="...">
  26.                   <data a="..." b="..."/>
  27.                  <data a="..." b="..."/>
  28.                  <data a="..." b="..."/>
  29.           </child>
  30.  
  31.           <child x="..." y="..." z="..." i="...">
  32.                   <data a="..." b="..."/>
  33.                  <data a="..." b="..."/>
  34.                  <data a="..." b="..."/>
  35.           </child>
  36.  
  37. .
  38. .
  39. .
  40.    </parent>
  41. .
  42. .
  43. .
  44. </global> 
  45.  
I want to search by "a" in "data" (may occur more than once)
and display everything in "child".

Thanks in advance.
Feb 28 '07 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.