티스토리 뷰
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
- 제품 등록
- java-개발 환경 설정하기
- REST API
- error-java
- 표현 언어(expression language)
- system.io
- jstl(java standard tag library)
- 스프링 시큐리티(spring security)-http basic 인증
- 인텔리제이(intellij)
- 진수 변환
- docker
- MainActor
- 특정 문자를 기준으로 자르기
- jsp 오픈 소스
- 메이븐(maven)
- 스프링 시큐리티(spring security)
- 문자 자르기
- java web-mvc
- java.sql
- React
- jstl(java standard tag library)-core
- 람다식(lambda expression)
- 스프링 프레임워크(spring framework)
- .submit()
- In App Purchase
- java 키워드 정리
- nl2br
- await
- System.Diagnostics
- 스프링 프레임워크(spring framewordk)
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |