일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
- MSSQL
- AJAX
- Thymeleaf
- git
- 오픈소스
- Eclipse
- 설정
- Core Java
- error
- Source
- Open Source
- Docker
- ubuntu
- SpringBoot
- maven
- IntelliJ
- 문서
- Exception
- myBatis
- spring
- PostgreSQL
- JDBC
- jpa
- Spring Boot
- Python
- MySQL
- oracle
- JavaScript
- Tomcat
- STS
- Today
- Total
목록XML (6)
헤르메스 LIFE
출처 : http://shonm.tistory.com/377 JDOM 이라는 API 를 통해 간단히 XML 을 만들 수 있다. 아래 코드를 보면 바로 이해가 될 것으로 보인다. (String 으로 출력 하는 방식과 file 로 만드는 방식을 모두 정리 하였다.) import java.io.FileOutputStream; import java.io.IOException; import org.jdom.Document; import org.jdom.Element; import org.jdom.output.Format; import org.jdom.output.XMLOutputter; public class XmlGene { /** * @param args */ public static void main(Str..
출처 : http://makerj.tistory.com/149 1. XML Document 생성 1.1 XML 불러오기 Case1> File로부터 읽는 경우 Document xml = DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(new File(filePath)); Case2> String으로부터 읽는 경우 Document xml = DocumentBuilderFactory.newInstance().newDocumentBuilder(). parse(new ByteArrayInputStream(xmlString.getBytes())); 1.2 정규화 xml.getDocumentElement().normalize(); 2. XPath 생성..
출처 : http://www.tutorialspoint.com/java_xml/java_jdom_create_document.htm package com.file .utils; import java. io.IOException ; import org. jdom.Attribute ; import org. jdom.Document ; import org. jdom.Element ; import org. jdom.output .Format; import org. jdom.output .XMLOutputter; public class CreateXmlFileDemo { public static void main( String[] args ) { try { // root element Element carsEle..
출처 : http://www.tutorialspoint.com/java_xml/java_dom4j_modify_document.htm package com.file .utils; import java. io.File ; import java. io.IOException ; import java. io.UnsupportedEncodingException ; import java. util.Iterator ; import java. util.List ; import org. dom4j.Document ; import org. dom4j.DocumentException ; import org. dom4j.Element ; import org. dom4j.Node ; import org. dom4j.io .Ou..
출처 : http://www.tutorialspoint.com/java_xml/java_jdom_parse_document.htm dinkar kad dinkar 85 Vaneet Gupta vinni 95 jasvir singh jazz 90 package com.file .utils; import java. io.File ; import java. io.IOException ; import javax. xml.parsers .DocumentBuilder; import javax. xml.parsers .DocumentBuilderFactory; import javax. xml.parsers .ParserConfigurationException; import javax. xml.xpath .XPath;..
출처 : http://www.edankert.com/validate.html Configure Java APIs (SAX, DOM, dom4j, XOM) using JAXP 1.3 to validate XML Documents with DTD and Schema(s).Many Java XML APIs provide mechanisms to validate XML documents, the JAXP API can be used for most of these XML APIs but subtle configuration differences exists. This article shows five ways of how to configure different Java APIs (including DOM, S..