DOM SAX XML ADO NET GVTH Phm Anh
![DOM & SAX XML & ADO. NET GVTH: Phạm Anh Phương Email : paphuong@fit. DOM & SAX XML & ADO. NET GVTH: Phạm Anh Phương Email : paphuong@fit.](https://slidetodoc.com/presentation_image_h2/979144e13d3a33171e701acb73f72793/image-1.jpg)
![Thời gian 20 minutes Thời gian 20 minutes](https://slidetodoc.com/presentation_image_h2/979144e13d3a33171e701acb73f72793/image-2.jpg)
![Tham khảo Websites : http: //www. codeproject. com/cs/database/ADONET_and_XML. asp http: //www. w 3. org/XML Tham khảo Websites : http: //www. codeproject. com/cs/database/ADONET_and_XML. asp http: //www. w 3. org/XML](https://slidetodoc.com/presentation_image_h2/979144e13d3a33171e701acb73f72793/image-3.jpg)
![Mục lục DOM & SAX XMLDocument XML & ADO. NET Mục lục DOM & SAX XMLDocument XML & ADO. NET](https://slidetodoc.com/presentation_image_h2/979144e13d3a33171e701acb73f72793/image-4.jpg)
![DOM DOM](https://slidetodoc.com/presentation_image_h2/979144e13d3a33171e701acb73f72793/image-5.jpg)
![DOM là gì ? The W 3 C Document Object Model (DOM) is a DOM là gì ? The W 3 C Document Object Model (DOM) is a](https://slidetodoc.com/presentation_image_h2/979144e13d3a33171e701acb73f72793/image-6.jpg)
![DOM là gì ? DOM được chia gồm 3 phần riêng biệt : Core DOM là gì ? DOM được chia gồm 3 phần riêng biệt : Core](https://slidetodoc.com/presentation_image_h2/979144e13d3a33171e701acb73f72793/image-7.jpg)
![DOM là gì ? << Interface >> DOM XML Parser (. NET, . JAVA, DOM là gì ? << Interface >> DOM XML Parser (. NET, . JAVA,](https://slidetodoc.com/presentation_image_h2/979144e13d3a33171e701acb73f72793/image-8.jpg)
![XML DOM là gì ? n DOM xem tài liệu XML như 1 cây XML DOM là gì ? n DOM xem tài liệu XML như 1 cây](https://slidetodoc.com/presentation_image_h2/979144e13d3a33171e701acb73f72793/image-9.jpg)
![Node Tree n Một cây gồm nhiều node dùng để thể hiện 1 tài Node Tree n Một cây gồm nhiều node dùng để thể hiện 1 tài](https://slidetodoc.com/presentation_image_h2/979144e13d3a33171e701acb73f72793/image-10.jpg)
![XML DOM Parser n Để đọc, cập nhật, tạo và thao tác 1 tài XML DOM Parser n Để đọc, cập nhật, tạo và thao tác 1 tài](https://slidetodoc.com/presentation_image_h2/979144e13d3a33171e701acb73f72793/image-11.jpg)
![XML DOM Parser XML DOM Parser](https://slidetodoc.com/presentation_image_h2/979144e13d3a33171e701acb73f72793/image-12.jpg)
![XML DOM API n Duyệt các nodes : - parent. Node child. Nodes first. XML DOM API n Duyệt các nodes : - parent. Node child. Nodes first.](https://slidetodoc.com/presentation_image_h2/979144e13d3a33171e701acb73f72793/image-13.jpg)
![XML DOM API n Thao tác các Node: - get. Elements. By. Tag. Name XML DOM API n Thao tác các Node: - get. Elements. By. Tag. Name](https://slidetodoc.com/presentation_image_h2/979144e13d3a33171e701acb73f72793/image-14.jpg)
![SAX SAX](https://slidetodoc.com/presentation_image_h2/979144e13d3a33171e701acb73f72793/image-15.jpg)
![SAX n SAX (Simple API for XML) n Performance và Memory không bị ảnh SAX n SAX (Simple API for XML) n Performance và Memory không bị ảnh](https://slidetodoc.com/presentation_image_h2/979144e13d3a33171e701acb73f72793/image-16.jpg)
![SAX SAX](https://slidetodoc.com/presentation_image_h2/979144e13d3a33171e701acb73f72793/image-17.jpg)
![SAX n Xử lý dữ liệu ngay khi Parser chưa xử lý tòan bộ SAX n Xử lý dữ liệu ngay khi Parser chưa xử lý tòan bộ](https://slidetodoc.com/presentation_image_h2/979144e13d3a33171e701acb73f72793/image-18.jpg)
![SAX n SAX được hỗ trợ trong JAVA nhưng chưa có trong. NET n SAX n SAX được hỗ trợ trong JAVA nhưng chưa có trong. NET n](https://slidetodoc.com/presentation_image_h2/979144e13d3a33171e701acb73f72793/image-19.jpg)
![XMLDocument XMLDocument](https://slidetodoc.com/presentation_image_h2/979144e13d3a33171e701acb73f72793/image-20.jpg)
![XMLDocument n Là đối tượng dùng để thao tác với tài liệu XML trong. XMLDocument n Là đối tượng dùng để thao tác với tài liệu XML trong.](https://slidetodoc.com/presentation_image_h2/979144e13d3a33171e701acb73f72793/image-21.jpg)
![XMLDocument Tên hàm (Thuộc tính) Ý nghĩa Load Nạp tài liệu XML Save Ghi XMLDocument Tên hàm (Thuộc tính) Ý nghĩa Load Nạp tài liệu XML Save Ghi](https://slidetodoc.com/presentation_image_h2/979144e13d3a33171e701acb73f72793/image-22.jpg)
![XMLDocument n Đọc và lưu n Lấy Root Element : XMLDocument n Đọc và lưu n Lấy Root Element :](https://slidetodoc.com/presentation_image_h2/979144e13d3a33171e701acb73f72793/image-23.jpg)
![XMLDocument n. Xóa Node XMLDocument n. Xóa Node](https://slidetodoc.com/presentation_image_h2/979144e13d3a33171e701acb73f72793/image-24.jpg)
![XMLDocument n. Thêm Node XMLDocument n. Thêm Node](https://slidetodoc.com/presentation_image_h2/979144e13d3a33171e701acb73f72793/image-25.jpg)
![XML & ADO. NET XML & ADO. NET](https://slidetodoc.com/presentation_image_h2/979144e13d3a33171e701acb73f72793/image-26.jpg)
![XML & ADO. NET n Đối tượng : Data. Set n Ý nghĩa : XML & ADO. NET n Đối tượng : Data. Set n Ý nghĩa :](https://slidetodoc.com/presentation_image_h2/979144e13d3a33171e701acb73f72793/image-27.jpg)
![XML & ADO. NET n Một - số phương thức : Get. Xml. Schema XML & ADO. NET n Một - số phương thức : Get. Xml. Schema](https://slidetodoc.com/presentation_image_h2/979144e13d3a33171e701acb73f72793/image-28.jpg)
![XML & ADO. NET n Minh họa : XML & ADO. NET n Minh họa :](https://slidetodoc.com/presentation_image_h2/979144e13d3a33171e701acb73f72793/image-29.jpg)
![](https://slidetodoc.com/presentation_image_h2/979144e13d3a33171e701acb73f72793/image-30.jpg)
![](https://slidetodoc.com/presentation_image_h2/979144e13d3a33171e701acb73f72793/image-31.jpg)
- Slides: 31
![DOM SAX XML ADO NET GVTH Phạm Anh Phương Email paphuongfit DOM & SAX XML & ADO. NET GVTH: Phạm Anh Phương Email : paphuong@fit.](https://slidetodoc.com/presentation_image_h2/979144e13d3a33171e701acb73f72793/image-1.jpg)
DOM & SAX XML & ADO. NET GVTH: Phạm Anh Phương Email : paphuong@fit. hcmuns. edu. vn
![Thời gian 20 minutes Thời gian 20 minutes](https://slidetodoc.com/presentation_image_h2/979144e13d3a33171e701acb73f72793/image-2.jpg)
Thời gian 20 minutes
![Tham khảo Websites http www codeproject comcsdatabaseADONETandXML asp http www w 3 orgXML Tham khảo Websites : http: //www. codeproject. com/cs/database/ADONET_and_XML. asp http: //www. w 3. org/XML](https://slidetodoc.com/presentation_image_h2/979144e13d3a33171e701acb73f72793/image-3.jpg)
Tham khảo Websites : http: //www. codeproject. com/cs/database/ADONET_and_XML. asp http: //www. w 3. org/XML http: //www. xml. org http: //www. informit. com/guides/content. asp? g=dotnet&seq. Num=80&rl=1 Thư viện MSDN Ebooks : 1/ The. Book. of. SAX-The. Simple. API. for. XML. pdf 2/ MS. Press. Applied. XML. Programming. For. Microsoft. Dot. NET. e. Book. Li. B. chm
![Mục lục DOM SAX XMLDocument XML ADO NET Mục lục DOM & SAX XMLDocument XML & ADO. NET](https://slidetodoc.com/presentation_image_h2/979144e13d3a33171e701acb73f72793/image-4.jpg)
Mục lục DOM & SAX XMLDocument XML & ADO. NET
![DOM DOM](https://slidetodoc.com/presentation_image_h2/979144e13d3a33171e701acb73f72793/image-5.jpg)
DOM
![DOM là gì The W 3 C Document Object Model DOM is a DOM là gì ? The W 3 C Document Object Model (DOM) is a](https://slidetodoc.com/presentation_image_h2/979144e13d3a33171e701acb73f72793/image-6.jpg)
DOM là gì ? The W 3 C Document Object Model (DOM) is a platform and languageneutral interface that allows programs and scripts to dynamically access and update the content, structure, and style of a document Interface
![DOM là gì DOM được chia gồm 3 phần riêng biệt Core DOM là gì ? DOM được chia gồm 3 phần riêng biệt : Core](https://slidetodoc.com/presentation_image_h2/979144e13d3a33171e701acb73f72793/image-7.jpg)
DOM là gì ? DOM được chia gồm 3 phần riêng biệt : Core DOM XML DOM HTML DOM Là tập đối tượng thao tác với tài liệu có cấu trúc, XML, HTML
![DOM là gì Interface DOM XML Parser NET JAVA DOM là gì ? << Interface >> DOM XML Parser (. NET, . JAVA,](https://slidetodoc.com/presentation_image_h2/979144e13d3a33171e701acb73f72793/image-8.jpg)
DOM là gì ? << Interface >> DOM XML Parser (. NET, . JAVA, . . ) HTML Parser (IE 6, Firefox, . . ) XXX Parser
![XML DOM là gì n DOM xem tài liệu XML như 1 cây XML DOM là gì ? n DOM xem tài liệu XML như 1 cây](https://slidetodoc.com/presentation_image_h2/979144e13d3a33171e701acb73f72793/image-9.jpg)
XML DOM là gì ? n DOM xem tài liệu XML như 1 cây có cấu trúc n Tất cả Element, Attribute, Text đều có thể truy xuất (thêm, xóa và sửa) n Element, Attribute, Text được xem là Node n Tài liệu XML là 1 Node Tree <? xml version="1. 0" > <name> <first>Phuong</first> <middle>Anh</middle> <last>Pham</last> </name> Name first Phuong middle Anh last Pham
![Node Tree n Một cây gồm nhiều node dùng để thể hiện 1 tài Node Tree n Một cây gồm nhiều node dùng để thể hiện 1 tài](https://slidetodoc.com/presentation_image_h2/979144e13d3a33171e701acb73f72793/image-10.jpg)
Node Tree n Một cây gồm nhiều node dùng để thể hiện 1 tài liệu XML và sự kết nối giữa chúng - Trong cây, node cao nhất gọi là root - Mỗi node, trừ root ra có chính xác 1 node cha - Một node có nhiều node con - Node lá là node không có node con - Siblings là những node có cùng cấp với node cha
![XML DOM Parser n Để đọc cập nhật tạo và thao tác 1 tài XML DOM Parser n Để đọc, cập nhật, tạo và thao tác 1 tài](https://slidetodoc.com/presentation_image_h2/979144e13d3a33171e701acb73f72793/image-11.jpg)
XML DOM Parser n Để đọc, cập nhật, tạo và thao tác 1 tài liệu XML ta cần 1 XML Parser n Có nhiều XML Parser được hỗ trợ trong hầu hết các ngôn ngữ (JAVA, Java. Script, . NET, . . ) n Parser nạp tài liệu XML vào trong bộ nhớ máy tính và được xem dưới dạng cây Node n Sau đó, dữ liệu được thao tác và xử lý thông qua tập hàm XML DOM API
![XML DOM Parser XML DOM Parser](https://slidetodoc.com/presentation_image_h2/979144e13d3a33171e701acb73f72793/image-12.jpg)
XML DOM Parser
![XML DOM API n Duyệt các nodes parent Node child Nodes first XML DOM API n Duyệt các nodes : - parent. Node child. Nodes first.](https://slidetodoc.com/presentation_image_h2/979144e13d3a33171e701acb73f72793/image-13.jpg)
XML DOM API n Duyệt các nodes : - parent. Node child. Nodes first. Child last. Child next. Sibling previous. Sibling Root Element : <bookstore> parent. Node first. Child Element : <book> next. Sibling Element : <book> previous. Sibling Element : <book> last. Child Element : <book>
![XML DOM API n Thao tác các Node get Elements By Tag Name XML DOM API n Thao tác các Node: - get. Elements. By. Tag. Name](https://slidetodoc.com/presentation_image_h2/979144e13d3a33171e701acb73f72793/image-14.jpg)
XML DOM API n Thao tác các Node: - get. Elements. By. Tag. Name - get. Elment. By. Id - get. Named. Item - set. Attribute - get. Attribute - remove. Child - remove. Attribute - replace. Child -. .
![SAX SAX](https://slidetodoc.com/presentation_image_h2/979144e13d3a33171e701acb73f72793/image-15.jpg)
SAX
![SAX n SAX Simple API for XML n Performance và Memory không bị ảnh SAX n SAX (Simple API for XML) n Performance và Memory không bị ảnh](https://slidetodoc.com/presentation_image_h2/979144e13d3a33171e701acb73f72793/image-16.jpg)
SAX n SAX (Simple API for XML) n Performance và Memory không bị ảnh hưởng cho dù thao tác với tài liệu XML có dung lượng lớn n Event-Driven API
![SAX SAX](https://slidetodoc.com/presentation_image_h2/979144e13d3a33171e701acb73f72793/image-17.jpg)
SAX
![SAX n Xử lý dữ liệu ngay khi Parser chưa xử lý tòan bộ SAX n Xử lý dữ liệu ngay khi Parser chưa xử lý tòan bộ](https://slidetodoc.com/presentation_image_h2/979144e13d3a33171e701acb73f72793/image-18.jpg)
SAX n Xử lý dữ liệu ngay khi Parser chưa xử lý tòan bộ tài liệu XML (Khác so với DOM) n Dữ liệu sau khi được parse sẽ gửi đến Client Program thông qua các hàm Notification Method; dữ liệu này sau đó bị xóa
![SAX n SAX được hỗ trợ trong JAVA nhưng chưa có trong NET n SAX n SAX được hỗ trợ trong JAVA nhưng chưa có trong. NET n](https://slidetodoc.com/presentation_image_h2/979144e13d3a33171e701acb73f72793/image-19.jpg)
SAX n SAX được hỗ trợ trong JAVA nhưng chưa có trong. NET n Khuyết điểm: - - Developer phải tạo cấu trúc lưu trữ thông tin riêng vì dữ liệu gửi về từ parser sẽ tự động mất sau khi đến Notification Method SAX không phù hợp đối với các ứng dụng truy xuất ngẫu nhiên và thực hiện chỉnh sửa phức tạp
![XMLDocument XMLDocument](https://slidetodoc.com/presentation_image_h2/979144e13d3a33171e701acb73f72793/image-20.jpg)
XMLDocument
![XMLDocument n Là đối tượng dùng để thao tác với tài liệu XML trong XMLDocument n Là đối tượng dùng để thao tác với tài liệu XML trong.](https://slidetodoc.com/presentation_image_h2/979144e13d3a33171e701acb73f72793/image-21.jpg)
XMLDocument n Là đối tượng dùng để thao tác với tài liệu XML trong. NET n Namespace : System. Xml
![XMLDocument Tên hàm Thuộc tính Ý nghĩa Load Nạp tài liệu XML Save Ghi XMLDocument Tên hàm (Thuộc tính) Ý nghĩa Load Nạp tài liệu XML Save Ghi](https://slidetodoc.com/presentation_image_h2/979144e13d3a33171e701acb73f72793/image-22.jpg)
XMLDocument Tên hàm (Thuộc tính) Ý nghĩa Load Nạp tài liệu XML Save Ghi tài liệu XML -Insert. Before, Insert. After -Prepend. Child, Append. Child -Remove. Child, Replace. Child, Remove. All Phương thức truy cập node - Node. Changing, Node. Changed -Node. Inserting, Node. Inserted -Node. Removing, Node. Removed Xử lý sự kiện thông qua các delegate -First. Child, Thao tác duyệt node Last. Child -Child. Nodes, Next. Sibling, Previous. Sibling, Parent. Node
![XMLDocument n Đọc và lưu n Lấy Root Element XMLDocument n Đọc và lưu n Lấy Root Element :](https://slidetodoc.com/presentation_image_h2/979144e13d3a33171e701acb73f72793/image-23.jpg)
XMLDocument n Đọc và lưu n Lấy Root Element :
![XMLDocument n Xóa Node XMLDocument n. Xóa Node](https://slidetodoc.com/presentation_image_h2/979144e13d3a33171e701acb73f72793/image-24.jpg)
XMLDocument n. Xóa Node
![XMLDocument n Thêm Node XMLDocument n. Thêm Node](https://slidetodoc.com/presentation_image_h2/979144e13d3a33171e701acb73f72793/image-25.jpg)
XMLDocument n. Thêm Node
![XML ADO NET XML & ADO. NET](https://slidetodoc.com/presentation_image_h2/979144e13d3a33171e701acb73f72793/image-26.jpg)
XML & ADO. NET
![XML ADO NET n Đối tượng Data Set n Ý nghĩa XML & ADO. NET n Đối tượng : Data. Set n Ý nghĩa :](https://slidetodoc.com/presentation_image_h2/979144e13d3a33171e701acb73f72793/image-27.jpg)
XML & ADO. NET n Đối tượng : Data. Set n Ý nghĩa : Một Database nhưng được lưu trong memory n Thao tác : - Tạo mối quan hệ giữa các bảng - Thêm, xóa, sửa các record trong bảng n Với XML : - Ghi dữ liệu thành file XML - Đọc dữ liệu từ file XML và nạp lại vào Data. Set
![XML ADO NET n Một số phương thức Get Xml Schema XML & ADO. NET n Một - số phương thức : Get. Xml. Schema](https://slidetodoc.com/presentation_image_h2/979144e13d3a33171e701acb73f72793/image-28.jpg)
XML & ADO. NET n Một - số phương thức : Get. Xml. Schema Write. Xml Read. Xml Write. Xml. Schema Read. Xml. Schema
![XML ADO NET n Minh họa XML & ADO. NET n Minh họa :](https://slidetodoc.com/presentation_image_h2/979144e13d3a33171e701acb73f72793/image-29.jpg)
XML & ADO. NET n Minh họa :
![](https://slidetodoc.com/presentation_image_h2/979144e13d3a33171e701acb73f72793/image-30.jpg)
![](https://slidetodoc.com/presentation_image_h2/979144e13d3a33171e701acb73f72793/image-31.jpg)
Xml dom sax
Difference between sax and dom
Sax prof
Phm sax
Sax and dom
Difference between sax and dom
Mùa giáng sinh năm xưa anh hẹn anh sẽ về
자바 sax xml 파싱
Ado.net vb.net
Zenetr
Domphp
Xml dom tutorial
Xml dom
Xml dom defines a standard way for
Phm 142
Sktpm adalah
Phm hai
Ado.net ppt
Ado.net active directory
What are the ado.net objectives
Ado.net objects
Executereader
Ado.net c
Ado.net architecture diagram
Ado object model
Linq vs ado.net
Ado.net object model
Async ado.net
Ado.net technology
Ado.net overview
¿qué es ado.net?
Ado real life