본문 바로가기

반응형
   

전체 글

(1624)
Naver api 이용 검색 순위 using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Xml; namespace WinFormEx { public partial class Ex04 : Form { public Ex04() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { //http://openapi.naver.com/search?key=7a6..
윈폼 메모 예제 XmlElement using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Xml; namespace WinFormEx { public partial class Ex03 : Form { private XmlDocument doc; public Ex03() { InitializeComponent(); doc = new XmlDocument(); } private void Ex03_Load(object sender, EventArgs ..
윈폼 XML연결후 피드추가, 삭제 예제 using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.IO; using System.Xml; namespace WinFormEx { public partial class Ex02 : Form { public Ex02() { InitializeComponent(); } private void 블로그관리ToolStripMenuItem_Click(object sender, EventArgs e) { //팝업 Ex02..
윈폼으로 XML 연결 using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Xml; //@@@@ namespace WinFormEx { public partial class Ex01 : Form { public Ex01() { InitializeComponent(); } private void Ex01_Load(object sender, EventArgs e) { XmlDocument doc = new XmlDocument(); /..
루트, Predicate, SelectSingleNode 홍길동 20 010-3333-4444 110-111 서울시 영등포구 아무게 25 010-555-4554 120-222 서울시 서대문구 테스트 30 010-555-4554 120-222 서울시 서대문구 이순신 28 010-555-4554 120-222 서울시 서대문구 하하하 21 010-555-4554 120-222 서울시 서대문구 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Xml; //@@@@ namespace ConsoleEx { class Ex18_XPath { static void Main(string[] args) { //XPath // - XML문서내에서 원하는 ..
ChildNodes, NodeType, FirstChild, HasAttributes DOM 각종 속성 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Xml; //@@@@ namespace ConsoleEx { class Ex17_DOM { static void Main(string[] args) { XmlDocument doc = new XmlDocument(); doc.Load(@"..\..\address.xml"); //루트 찾기 XmlElement root = doc.DocumentElement; XmlElement m2 = root.ChildNodes[1] as XmlElement; //m2 // //*** 현재 노드의 타입은? NodeType Console.Write..
블로그 rss 내용 가져오기 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Xml; //@@@@ namespace ConsoleEx { class Ex16_blog { static void Main(string[] args) { XmlDocument doc = new XmlDocument(); //블로그의 rss 단추를 누른수 다음의 주소를 붙여넣기 doc.Load("http://petit_ange.blog.me/rss"); //Console.WriteLine(doc.OuterXml); //블로그 포스트의 제목을 출력해보자. //1. 루트 엘리먼트 접근 XmlElement rss = doc.Documen..
XML DOM using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Xml;//C#에서 XML을 다룰수 있도록하는 조작 클래스들이 있음. namespace ConsoleEx { class Ex14_DOM { static void Main(string[] args) { //DOM(Document Object Model) // - Javascript DOM : 브라우저에서 // - C# DOM : 브라우저를 제외한 윈폼, 웹폼, 서비스.... //C#으로 XML 조작 // 1. SAX(StreamReader ... 방식) // 2. DOM //DOM 처리순서 // 1. 문서를 읽기(문서 전체를 한번에..

반응형