Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

[ajax] extract element from XML

 
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
Pie
Posts: 64858
86
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