일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- Open Source
- MSSQL
- oracle
- 오픈소스
- STS
- Tomcat
- spring
- Docker
- jpa
- JavaScript
- PostgreSQL
- myBatis
- Exception
- SpringBoot
- MySQL
- AJAX
- Core Java
- 설정
- Source
- JDBC
- ubuntu
- Python
- git
- Thymeleaf
- 문서
- maven
- Eclipse
- Spring Boot
- IntelliJ
- error
- Today
- Total
목록XML (7)
헤르메스 LIFE
STS 4.x 에서 MyBatis 사용 시 아래의 구문에서 "downloading external resources is disabled." 라는 오류 메시지가 보여집니다.이게 실행이 안되는건 아닌데, 메시지가 거슬리긴 합니다. ㅡㅡ;;....첫번째 해결 방법은 아래와 같습니다.[Window >> Preference >> XML (Wild Web Developer) ] Download external resources like referenced DTD, XSD 를 체크해주면 해결됩니다.두번째 해결 방법은 Validation 체크를 하지 않는 겁니다.[ Window >> Preference >> XML (Wild Web Developer) >> Validation & Resolution ] Enable..
출처 : 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..