易截截图软件、单文件、免安装、纯绿色、仅160KB

如何 使用 java 操纵 XML 文件


Introduction to XML and XML With Java  
 
If you are looking for sample programs to parse a XML file using DOM/SAX parser or looking for a program to generate a XML file please proceed directly to programs.
This small tutorial introduces you to the basic concepts of XML and using Xerces parser for Java to generate and parse XML.
The intended audience are XML beginners with knowledge of Java.
Last updated:
03 Oct 2005.Modified programs runs in JDK 1.3, JDK 1.4 and JDK 1.5. Xerces parser is used with JDK 1.4 and 1.3.
Contents
1 Introduction
2 What is XML
3 Advantages of XML
3.1 Readability
3.2 Hierarchical
3.3 Language Independent
3.4 OS independent
4 Uses of XML
4.1 MetaContent
4.2 Messaging
4.3 Database
5 Parsers
5.1 DOM
5.2 SAX
5.3 When to use DOM Parser
5.4 When to use SAX Parser
5.5 Validating And Non Validating
5.6 Well Formedness
6 Programs
6.1 Parsing and Printing
6.1.1 Using DOM
6.1.2 Using SAX
6.2 Generating XML
7 Instructions to run these programs
7.1 Using JDK 1.5
7.2 Using JDK 1.4
7.3 Using JDK 1.3
Definitions
Introduction:
    This is a gentle introduction to XML and using XML with Java. We see what makes XML tick and the advantages of XML . Also we have programs to show how to use Xerces parser for parsing and printing an XML document, to generate XML from arbitrary data.
These programs have been intentionally kept small to get the point across.
Top
2 What is XML ?
    Extensible Markup Language
XML is text based markup language.
XML is more than html because html only deal with presentation and carries no information about the data itself.
In HTML
For example
<b>Seagull<b>
<i>3674<i>
<i> 34 </i>
could mean anything
In XML  we represent it as.
<Personnel>
    <Employee>
        <Name>Seagull</Name>


相关文档:

java 数字证书信息的获取实例 java学习笔记(2)

用java提供的api实现从证书文件(本实例实验对象为*.cer文件)中获取有效信息的方法..
public static X509Certificate getCert(String fileName) throws Exception {//从一个有效的证书文件来创建证书..
InputStream inStream = new FileInputStream(fileName);
CertificateFactory cf = CertificateFactory.get ......

调试Java Web Start

远程调试java web start 用javaw启动程序即可:如下 "D:\tools\jdk6.0\bin\javaws"  -J-Xdebug -J-Xnoagent -J-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5016 d:\login.jsp.jnlp 然后在eclipse里面 建立 远程调试 连到5016端口就可以了。 jnlp文件 自己从服务器上下载下来就好。 ......

如何在UltraEdit中使java文件语法高亮显示?

如何在UltraEdit中使java文件语法高亮显示?
 
1.  UltraEdit官方网站下载所需文件格式的语法方, http://www.ultraedit.com/downloads/extras.html,选择java下载。
2.  选择“高级”->“配置”
3.  选择“编辑器显示”->“语法加亮”,点击“ ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号