Can someone help me understand what exactly is the diffrence between SQL/XML and XPath? Are they same?

Recommended Answers

xml describes with nodes (tag) dates

<root>
 <item>Data1</item>
 <item>Data2</item>
</root>

with xpath one can describe where the dates
to look are

example found the second item

<xsl:value-of select="item[2]">

look here

Jump to Post

All 2 Replies

Can someone help me understand what exactly is the diffrence between SQL/XML and XPath? Are they same?

SQL (Structured Query Language) is a standardized language for querying and working with Databases and their constituent data.

XML (eXtensible Markup Language) is a language for structuring data in a generic way like:

<Employee>
<Name>
<Firstname> Robert </Firstname>
<Lastname> Jones </Lastname>
</Name>
<Address>
<Street>43 Johnson Road </Street>
<City> Lincoln </City>
<State> Nebraska </State>
<Zip> 28374 </Zip>
</Address>
</Employee>

XPATH is a tool for finding the location of an element in a bunch of XML or HTML.

bigtiny

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.