티스토리 뷰
using (IsolatedStorageFile isoStore =
IsolatedStorageFile.GetUserStoreForApplication())
{
// Create new file
using (IsolatedStorageFileStream isoStream =
new IsolatedStorageFileStream("IsoStoreFile.xml",
FileMode.Create, isoStore))
{
// Write to the Isolated Storage for the user.
XmlWriterSettings settings = new XmlWriterSettings();
settings.Indent = true;
// Create an XmlWriter.
using (XmlWriter writer = XmlWriter.Create(isoStream, settings))
{
writer.WriteComment("sample XML document");
// Write an element (this one is the root).
writer.WriteStartElement("book");
// Write the namespace declaration.
writer.WriteAttributeString("xmlns", "bk", null, "urn:samples");
// Write the genre attribute.
writer.WriteAttributeString("genre", "novel");
// Write the title.
writer.WriteStartElement("title");
writer.WriteString("The Handmaid's Tale");
writer.WriteEndElement();
// Write the price.
writer.WriteElementString("price", "19.95");
writer.WriteStartElement(null, "ISBN", "urn:samples");
writer.WriteString("1-861003-78");
writer.WriteEndElement();
// Write the style element (shows a different way to handle prefixes).
writer.WriteElementString("style", "urn:samples", "hardcover");
// Write the close tag for the root element.
writer.WriteEndElement();
// Write the XML to the file.
writer.Flush();
}
}
// Open the file again for reading.
using (StreamReader reader =
new StreamReader(isoStore.OpenFile("IsoStoreFile.xml", FileMode.Open)))
{
OutputTextBlock.Text = reader.ReadToEnd();
}
// Delete the IsoStoreFile.xml file.
isoStore.DeleteFile("IsoStoreFile.xml");
}
- Total
- Today
- Yesterday
- 진수 변환
- 인텔리제이(intellij)
- system.io
- java.sql
- await
- java 키워드 정리
- 표현 언어(expression language)
- React
- docker
- 스프링 프레임워크(spring framewordk)
- 메이븐(maven)
- .submit()
- 제품 등록
- 특정 문자를 기준으로 자르기
- 문자 자르기
- 스프링 시큐리티(spring security)-http basic 인증
- 스프링 시큐리티(spring security)
- nl2br
- REST API
- java-개발 환경 설정하기
- MainActor
- jstl(java standard tag library)-core
- java web-mvc
- jstl(java standard tag library)
- jsp 오픈 소스
- 스프링 프레임워크(spring framework)
- error-java
- In App Purchase
- System.Diagnostics
- 람다식(lambda expression)
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |