Community-Credit.com | NonProfitWays.com | SOAPitstop.com   Skin:   
      User: Not logged in 
Home
Newsletter Signup
XSLT Library
Latest XML Blogs
Featured Examples
Presentations
Featured Articles
Book Chapters
Training Courses
Events
NewsGroups
 
Discussions
Examples
Tutorials
Tools
Articles
Resources
Websites
 
Sign In
My Profile
My Articles
My Examples
My Favorites
My Resources
Add a Resource
Logout
 
About Me
My Blog
HeadGeek Articles
Talking Portfolio
Resume
Pictures
World Trip Pics

Examples

 Debugging (3)  Schema (303)  WML (61)  XPath (100)
 DOM (58)  SMIL (41)  WSDL (43)  XQL (3)
 DTD (3)  SOAP (72)  XAML (1)  XQuery (6)
 Flash (10)  SQLXML (2)  XBRL (2)  XSchema (1)
 Java (2)  SVG (15)  XForms (36)  XSL (195)
 MathML (6)  VoiceXML (2)  XHTML (204)  XSL-FO (6)
 Oracle (5)  WAP (4)  XML (379)  XSQL (5)
 SAX (57)  WebService (13)  XML.NET (3)  XUL (2)

Total Examples: 1,643

 


xpath Examples
Prev Next
1 2 3 4 5
 
star *
The star * selects all elements located by preceeding path.

Type: XPath  #Views: 285  Category: Example    

name() function
Function name() returns name of the element, the starts-with function returns true if the first argument string starts with the second argument string, and the contains function returns true if the first argument string contains the second argument string.

Type: XPath  #Views: 351  Category: Example    

Extracting data with XPath
The following example extracts all the elements named last, which contain the employee's last names, from the employeesimple.xml file, and displays the names:

Type: XPath  #Views: 388  Category: Example    

Simple example
Using the XPATH interface it is possible to search for any element directly, and to recover its attributes or character content. For example, to print the names of all the appliances in the inventory:

Type: XPath  #Views: 344  Category: Example    

Extracting data with XPath
The following example extracts all the elements named last, which contain the employee's last names, from the employeesimple.xml file, and displays the names:

Type: XPath  #Views: 434  Category: Example    

Descendant axis
The descendant axis contains the descendants of the context node; a descendant is a child or a child of a child and so on; thus the descendant axis never contains attribute or namespace nodes.

Type: XPath  #Views: 292  Category: Example    

Child axis
The child axis contains the children of the context node. The child axis is the default axis and it can be omitted.

Type: XPath  #Views: 290  Category: Example    

Attributes
Attributes are specified by @ prefix.

Type: XPath  #Views: 310  Category: Example    

Basic use of the 4Suite Python XPath API
This discussion uses the XPath implementation in 4Suite 0.12.0 or more recent, not that in PyXML. If you are familiar with the XPath implementation in PyXML, scroll to the bottom of this item for a warning.

Type: XPath  #Views: 355  Category: Example    

Using XPath and XSLT to Generate Programs
XPath is an expression language for selecting nodes in an XML tree. XSLT is an XML-based document that specifies how to transform XML documents into other XML documents, HTML documents, or text documents.

Type: XPath  #Views: 292  Category: Example    

XPath Tutorial
XPath Example 13 - //DDD/parent::* (Select all parents of DDD element)

Type: XPath  #Views: 248  Category: Example    

XPath Tutorial
XPath Example 22. //BBB[position() mod 2 = 0 ]

Type: XPath  #Views: 243  Category: Example    

XPath Tutorial
XPath Example 10. - //CCC | //BBB

Type: XPath  #Views: 233  Category: Example    

XPath Tutorial
XPath Example 12. - /descendant::*

Type: XPath  #Views: 214  Category: Example    

XPath Tutorial
XPath Example 4. - /AAA/BBB[1]

Type: XPath  #Views: 224  Category: Example    

XPath Tutorial
XPath Example 2. - //BBB

Type: XPath  #Views: 192  Category: Example    

XPath Tutorial
XPath Example 11. - /child::AAA

Type: XPath  #Views: 218  Category: Example    

XPath Tutorial
XPath Example 6. - //BBB[@id='b1']

Type: XPath  #Views: 259  Category: Example    

XPath Tutorial
XPath Example 7. - //*[count(BBB)=2]

Type: XPath  #Views: 225  Category: Example    

XPath Tutorial
XPath Example 9. - //*[string-length(name()) = 3]

Type: XPath  #Views: 205  Category: Example    

Prev Next
1 2 3 4 5


Fans of "The Office"
Dwight Bobbleheads are here!
  “It's me! I'm the bobblehead! Yes!”



Advertise on XMLPitstop

Advertise on XMLPitstop


EggHead Cafe
Web Servicee development
DotNetSlackers
Brother compatible cartridges
fax
it help desk
SPOC
chicago web design
Alojamiento Web
Web Hosting
PTZ Security Camera
Calvin klein sunglasses
Video Surveillance
Skype vs. sipcall

3,466 Total Members
421 members(last 30 days)
117 members(last 7 days)
4 members(today)

1,929 Total Discussions
7 Posts(last 30 days)
0 Posts(last 7 days)
0 Posts(today)

47,487 Total Blog Posts
0 Blogs(last 30 days)
0 Blogs(last 7 days)
0 Blogs(today)

8,699 Newsgroup Posts
0 Posts(last 30 days)
0 Posts(last 7 days)
0 Posts(today)

14,079 Total Resources
4 Resources(last 30 days)
2 Resources(last 7 days)
0 Resources(today)


 

David Silverlight's XMLPitstop.com| 2801 Florida Ave #225|Miami, FL 33133|Ph:305-447-1139