• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

[ajax] extract element from XML

 
wei liu
Ranch Hand
Posts: 35
Eclipse IDE
  • 0
  • 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: 64204
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • 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
  • 0
  • 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
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic