티스토리 뷰
static void Main(string[] args)
{
XmlDocument xmlDocument = new XmlDocument();
xmlDocument.AppendChild(xmlDocument.CreateXmlDeclaration("1.0", "utf-8", "yes"));
// Root Node
XmlNode rootNode = xmlDocument.CreateNode(XmlNodeType.Element, "weather", string.Empty);
xmlDocument.AppendChild(rootNode);
// Child Node
XmlNode childNode = xmlDocument.CreateNode(XmlNodeType.Element, "beartreepark", string.Empty);
rootNode.AppendChild(childNode);
// Child Node Attribute
XmlAttribute beartreeParkAttributte = xmlDocument.CreateAttribute("date");
beartreeParkAttributte.Value = "today";
childNode.Attributes.Append(beartreeParkAttributte);
// Child element: item
XmlElement icon = xmlDocument.CreateElement("item");
icon.InnerText = "01";
childNode.AppendChild(icon);
// Child element: etc
XmlElement etc = xmlDocument.CreateElement("etc");
etc.InnerText = "12.8";
childNode.AppendChild(etc);
// Child element: rain
XmlElement rain = xmlDocument.CreateElement("rain");
rain.InnerText = "0";
childNode.AppendChild(rain);
xmlDocument.Save("test.xml");
}
// CDATA추가 하는 방법
XmlElement body = doc.CreateElement("body");
XmlNode cdata = doc.CreateCDataSection("This is the body of the article.");
body.AppendChild(cdata);
root.AppendChild(body);
- Total
- Today
- Yesterday
- docker
- java.sql
- nl2br
- 람다식(lambda expression)
- java-개발 환경 설정하기
- In App Purchase
- .submit()
- React
- await
- jstl(java standard tag library)-core
- 문자 자르기
- 인텔리제이(intellij)
- 스프링 시큐리티(spring security)-http basic 인증
- MainActor
- jsp 오픈 소스
- java web-mvc
- REST API
- system.io
- 스프링 시큐리티(spring security)
- 표현 언어(expression language)
- 진수 변환
- 스프링 프레임워크(spring framewordk)
- 특정 문자를 기준으로 자르기
- 스프링 프레임워크(spring framework)
- jstl(java standard tag library)
- 제품 등록
- System.Diagnostics
- 메이븐(maven)
- java 키워드 정리
- error-java
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |