XML 프로그래밍의 숨겨진 진실 : XML 입문.PDF

Similar documents
초보자를 위한 C++

예제로 배우는 xslt

초보자를 위한 C# 21일 완성

歯PLSQL10.PDF

초보자를 위한 ASP.NET 2.0

초보자를 위한 ASP.NET 21일 완성

歯튜토리얼-이헌중.PDF

13 2 ( 25 ) Korean J Med Hist Dec 2004 ISSN X * ( ) ( ) ( ). 1) ( ) ( ) ( ) ( ) ( ) 2) ( ) 3) 1990 ( ) 4) * 1) ( ) C

초보자를 위한 C++

초보자를 위한 자바 2 21일 완성 - 최신개정판

초보자를 위한 한글 Visual Basic .NET 21일 완성

Week13

Beginning Linux Programming 제3판

Microsoft PowerPoint - ch02_인터넷 이해와 활용.ppt


PowerPoint 프레젠테이션

<4D F736F F F696E74202D E20C0CEC5CDB3DD20C0C0BFEB20B9D720BCADBAF1BDBA20B1E2BCFA E >

SRC PLUS 제어기 MANUAL

Microsoft SQL Server 2005 포켓 컨설턴트 관리자용

Windows 시스템 프로그래밍 제3판

DocsPin_Korean.pages

thesis

HTML5가 웹 환경에 미치는 영향 고 있어 웹 플랫폼 환경과는 차이가 있다. HTML5는 기존 HTML 기반 웹 브라우저와의 호환성을 유지하면서도, 구조적인 마크업(mark-up) 및 편리한 웹 폼(web form) 기능을 제공하고, 리치웹 애플리케이 션(RIA)을

百 눼신 시 " 가.인도의 대표적 섬유,패션 제품 l) 카펫 면과 비단으로 만든 카펫은 수세기 동안 인기있는 수출 품옥이었다.무굴시대의 디 자인 감각으로 완성된 플러시 비단카펫은 오늘날까지 관광객에게 많은 사랑을 받는 제품이다.인도산 수직 매듭 양탄자 두리(Dur ie

1

6강.hwp

歯320.PDF

ü M ysql 관련 PHP API 함수이해 ü PHP API 함수의활용 ü <form> 태그활용법 ü 변수전달방식의이해 ü API 함수를이용한데이터베이스관리

Microsoft XML 파서를 이용한 XML 프로그래밍

<C0CCBCBCBFB52DC1A4B4EBBFF82DBCAEBBE7B3EDB9AE2D D382E687770>


untitled

Orcad Capture 9.x

Building Mobile AR Web Applications in HTML5 - Google IO 2012

1. 화섬산업의 개요 1.1 화섬산업의 륵성 화 섬산 업 의 산 업 적 특 성 화섬산업은 원사,원면 둥 기초소재를 생산하는 섬유산 업의 핵심산업으로 고용창출효과와 고부가가치를 실현할 수 있음 O 세계적으로 독일,이태리,일본 등 선진국을 중심으로 M E(마이크로 일렉트

Intra_DW_Ch4.PDF

PCServerMgmt7

untitled

Portal_9iAS.ppt [읽기 전용]

Scene7 Media Portal 사용

Model Investor MANDO Portal Site People Customer BIS Supplier C R M PLM ERP MES HRIS S C M KMS Web -Based

인켈(국문)pdf.pdf

A 0 D5-a (XQD Card Type) D5-b (CF Card Type)

Ⅰ. 서론 1989년 CERN의 팀 버너스 리에 의해 만들어진 월드 와이드 웹 기술은 HTML(HyperText Markup Language), URL(Unified Resource Locator, HTTP(Hyper- Text Transfer Protocol)이라는

歯FFF01379.PDF

untitled

Interstage5 SOAP서비스 설정 가이드

Week8-Extra

Microsoft PowerPoint - web-part03-ch19-node.js기본.pptx

Eclipse 와 Firefox 를이용한 Javascript 개발 발표자 : 문경대 11 년 10 월 26 일수요일

歯굿디자인.PDF

( )박용주97.PDF

일반인을 위한 전자책 제작 방법

초보자를 위한 크리스탈 리포트 9 - 대화형 리포트의 작성과 디자인

Microsoft PowerPoint - PL_03-04.pptx

I T C o t e n s P r o v i d e r h t t p : / / w w w. h a n b i t b o o k. c o. k r

정보기술응용학회 발표

중 국 6 대 패 션 시 장 조 사 보 고 서 < 2004 년 상 해 10 대 매 장 10대 패 션 제 품 의 브 랜 드 시 장 점 유 뮬 > 제 품 브 랜 드 시 장 점 유 율 제 품 브 랜 드 시 장 점유 율 C O N C H P LA Y B O Y

DCR-HC15

snmpgw1217

초보자를 위한 ADO 21일 완성


NCS : ERP(SAP) ERP(SAP) SW IT,. SW IT 01., 05., 06., 08., 15., , 05. SW IT,,,, SAP HR,,, 4,,, SAP ABAP HR SCHEMA, BSP,

???짚?

Dialog Box 실행파일을 Web에 포함시키는 방법


untitled

10X56_NWG_KOR.indd


(3) () () LOSS LOSS LOSS LOSS (4) = 100 = 100 = 100 = 100 = 100 = 100 = 100 = 100 = 100 = 100 = 100 = 100

수탁연구01-09(수요자 중심1).hwp

ShaderX2: DirectX 9 셰이더 프로그래밍 팁 & 트릭

Microsoft Word - FS_ZigBee_Manual_V1.3.docx

MPAL-VI-Pneu_BES_V_ a_ k1

기술 이력서 2.0

DW 개요.PDF

APOGEE Insight_KR_Base_3P11

A 001~A 036

접근성과 웹 The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect. Tim Berners-Lee, the inventor

!K_InDesginCS_NFH

20주년용

PowerPoint 프레젠테이션

141212_2015 Double A 카탈로그 16page.indd

歯IC-706.PDF

1217 WebTrafMon II

KeyMission 360 KeyMission ( ).... 4K UHD., 60 cm... ii KeyMission 360

< DB9CCB7A1B1B3C0B020C3BCC7E8B0FC20C0CCC0FC20B1B8C3E0C0BB20C0A7C7D120BCB3B0E820BFACB1B820B9D720BFEEBFB520C7C1B7CEB1D7B7A520B0B3B9DF2E687770>

Backup Exec

reader.book

슬라이드 1

MasoJava4_Dongbin.PDF

SchoolNet튜토리얼.PDF

PowerPoint

당사의 명칭은 "주식회사 다우기술"로 표기하며 영문으로는 "Daou Tech Inc." 로 표기합니다. 또한, 약식으로는 "(주)다우기술"로 표기합니다. 나. 설립일자 및 존속기간 당사는 1986년 1월 9일 설립되었으며, 1997년 8월 27일 유가증권시장에 상장되

Microsoft Word - 조병호

???짚?

µµ≈•∏‡∆Æ1

con_using-admin

오늘날의 기업들은 24시간 365일 멈추지 않고 돌아간다. 그리고 이러한 기업들을 위해서 업무와 관련 된 중요한 문서들은 언제 어디서라도 항상 접근하여 활용이 가능해야 한다. 끊임없이 변화하는 기업들 의 경쟁 속에서 기업내의 중요 문서의 효율적인 관리와 활용 방안은 이

ETL_project_best_practice1.ppt

Transcription:

1 XML XML(Extensible Markup Language). XML.,,. XML,. XML W3C(World Wide Web Consortium : www.w3c. or g),. XML (element),. XML HTML(Hypertext Markup Language). HTML. XML, XML -. (markup language) (, ). HTML,. HTML. ch01_01.html <HTML> <HEAD> <TITLE>Hello FromHTML</ TITLE> </ HEAD>

ML : XML <BODY> <CENTER> <H1> Hel l o Fr om HTML </ H1> </ CENTER> Wel come t o t he wi l d and wool l y wor l d of HTML. </ BODY> </ HTML> [ 1-1] Netscape Navigator HTML. HTML <HEAD>, <CENTER>, <H1>..,. 1-1 HTML,., RTF (Rich Text Format).. Microsoft Word abc RTF. ( : ). 2 6

ML {\ rt f1\ ansi \ ansicpg1252\ uc1 \ deff0\ deflang1033 \ defl angfe1033{\ font t bl {\ f 0\ f roman\ fchar set 0\ fprq2{\ *\ panose 02020603050405020304}Times New Roman; }}{\ colort bl ; \ red0 \ gr een0\ bl ue0; \ red0\ green0\ bl ue255; \ r ed0\ gr een255\ bl ue255; \ red0\ green255\ bl ue0; \ r ed255\ gr een0\ bl ue255; \ red255\ green0 \ bl ue0; \ r ed255\ gr een255\ bl ue0; \ red255\ green255\ bl ue255; \ r ed0 \ gr een0\ bl ue128; \ red0\ green128\ bl ue128; \ r ed0\ gr een128\ bl ue0; \ red128\ green0\ bl ue128; \ r ed128\ gr een0\ bl ue0; \ red128\ green128 \ bl ue0; \ r ed128\ gr een128\ bl ue128; \ red192\ green192\ bl ue192; } {\ st yl esheet {\ wi dct l par \ adj ust r i ght \ fs20\ cgr i d \ snext 0 Normal ; } {\ *\ cs10 \ addi t i ve Defaul t Paragr aph Font ; }}{\ i nfo{\ t i t l e } {\ aut hor St even Hol zner }{\ operat or St even Hol zner }{\ creat im \ yr 2000\mo\ dy\ hr \ mi n}{\ revt im\ yr 2000\ mo4\ dy17\ hr 13\ mi n55} {\ ver si on1}{\ edmi ns1}{\ nofpages1}{\ nofwords 0}{\ nofchar s1} {\ *\ company St eveco}{\ nof char sws1}{\ ver n89}}\ wi dowct r l \ ft nbj \ aenddoc\ formshade\ vi ewki nd4\ vi ewscal e100\ pgbrdrhead\ pgbrdr foot \ fet 0\ sect d \ ps z1\ l i nex0\ endnhere\ sect defaul t cl {\ *\ pnsecl vl 1 \ pnucrm\ pnst art 1\ pni ndent 720\ pnhang {\ pnt xt a. }}{\ *\ pnsecl vl 2 \ pnucl t r \ pnst ar t 1\ pni ndent 720\ pnhang{\ pnt xt a. }}{\ *\ pnsecl vl 3 \ pndec\ pnst ar t 1\ pni ndent 720\ pnhang{\ pnt xt a. }}{\ *\ pnsecl vl 4 \ pnl cl t r \ pnst ar t 1\ pni ndent 720\ pnhang{\ pnt xt a )}}{\ *\ pnsecl vl 5 \ pndec\ pnst ar t 1\ pni ndent 720\ pnhang{\ pnt xt b (}{\ pnt xt a ) }} {\ *\ pnsecl vl 6\ pnl cl t r \ pnst art 1\ pni ndent 720\ pnhang {\ pnt xt b (} {\ pnt xt a )}}{\ *\ pnsecl vl 7\ pnl crm\ pnst ar t 1\ pni ndent 720\ pnhang {\ pnt xt b (}{\ pnt xt a ) }}{\ *\ pnsecl vl 8\ pnl cl t r \ pnst ar t 1 \ pni ndent 720\ pnhang {\ pnt xt b (}{\ pnt xt a )}}{\ *\ pnsecl vl 9\ pnl crm \ pnst ar t 1\ pni ndent 720\ pnhang{\ pnt xt b (}{\ pnt xt a ) }}\ pard\ pl ai n \ sl 480\ sl mul t 1\ wi dct l par \ adj ust r i ght \ f s20\ cgr i d {\ b\ fs24\ ul abc }{\ b\ ul \ par }} HTML,. HTML 1.0, HTML 4.01. 120. 120.,,. HTML <BEAMWI DTH>, <MI ZZENHEIGHT>, <DRAFT>, <SHI PCLASS>. (financial), <B>, <UL>, <FONT>, 12 7

ML : XML <FI SCALYEAR>, <ACCOUNTNUMBER>, <TRANSFERACCOUNT>? Extensible Business Reporting Language, XML.,,?. Netscape XML., (, ). XML, XML -. XML, XML? HTML. ch01_02.xml <?xml ver si on="1. 0" encodi ng="utf- 8"?> <DOCUMENT> <GREETING> Hel l o Fr om XML </ GREETING> <MESSAGE> Wel come t o t he wi l d and wool l y wor l d of XML. </ MESSAGE> </ DOCUMENT> XML,. XML <?xml ver si on="1. 0" ENCODING="UTF- 8"?> ( XML <??> ), XML 1.0,. UTF-8, 8 ( ). 2 8

XML <?xml ver si on="1. 0" encodi ng="utf- 8"?> <DOCUMENT> <GREETING> Hel l o Fr om XML </ GREETING> <MESSAGE> Wel come t o t he wi l d and wool l y wor l d of XML. </MESSAGE> </ DOCUMENT> <DOCUMENT>., DOCUMENT (_),,, (. ) (- ).,. XML < >. XML XML, <DOCUMENT> ( ), </ DOCUMENT> </.,., (root) <DOCUMENT>. <?xml version= "1. 0" encoding="utf- 8"?> <DOCUMENT> </ DOCUMENT> <GREETING>, ( Hel l o Fr om XML ). <?xml ver si on="1. 0" encodi ng="utf- 8"?> <DOCUMENT> <GREETING> Hel l o Fr om XML </ GREETING> </ DOCUMENT> 12 9

XML : XML <MESSAGE>,. <?xml ver si on="1. 0" encodi ng="utf- 8"?> <DOCUMENT> <GREETING> Hel l o Fr om XML </ GREETING> <MESSAGE> Wel come t o t he wi l d and wool l y wor l d of XML. </ MESSAGE> </ DOCUMENT> <DOCUMENT> <GREETING> <MESSAGE>., XML. HTML. HTML. <DOCUMENT>, <GREETING>, <MESSAGE>, XML?? XML Microsoft Internet Explorer 5 XML., ch01_02.xml Internet Explorer [ 1-2]. 3 0

ML 1-2 Internet Explorer XML [ 1-2] XML, [ 1-1].? XML XML?... J ava J avascript XML.,., XML. XML CSS(Cascading Style Sheet) XSL(Extensible Stylesheet Language)., XML <?xml - st yl esheet t ype="t ext / css " hr ef ="ch01_04. css "?>. ch01_04.css CSS (, XML ). 13 1

XML : XML ch01_03.xml <?xml ver si on="1. 0" encodi ng="utf- 8"?> <?xml - st yl esheet t ype="t ext / css " hr ef="ch01_04. css"?> <DOCUMENT> <GREETING> Hel l o Fr om XML </ GREETING> <MESSAGE> Wel come t o t he wi l d and wool l y wor l d of XML. </ MESSAGE> </ DOCUMENT> ch01_04.css., <GREETING> 36, <MESSAGE> 18. bl ock,. ch01_04.css GREETING {di spl ay : bl ock; font - si ze : 36pt ; col or : #FF0000; t ext -al i gn :cent er } MESSAGE (display: block; font - size : 18pt ; color : #000000} [ 1-3], [ 1-4] XML. [ 1-3] Netscape 7.0 XML, [ 1-4] Internet Explorer., XML, HTML <H1> HTML. 3 2

ML 1-3 Netscape Navigator XML 1-4 Internet Explorer XML XML. XML., XML?. 13 3

XML : XML XML XML. XML. XML,..... XML., XML XML...,., Microsoft ( (Bloatware) ). Microsoft Word 2000 abc 20,000. XML 30 40.., Microsoft Excel 5, Microsoft Access 2002 96KB.,., XML,. 3 4

XML.,. BITS(Banking Industry Technology Secret ariat ) IFX(Interactive Financial Exchange) BIPS(Bank Int ernet Payment System) TIM(Telecommunications Interchange Markup) SIF (Schools Interoperability Framework) xcbl(common Business Library) ebxml(electronic Business XML Initiative) PDML(Product Dat a Markup Language) FIX(Financial Information exchange protocol) TEI(The Text Encoding Initiative), CML(Chemical Markup Language).. XML. XML. XHTML(Extensible Hypertext Markup Language),. XHTML HTML. XML.. ch01_05.xml <?xml ver si on="1. 0" encodi ng="utf- 8"?> <DOCUMENT> <GREETING> Hel l o Fr om XML </ GREETING> 13 5

ML : XML <MESSAGE> Wel come t o t he wi l d and wool l y wor l d of XML. </ MESSAGE> </ DOCUMENT> XML... XML ( XML ). XML,., HTML, XML. XML. ch01_06.xml <?xml ver si on="1. 0"?> <SCHOOL> <CLASS t ype="semi nar "> <CLASS_TITLE>XML In The Real Wor ld</ CLASS_TITLE> <CLASS_NUMBER>6. 031</ CLASS_NUMBER> <SUBJECT>XML</ SUBJECT> <START_DATE>6/ 1/ 2002</ START_DATE> <STUDENTS> <STUDENT st at us="at t endi ng"> <FIRST_NAME>Edward</ FI RST_NAME> <LAST_NAME>Samson</ LAST_NAME> </ STUDENT> <STUDENT st at us="wi t hdrawn"> <FIRST_NAME>Er nest i ne</ FIRST_NAME> <LAST_NAME>Johnson</ LAST_NAME> </ STUDENT> </ STUDENTS> </ CLASS> </ SCHOOL> 3 6

XML, XML,. 2 3, <STUDENT> <FI RST_NAME> <LAST_NAME> <START_DATE> <STUDENTS>., XML. HTML HTML, ( )., HTML 50%. XML. XML,.. XML? XML., (well-formed) (valid).. XML XML? (well-formed) XML W3C XML 1.0 (www.w3c. or g/ TR/ REC- xml ).,,.., </ GREETING> <MESSAGE>. <?xml ver si on="1. 0" encodi ng="utf- 8"?> <DOCUMENT> <GREETING> Hel l o Fr om XML <MESSAGE> </ GREETING> Wel come t o t he wi l d and wool l y wor l d of XML. </MESSAGE> </ DOCUMENT> 13 7

ML : XML XML XML.. DTD(Document Type Definition), XML, DTD (valid). DTD, 3 5., DTD <!DOCTYPE>. XML <!DOCTYPE>. ch01_07.xml <?xml ver si on="1. 0" encodi ng="utf- 8"?> <?xml - st yl esheet t ype="t ext / css " hr ef="fi r st. css"?> <!DOCTYPE DOCUMENT [ <!ELEMENT DOCUMENT (GREETING, MESSAGE)> <!ELEMENT GREETING (#PCDATA)> <!ELEMENT MESSAGE (#PCDATA)> ]> <DOCUMENT> <GREETING> Hel l o Fr om XML </ GREETING> <MESSAGE> Wel come t o t he wi l d and wool l y wor l d of XML. </ MESSAGE> </ DOCUMENT> DTD 3. DTD <DOCUMENT> <GREETING> <MESSAGE>, <DOCUMENT>, <GREETING> <MESSAGE>. XML XML,. XML. XML. 3 8

XML. XML, (, XML, ). XML XML,. XML. XML ch01_02.xml XML. <?xml ver si on="1. 0" encodi ng="utf- 8"?> <DOCUMENT> <GREETING> Hel l o Fr om XML </ GREETING> <MESSAGE> Wel come t o t he wi l d and wool l y wor l d of XML. </MESSAGE> </ DOCUMENT> XML Hel l o Fr omxml. Internet Explorer XML J avascript <GREETING>.. ch01_08.xml <HTML> <HEAD> <TITLE> Fi ndi ng El ement Val ues i n an XML Document </ TI TLE> <XML I D="fi r st XML" SRC="ch01_02.xml "></ XML> <SCRI PT LANGUAGE="JavaScri pt "> funct ion get Dat a () { xml doc= document.al l ("fi r st XML" ).XMLDocument ; nodedoc = xml doc.document El ement ; nodegreet ing = nodedoc. fi rst Chi ld; out put Message = "Gr eet i ng : " + 13 9

ML : XML nodegr eet i ng. f i r st Chi l d.nodeval ue; message. i nnerhtml=out put Message; } </ SCRI PT> </ HEAD> <BODY> <CENTER> <H1> Fi ndi ng El ement Val ues i n an XML Document </ H1> <DIV ID="message"></ DIV> <P> <INPUT TYPE="BUTTON" VALUE="Get The Greet i ng" ONCLICK="get Dat a ()"> </ CENTER> </ BODY> </ HTML> [ 1-5] Get The Gr eet i ng. J avascript ch01_02.xml <GREETING> [ 1-5]., XML. 1-5 Internet Explorer XML 4 0

XML XML J avascript., J avascript J avascript. XML J avascript, XML J ava. ch01_09.j ava J ava. ch01_02.xml, <GREETING> (10 ). ch01_09.java i mpor t j avax.xml.par ser s. *; i mpor t org.w3c.dom. *; i mpor t j ava.i o. *; publ i c cl ass ch01_09 { st at i c publ i c voi d mai n (St r i ng [] argv ) { t ry { Document Bui lder Fact ory dbf = Document Bui l der Fact ory.newinst ance (); Document Bui lder db = nul l ; t ry { db = dbf.newdocument Bui l der (); } cat ch (ParserConfigurat ionexcept i on pce ) {} Document doc = nul l ; doc = db.par se ("ch01_02.xml " ); for (Node node = doc.get Document El ement ().get Fi rst Chi ld(); node!= null ; node = node.getnext Sibling () ) { i f (node i nst anceof El ement ) { i f (node.get NodeName ().equal s ("GREETING" ) ) { St ringbuffer buffer = new St ringbuffer (); for (Node subnode = node.get Fi rst Chi ld(); 14 1

XML : XML } subnode!= nul l ; subnode = subnode.getnext Sibling () ){ i f (subnode i nst anceof Text ) { buffer.append (subnode.getnodeval ue () ); } } Syst em.out.pri nt ln(buffer.t ost ri ng () ); } } } } cat ch (Except i on e ) { e.pr i nt St acktr ace (); } } ( %. Unix, \ home\ st eve :. Windows MS-DOS C:\ XML>. %j ava ch01_ 09 Hel l o Fr om XML ( <GREETI NG>.) 11 12 J ava XML (parsing). J ava. J ava. XML. XML. XML XML. XML.. 4 2

XML XML W3C(World Wide Web Consortium), XML., ( ). www.w3c. or g/ xml : W3C XML, XML. www.w3. or g/ XML/ 1999/ XML- i n- 10-poi nt s : XML XML 10 ( 7 ). www.w3. or g/ TR/ REC- xml : XML 1.0 W3C.,. www.w3. or g/ TR/ xml - st yl esheet /. : XML www.w3. or g/ TR/ REC-xml -names/ : XML Namespace. www.w3. or g/ St yl e/ XSL/. : XSL(Extensible Stylesheet Language) www.w3. r og/ TR/ xsl t : XSLT(XSL ). www.w3. or g/ XML/Act i vi t y.ht ml. : W3C XML www.w3. or g/ TR/ xml schema- 0/, www.w3. or g/ TR/ xml s chema- 1/, www.w3. or g/ TR/ xml shema- 2/ : DTD XML. www.w3. or g/ TR/ xl i nk/ : XLink. www.w3. or g/ xpt r : XPointer. www.w3. or g/ TR/ xht ml 1/ : XHTML 1.0. www.w3. or g/ TR/ xht ml 11/ : XHTML 1.1. www.w3. or g/ DOM : W3C DOM(Document Object Model). W3C, XML 1 3. W3C. www. xml. com, XML. com : XML,,. www. oas i s- open. or g : OASIS(Organization for the Advancement of Structured Information Standards) XML. 14 3

XML : XML XML. or g, www. xml. or g : XML.ORG XML. OASIS, XML, DTD,, Namespace. ht t p : / / msdn.mi cr osof t. com/ xml / def aul t. asp : Microsoft XML. XML ( XML Tutorial 2,300 ).. www- 105. i bm. com/ devel oper wor ks / educat i on. ns f / xml - onl i necour se- byt i t l e / 8C8A8628B3DD7EDB852567BD000A8A64?OpenDocument : IBM. www. ucc. i e/ xml / : XML FAQ(Frequently Asked Questions) W3C XML (Working Group). XML FAQ. ht t p :/ /msdn.mi cr osof t. com/ xml / t ut or i al / def aul t. asp : Microsoft XML. www. xml. com/ pub/ 98/ 10/ gui de0. ht ml : XML.com XML. Usenet ( ). comp. t ext. xml : XML. mi cr osof t.publ i c. dot net.xml : Microsoft.NET XML XML. mi cr osof t.publ i c. xml : Microsoft XML. XML (XML ht t p : / / gr oups. googl e. com ). XML? XML. 4 4

XML XML XML, vi, emacs, pico, Macintosh BBEdit SimpleText Windows (editors)., XML (Unicode), ASCII. ASCII. XML. Windows Windows.txt..xml.xml., XML XUL(XML- Based Use r Inte rface La nguage ).xul.xul.txt. scrollba rs.xul. XML. XML. XML. Adobe FrameMaker(www. adobe. com) : Adobe FrameMaker, XML. XML Pro(www.vervet. com/ ) : XML. XML Writer(ht t p : / / xml wr i t er.net / ) :. XML Notepad(msdn.mi cr osof t. com/ xml / not epad/ i nt r o. asp) : Microsoft XML. enotepad(www. edi sys. com/ Pr oduct s / enot epad/ enot epad. asp) : XML,. XML Spy(www. xml spy. com) :. [ 1-6] XML Spy, [ 1-7] XML Writer, [ 1-8] XML Notepad, [ 1-9] enotepad. 14 5

XML : XML 1-6 XML Spy XML 1-7 XML Writer XML 4 6

ML 1-8 XML Notepad XML 1-9 enotepad XML 14 7

XML : XML XML. XML?. XML XML CSS XSL XML. J avascript., XML. Internet Explorer 6 Microsoft, Internet Explorer XML, www.mi cr osof t. com/wi ndows / i e_i nt l / ko( URL Microsoft URL www.mi cr osof t. com/wi ndows / i e/ ). Internet Explorer 6.0 [ 1-2] XML, (Microsoft J avascript J Script Microsoft VBScript ). (XML XML <XML> ). XML ADO(ActiveX Data Object). Internet Explorer 6. Microsoft XML (Office 2000 XML ), Microsoft W3C. Netscape Navigator 7 Netscape 7 ht t p :/ / wp.net scape. com/ downl oad, XML. Netscape Navigator [ 1-3]. Internet Explorer Netscape Navigator. Netscape Navigator 6 XUL(XML-Based User Interface Language),. 4 8

XML Jumbo XML. J umbo, XML CML(Chemical Markup Language). www. xml - cml. or g/ J umbo. XML( ), CML [ 1-10]. XML, XML (parser). XML. 1-10 J umbo XML XML (parser) XML Oracle 8i. XML XML. 10 14 9

XML : XML Sun Microsystems J ava XML. J ava 1.4 XML. XML. SAX(The Simple API for XML) : SAX David Megginson (www.meggi nson. com/ SAX/ i ndex.ht ml ),, SAX. expat : J ames Clark (www. j cl ar k. com/ xml / expat. ht ml ) C XML. Net scape Navigator 6 Perl XML : : Parser. Perl expat (XML::Parser) : Clark Cooper (f t p : / / f t p.per l. or g/ pub/ CPAN/ modumes / by-modul e/ XML/ ). TclExpat : Tcl (ht t p :/ / t cl xml. sour cef or ge.net / ). LTXML : Edinburg (Language Technology Group) XML (www. l t g. ed. ac. uk/ sof t war e/ xml / ). XML for Java (XML4J) : IBM AlphaWorks (ww. al phawor ks. i bm. com/ t ech/ xml 4j ) W3C XML. XML Microsoft Validating XML Processor :,,, msdn.microsoft.com/ xml/ default.asp. XP : J ames Clark (www. j cl ar k. com/ xml / xp/ i ndex. ht ml ) J ava (nonvalidating) XML. Python XML Processing Preliminary XML Parser : Python XML (www.pyt hon. or g/ t opi cs / xml ). XML Testbed : Steve Withall (www.w3. or g/ XML/ 1998/ 08wi t hal l / ). SXP Silfide XML Parser(SXP) : XML J ava XML (API).. (well-formedness),. XML (well-formed) (valid) XML (validator). 5 0

ML XML XML? XML (validator),. XML. XML. W3C XML Validator(ht t p : / / val i dat or.w3. or g/ ) : W3C HTML. HTML XML. XML. Tidy(www.w3. or g/ Peopl e/ Ragget t / t i dy/ ) : Tidy, XML. XML. ht t p : / / www. xml. com/ pub/ a/ t ool s/ r uwf / check.ht ml : XML.com XML Lark. XML. www. l t g. ed. ac. uk/ ~r i char d/ xml - check.ht ml : Edinburgh (Language Technology Group) RXP. XML. ht t p : / / www. st g.br own. edu/ ser vi ce/ xml val i d/ : Brown Scholarly Technology Group XML. XML,.. [ 1-11]. Scholarly Technology Group XML c:\ xml\ ch01_02.xml XML, <MESSAGE> </ GREETING>. <?xml ver si on="1. 0" encodi ng="utf- 8"?> <!DOCTYPE DOCUMENT [ <!ELEMENT DOCUMENT (GREETING, MESSAGE)> <!ELEMENT GREETING (#PCDATA)> <!ELEMENT MESSAGE (#PCDATA)> ]> 15 1

XML : XML <DOCUMENT> <GREETING> Hel l o Fr om XML <MESSAGE> </ GREETING> Wel come t o t he wi l d and wool l y wor l d of XML. </ MESSAGE> </ DOCUMENT> [ 1-12].. XML XML. XML HTML (XML ). XML, XML. HTML XML HTML,. 1-11 XML 5 2

XML 1-12 XML CSS XSL, HTML 4 <CENTER>,. HTML. XML. XML,., CSS(Cascading Style Sheet ) XSL(Extensible Stylesheet Language), ( XML ). XML. XML Internet Explorer. 15 3

XML : XML XML, CSS XSL.. CSS HTML. CSS,,,., XSL, XML (, XSL (well-formed) XML ). XSL XML. XML XSL, XML. XML HTML. CSS, XSL, (HTML XML, ),,. XSL XSL XSL... www.w3. or g/ St yl e/ CSS/ : W3C CSS www.w3. or g/ TR/ REC- CSS1/ : W3C CSS1 www.w3. or g/ TR/ REC- CSS2/ : W3C CSS2 www.w3. or g/ St yl e/ XSL/ : W3C XSL XLink XPoint er WWW(World Wide Web), HTML ( ). XML? XML XLink XPointer. XLink HTML <A>. XML <A> XLink. XML,. 5 4

ML XLink. XLink. (multidirectional), (mirror)., XPointer., XPointer 11,904.. XPointer. XLink XPointer,.. XLink XPointer. www.w3. or g/ TR/ xl i nk/ : W3C XLink www.w3. or g/ TR/ xpt r : W3C XPointer URL URI XLink XPointer, XML URL(Uniform Resource Locator) URI(Uniform Resource Identifier). URL,. XML XLink XPointer, URI URL. URI (resource),. URI (mirror),. URI, URL. 15 5

ML : XML URI : URI. www. i c s. uci. edu/ pub/ i et f / ur i / r f c2396. t xt ASCII,, UCS, ASCII(American Standard Code for Information Interchange). ASCII 0 127, A ASCII 85, B ASCII 66. WWW(World Wide Web). ASCII,,,,,,,., W3C XML ASCII (Unicode). 1 2 0 255 0 65535 ( 0 255 ASCII 0 255 ). (Ideograph). 40,000 (80,000, 11,000, 20,000 ). XML. Windows NT Windows 2000 (XML Spy Windows NT XML ), Windows 95/ 98. XML ASCII UTF-8. UTF-8 8 (ASCII 2 ASCII 2 ASCII ). XML UTF-8. <?xml ver si on="1. 0" encodi ng="utf- 8"?> <DOCUMENT> <GREETING> Hel l o Fr om XML 5 6

XML </ GREETING> <MESSAGE> Wel come t o t he wi l d and wool l y wor l d of XML. </MESSAGE> </ DOCUMENT>, XML UTF-8 UTF-8. ASCII XML.,, UCS(Universal Character System : ISO 10646 ) 4. 20,. XML UCS-2 (ISO- 10646-UCS-2, 2 UCS ). UTF- 16, 2 UCS-2 UCS. UCS UCS-4 (ISO- 10646-UCS-4 ).,., 16 0x3C0 &#x03c0 ( )., IANA(Internet Assigned Numbers Authority) www. i ana. or g/ as si gnment s / char act er - set s. ASCII ASCII S un Microsyste ms Java SDK(Softwa re Deve lopment Kit) native2asc ii. nat i ve2asci i f i l e.t xt f i l e.uni. UTF- 8. XML, XML. XML, XML Net scape Microsoft 15 7

XML : XML, Perl. XML www. xml. or g/ xml / mar ket pl ace _company. j sp. XML XML.., XML -,. XML XML (XML Application). XML MathML XML, XML (XML ). XML,..,. CML (Chemical Markup Language). XML : CML(Chemical Markup Language) CML Peter Murray-Rust,. CML HTML +. CML. CML. CML. CML J umbo, www. xml - cml. or g/ j umbo. ht ml. J umbo CML, XML. CML. J umbo [ 1-10],. thiophenol.xml. 5 8

XML <?j umbo :namespace ns="ht t p :/ / www.xml - cml.org" prefi x="c" j ava="j umbo.cml xml. *Node"?> <C:mol ecul e i d="t hi ophenol "> <C:at omarray bui l t i n="el sym"> C C C C C C C S C C O O </ C:at omar r ay> <C:at omarray bui l t i n="x2" t ype="float "> 0 0. 866 0. 866 0-0. 866-0. 866 0. 0 0. 0 1. 732-1.732 1.732-1. 732 </ C:at omar r ay> <C:at omarray bui l t i n="y2" t ype="float "> 1 0. 5-0.5-1. 0-0.5 0.5-2. 0 2. 0 1. 0 1. 0 2. 0 2. 0 </ C:at omar r ay> <C:bondArray bui l t i n="at id1"> 1 2 3 4 5 6 1 4 2 9 6 10 </ C:bondAr r ay> <C:bondArray bui l t i n="at id2"> 2 3 4 5 6 1 8 7 9 11 10 12 </ C:bondAr r ay> <C:bondArray bui l t i n="order " t ype="int eger "> 4 4 4 4 4 4 1 1 1 2 1 2 </ C:bondAr r ay> </ C:mol ecul e> XML : MathML(Mathematical Markup Language) MathML. WWW(World Wide Web) (high-energy) Tim Berners-Lee CERN.. MathML. MathML W3C, www. w3. or g/mat h/. MathML.., MathML. HTML XHTML W3C Amaya ( XML ). Amaya www.w3. or g/amaya. 15 9

ML : XML 3Z 2-6Z+ 12 = 0 MathML ( XML Namespace, Namespace ). <?xml ver si on="1. 0"?> <ht ml xml ns :m="ht t p :/ / www.w3.org/ TR/ REC-Mat hml/ "> <mat h> <m:mrow> <m:mrow> <m:mn>3</ m:mn> <m:mo>&invi si bl etimes ;</m:mo> <m:msup> <m:mi >Z</m:mi > <m:mn>2</m:mn> </m:msup> <m:mo>- </ m:mo> <m:mr ow> <m:mn>6</m:mn> <m:mo>&i nvi si bl eti mes ; </ m:mo> <m:mi >Z</m:mi > </m:mrow> <m:mo>+</ m:mo> <m:mn>12</m:mn> </ m:mr ow> <m:mo>=</m:mo> <m:mn>0</m:mn> </ m:mr ow> </mat h> Amaya [ 1-13]. 1-13 Amaya MathML 6 0

XML XML : SMIL(Synchronized Multimedia Integration Language) SMIL( ). www.w3. or g/audi ovi deo/ #SMIL W3C. SMIL.,,. SMIL TV. SMIL, SMIL. Microsoft, Macromedia Compaq HTML + TIME. Microsoft Internet Explorer SMIL. www. empi r enet. com/ j oser am J ava SMIL. mozart 1.wav amadeus1.mov mozart 1.htm, mozart2.wav amadeus2.mov mazart2.htm SMIL. <?xml ver si on="1. 0"?> <!DOCTYPE smi l PUBLIC "- / /W3C/ / DTD SMIL 1. 0/ / EN" "ht t p :/ / www.w3.org/ TR/ REC- smi l / SMIL10.dt d"> <smi l > </ smi l > <body> </ body> <seq i d="mozar t "> </ seq> <audi o sr c="mozar t 1.wav"/ > <video src="amadeus1.mov"/ > <t ext sr c="mozart 1.ht m"/ > <audi o sr c="mozar t 2.wav"/ > <video src="amadeus2.mov"/ > <t ext sr c="mozart 2.ht m"/ > 16 1

ML : XML XML : HTML + TIME Microsoft, Macromedia Compaq SMIL HTML + TIME (Timed Interactive Multimedia Extension ). SMIL, HTML + TIME HTML. HTML + TIME SMIL, Microsoft SMIL. HTML + TIME msdn.mi cr osof t. com/ wor kshop/aut hor / behavi or s / t i me. asp. HTML + TIME Internet Explorer (behavior), Internet Explorer. Internet Explorer (behavior) msdn.mi cr osof t. com/ wor kshop/ c- f r ame. ht m#wor kshop/ aut hor / def aul t. asp. Hel l o, t her e, f r om, HTML+TIME 2 HTML + TIME. ch01_10.html <HTML> <HEAD> <TITLE> Using HTML+TIME </ TI TLE> <STYLE>.t i me {behavi or : ur l (#defaul t #t ime ); } </ STYLE> </ HEAD> <BODY> <DIV CLASS="t ime" t :REPEAT="5" t :DUR="10" t :TIMELINE="par "> <DIV CLASS="t ime" t :BEGIN="0" t :DUR="10">Hello</ DIV> <DIV CLASS="t ime" t :BEGIN="2" t :DUR="10">there</ DIV> <DIV CLASS="t ime" t :BEGIN="4" t :DUR="10">from</ DIV> <DIV CLASS="t ime" t :BEGIN="6" t :DUR="10">HTML+TIME.</ DIV> </ DIV> </ BODY> </ HTML> [ 1-14] HTML + TIME. 6 2

ML 1-14 HTML+TIME HTML + TIME SMIL. SMIL HTML + TIME. <t :seq i d="mozart "> <t :audi o sr c="mozar t 1.wav"/ > <t :video src="amadeus1.mov"/ > <t :t ext st ream sr c="mozart 1.ht m"/ > <t :audi o sr c="mozar t 2.wav"/ > <t :video src="amadeus2.mov"/ > <t :t ext st ream sr c="mozart 2.ht m"/ > </ seq> XML : XHTML XML XHTML, HTML 4.0 W3C XML.. XHTML. W3C HTML XML XML XHTML. XHTML HTML 4.0 ( XML ). XHTML XML,. 16 3

XML : XML XHTML. www.w3. or g/ Mar kup/act i vi t y/ ht ml : W3C Hypertext Markup Activity, XHTML. www.w3. or g/ TR/ xht ml 1/ : XHTML 1.0 ( XHTML 1.1 ) www.w3. or g/ TR/ xht ml 11/ : XHTML 1.1 XHTML 1.0 Transitional, Frameset, Strict. Transitional HTML. Frameset (Transitional <Body> <Fr ameset > Transitional ) XHTML. Strict HTML 4.0 HTML. XHTML 1.1 XHTML 1.0 Strict, ( <RUBY> ). XHTML 1.0 XHTML 1.1 www.w3. or g/ TR/ xht ml 11/ changes. ht ml #a_changes. XHTML 1.0 Transitional DTD XHTML. HTML (XHTML ). ch01_11.html <!DOCTYPE ht ml PUBLIC"- / / W3C/ / DTD XHTML 1. 0 Transi t i onal / / EN" "ht t p :/ / www.w3.org/ TR/ xht ml 1/ DTD/ xhtml 1-t ransi t i onal.dt d"> <ht ml xml ns="ht t p :/ / www.w3.org/ 1999/ xht ml " xml :l ang="en" l ang="en"> <head> <t i t l e> Web page number one! </ t i t l e> </ head> <body> <h1> Wel come t o XHTML! </ h1> 6 4

XML <cent er> Thi s is simple text t hat appears in t hi s page. <p> Her e ' s a new paragr aph! </ p> </ cent er > </ body> </ ht ml > XHTML [ 1-15]. XHTML XML ( ) HTML. 1-15 XHTML XML : Microsoft.NET Microsoft.NET XML.,.NET.NET XML..NET XML. XML VB.NET..NET XML, pubs 16 5

XML : XML aut hor s XML..NET. [ 1-16] (authors ). 1-16 VB.NET XML VB.NET. [ 1-16] Write existing dat aset to XML file authors dat aset.xml, Create new dataset from XML file dataset.xml. Pri vat e Sub But t on1_cl i ck (ByVal sender As Syst em.obj ect, _ ByVal e As Syst em.event Args ) Handl es But t on1.cl i ck Dat aset 11.Cl ear () Ol edbdat aadapt er 1. Fi l l (Dat aset 11) Dat aset 11.Wr i t exml ("dat aset.xml " ) End Sub Pri vat e Sub But t on2_cl i ck (ByVal sender As Syst em.obj ect, _ ByVal e As Syst em.event Args ) Handl es But t on2.cl i ck Dimds As New DataSet () ds.readxml ("dat aset.xml " ) DataGrid1. Set Dat abinding (ds, "authors" ) End Sub dataset.xml. XML [ 1-16]. 6 6

XML <?xml ver si on="1. 0" st andal one="yes "?> <Dat aset 1 xml ns="ht t p :/ / www.t empuri.org/ Dat aset 1.xsd"> <aut hor s> <au_i d>172-32- 1176</ au_i d> <au_l name>whi t e</ au_l name> <au_ fname>johnson</ au_ fname> <phone>408 496-7223</ phone> <address>10932 Bi gge Rd.</ addr ess> <ci t y>menl o Par k</ ci t y> <st at e>ca</ st at e> <zi p>94025</ zi p> <cont r act >t r ue</ cont ract > </ aut hor s> <aut hor s> <au_i d>213-46- 8915</ au_i d> <au_l name>gr een</ au_l name> <au_ fname>marj or i e</ au_fname> <phone>415 986-7020</ phone>....net XML,. XML : OSD(Open Software Description) OSD Marimba Microsoft www.w3. or g/ TR/ NOTE- OSD. ht ml XML. OSD. OSD.,.,. SuperDuperSoft SuperDuperTextPro.osd. <?xml ver si on="1. 0"?> <CHANNEL HREF="ht t p :/ / www.superdupersoft. com/ updat es.ht ml "> <TI TLE> SuperDuperText Pro Updat es 16 7

ML : XML </ TI TLE> <USAGE VALUE="Soft wareupdat e"/ > <SOFTPKG HREF="ht t p :/ / updat es.superdupersoft. com/ updat es.ht ml " NAME=" {34567A7E- 8BE7-99C0-8746- 0034829873A3}" VERSION="2, 4, 6"> <TITLE> Super DuperText Pro </ TI TLE> <ABSTRACT> SuperDuperText Pro versi on 206 wit h sideburns!!! </ ABSTRACT> <IMPLEMENTATION> <CODEBASE HREF= "ht t p :/ / www. superduper soft.com/ new.exe"/ > </ IMPLEMENTATI ON> </ SOFTPKG> </ CHANNEL> XML : SVG (Scalable Vector Graphics) SVG W3C XML, ( CorelDraw Adobe Illustrator Adobe ). SVG 2, SVG www.w3. or g/ Gr aphi cs/ SVG/ Overvi ew. ht m8. SVG., SVG. IBM, Adobe, Netscape Sun W3C PGML(Precision Graphics Markup Language). PGML. <?xml ver si on="1. 0"?> <!DOCTYPE pgml SYSTEM"/ DTDs/ pgml.dt d"> <pgml > <group fillcolor="blue"> <pat h> <movet o x="0" y="0"/ > <l i net o x="0" y="1000"/ > <l i net o x="1000" y="1000"/ > <l i net o x="1000" y="0"/ > 6 8

XML <cl osepat h/ > </ pat h> </ group> </ pgml > XML : VML(Vector Markup Language) Microsoft Internet Explorer SVG VML. VML www.w3. or g/ TR/ NOTE-VML. VML.,. ch01_12.html <HTML xml ns :v="ur n:schemas-mi cr osoft - com:vml "> <HEAD> <TITLE> Using Vector Markup Language </ TI TLE> <STYLE> v\ :* {behavi or : ur l (#defaul t #VML); } </ STYLE> </ HEAD> <BODY> <CENTER> <H1> Using Vector Markup Language </ H1> </ CENTER> <P> <v :oval STYLE= ' wi dt h :100pt ; hei ght :75pt ' f i l l col or="yel l ow"> </ v :oval > <P> <v :r ect STYLE= ' wi dt h :100pt ; hei ght :75pt ' f i l l col or="bl ue" st r okecol or="red" STROKEWEI GHT="2pt "/ > <P> <v :pol yl i ne POINTS="20pt, 55pt, 100pt, - 10pt, 180pt, 65pt, 260pt, 25pt " st r okecol or="red" STROKEWEI GHT="2pt "/ > </ BODY> </ HTML> 16 9

XML : XML VML [ 1-17]. 1-17 VML XBRL(Extensible Business Reporting Language) XBRL(Extensible Business Reporting Language, XFRML ) (financial) XML. XBRL www. xbr l. or g/. XBRL,,,. XBRL,. <?xml ver si on="1. 0" encodi ng="ut f - 8"?> <group xml ns="ht t p :/ / www.xbr l.org/ us/ ai cpa-us-gaap" xml ns :gpsi ="ht t p :/ / www.xbr l.org/ TaxonomyCust om.xsd" i d="543-ab" ent i t y="nasdaq:gpsi " per i od="1999-05- 31" schemalocat i on="ht t p :/ / www.xbr l.org/ TaxonomyCust om.xsd" 7 0

ML scal efact or="6" preci si on="9" t ype="usgaap: Fi nanci al " uni t ="I SO4217:USD" deci mal Pat t ern="" format Name=""> <i t em i d="i S- 025" t ype="operat i ngexpenses.r esear chexpense" per i od="p1y/ 1999-05- 31">20427</ i t em> <i t em i d="i S- 026" t ype="operat i ngexpenses.r esear chexpense" per i od="p1y/ 1998-05- 31">12586</ i t em> </ group> <group type="gpsi :det ai l.quarter l y" per i od="1998-05- 31"> <i t em per i od="1997-06- 01/ 1998-07- 31">0. 12</ i t em> </ group> <i t em per i od="1997-09- 01/ 1997-11- 30">0. 16</ i t em> <i t em per i od="1997-12- 01/ 1998-02- 28">0. 17</ i t em> <i t em per i od="1998-03- 01/ 1998-05- 31">- 0.12</ i t em> <i t em per i od="1998-06- 01/ 1998-05- 31">0. 33</ i t em> <group type="gpsi :det ai l.quarterly" period="1999-05- 31"> <i t em per i od="1998-06- 01/ 1998-08- 31">0. 15</ i t em> <i t em per i od="1998-09- 01/ 1998-11- 30">0. 20</ i t em> <i t em per i od="1998-12- 01/ 1999-02- 28">0. 23</ i t em> <i t em per i od="1999-03- 01/ 1999-05- 31">0. 28</ i t em> <i t em per i od="1998-06- 01/ 1999-05- 31">0. 86</ i t em> </ group> <group type="gpsi :det ai l.quarterly" period="1998-05- 31"> <i t em per i od="1997-06- 01/ 1998-07- 31">0. 11</ i t em> <i t em per i od="1997-09- 01/ 1997-11- 30">0. 15</ i t em> <i t em per i od="1997-12- 01/ 1998-02- 28">0. 17</ i t em> <i t em per i od="1998-03- 01/ 1998-05- 31">- 0.12</ i t em> <i t em per i od="1998-06- 01/ 1998-05- 31">0. 32</ i t em> </ group> RDF (Resource Description Framework) RDF ( ) XML. RDF,,. RDF www.w3. or g/ RDF/,. RDF,. Dublin Core RDF, ht t p : / / dubl i ncor e. or g/. Dublin Core. 17 1

XML : XML Dublin Core <META>.. Dublin Core RDF. <RDF:RDF xml ns :RDF="ht t p :/ / www.w3.org/ 1999/ 02/ 22- rdf- synt ax-ns#" xml ns :DC="ht t p :/ / pur l.org/ DC/ "> <RDF:Descr ipt i on about ="ht t p :/ / www.st arpowder. com/ xml "> <DC: Format >HTML</ DC: Format > <DC:Language>en</ DC:Language> <DC:Dat e>2002-02- 02</ DC:dat e> <DC:Type>t ut or i al </ DC:Type> <DC:Ti t l e>wel come t o XML!</ DC:Ti t l e> </ RDF:Descr i pt i on> </ RDF:RDF> XML,., Microsoft.NET XML. Microsoft Office 2000 Office XP HTML, HTML., XML ( Office 2000 XP VML ). Netscape Navigator,, XML., XML.. XML,. XML. 7 2

5 XML DTD(Document Type Definition)., DTD W3C(World Wide Web Consortium). W3C, DTD XML., DTD. DTD,, Namespace,,. (list type),,,,., XML (working draft).. ht t p : / /www.w3. or g/ TR/ xml schema- 0/ : XML. ht t p : / / www.w3. or g/ TR/ xml schema- 1/ : XML,. ht t p : / / www.w3. or g/ TR/ xml schema- 2/ : XML,.

ML : XML (working group) Namespace,,,.. Internet Explorer. Int ernet Explorer XML Internet Explorer XML Microsoft XML (MSXML ). 4.0 Microsoft XML Microsoft XML Core Service. 4.0, XSD(XML Schema Definition Language). 4.0 MSXML XML Microsoft XDR(XML Data Reduced). MSXML XML [ 5-1]. 5-1 MSXML XML MSXML MSXML 2.0 MSXML 2.6 MSXML 3.0 MSXML 4.0 XDR XDR XDR XSD XDR Windows, MSXML? Windows DLL (Dynamic Link Library) Windows Syst em Syst em32. msxml3.dll MSXML 3.0. msxml4.dll 4.0., MSXML 4.0., Microsoft XML, ht t p : / / msdn. mi cr osof t.com/ l i br ar y/ def aul t. asp?ur l =/ nhp/ Def aul t. asp?cont ent i d=28000438. 2 2 6

XML, MSXML 4.0 ht t p : / /msdn.mi cr osof t. com/ downl oads / def aul t. asp?ur l =/ downl oads / sampl e. asp?ur l =/msdnf i l es/ 027/ 001/ 766/ msdncompos i t edoc.xml ( ht t p : / /msdn.mi cr osof t. com/ downl oads / xml ). ch05_01.html MSXML 4.0. XML XML J avascript, J avascript. ch05_01.html <HTML> <HEAD> <TITLE> Usi ng XML Schemas </ TI TLE> </ HEAD> <BODY> <CENTER> <H1>Usi ng XML Schemas</ H1> </ CENTER> <SCRI PT LANGUAGE="JavaScri pt "> var schemacache = newact ivexobj ect ("MSXML2.XMLSchemaCache.4. 0" ); schemacache.add ("ht t p :/ / st arpowder ", "ch05_ 02.xsd" ); var doc = new Act ivexobj ect ("MSXML2.DOMDocument.4. 0" ); doc.schemas = schemacache ; doc.val idat eonparse = t rue; i f (doc. l oad ("ch05_ 03.xml " ) ) { document. wr i t e ("ch05_ 03.xml i s val i d. " ); } el se { i f (doc.parseerror.errorcode!= 0) { document.wr i t e ("Er ror : " + doc.par seer ror. reason ); } } </ SCRI PT> </ BODY> </ HTML> 21 2 7

XML : XML ch05_02.xsd XML. xs Namespace. "ht t p :/ / www.w3. or g/ 2001/ XMLSchema ". ch05_02.xsd <?xml ver si on="1. 0"?> <xs :schema xml ns :xs="ht t p :/ / www.w3.org/ 2001/ XMLSchema" t arget Namespace = "ht t p :/ / st arpowder " xml ns :ch05 = "ht t p :/ / st arpowder " el ement FormDefaul t = "qual i f i ed"> <xs :el ement name="document "></ xs :el ement > </ xs :schema> XML ch05_03.xml. ch05_03.xml <?xml ver si on="1. 0"?> <ch05:document xml ns :ch05 = ' ht t p :/ / st arpowder ' > <ch05:dat a/ > </ ch05:document > XML,. document. XML, <ch05 :document > Namespace. XML <ch05 :dat a/ >,., [ 5-1] ( ch05_01.html, ch05_02.xsd ch05_03.xml ). 2 2 8

XML 5-1 Internet Explorer XML ch05_01.html, XML XML. MSXML 4.0 XML. XML schemalocat i on., HTML ( J avascript ). ch05_04.html <HTML> <HEAD> <TITLE> Usi ng XML Schemas </ TI TLE> </ HEAD> <BODY> <CENTER> <H1>Usi ng XML Schemas</ H1> </ CENTER> 21 2 9

XML : XML <SCRI PT LANGUAGE="JavaScri pt "> var doc = new Act ivexobj ect ("MSXML2.DOMDocument.4. 0" ); doc.val idat eonparse = t rue; i f (doc. l oad ("ch05_ 05.xml " ) ) { document.wri t e ("ch05_05.xml i s val id. " ); } el se { i f (doc.parseerror.errorcode!= 0) { document.wr i t e ("Er ror : " + doc.par seer ror. reason ); } } </ SCRI PT> </ BODY> </ HTML> HTML XML. Namespace (ch05) (ch05_02.xsd) schemalocat i on. ch05_05.xml <?xml ver si on="1. 0"?> <ch05:document xml ns :xsi = ' ht t p :/ / www.w3.org/ 2001/ XMLSchema- i nst ance ' xml ns :ch05 = ' ht t p :/ / st arpowder ' xsi :schemalocat i on=' ht t p :/ / st arpowder ch05_02.xsd ' > <ch05:dat a/ > </ ch05:document > ch05_04.html HTML Internet Explorer, [ 5-1] ( ch05_02.xsd, ch05_04.html, ch05_05.xml )., Internet Explorer XML. (1 ), Visual Basic.NET XML. Visual Basic.NET XML.,. (dataset ). Visual Basic.NET XML, Dat a View Dataset Schema. [ 5-2], Visual Basic designer. 2 3 0

ML 5-2 Vis ual Basic.NET XML, XML.? XML ch05_06.xml, ch05_07.xsd ( Internet Explorer MSXML 4.0, ch05_06.xml ch05_07.xsd ). Doug Glass Britt a Regensburg.,,,. ch05_06.xml. ch05_06.xml <?xml ver si on="1. 0"?> <t ransact ion borrowdat e="2003-10- 15"> <Lender phone="607. 555. 2222"> <name>doug Glass</ name> <st reet >416 Di sk Drive</ st reet > 21 3 1

XML : XML <ci t y>medf i el d</ ci t y> <st at e>ma</ st at e> </ Lender > <Bor rower phone="310.555.1111"> <name>br i t t a Regensburg</ name> <st reet >219 Uni on Dr ive</ st reet > <ci t y>medf i el d</ ci t y> <st at e>ca</ st at e> </ Bor r ower > <not e>lender want s t hese back in t wo weeks!</ not e> <books> <book bookid="123-4567- 890"> <bookti t l e>eart hquakes for Br eakfast </ bookti t l e> <pubdat e>2003-10- 20</ pubdat e> <repl acement Val ue>15. 95</ repl acement Val ue> <maxdaysout >14</maxDaysOut > </ book> <book bookid="123-4567- 891"> <bookti t l e>aval anches for Lunch</ bookti t l e> <pubdat e>2003-10- 21</ pubdat e> <repl acement Val ue>19. 99</ repl acement Val ue> <maxdaysout >14</maxDaysOut > </ book> <book bookid="123-4567- 892"> <bookti t l e>met eor Shower s for Di nner</ bookti t l e> <pubdat e>2003-10- 22</ pubdat e> <repl acement Val ue>11. 95</ repl acement Val ue> <maxdaysout >14</maxDaysOut > </ book> <book bookid="123-4567- 893"> <bookti t l e>snacki ng on Vol canoes</ booktit le> <pubdat e>2003-10- 23</ pubdat e> <repl acement Val ue>17. 99</ repl acement Val ue> <maxdaysout >14</maxDaysOut > </ book> </ books> </ t ransact i on> <t r ansact i on> <Lender >, <Bor r ower >, <books>. <books> <book>. 2 3 2

XML XML, (complex type).,,, (simple type). (tree), (subnode),.,. XML,.,. ch05_06.xml, ch05_07.xsd. xsd W3C Namespace. xsd Namespace xs. Namespace,. ch05_07.xsd XML. ch05_07.xsd <xsd :schema xml ns :xsd="ht t p :/ / www.w3.org/ 2001/ XMLSchema"> <xsd :annot at i on> <xsd :document at i on> Book bor r owi ng t r ansact i on schema. </ xsd :document at i on> </ xsd :annot at i on> <xsd :el ement name="t r ansact i on" t ype="t ransact i ontype"/ > <xsd :compl extype name="t r ansact i ontype"> <xsd :sequence> <xsd :el ement name="lender " t ype="addr ess"/ > <xsd :el ement name="bor r ower " t ype="addr ess"/ > <xsd :el ement ref="not e" mi noccur s="0"/ > <xsd :el ement name="books" t ype="books "/ > </ xsd :sequence> <xsd :at t ri but e name="bor rowdat e" t ype="xsd :dat e"/ > </ xsd :compl extype> <xsd :el ement name="not e" t ype="xsd :st r i ng"/ > <xsd :compl extype name="addr ess"> 21 3 3

XML : XML <xsd :sequence> <xsd :el ement name="name" t ype="xsd :st r i ng"/ > <xsd :el ement name="st reet " t ype="xsd :st r i ng"/ > <xsd :el ement name="ci t y" t ype="xsd :st r i ng"/ > <xsd :el ement name="st at e" t ype="xsd :NMTOKEN"/ > </ xsd :sequence> <xsd :at t r i but e name="phone" t ype="xsd :st r i ng" use="opt i onal "/ > </ xsd :compl extype> <xsd :compl extype name="books "> <xsd :sequence> <xsd :el ement name="book" mi noccur s="0" maxoccur s="10"> <xsd :compl extype> <xsd :sequence> <xsd :el ement name="bookti t l e" t ype="xsd :st r i ng"/ > <xsd :el ement name="pubdat e" t ype="xsd :dat e" mi noccur s=' 0' / > <xsd :el ement name="repl acement Val ue" t ype="xsd :decimal "/ > <xsd :el ement name="maxdaysout "> <xsd :simpl etype> <xsd :r est r i ct i on base="xsd :i nt eger "> <xsd :maxexcl usi ve val ue="14"/ > </ xsd :rest r i ct i on> </ xsd :si mpl etype> </ xsd :el ement > </ xsd :sequence> <xsd :at t ri but e name="booki D" t ype="cat al ogid"/ > </ xsd :compl extype> </ xsd :el ement > </ xsd :sequence> </ xsd :compl extype> <xsd :simpl etype name="cat al ogi D"> <xsd :r est r i ct i on base="xsd :st r i ng"> <xsd :pat t er n val ue="\ d{3}- \ d{4}- \ d{3}"/ > </ xsd :rest r i ct i on> </ xsd :si mpl etype> </ xsd :schema> 2 3 4

XML,., XML ("ht t p : / /www.w3. or g/ 2001/ XMLSchema ") Namespace, <xsd :el ement > Namespace ( xsd : )., <xsd :el ement >, <xsd :at t r i but e>. <xsd :compl extype> <xsd :si mpl etype> ( (simple type), (complex type) (built-in simple type) ), <xsd :annot at i on>. <t r ansact i on> t r ansact i ontype. addr ess, books. addr ess. books, <book>. ch05_06.xml..?,? [ 5-2].. 5-2 al l. annot at i on any anyat t r i but e appi nfo. Namespace (seq ue nce) (choice). Namespace compl extype at t r i but egr oup. annot at i on. 21 3 5

ML : XML at t r i but e at t r i but egr oup choi ce compl excont ent compl extype document at i on el ement ext ensi on f i el d group i mpor t i ncl ude key keyref l i st not at i on r edef i ne r est r i ct i on schema sel ect or sequence., (complex type)... (complex type),. annot at i on... (uni que, key, keyref ) XPath(XML Path Language ).,. Names pace. (target) Names pace. (key).. si mpl etype. XML -XML Notation., ( )... uni que, key, keyref ID XPath.. 2 3 6

XML simpl econt ent simpl et ype uni on uni que Simpl etype Compl extype. (s imple type). si mpl etype.. XML,. DTD,.. (complex type)., (simple type). [ 5-3] XML ( W3C xsd : ). 5-3 anyuri XML ht t p :/ / www.st arpowder. com base64bi nar y GpM6 bol ean t r ue, fal se, 1, 0 byt e - 5, 116 dat e 2003-05- 31 dat etime 2003-03- 31T11:15:00. 000-03:00 decimal 1. 234, - 1. 234, 6000. 00 21 3 7

XML : XML doubl e 12, 12.34E- 5, 1. 2222 dur at i on ENTITIES ENTITY P1Y1M4DT10H50M11.7S (XML ) (XML ) f l oat 12, 12.34E- 5, 1. 2222 gday - - - 30 gmont h - - 04- - gmont hday - - 03-30 gyear 2003 gyearmont h 2003-02 hexbi nary I D I DREF I DREFS 0BB6 (XML ID) (XML ID REF) (XML ID REFS) i nt 10, 12345678 i nt eger - 123456, - 1, 10 l anguage en-us, f r, de l ong - 1234, 12345678901234 Name NCName George USDat a negat i vei nt eger - 123, - 1234 NMTOKEN NMTOKENS US US UK, DE UK FR nonnegat i veint eger 0, 1, 12345 2 3 8

XML nonposi t i veint eger - 1234, - 1, 0 normal i zedst r i ng NOTATION Here i s some t ext (XML NOTATION) posi t i vei nt eger 1, 12345 QName doc :Dat a short - 12, 1234 st r i ng Here i s some t ext t ime 11:15: 00. 000 t oken Here i s some t ext unsi gnedbyt e 0, 127 unsi nedint 0, 12345678 unsi gnedlong 0, 12678967543233 unsi gnedshort 0, 12678 XML DTD XML DTD, ID, IDREF, IDREFS, ENTITY, ENTITIES, NOTATION, NMTOKEN, NMTOKENS. <xsd :compl extype>.,,. <xsd :el ement >, <xsd :at t r i but e>. DTD... ch05_07.xsd., addr es s,. <xsd :sequence>. <xsd :al l >. 21 3 9

ML : XML <xsd :compl extype name="addr ess"> <xsd :sequence> <xsd :el ement name="name" t ype="xsd :st r i ng"/ > <xsd :el ement name="st r eet " t ype="xsd :st r i ng"/ > <xsd :el ement name="ci t y" t ype="xsd :st r i ng"/ > <xsd :el ement name="st at e" t ype="xsd :NMTOKEN"/ > </ xsd :sequence> <xsd :at t r i but e name="phone" t ype="xsd :st r i ng" use="opt i onal "/ > </ xsd :compl extype> <Lender > <Bor r ower > addr ess.. <xsd :compl extype name="t r ansact i ontype"> <xsd :sequence> <xsd :el ement name="lender " t ype="address "/ > <xsd :el ement name="bor rower " t ype="address "/ > <xsd :el ement ref="not e" mi noccur s="0"/ > <xsd :el ement name="books " t ype="books"/ > <xsd :sequence> <xsd :at t ri but e name="bor rowdat e" t ype="xsd :dat e"/ > </ xsd :compl extype> addr es s, 4. <name>, <st r eet >, <ci t y>, <st at e>, phone.. <name>, <st r eet >, <ci t y> xsd : st r i ng, <st at e> NMTOKEN. phone xsd : st r i ng. addr es s xsd : st r i ng.. t r ansact i ontype, ch05_06.xml., <Lender > <Bor r ower > addr ess. t r ansact i ontype bor r owdat e, xsd :dat e..,., t r ansact i ontype <t r ansact i on>. t r ansact i ontype. 2 4 0

XML <xsd :el ement name="t r ansact i on" t ype="t ransact i ontype"/ > <xsd :compl extype name="t r ansact i ontype"> <xsd :sequence> <xsd :el ement name="lender " t ype="address "/ > <xsd :el ement name="bor rower " t ype="address "/ > <xsd :el ement ref="not e" mi noccur s="0"/ > <xsd :el ement name="books " t ype="books"/ > <xsd :sequence> <xsd :at t r i but e name="bor r owdat e" t ype="xsd :dat e"/ > </ xsd :compl extype>. <xsd :el ement > <xsd :at t r i but e>, t ype ( ). t r ansact i ontype <not e>. <xsd :compl extype name="t r ansact i ontype"> <xsd :sequence> <xsd :el ement name="lender " t ype="address "/ > <xsd :el ement name="bor rower " t ype="address "/ > <xsd :el ement ref="not e" mi noccur s="0"/ > <xsd :el ement name="books " t ype="books"/ > <xsd :sequence> <xsd :at t r i but e name="bor r owdat e" t ype="xsd :dat e"/ > </ xsd :compl extype>,., <not e>, <not e>. <xsd :compl extype name="t r ansact i ontype"> <xsd :sequence> <xsd :el ement name="lender " t ype="address "/ > <xsd :el ement name="bor rower " t ype="address "/ > <xsd :el ement ref="not e" mi noccur s="0"/ > <xsd :el ement name="books " t ype="books"/ > <xsd :sequence> <xsd :at t r i but e name="bor r owdat e" t ype="xsd :dat e"/ > </ xsd :compl extype> <xsd :el ement name="not e" t ype="xsd :st r i ng"/ > 21 4 1

ML : XML r ef.. (globally).,. (global element ) <xsd : schema>.,. r ef.. <not e> t r ansact i ontype. mi noccur s, 0. <xsd :compl extype name="t r ansact i ontype"> <xsd :sequence> <xsd :el ement name="lender " t ype="address "/ > <xsd :el ement name="bor rower " t ype="address "/ > <xsd :el ement ref="not e" mi noccur s="0"/ > <xsd :el ement name="books " t ype="books"/ > <xsd :sequence> <xsd :at t r i but e name="bor r owdat e" t ype="xsd :dat e"/ > </ xsd :compl extype>, mi noccur s, maxoccur s., <not e> t r ansact i ontype 0 5. <xsd :compl extype name="t r ansact i ontype"> <xsd :sequence> <xsd :el ement name="lender " t ype="address "/ > <xsd :el ement name="bor rower " t ype="address "/ > <xsd :el ement ref="not e" mi noccur s="0" maxoccur s="5"/ > <xsd :el ement name="books " t ype="books"/ > <xsd :sequence> <xsd :at t ri but e name="bor rowdat e" t ype="xsd :dat e"/ > </ xsd :compl extype> 2 4 2

XML minoccurs maxoccurs mi noccur s 1. maxoccur s mi noccur s. maxoccur s unbounded. mi noccur s maxoccur s, <xsd :el ement > f i xed def aul t (, )., f i xed 400, 400. def aul t 400 400,., <maxtr i al s> 100, <xsd :el ement > f i xed 100. <xsd :el ement name="maxtr i al s" t ype="xsd :i nt eger " fi xed="100"/ >, 100 100. <xsd :el ement name="maxtr i al s" t ype="xsd :i nt eger " defaul t ="100"/ >, (simple type). mi noccur s maxoccur s.,. <xsd :at t r i but e>, <xsd :at t r i but e> ( ).,,? <xsd :at t r i but e> use val ue. use,,,. val ue. 21 4 3

XML : XML, phone Addr es s, xsd :st r i ng use "opt i onal ". <xsd :compl extype name="addr ess"> <xsd :sequence> <xsd :el ement name="name" t ype="xsd :st r i ng"/ > <xsd :el ement name="st r eet " t ype="xsd :st r i ng"/ > <xsd :el ement name="ci t y" t ype="xsd :st r i ng"/ > <xsd :el ement name="st at e" t ype="xsd :NMTOKEN"/ > <xsd :sequence> <xsd :at t r i but e name="phone" t ype="xsd :st r i ng" use="opt i onal "/ > </ xsd :compl extype> use. r equi r ed :,. opt i onal :,. f i xed :, val ue. def aul t :, val ue.,. pr ohi bi t ed :., count er 400. <xsd :at t r i but e name="count er " t ype="xsd :i nt " use="fi xed" val ue="400"> count er 400,. <xsd :at t r i but e name="count er " t ype="xsd :i nt " use="defaul t " val ue="400"> ch05_07.xsd xsd : st r i ng, xsd :i nt eger, xsd :dat e XML. booki D, cat al ogid. 2 4 4

ML <xsd :compl extype name="books"> <xsd :sequence> <xsd :el ement name="book" mi noccurs="0" maxoccurs="10"> <xsd :compl extype> <xsd :sequence> <xsd :el ement name="bookti t l e" t ype="xsd :st r i ng"/ > <xsd :el ement name="pubdat e" t ype="xsd :dat e" mi noccur s= ' 0' / > <xsd :el ement name="repl acement Val ue" t ype="xsd :decimal "/ > <xsd :el ement name="maxdaysout "> <x s d : s i mp l e Typ e > <xsd :rest r i ct i on base="xsd :i nt eger "> <xsd :maxexcl usive val ue="14"/ > </ xsd :r est r i ct i on> </ xsd :simpl etype> </ xsd :el ement > </ xsd :sequence> <xsd :at t r i but e name="booki D" t ype="cat al ogi D"/ > </ xsd :compl extype> </ xsd :el ement > </ xsd :sequence> </ xsd :compl extype> cat al ogi D XML., <si mpl etype>. <xsd :si mpl etype name="cat al ogi D"> <xsd :rest r i ct i on base="xsd :st r i ng"> <xsd :pat t ern val ue="\ d {3}- \ d {4}- \ d {3}"/ > </ xsd :r est r i ct i on> </ xsd :simpl etype>, cat al ogid ( : <xsd :st r i ng> ). <xsd :r est r i ct i on> base. cat al ogi D, base="xsd : st r i ng" xsd : st r i ng. XML (facet). (facet)., dayofmont h 1 31., mi nincl usi ve maxincl usi ve. 21 4 5

XML : XML <xsd :si mpl etype name="dayofmont h"> <xsd :r est r i ct i on base="xsd :i nt eger "> <xsd :mi nincl usive val ue="1"/ > <xsd :maxincl usive val ue="31"/ > </ xsd :rest r i ct i on> </ xsd :simpl etype>,. ch05_07.xsd cat al ogid dayofmont h. cat al ogi D, pat t er n, ( ). <xsd :si mpl etype name="cat al ogi D"> <xsd :r est r i ct i on base="xsd :st r i ng"> <xsd :pat t ern val ue="\ d {3}- \ d {4}- \ d {3}"/ > </ xsd :rest r i ct i on> </ xsd :simpl etype>, si mpl etype "\ d {3}- \ d {4}- \ d {3}"., (- ),, (- ),. (Regular Express ion) XML Pe rl. Perl CPAN(Comprehe ns ive Pe rl Arc hive Network) www. cpan. or g/ doc / manua l / ht ml / pod/ p er l r e. ht ml ( ). cat al ogi D <book> booki D booki D, (ch05_06.xml ). <book bookid="123-4567- 890"> <bookti t l e>ear t hquakes for Breakfast </ bookti t l e> <pubdat e>2003-10- 20</ pubdat e> <r epl acement Val ue>15. 95</ r epl acement Val ue> <maxdaysout >14</ maxdaysout > </ book> 2 4 6

XML,? [ 5-4]. 5-4 length minlength maxlength pattern enumeration Whitespace anyuri base64bi nar y bool ean byt e dat e dat et ime decimal doubl e dur at i on ENTITIES ENTITY f l oat gday gmont h gmont hday gyear gyearmont h hexbi nary I D I DREF I DREFS 21 4 7

XML : XML length minlength maxlength pattern enumeration Whitespace i nt i nt eger l anguage l ong Name NCName negat i ve Int eger NMTOKEN NMTOKENS nonnegat i ve I nt eger nonposi t i ve I nt eger normal i zed St r i ng NOTATION posi t i ve Int eger QName short st r i ng t ime t oken unsi gnedbyt e unsi gnedi nt unsi gnedlong unsi gnedshort 2 4 8

XML (simple type) [ 5-5]. 5-5 max inclusive max Exclusive min Inclusive min Exclusive TotalDigits Fraction Digits byt e unsi gnedbyt e i nt eger posi t i ve Int eger negat i ve Int eger nonnegat i ve Int eger nonposi t i ve Int eger i nt unsi gnedi nt l ong unsi gnedlong short unsi gnedshort decimal f l oat doubl e t ime dat et ime dur at i on dat e gmont h 21 4 9

ML : XML max inclusive max Exclusive min Inclusive min Exclusive TotalDigits Fraction Digits gyear gyearmont h gday gmont hday [ 5-4] [ 5-5] mi nincl usi ve, maxincl usi ve, pat t er n, enumer at i on., enumer at i on. enumer at i on DTD ( ),. enumer at i on,., "Sunday", "Monday", "Tuesday", "Wednesday", "Thur sday", "Fr i day", "Sat ur day" weekday. <xsd :si mpl etype name="weekday"> <xsd :r est r i ct i on base="xsd :st r i ng"> <xsd :enumerat i on val ue="sunday"/ > <xsd :enumerat i on val ue="monday"/ > <xsd :enumerat i on val ue="tuesday"/ > <xsd :enumerat i on val ue="wednesday"/ > <xsd :enumerat i on val ue="thur sday"/ > <xsd :enumerat i on val ue="fr iday"/ > <xsd :enumerat i on val ue="sat urday"/ > </ xsd :rest r i ct i on> </ xsd :simpl etype>, ch05_07.xsd t ype.?,? 2 5 0

ML. (anonymous). <xsd :si mpl etype> <xsd :compl extype> <xsd :el ement >., <xsd :el ement > t ype (, <xsd :compl extype> t ype ). ch05_07.xsd., <book>. <bookti t l e>, <pubdat >, <r epl acementval ue>, <maxdaysout >. bookid., <book> <xsd :el ement > <xsd :compl extype>. <xsd :el ement name="book" mi noccur s="0" maxoccur s="10"> <xsd :compl extype>... </ xsd :compl extype> </ xsd :el ement >, <book>. <xsd :el ement name="book" mi noccur s="0" maxoccur s="10"> <xsd :compl extype> <xsd :sequence> <xsd :el ement name="bookti t l e" t ype="xsd :st r i ng"/ > <xsd :el ement name="pubdat e" t ype="xsd :dat e" mi noccur s=' 0' / > <xsd :el ement name="repl acement Val ue" t ype="xsd :deci mal "/ >... </ xsd :sequence> </ xsd :compl extype> </ xsd :el ement >., <maxdaysout >. 14, maxexcl usi ve. 21 5 1

XML : XML <xsd :el ement name="book" mi noccur s="0" maxoccur s="10"> <xsd :compl extype> <xsd :sequence> <xsd :el ement name="bookti t l e" t ype="xsd :st r i ng"/ > <xsd :el ement name="pubdat e" t ype="xsd :dat e" mi noccur s=' 0' / > <xsd :el ement name="repl acement Val ue" t ype="xsd :decimal "/ > <xsd :el ement name="maxdaysout "> <xsd :simpl etype> <xsd :r est r i ct i on base="xsd :i nt eger "> <xsd :maxexcl usi ve val ue="14"/ > </ xsd :rest r i ct i on> </ xsd :si mpl etype> </ xsd :el ement >... </ xsd :sequence> </ xsd :compl extype> </ xsd :el ement >. <xsd :el ement name="book" mi noccur s="0" maxoccur s="10"> <xsd :compl extype> <xsd :sequence> <xsd :el ement name="bookti t l e" t ype="xsd :st r i ng"/ > <xsd :el ement name="pubdat e" t ype="xsd :dat e" mi noccur s=' 0' / > <xsd :el ement name="repl acement Val ue" t ype="xsd :deci mal "/ > <xsd :el ement name="maxdaysout "> <xsd :simpl etype> <xsd :r est r i ct i on base="xsd :i nt eger "> <xsd :maxexcl usi ve val ue="14"/ > </ xsd :rest r i ct i on> </ xsd :si mpl etype> </ xsd :el ement > </ xsd :sequence> <xsd :at t ri but e name="booki D" t ype="cat al ogid"/ > </ xsd :compl extype> </ xsd :el ement > ( ). 2 5 2

XML (empty). XML? <xsd :compl excont ent >. <i mage sour ce="i mages/ cover. gi f " hei ght ="255" wi dt h="512"/ >, sour ce, wi dt h, hei ght <i mage>.. <xsd :el ement name="image">... </ xsd :el ement > t ype. <compl extype> <compl excont ent >. <xsd :el ement name="image"> <xsd :compl extype> <xsd :compl excont ent >... </ xsd :compl excont ent > </ xsd :compl extype> </ xsd :el ement >, <xsd :r est r i ct i on>, t ype xsd :anytype,. <xsd :el ement name="image"> <xsd :compl extype> <xsd :compl excont ent > <xsd :rest r i ct i on base="xsd :anytype"> <xsd :at t r i but e name="sour ce" t ype="xsd :st r i ng" / > <xsd :at t r i but e name="wi dt h" t ype="xsd :decimal " / > <xsd :at t r i but e name="hei ght " t ype="xsd :deci mal " / > </ xsd :r est r i ct i on> </ xsd :compl excont ent > </ xsd :compl extype> </ xsd :el ement > <i mage>. 21 5 3