- 전체
- JAVA 일반
- JAVA 수학
- JAVA 그래픽
- JAVA 자료구조
- JAVA 인공지능
- JAVA 인터넷
- Java Framework
- Java GUI (AWT,SWING,SWT,JFACE)
- SWT and RCP (web RAP/RWT)[eclipse], EMF
JAVA 자료구조 Java XML Parse, Java XML 파싱 샘플
2015.03.03 12:56
XML Processing using XERCES Java Parser Karl Seematter, Akadia AG, Information Technology, CH-3604 Thun [출처] http://www.akadia.com/services/java_xml_parser.html
| |
Using XML to transport information between different systems is nowadays a state of the art technology. Searching the WEB you'll find a huge set of examples how to validate and parse an XML document. But when it comes to the point where you have to create a XML document and send it as stream (i.g. character-stream, string, byte-array, etc.) to another system, it becomes difficult to find a proper example. Furthermore, different implementations of the DOM specification using different class names to do the same thing. Here comes an example which creates a XML Document using DOM and transforms it to a String. We used the XERCES Java Parser V1_4_3 from apache.org. Xerces (named after the Xerces Blue butterfly) provides world-class XML parsing and generation. Fully-validating parsers are available for both Java and C++, implementing the W3C XML and DOM (Level 1 and 2) standards, as well as the de facto SAX (version 2) standard. The parsers are highly modular and configurable. Initial support for XML Schema (draft W3C standard) is also provided. Runing the example produces the following output <?xml version="1.0" encoding="UTF-8"?> Here is the Java Code: for ProbeMsg.java import java.io.*; Compile the Code with javac -classpath ".;C:\java\xerces-1_4_3\xerces.jar" ProbeMsg.java Run the Code with java -classpath ".;C:\java\xerces-1_4_3\xerces.jar" ProbeMsg Links and Download Logging: log4j http://jakarta.apache.org/log4j/docs/index.html Download above example | |
광고 클릭에서 발생하는 수익금은 모두 웹사이트 서버의 유지 및 관리, 그리고 기술 콘텐츠 향상을 위해 쓰여집니다.
댓글 0
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
|---|---|---|---|---|
| 9 | JAVA SWT LINUX (Ubuntu) 에서 SWT Browser Control 사용시 | 졸리운_곰 | 2015.05.10 | 278 |
| 8 | JAVA SWT TEST 자료 | 졸리운_곰 | 2015.05.07 | 752 |
| 7 |
SWT 스크롤 ScrolledComposite
| 졸리운_곰 | 2015.05.03 | 407 |
| 6 |
SWT JAVA 동적으로 컨트롤을 추가하는 다이얼로그2
| 졸리운_곰 | 2015.04.27 | 325 |
| 5 | SWT JAVA 동적으로 컨트롤을 추가하는 다이얼로그 | 졸리운_곰 | 2015.04.27 | 455 |
| 4 | A simple Java console: | 졸리운_곰 | 2015.04.24 | 312 |
| 3 | SWT – MouseListener & MouseAdapter Example | 졸리운_곰 | 2015.04.22 | 297 |
| 2 |
Java SWT 소개
| 졸리운_곰 | 2015.03.30 | 358 |
| 1 |
Getting Controls on a shell : Shell « SWT « Java Tutorial
| 졸리운_곰 | 2015.03.30 | 229 |

