working with xml:table of Contents1. A Quick Introduction to XML? Tags and Attributes
Empty Tags
Comments in XML Files
The XML Prolog
Processing instructions Why is XML Important? What can does with XML? 2. XML and related specs:digesting the Alphabet Soup recommendations SAX DOM DTD RDF namespaces
Proposed recommendations RDF Schema working Drafts XSL XLL XLink
XPointer XHTML XML Schema "Notes" schema proposals Ddml/xschema
DCD
SOX Other, Notes ICE
Standards that Build on XML SMIL
MathML
Svg
DRAWML ECommerce Standards CXML
CBL software administration and maintenance standards DMTF
WebDAV
3. An overview of the APIs, the JAXP APIs an overview of sax and DOM the SAX Parser 3b. Other SAX APIs the Document Object Model (DOM) The Project X Reference implementation Where does your Go from here?
4. Designing an XML Data Structure saving yourself Some work Attributes and Elements forced Choices
Stylistic Choices Normalizing Data
Normalizing DTDs
Part ii:serial Access with the simple API for XML (SAX)1. Writing a simple XML file Creating the file
Writing the Declaration
Adding a Comment
Defining the Root Element
Adding Attributes to an Element
Adding Nested Elements
Adding Html-style Text
Adding an Empty Element
The finished Product 2a. Echoing an XML File with the SAX Parser Create the Skeleton
Import the Classes We need
Setting up for I/O
Setting up the Parser
Implementing the Documenthandler Interface
Writing the Output
Spacing the Output
Handling Document Events
Compiling the program
Running the program
Command Scripts
Checking the Output
Identifying the Events
Compressing the Output
Inspecting the Output
Documents and Data 2b. Adding Additional Event handlers identifying the Document ' s location
Handling processing Instructions
Summary 3. Handling Errors with the nonvalidating Parser introducing an Error
Handling a Saxparseexception
Handling a Saxexception
Improving the Saxparseexception Handler
Handling a Parserconfigurationexception
Handling an IOException
Understanding Nonfatal Errors
Handling Nonfatal Errors
Handling Warnings 4. Substituting and Inserting Text handling special characters predefined entities
Character References Using A Entity Reference in a XML Document handling Text with Xml-style Syntax handling CDATA and O Ther characters 5a. Creating a Document Type Definition (DTD) Basic DTD definitions
Defining Text and Nested Elements
Limitations of DTDs
Special Element Values in the DTD
Referencing the DTD 5b. DTD ' s Effect on the nonvalidating Parser Tracking ignorable whitespace
Cleanup
Documents and Data
Empty Elements, revisited 5c. Defining Attributes and entities in the DTD defining Attributes in the DTD
Defining entities in the DTD
Echoing the Entity References
Additional Useful Entities
Referencing External Entities
Echoing the External Entity
Summarizing entities 5d. Referencing Binary entities Using a MIME Data Type
The alternative:using Entity References 6. Using the Validating Parser Configuring the Factory
Using an environment Variable
Experimenting with Validation Errors
Error handling in the Validating Parser 7a. Defining Parameter Entities and Conditional Sections Creating and referencing a Parameter Entity
Conditional Sections 7b. Parsing the parameterized DTD DTD Warnings 8. Using a Lexicaleventlistener How the Lexicaleventlistener Works working with a lexicaleventlistener Echoing Comments
Echoing other Lexical information 9. Using the Dtdhandler and entityresolver the Dtdhandler API
The Enityresolver API
Part Iii:xml and the Document Object Model (DOM)1. Generating a DOM from XML data Reading an XML Document into a DOM Create the Skeleton
Import the Required Classes
Declare the DOM
Handle Errors
Instantiate the Factory
Get a Parser and Parse the File Write out of the XML use XmlDocument
Run The program Additional information Configuring the Factory
Handling Validation Errors Looking Ahead
2. Generating XML from a arbitrary Data Structure how It Works
Modify the "Parser" to Generate SAX Events
Implement the Org.xml.sax.Parser Interface
Create a Factory
Wire Your "Parser" to an Xmldocumentbuilder
Write it Out
Run It 3a. Displaying a DOM Hierarchy Echoing Tree Nodes Convert Domecho to a GUI App ADD Import statements
Create the GUI Framework
ADD the display components Create adapters to Display the DOM in a jtree Define the Adapternode Class
Define the TreeModel Adapter Finish it up 3b. Examining the Structure of a DOM Displaying a simple tree Displaying a more Complex Tree finishing up 4. Constructing a user-friendly jtree from a DOM compressing the Tree View make the operation selectable
Identify "Tree" Nodes
Control Node Visibility
Control Child Access
Check the Results
Extra credits acting on Tree selections Identify Node Types
Concatenate subnodes to Define Element Contents
Display the Content in the JTree
The JTree to the JEditorPane
Run the APP
Extra credits handling modifications finishing up 5. Creating and manipulating a DOM obtaining a DOM from the Factory Modify the Code
Create Element and Text Nodes
Run the App normalizing the DOM other Operations traversing Nodes
Creating Attributes
Removing and changing Nodes finishing up 6. Using namespaces defining a Namespace referencing a Namespace defining a Namespace Prefix
Additional InformationJava ' s Encoding schemes
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.