TAILIEUCHUNG - Introducing XPath

Giới thiệu Extensible Markup XPath The Path Language (XPath) là một ngôn ngữ mà cho phép bạn tìm kiếm và điều hướng một tài liệu XML, và bạn có thể sử dụng XPath với SQL Server. Trong phần này, bạn sẽ khám phá được cấu trúc của một tài liệu XML và làm thế nào để điều hướng và tìm kiếm một tài liệu XML bằng cách sử dụng XPath | Introducing XPath The Extensible Markup Language Path XPath is a language that allows you to search and navigate an XML document and you can use XPath with SQL Server. In this section you ll explore the structure of an XML document and how to navigate and search an XML document using XPath. In later sections you ll see how to use XPath with SQL Server. XML Document Structure An XML document file is divided into nodes with the topmost node being referred to as the root node. The easiest way to understand how the structure works is to consider an example XML document Listing shows an XML document contained in the file . xml version NorthwindCustomers Customers CustomerID ALFKI CustomerID CompanyName Alfreds Futterkiste CompanyName PostalCode 12209 PostalCode Country Germany Country Phone 030-0074321 Phone Customers Customers CustomerID ANATR CustomerID CompanyName Ana Trujillo Emparedados y helados CompanyName PostalCode 05021 PostalCode Country Mexico Country Phone 5 555-4729 Phone Customers NorthwindCustomers Note You ll find all the XML files in the xml directory for this chapter . Note The line xml version indicates that is an XML file that uses the standard. Figure shows a visual representation of the document structure. Figure document structure As you can see from Figure an XML document is structured like an inverted tree. NorthwindCustomers is the root node. The two Customers nodes beneath the root node are known as a node set. The CustomerID CompanyName PostalCode Country and Phone are known as elements. Each Customers node and its CustomerID CompanyName PostalCode Country and Phone elements are known as a node subtree. A node located beneath another node is known as a child node and the node above is known as the parent node for example the NorthwindCustomers node is the parent node of the child .

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.