DOM Objects That Make Up the Parse Tree : DOM Parser « XML « Java Tutorial

Java Tutorial
1. Language
2. Data Type
3. Operators
4. Statement Control
5. Class Definition
6. Development
7. Reflection
8. Regular Expressions
9. Collections
10. Thread
11. File
12. Generics
13. I18N
14. Swing
15. Swing Event
16. 2D Graphics
17. SWT
18. SWT 2D Graphics
19. Network
20. Database
21. Hibernate
22. JPA
23. JSP
24. JSTL
25. Servlet
26. Web Services SOA
27. EJB3
28. Spring
29. PDF
30. Email
31. J2ME
32. J2EE Application
33. XML
34. Design Pattern
35. Log
36. Security
37. Apache Common
38. Ant
39. JUnit
Java
Java Source Code / Java Documentation
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Tutorial » XML » DOM Parser 
33. 2. 1. DOM Objects That Make Up the Parse Tree

A DOM parser loads the entire document into a memory-resident tree structure so that the nodes of the tree can be randomly accessed by an application program. The nodes are all linked together in parent/child relationships that are representative of the relationships in the original document.

DOM Objects That Make Up the Parse Tree

NameDescription
AttrAn attribute consisting of a name (sometimes called a key) and a value to be associated with the name.
CDATASectionA block of text in an escape format to allow for the inclusion of special characters. .
CommentThe text of a comment.
DocumentThe root node of the entire document tree.
DocumentFragmentA lightweight form of Document primarily used for editing a parse tree by extracting and inserting parts of the tree.
DocumentTypeThe node in the tree that contains descriptive information about the format of the elements (it is the schema or DTD information).
ElementA tag used to mark up a section of text.
EntityAn entity, either parsed or unparsed. This is the entity itself, not the declaration.
EntityReferenceAn unexpanded entity. A parser may choose to expand all entity references omitting objects of this type.
NotationA notation declared as part of the DTD or schema. It is either an unparsed entity or processing instruction.
ProcessingInstructionA processing instruction is a processor-specific instruction included in the document.
TextCharacter data.


33. 2. DOM Parser
33. 2. 1. DOM Objects That Make Up the Parse Tree
33. 2. 2. A DOM Error Checker: Using DOM for Syntax Checking
33. 2. 3. A DOM Parse Tree Lister
33. 2. 4. Listing the Contents of Parse Tree Nodes: Using the DOM Parser to Extract XML Document Data
33. 2. 5. Ignorable Whitespace and Element Content
33. 2. 6. Remove the element from parent
33. 2. 7. Visiting All the Elements in a DOM Document
33. 2. 8. Getting the Root Element in a DOM Document
33. 2. 9. Getting a Node Relative to Another Node in a DOM Document
33. 2. 10. Getting the Notations in a DOM Document
33. 2. 11. Getting the Declared Entities in a DOM Document
33. 2. 12. Getting the Value of an Entity Reference in a DOM Document
33. 2. 13. Getting a DOM Element by Id
33. 2. 14. Converting an XML Fragment into a DOM Fragment
33. 2. 15. Parse an XML string: Using DOM and a StringReader.
33. 2. 16. Use DOM L3 DOMBuilder, DOMBuilderFilter DOMWriter and other DOM L3 functionality to preparse, revalidate and safe document.
33. 2. 17. Read XML as DOM
33. 2. 18. Create DOM Document out of string
33. 2. 19. Source To InputSource
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.