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

Gli attributi sono preceduti dal prefisso @
 
//@id
Selezione di tutti gli attributi id.

     <AAA>
          <BBB id = "b1"/>
          <BBB id = "b2"/>
          <BBB name = "bbb"/>
          <BBB/>
     </AAA>
Apri l'esempio in XLab. | Vista ad albero (JPG)
 
//BBB[@id]
Selezione degli elementi BBB che possiedono l'attributo id.

     <AAA>
          <BBB id = "b1"/>
          <BBB id = "b2"/>
          <BBB name = "bbb"/>
          <BBB/>
     </AAA>
Apri l'esempio in XLab. | Vista ad albero (JPG)
 
//BBB[@name]
Selezione degli elementi BBB che possiedono l'attributo name.

     <AAA>
          <BBB id = "b1"/>
          <BBB id = "b2"/>
          <BBB name = "bbb"/>
          <BBB/>
     </AAA>
Apri l'esempio in XLab. | Vista ad albero (JPG)
 
//BBB[@*]
Selezione degli elementi BBB che possiedono almeno un attributo.

     <AAA>
          <BBB id = "b1"/>
          <BBB id = "b2"/>
          <BBB name = "bbb"/>
          <BBB/>
     </AAA>
Apri l'esempio in XLab. | Vista ad albero (JPG)
 
//BBB[not(@*)]
Selezione degli elementi BBB che non possiedono attributi.

     <AAA>
          <BBB id = "b1"/>
          <BBB id = "b2"/>
          <BBB name = "bbb"/>
          <BBB/>
     </AAA>
Apri l'esempio in XLab. | Vista ad albero (JPG)



_____________________________________________
Reference Search | Sitemap | XML Glossary       ZVON | Systinet




Related sites:
  • dotNet Slackers - Your latest resource for ASP.NET
  • Dotnet Spider - Outsourcing and Offshore software development in India
  • XML - Xselerator, XSL Editor, BizTalk Utilities, XML Tutorials, Learn XML
  • Planet Source Code - The largest public source code database on the Internet
answering service water softener MSN Alojamiento Web UNLIMITED Web Hosting by HostDepartment
VoIP Internettelefonie Hosted Exchange, SDSL VoIP Internettelefonie AT VoIP Internettelefonie DE