JSTL Java



   
      
         Joe
         Y
         T
      

      
         99
         A
      

   
   
      
         James
         Todd
         K
      

      
         92
         B
      

   
   
      
         Kate
         Wang
         A
      

      
         72
         C
      

   
   

///////////////////////////////////////////////////////////////////////////////
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jstl/xml" prefix="x" %>

  
    Parse Examples
  
  Please enter an XML file:
  
  
    
      
        
          
            John
            Smith
            T
          

          
            88
            B
          

        
        
          
            James
            Smith
            K
          

          
            92
            A
          

        
        
          
            Kelly
            Lane
            A
          

          
            72
            C
          

        
      

    
    
    
  
  
    
    
      
        $doc/students/student/name/first
        
          
        
      
      
        $doc/students/student[@id=2]/name/first
        
                    select="$doc/students/student[@id=2]/name/first" />
        
      
      
        $doc/students/student[@id=1]/name/first
        
                    select="$doc/students/student[@id=12]/name/first" />
        
      
    
  
  

           
       
JSTL-XML-Parse.zip( 6,553 k)