Processing XML with Java : a guide to SAX, DOM, JDOM, JAXP, and TrAX = 用Java处理XML /

副标题:无

作   者:Elliotte Rusty Harold编著.

分类号:

ISBN:9787030124951

微信扫一扫,移动浏览光盘

简介

   本书简单回顾了XML墓础知识,重点介绍了用Java处理的XML应用程序,包括简单XML应用程序、文档对象模型和JDOM等。    本书通俗易懂,便于读者掌握用Java处理XML的技术,适用于Java程序员和自学者。   

目录

list of examples

list of figures

preface

who you are

what you need to know

what you need to have

how to use this book

the online edition

some grammatical notes

contacting the author

acknowledgments

part i xml

chapter 1 xml for data

motivating xml

a thought experiment

robustness

extensibility

ease-of-use xml syntax

xml documents

xml applications

.elements and tags

text

attributes

xml declaration

comments

processing instructions

entities

namespaces

validity

dtds

schemas

schematron

the last mile

stylesheets

css

associating stylesheets with xml documents

xsl

summary

chapter 2 xml protocols: xml-rpc and soap

xml as a message format

envelopes

data representation

http as a transport protocol

how http works

http in java

rss

customizing the request

query strings

how http post works

xml-rpc

data structures

faults

validating xml-rpc

soap

a soap example

posting soap documents

faults

encoding styles

soap headers

soap limitations

validating soap

custom protocols

summary

chapter 3 writing xml with java

fibonacci numbers

writing xml

better coding practices

attributes

producing valid xml

namespaces

output streams, writers, and encodings

a simple xml-rpc client

a simple soap client

servlets

summary

chapter 4 converting flat files to xml

the budget

the model

input

determining the output format

validation

attributes

building hierarchical structures from flat data

alternatives to java

imposing hierarchy with xslt

the xml query language

relational databases

summary

chapter 5 reading xml

inputstreams and readers

xml parsers

choosing an xml api

choosing an xml parser

available parsers

sax

dom

jaxp

jdom

dom4j

electricxml

xmlpull

summary

part ii sax

chapter 6 sax

what is sax?

parsing

callback interfaces

implementing contenthandler

using the contenthandler

the defaulthandler adapter class

receiving documents

receiving elements

handling attributes

receiving characters

receiving processing instructions

receiving namespace mappings

"ignorable white space"

receiving skipped entities

receiving locators

what the contenthandler doesn't tell you

summary

chapter 7 the xmlreader interface

building parser objects

input

inputsource

entityresolver

exceptions and errors

saxexceptions

the errorhandler interface

features and properties

getting and setting features

getting and setting properties

required features

standard features

standard properties

xerces custom features

xerces custom properties

dtdhandler

summary

chapter 8 sax filters

the filter architecture

the xmlfilter interface

content filters

filtering tags

filtering elements

filtering attributes

filters that add content

filters versus transforms

the xml filterlmpl class

parsing non-xml documents

multihandler adapters

summary

part iii dom

chapter 9 the document object model

the evolution of dom

dom modules

application-specific doms

trees

document nodes

element nodes

attribute nodes

leaf nodes

nontree nodes

what is and isn't in the tree

dom parsers for java

parsing documents with a dom parser

jaxp documentbuilder and documentbuilderfactory

dom3 load and save

the node interface

node types

node properties

navigating the tree

modifying the tree

utility methods

the nodelist interface

jaxp serialization

domexception

choosing between sax and dom

summary

chapter 10 creating xml documents with dom

domimplementation

locating a domimp]ementation

implementation-specific class

jaxp documentbuilder

dom3 domimplementationregistry

the document interface as an abstract factory

the document interface as a node type

getter methods

finding elements

transferring nodes between documents

normalization

summary

chapter 11 the dom core

the element interface

extracting elements

attributes

the namednodemap interface

the characterdata interface

the text interface

the cdatasection interface

the entityreference interface

the attr interface

the processinginstruction interface

the comment interface

the documenttype interface

the entity interface

the notation interface

summary

chapter 12 the dom traversal module

nodeiterator

constructing nodeiterators with documenttraversal

liveness

filtering by node type

nodefilter

treewalker

summary

chapter 13 output from dom

xerces serialization

outputformat

dom level 3

creating domwriters

serialization features

filtering output

summary

part iv jdom

chapter 14 jdom

what is jdom?

creating xml elements with jdom

creating xml documents with jdom

writing xml documents with jdom

document type declarations

namespaces

reading xml documents with jdom

navigating jdom trees

talking to dom programs

talking to sax programs

configuring saxbuilder

saxoutputter

java integration

serializing jdom objects

synchronizing jdom objects

testing equality

hash codes

string representations

cloning

what jdom doesn't do

summary

chapter 15 the jdom model

the document class

the element class

constructors

navigation and search

attributes

the attribute class

the text class

the cdata class

the processinginstruction class

the comment class

namespaces

the doctype class

the entityref class

summary

part v xpath/xslt

chapter 16 xpath

queries

the xpath data model

location paths

axes

node tests

predicates

compound location paths

absolute location paths

abbreviated location paths

combining location paths

expressions

literals

operators

functions

xpath engines

xpath with saxon

xpath with xalan

dom level 3 xpath

namespace bindings

snapshots

compiled expressions

jaxen

summary

chapter 17 xslt

xsl transformations

template rules

stylesheets

taking the value of a node

applying templates

the default template rules

selection

calling templates by name

trax

thread safety

locating transformers

the xml-stylesheet processing instruction

features

xslt processor attributes

uri resolution

error handling

passing parameters to stylesheets

output properties

sources and results

extending xslt with java

extension functions

extension elements

summary

part vi appendixes

appendix a xml api quick reference

sax

org.xml.sax

org.xml.sax.ext

org.xml.sax.helpers

dom

the dom data model

org.w3c.dom

org.w3c.dom.traversal

jaxp

javax.xml.parsers

trax

javax.xml.transform

javax.xml.transform.stream

javax.xml.transform.dom

javax.xml.transform.sax

jdom

org.jdom

org.jdom.fiher

org.jdom.input

org.jdom.output

org.jdom.transform

org.jdom.xpath

xmlpull

org.xmlpull.v1

appendix b soap 1.1 schemas

the soap 1.1 envelope schema

the soap 1.1 encoding schema

w3c software notice and license

appendix c recommended reading

books

specifications

index


已确认勘误

次印刷

页码 勘误内容 提交人 修订印次

Processing XML with Java : a guide to SAX, DOM, JDOM, JAXP, and TrAX = 用Java处理XML /
    • 名称
    • 类型
    • 大小

    光盘服务联系方式: 020-38250260    客服QQ:4006604884

    意见反馈

    14:15

    关闭

    云图客服:

    尊敬的用户,您好!您有任何提议或者建议都可以在此提出来,我们会谦虚地接受任何意见。

    或者您是想咨询:

    用户发送的提问,这种方式就需要有位在线客服来回答用户的问题,这种 就属于对话式的,问题是这种提问是否需要用户登录才能提问

    Video Player
    ×
    Audio Player
    ×
    pdf Player
    ×
    Current View

    看过该图书的还喜欢

    some pictures

    解忧杂货店

    东野圭吾 (作者), 李盈春 (译者)

    loading icon