This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

[ajax] extract element from XML  RSS feed

 
wei liu
Ranch Hand
Posts: 35
Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
xml Code is :




I was only able to extract the first Criterion block.

what I am using to extract is :


which only prints 1 which should be 2.

can someone tell me how to extract both of the criterion block from the xml code.

thanks
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66142
141
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
wei liu wrote:which only prints 1 which should be 2.

Why would you say that? There is only one Criterions tag in the XML.
 
wei liu
Ranch Hand
Posts: 35
Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:
wei liu wrote:which only prints 1 which should be 2.

Why would you say that? There is only one Criterions tag in the XML.


You are right, I should use Criterion instead of Criterions. thanks
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!