由买买提看人间百态

topics

全部话题 - 话题: jaxp
1 (共1页)
l*u
发帖数: 67
1
来自主题: XML版 - JAXP的PATH问题....
【 以下文字转载自 Java 讨论区 】
【 原文由 Lcu 所发表 】
path,path,又是path...:(
因为用弄一些和XML有关的东西,我要一个PARSER,我就DL了一个
JAXP 1.1, 我把它解压缩以后就放到了一个jaxp-1.1的目录里.
我根据它的INSTALLATION, 也需要UPDATE CLASSPATH VARIABLE,
我就在AUTOEXEC.BAT里加了这么一句:
set CLASSPATH =
.;c:\jaxp-1.1\jaxp.jar;jaxp-1.1\crimson.jar;jaxp-1.1\xalan.j
ar
在执行javac的时候没有问题,但是执行java就有一堆ERROR.
后来我在INSTALLATION又看见这么一段话:
To install these jar files as an extension of Java 2, copy
them to the $JAVA_HOME/jre/lib/ext directory. (The JAVA_HOME
directory is the one that contains
w*********n
发帖数: 84
2
I used to use jaxp1.1 to program a year ago,
and now it's jaxp 1.2.
I just wonder what are the changes there?
Is the new jaxp included in standart java API already?
i*****t
发帖数: 220
3
I am using JAXP new version but I am new to JAXP and never used old one. You
can go to the website and check the release document for the difference. By
the way, I have had mistakes while building a DOM document. Please read my
recent post on this board to see if you can help me. Thanks.
b****e
发帖数: 1275
4
来自主题: XML版 - JAXP的PATH问题....
for those lib files in ext you have to use the java.exe
under jre to run it..
also i think you should put xalan.jar in front of jaxp.jar
and crimson.jar.. i've had weird errors caused by this before
(running it from command line works fine but in servlet
mode i get all kinds of exceptions)
w*********n
发帖数: 84
5
【 以下文字转载自 Java 讨论区 】
【 原文由 williamchen 所发表 】
It seems that the APIs of JAXP is just for manipulating those
existing TAGs and VALUEs.
The question is, if we have already had a DOM representation
of entire XML fragment, how can we create a new Node?
Since Node is an interface and it can not be 'new'ed.
The node insertion is described by the API, just wonder how to
create Node.
thanks a lot!
c***a
发帖数: 69
6
来自主题: XML版 - 有人使用JAXP吗?
在applet中使用JAXP, 用JBuilder时一切正常。
放在browser里运行(我使用的web server是jswdk提供的server),
在如下code:
Transformer transformer = tFactory.newTransformer();
出现
org.apache.xml.utils.WrappedRuntimeException: Stream closed
at org.apache.xalan.templates.OutputProperties.getDefaultMethodProperties(O
utputProperties.java:303)
at org.apache.xalan.templates.OutputProperties.(OutputProperties.java
at org.apache.xalan.transformer.TransformerIdentityImpl.(TransformerI
dentityImpl.java:104
r*****d
发帖数: 1924
7
【 以下文字转载自 WashingtonDC 讨论区 】
发信人: Westridge (西岭), 信区: WashingtonDC
标 题: Java开发人员知识点(更新)
发信站: BBS 未名空间站 (Wed Apr 18 00:03:19 2012, 美东)
Java开发人员知识点
1.听说过James Gosling,SUN和Oracle公司。知道网上下载Java的地址,在哪讨论Java
。练习过Java在Windows下的安装和配置。知道Java应用系统中常见的几种license和JCP。了
解bytecode和Java在不同系统下可以轻松移植的原理。
2.懂得基本的Java编程和行命令格式。了解面向对象的编程思路。
几个基本点:Java基本语法和控制结构,命名和代码风格,结构化,对象封装,继承,
抽象,多态,接口,异常处理,堆空间,栈空间,垃圾回收器,static,this,
synchronized,annotations,JUnit,JDBC,JSP/servlet
Java Core APIs: java.lang,java.util,java.io,java.a... 阅读全帖
e***a
发帖数: 1661
8
jaxp
c********t
发帖数: 4527
9
I am looking for a few strong back end engineers with good Java experiences.
If you are an ambitious software guys in Boston area, please feel free to
reach me.
The Senior/Principal Software Engineer will work in the Java Framework team
on such projects as web services framework, messaging systems framework and
integration, authentication, authorization, caching, diagnostic tools, and
other java application server infrastructure
Contribute as a Sr. individual contributor within a team of top eng... 阅读全帖
W*******e
发帖数: 1268
10
来自主题: WashingtonDC版 - Java开发人员知识点
先抛砖引玉总结一下个人使用Java经历,从用HotJava开始,第一个IDE用的是Symatec
Cafe,到现在的Eclipse和JDeveloper,看看知识有没有跟上现在的潮流,需要哪些改
进的地方请砸砖。对新的Java开发员如果有用的地方请给包子鼓励。
Java开发人员知识点
1.听说过James Gosling,SUN和Oracle公司。知道网上下载Java的地址,在哪讨论Java
。练习过Java在Windows下的安装和配置。知道Java应用系统中常见的几种license。了
解bytecode和Java在不同系统下可以轻松移植的原理。
2.懂得基本的Java编程和行命令格式。了解面向对象的编程思路。
几个基本点:Java基本语法和控制结构,命名和代码风格,结构化,对象封装,继承,
抽象,多态,接口,异常处理,堆空间,栈空间,垃圾回收器,static,this,
synchronized,annotations,JUnit,JDBC,JSP/servlet
Java Core APIs: java.lang,java.util,java.io,java.awt,javax... 阅读全帖
x**n
发帖数: 12542
11
来自主题: WashingtonDC版 - [合集] Java开发人员知识点
☆─────────────────────────────────────☆
Westridge (西岭) 于 (Wed Apr 18 00:03:19 2012, 美东) 提到:
Java开发人员知识点
1.听说过James Gosling,SUN和Oracle公司。知道网上下载Java的地址,在哪讨论Java
。练习过Java在Windows下的安装和配置。知道Java应用系统中常见的几种license和JCP。了
解bytecode和Java在不同系统下可以轻松移植的原理。
2.懂得基本的Java编程和行命令格式。了解面向对象的编程思路。
几个基本点:Java基本语法和控制结构,命名和代码风格,结构化,对象封装,继承,
抽象,多态,接口,异常处理,堆空间,栈空间,垃圾回收器,static,this,
synchronized,annotations,JUnit,JDBC,JSP/servlet
Java Core APIs: java.lang,java.util,java.io,java.awt,javax.swing,JFrame
,String,java.sql... 阅读全帖
W*******e
发帖数: 1268
12
来自主题: Database版 - Java开发人员知识点 (转载)
【 以下文字转载自 WashingtonDC 讨论区 】
发信人: Westridge (西岭), 信区: WashingtonDC
标 题: Java开发人员知识点
发信站: BBS 未名空间站 (Wed Apr 18 00:03:19 2012, 美东)
先抛砖引玉总结一下个人使用Java经历,从用HotJava开始,第一个IDE用的是Symatec
Cafe,到现在的Eclipse和JDeveloper,看看知识有没有跟上现在的潮流,需要哪些改
进的地方请砸砖。对新的Java开发员如果有用的地方请给包子鼓励。
Java开发人员知识点
1.听说过James Gosling,SUN和Oracle公司。知道网上下载Java的地址,在哪讨论Java
。练习过Java在Windows下的安装和配置。知道Java应用系统中常见的几种license。了
解bytecode和Java在不同系统下可以轻松移植的原理。
2.懂得基本的Java编程和行命令格式。了解面向对象的编程思路。
几个基本点:Java基本语法和控制结构,命名和代码风格,结构化,对象封装,继承,
抽象,多态,接口,异常处理,堆空... 阅读全帖
o**d
发帖数: 11
13
来自主题: Java版 - Re: XML help?
You need to get JAXP( Java API for XML Parsing). It provides
bvasic functionality for reading , manipulating, and
generating XML documents through pure Java API.
Here is the URL:
http://java.sun.com/xml/download.html
m*****e
发帖数: 126
14
来自主题: Java版 - Re: Where can i find this package?
It should belong to JAXP. It can be find at:
http://java.sun.com/xml/download.html
Download the Java API for XML Processing Reference Implementation.
Put the jar files in your classpath.
The API document is at:
http://java.sun.com/xml/docs/api/
and
http://java.sun.com/xml/docs/api/internal/
Please try to avoid to use the internal APIs because it subjects
to change at any time.
e****y
发帖数: 26
15
来自主题: Java版 - 请问关于 Java XML processing
用DOM 或 SAX parse xml document时,用的SUN的JAXP
有没有可以读取DTD或Schema的method什么的?
欧需要读处DTD 或shema
Thanks.
t*******e
发帖数: 684
16
来自主题: Java版 - JAVA技术更新太快了!
JSF, Spring, Hibernate, JavaEE5(EJB3), WebServices(JAXP, JAXB, JAX-RPC,JAX-
WS) 最好都知道一些, WEBWORK, TAPESTRY, VELOCITY不是很popular, 很多ideas也被
借鉴在上面的技术规范中了.
x*******i
发帖数: 777
17
来自主题: Java版 - 学习JAVA的人要注意
1.你需要精通面向对象分析与设计(OOA/OOD)、涉及模式(GOF,J2EEDP)以及综合模式。你
应该十分了解UML,尤其是class,object,interaction以及statediagrams。
2.你需要学习JAVA语言的基础知识以及它的核心类库 (collections,
serialization
,streams,networking, multithreading,reflection,event,handling,
NIO,
localization,以及其他)。
3.你应该了解JVM,classloaders,classreflect,以及垃圾回收的基本工作机制
等。
你应该有能力反编译一个类文件并且明白一些基本的汇编指令。
4.如果你将要写客户端程序,你需要学习WEB的小应用程序(applet),必需掌握GUI设
计的思想和方法,以及桌面程序的 SWING,AWT, SWT。你还应该对UI部件的
JAVABEAN组
件模式有所了解。JAVABEANS也被应用在JSP中以把业务逻辑从表现层中分离出来。
5.你需要学习j... 阅读全帖
x*******i
发帖数: 777
18
来自主题: Java版 - 学习JAVA的人要注意
1.你需要精通面向对象分析与设计(OOA/OOD)、涉及模式(GOF,J2EEDP)以及综合模式。你
应该十分了解UML,尤其是class,object,interaction以及statediagrams。
2.你需要学习JAVA语言的基础知识以及它的核心类库 (collections,
serialization
,streams,networking, multithreading,reflection,event,handling,
NIO,
localization,以及其他)。
3.你应该了解JVM,classloaders,classreflect,以及垃圾回收的基本工作机制
等。
你应该有能力反编译一个类文件并且明白一些基本的汇编指令。
4.如果你将要写客户端程序,你需要学习WEB的小应用程序(applet),必需掌握GUI设
计的思想和方法,以及桌面程序的 SWING,AWT, SWT。你还应该对UI部件的
JAVABEAN组
件模式有所了解。JAVABEANS也被应用在JSP中以把业务逻辑从表现层中分离出来。
5.你需要学习j... 阅读全帖
f*******3
发帖数: 351
19
【 以下文字转载自 WashingtonDC 讨论区 】
发信人: Westridge (西岭), 信区: WashingtonDC
标 题: Java开发人员知识点(更新)
发信站: BBS 未名空间站 (Wed Apr 18 00:03:19 2012, 美东)
Java开发人员知识点
1.听说过James Gosling,SUN和Oracle公司。知道网上下载Java的地址,在哪讨论Java
。练习过Java在Windows下的安装和配置。知道Java应用系统中常见的几种license和JCP。了
解bytecode和Java在不同系统下可以轻松移植的原理。
2.懂得基本的Java编程和行命令格式。了解面向对象的编程思路。
几个基本点:Java基本语法和控制结构,命名和代码风格,结构化,对象封装,继承,
抽象,多态,接口,异常处理,堆空间,栈空间,垃圾回收器,static,this,
synchronized,annotations,JUnit,JDBC,JSP/servlet
Java Core APIs: java.lang,java.util,java.io,java.a... 阅读全帖
c********e
发帖数: 61
20
来自主题: XML版 - XML, Database and Java
check:
http://java.sun.com/xml
there is an XML parser called JAXP API
it may be useful to you
d*****r
发帖数: 18
21
来自主题: XML版 - xml parser?
Which is the best xml parser for java?
I installed JAXP but I don't like the idea of using
com.sun.* package to generate a xml file. Who can recommend
a better one? Thanks,
x***n
发帖数: 291
22
来自主题: XML版 - JAXP的PATH问题....
晕倒,刚刚在JAVA区回的.
你设CLASSPATH的时候,大概没有把原来得CLASSPATH
也包括进去.这是猜测.Maybe you should post your error message also
so that we may understand your problem:)
H********o
发帖数: 316
23
来自主题: XML版 - [转载] 请推荐一本XML的书

XML by Wrox, red cover
also check out www.xml.com very useful
http://msdn.microsoft.com/xml/default.asp
http://java.sun.com/xml/jaxp-docs-1.0.1/docs/tutorial/TOC.ht
ml
s****o
发帖数: 18
24
来自主题: XML版 - How to parse DTD structure?
I'm a beginner to work with JAXP. Now I need to parse the
DTD
part in a XML file and get its structure, i.e. I want to
know every element's name and type but I don't care its
value. What package and class I can use to do that? Is it
possible to do it with DOM parser?
Thanks a lot for your help!
s****o
发帖数: 18
25
来自主题: XML版 - How to parse DTD structure?
I'm a beginner to work with JAXP. Now I need to parse the
DTD
part in a XML file and get its structure, i.e. I want to
know every element's name and type but I don't care its
value. What package and class I can use to do that? Is it
possible to do it with DOM parser?
Thanks a lot for your help!
w*****h
发帖数: 139
26
来自主题: XML版 - xml parser
IBM alhapworks:
alphaworks.ibm.com, xml4j
Sun JAXP:
java.sun.com
w*****h
发帖数: 139
27
来自主题: XML版 - Any APIs for handling XML?
1. It's in a seperate package: jaxp.
2. XML Parser parses the text document into DOM tree structure, and there
are plenty of APIs defined to access the DOM tree.
s***e
发帖数: 28
28
来自主题: XML版 - one simple question

^^^^^^^^^^^^^^^^^^^^^^
^^^^^^^^^^^^^^^^^^^^^^^..yes..
更严格的说应该是你可以利用目前的DOM APIs来generate XML files..
such as JAXP, Xerces, or JDOM...
i*****t
发帖数: 220
29
Can somebody provides some websites of the sample coding? Thanks.
w*****h
发帖数: 139
i*****t
发帖数: 220
31
My tool is JAXP DOM. My idea is this: to realize XML file transfer between
two sockets. I finished several step so far at the sender side:
1. use DocumentBuilder to generate a new Document.
2. insert a root Element into the Document.
3. add new nodes into the root Element.
My question is how to do:
4. how to convert the Document type into OutputStream so I can send it out
using the socket. Maybe I should convert the Document into byte[] first or
something else, but how?
Thank you very much.
i*****t
发帖数: 220
32
thanks. but i am using jaxp so i shall use org.w3c.dom. i am still looking
for the way for w3c to do the serialization.

between
i*****t
发帖数: 220
33
来自主题: XML版 - a stupid question
Use jaxp dom to create a XML file:
in an element, if what I want to include is an integer, what should I do? What
a document can create is only test node (string). So do I have to do like
this:
element.appendChild( document.createTextNode(intNum.toString());
when paring it, I have to use Integer.parseInt(string)?
Thanks.
i*****t
发帖数: 220
34
Project: sending XML via socket using JAXP DOM
No compiling errors but exception errors while running.
Exceptions:
java.lang.NullPointerException
at org.apache.xml.utils.TreeWalker.dispatachChar(TreeWalker.java:275)
at org.apache.xml.utils.TreeWalker.startNode(TreeWalker.java:419)
at org.apache.xml.utils.TreeWalker.traverse(TreeWalker.java:183)
at org.apache.xalan.transformer.TransformerIdentityImpl.transform(Transf
ormerIdentityImpl.java:325)
code part for create/send XML via socket:
DocumentBu
o*******m
发帖数: 8
35
来自主题: XML版 - XML parser ???

You can use parser from Oracle, IBM or Sun(JAXP)
1 (共1页)