English | česky | Nederlands | Français | Español | По-русски | Deutsch | 中文 | >> Italiano << | Polski ZVON > Tutorials > XPath Tutorial
>> Esempio 3 << | Precedente | Successivo

L'asterisco * seleziona tutti gli elementi localizzati dal path precedente.
 
/AAA/CCC/DDD/*
Selezione di tutti gli elementi inclusi nel percorso /AAA/CCC/DDD

     <AAA>
          <XXX>
               <DDD>
                    <BBB/>
                    <BBB/>
                    <EEE/>
                    <FFF/>
               </DDD>
          </XXX>
          <CCC>
               <DDD>
                    <BBB/>
                    <BBB/>
                    <EEE/>
                    <FFF/>
               </DDD>
          </CCC>
          <CCC>
               <BBB>
                    <BBB>
                         <BBB/>
                    </BBB>
               </BBB>
          </CCC>
     </AAA>
Apri l'esempio in XLab. | Vista ad albero (JPG)
 
/*/*/*/BBB
Selezione di tutti gli elementi BBB che possiedono 3 progenitori.

     <AAA>
          <XXX>
               <DDD>
                    <BBB/>
                    <BBB/>
                    <EEE/>
                    <FFF/>
               </DDD>
          </XXX>
          <CCC>
               <DDD>
                    <BBB/>
                    <BBB/>
                    <EEE/>
                    <FFF/>
               </DDD>
          </CCC>
          <CCC>
               <BBB>
                    <BBB>
                         <BBB/>
                    </BBB>
               </BBB>
          </CCC>
     </AAA>
Apri l'esempio in XLab. | Vista ad albero (JPG)
 
//*
Selezione di tutti gli elementi.

     <AAA>
          <XXX>
               <DDD>
                    <BBB/>
                    <BBB/>
                    <EEE/>
                    <FFF/>
               </DDD>
          </XXX>
          <CCC>
               <DDD>
                    <BBB/>
                    <BBB/>
                    <EEE/>
                    <FFF/>
               </DDD>
          </CCC>
          <CCC>
               <BBB>
                    <BBB>
                         <BBB/>
                    </BBB>
               </BBB>
          </CCC>
     </AAA>
Apri l'esempio in XLab. | Vista ad albero (JPG)