XML 8.1~8.6 절 DOM 으로 문서 주무르기 서국화 군산대학교 통계컴퓨터과학과 정보과학기술 연구실 2012. 8. 22.

Slides:



Advertisements
Similar presentations
TWO STEP EQUATIONS 1. SOLVE FOR X 2. DO THE ADDITION STEP FIRST
Advertisements

LEUCEMIA MIELOIDE AGUDA TIPO 0
You have been given a mission and a code. Use the code to complete the mission and you will save the world from obliteration…
Advanced Piloting Cruise Plot.
Chapter 1 The Study of Body Function Image PowerPoint
Copyright © 2011, Elsevier Inc. All rights reserved. Chapter 5 Author: Julia Richards and R. Scott Hawley.
1 Copyright © 2010, Elsevier Inc. All rights Reserved Fig 2.1 Chapter 2.
1 Chapter 40 - Physiology and Pathophysiology of Diuretic Action Copyright © 2013 Elsevier Inc. All rights reserved.
By D. Fisher Geometric Transformations. Reflection, Rotation, or Translation 1.
Business Transaction Management Software for Application Coordination 1 Business Processes and Coordination.
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
Title Subtitle.
My Alphabet Book abcdefghijklm nopqrstuvwxyz.
Multiplying binomials You will have 20 seconds to answer each of the following multiplication problems. If you get hung up, go to the next problem when.
Coordinate Plane Practice The following presentation provides practice in two skillsThe following presentation provides practice in two skills –Graphing.
0 - 0.
ALGEBRAIC EXPRESSIONS
DIVIDING INTEGERS 1. IF THE SIGNS ARE THE SAME THE ANSWER IS POSITIVE 2. IF THE SIGNS ARE DIFFERENT THE ANSWER IS NEGATIVE.
MULTIPLYING MONOMIALS TIMES POLYNOMIALS (DISTRIBUTIVE PROPERTY)
ADDING INTEGERS 1. POS. + POS. = POS. 2. NEG. + NEG. = NEG. 3. POS. + NEG. OR NEG. + POS. SUBTRACT TAKE SIGN OF BIGGER ABSOLUTE VALUE.
MULTIPLICATION EQUATIONS 1. SOLVE FOR X 3. WHAT EVER YOU DO TO ONE SIDE YOU HAVE TO DO TO THE OTHER 2. DIVIDE BY THE NUMBER IN FRONT OF THE VARIABLE.
SUBTRACTING INTEGERS 1. CHANGE THE SUBTRACTION SIGN TO ADDITION
MULT. INTEGERS 1. IF THE SIGNS ARE THE SAME THE ANSWER IS POSITIVE 2. IF THE SIGNS ARE DIFFERENT THE ANSWER IS NEGATIVE.
FACTORING Think Distributive property backwards Work down, Show all steps ax + ay = a(x + y)
FACTORING ax2 + bx + c Think “unfoil” Work down, Show all steps.
Addition Facts
Year 6 mental test 5 second questions
Year 6 mental test 10 second questions Numbers and number system Numbers and the number system, fractions, decimals, proportion & probability.
ZMQS ZMQS
Richmond House, Liverpool (1) 26 th January 2004.
BT Wholesale October Creating your own telephone network WHOLESALE CALLS LINE ASSOCIATED.
ABC Technology Project
O X Click on Number next to person for a question.
© S Haughton more than 3?
© Charles van Marrewijk, An Introduction to Geographical Economics Brakman, Garretsen, and Van Marrewijk.
© Charles van Marrewijk, An Introduction to Geographical Economics Brakman, Garretsen, and Van Marrewijk.
© Charles van Marrewijk, An Introduction to Geographical Economics Brakman, Garretsen, and Van Marrewijk.
VOORBLAD.
1 Directed Depth First Search Adjacency Lists A: F G B: A H C: A D D: C F E: C D G F: E: G: : H: B: I: H: F A B C G D E H I.
Twenty Questions Subject: Twenty Questions
Linking Verb? Action Verb or. Question 1 Define the term: action verb.
Squares and Square Root WALK. Solve each problem REVIEW:
Energy & Green Urbanism Markku Lappalainen Aalto University.
© 2012 National Heart Foundation of Australia. Slide 2.
Lets play bingo!!. Calculate: MEAN Calculate: MEDIAN
Past Tense Probe. Past Tense Probe Past Tense Probe – Practice 1.
XML CS What is XML?  XML: a "skeleton" for creating markup languages  you already know it!  syntax is identical to XHTML's: content  languages.
Video Audio Shot 1 Shot: Long Shot Girl starts floating in the air as she is yelling at her teacher. The teacher is heard whimpering at the sight and sound.
Chapter 5 Test Review Sections 5-1 through 5-4.
GG Consulting, LLC I-SUITE. Source: TEA SHARS Frequently asked questions 2.
1 First EMRAS II Technical Meeting IAEA Headquarters, Vienna, 19–23 January 2009.
Event 4: Mental Math 7th/8th grade Math Meet ‘11.
Addition 1’s to 20.
25 seconds left…...
Test B, 100 Subtraction Facts
11 = This is the fact family. You say: 8+3=11 and 3+8=11
Week 1.
We will resume in: 25 Minutes.
©Brooks/Cole, 2001 Chapter 12 Derived Types-- Enumerated, Structure and Union.
Figure Essential Cell Biology (© Garland Science 2010)
1 Unit 1 Kinematics Chapter 1 Day
O X Click on Number next to person for a question.
PSSA Preparation.
1 PART 1 ILLUSTRATION OF DOCUMENTS  Brief introduction to the documents contained in the envelope  Detailed clarification of the documents content.
How Cells Obtain Energy from Food
양승혁 군산대학교 통계컴퓨터과학과 정보과학기술 연구실
Presentation transcript:

XML 8.1~8.6 절 DOM 으로 문서 주무르기 서국화 군산대학교 통계컴퓨터과학과 정보과학기술 연구실

목 차목 차  DOM 이란 무엇인가 ?  처음 사용하는 DOM  parserError 객체 사용하기  노드들을 다루는 여러 가지 예 미리보기  노드 정보 출력하기  노드 객체 사용하기 2 IST (Information Sciences & Technology) Laboratory

DOM 이란 무엇인가 ?  DOM(document object model)  xml 문서 내의 데이터들을 프로그램을 통해 다룰 수 있도록 도 와주는 함수들의 집단  API(Application programming interface) – 사용자 프로그램과 여러 가지 데이터를 주고받을 수 있는 함수의 집단 3 IST (Information Sciences & Technology) Laboratory

처음 사용하는 DOM  예제 4 IST (Information Sciences & Technology) Laboratory 쪽지.xml 쪽지.html DOM 함수 사용

존재하지 않는 xml 파일을 지정 에러 정보를 출력 파일에러.html parserError 객체 사용하기 (1/2)  파일에러 처리하기  parserError 객체 – 에러 처리 하는 객체 5 IST (Information Sciences & Technology) Laboratory

parserError 객체 사용하기 (2/2)  문서 에러 처리하기 6 IST (Information Sciences & Technology) Laboratory 잘못된 쪽지.xml 잘못된 쪽지.html / 가 빠짐

노드들을 다루는 여러 가지 예 미리보기 (1/2)  노드 내용 출력하기 7 IST (Information Sciences & Technology) Laboratory 노드보기.html

노드들을 다루는 여러 가지 예 미리보기 (2/2)  XML 의 내용을 HTML 로 출력하기 8 IST (Information Sciences & Technology) Laboratory 디자인출력.html

노드 정보 출력하기 (1/2)  nodeName 사용하기 9 IST (Information Sciences & Technology) Laboratory 쪽지변형.xml 노드값.html nodeTypeStringnodeNamenodeValue ElementtagName 널값 text#text 노드의 내용 cdatasection#cdatasection 노드의 내용 comment#comment 주석 텍스트 document#document 널값

노드 정보 출력하기 (2/2)  nodeValue 사용하기 10 IST (Information Sciences & Technology) Laboratory 쪽지변형.xml 노드값.HTML

노드 객체 사용하기 (1/9)  firstChild 와 lastChild 사용하기 11 IST (Information Sciences & Technology) Laboratory firstlast.HTML 번호 발신 수신 제목 내용 날짜 번호 날짜 쪽지

노드 객체 사용하기 (2/9)  nextSibling 사용하기  어떤 노드의 형제 노드를 지정 12 IST (Information Sciences & Technology) Laboratory nextSibling.HTML

노드 객체 사용하기 (3/9)  previousSibling 13 IST (Information Sciences & Technology) Laboratory previousSibling.HTML

노드 객체 사용하기 (4/9)  parentsNode 14 IST (Information Sciences & Technology) Laboratory parentsNode.HTML

노드 객체 사용하기 (5/9)  AppendChild 사용하기  기존 xml 문서의 내용에 데이터를 추가 15 IST (Information Sciences & Technology) Laboratory AppendChild.HTML 0

노드 객체 사용하기 (6/9)  insertBefore 사용하기  특정 노드 앞에 데이터를 추가 16 IST (Information Sciences & Technology) Laboratory insertBefore.HTML

노드 객체 사용하기 (7/9)  removeChild 사용하기  노드를 삭제 17 IST (Information Sciences & Technology) Laboratory removeChild.HTML

노드 객체 사용하기 (8/9)  replaceChild 사용하기  새로운 노드를 만든 후 기존에 있던 노드와 대체 18 IST (Information Sciences & Technology) Laboratory removeChild.HTML `

노드 객체 사용하기 (9/9)  xml 과 text 사용  xml 문서 내용 그대로 출력, 문서 내용중 텍스트만 출력 19 IST (Information Sciences & Technology) Laboratory xmltext.HTML

IST (Information Sciences & Technology) Laboratory 감사합니다 20 서국화