9 주 실습강의 XML Visualization(1) 2009. 1 학기, 소프트웨어 설계 및 실험 ( Ⅰ )

Slides:



Advertisements
Similar presentations
J0 1 Marco Ronchetti - Web architectures – Laurea Specialistica in Informatica – Università di Trento Java XML parsing.
Advertisements

XML, Uploading, Importing... Joshua Scotton.
10 주 실습강의 XML Visualization(2) 학기, 소프트웨어 설계 및 실험 ( Ⅰ )
Problem MRO 웹 서버에서 NAS 의 공유 폴더를 SMB protocol 을 사용하여 z: 드라이브로 mount 하여 weblogic 서비스 시, 성능 저하 발생 ( 11~15 sec ) MRO 웹 서버 Windows 2003 R2 Enterprise x64 NFS.
Struts2 2장 기본 예제를 통해 스트럿츠2와 친해지기.
XML Parsers By Chongbing Liu. XML Parsers  What is a XML parser?  DOM and SAX parser API  Xerces-J parsers overview  Work with XML parsers (example)
1 SAX and more… CS , Spring 2008/9. 2 SAX Parser SAX = Simple API for XML XML is read sequentially When a parsing event happens, the parser invokes.
SAX A parser for XML Documents. XML Parsers What is an XML parser? –Software that reads and parses XML –Passes data to the invoking application –The application.
1 The Simple API for XML (SAX) Part I ©Copyright These slides are based on material from the upcoming book, “XML and Bioinformatics” (Springer-
1 XML and Data Management XML Processors Hachim Haddouti Al Akhawayn University SSE
Xerces The Apache XML Project Yvonne Yao. Introduction Set of libraries that provides functionalities to parse XML documents Set of libraries that provides.
XML Parser. Why Need a XML Parser ? Check XML syntax. ( is well-formed ? ) Validation. ( DTD and XML Schema ) Allow programmatic access to the document’s.
21-Jun-15 SAX (Abbreviated). 2 XML Parsers SAX and DOM are standards for XML parsers-- program APIs to read and interpret XML files DOM is a W3C standard.
Visual Basic과 MS-Access를 이용한 렌터카 관리 프로그램
26-Jun-15 SAX. SAX and DOM SAX and DOM are standards for XML parsers--program APIs to read and interpret XML files DOM is a W3C standard SAX is an ad-hoc.
28-Jun-15 StAX Streaming API for XML. XML parser comparisons DOM is Memory intensive Read-write Typically used for documents smaller than 10 MB SAX is.
Processing of structured documents Spring 2003, Part 5 Helena Ahonen-Myka.
CSE 6331 © Leonidas Fegaras XML Tools1 XML Tools Leonidas Fegaras.
CSE 6331 © Leonidas Fegaras XML Tools1 XML Tools Leonidas Fegaras.
The Joy of SAX (and DOM, and JDOM…) Bill MacCartney 11 October 2004.
XML Query Processing Data Warehousing Lab. M.S. 2 Hyeyoung Cho.
SDPL 2003Notes 3: XML Processor Interfaces1 3. XML Processor APIs n How can applications manipulate structured documents? –An overview of document parser.
XML for E-commerce II Helena Ahonen-Myka. XML processing model n XML processor is used to read XML documents and provide access to their content and structure.
5 Processing XML Parsing XML documents  Document Object Model (DOM)  Simple API for XML (SAX) Class generation Overview.
SOAP 실전예제 Internet Computing KUT Youn-Hee Han.
SAX Parsing Presented by Clifford Lemoine CSC 436 Compiler Design.
2012 내장형 시스템 설계  Full Color LED 디바이스 구성  Full Color LED 디바이스 드라이버  Full Color LED JNI 라이브러리 작성  Full Color LED 안드로이드 App 구현  JNI 라이브러리.
CSE 6331 © Leonidas Fegaras XML Tools1 XML Tools.
SDPL 2002Notes 3: XML Processor Interfaces1 3. XML Processor APIs n How can applications manipulate structured documents? –An overview of document parser.
SDPL 20113: XML APIs and SAX1 3. XML Processor APIs n How can (Java) applications manipulate structured (XML) documents? –An overview of XML processor.
XML Parsers Overview  Types of parsers  Using XML parsers  SAX  DOM  DOM versus SAX  Products  Conclusion.
SAX. What is SAX SAX 1.0 was released on May 11, SAX is a common, event-based API for parsing XML documents Primarily a Java API but there implementations.
Beginning XML 4th Edition. Chapter 12: Simple API for XML (SAX)
30 May 2002 XML Apache Tools Parsing and Transformation Andy Clark.
Java + XML. Java 2 Enterprise Edition Server Side java Servlets JSP JavaBeans Web Services Database jdbc.
XML Processing in Java. Required tools Sun JDK 1.4, e.g.: JAXP (part of Java Web Services Developer Pack, already in Sun.
망고 100 보드로 놀아보자 -18 Android 메뉴 생성 및 아이콘 생성 (SPDIF,WM8960)
IT CookBook, 초보자의 첫 번째 엑셀 2007 엑셀 2007 기초. 2 이 장에서 배울 내용  Section 01 엑셀 2007 기본 기능 익히기  Section 02 데이터 입력 및 편집  Section 03 워크시트 편집 및 관리  Section 04.
User Interface Android GUI Tool OpenGL API XML Writer Optimized Layout Algorithm WPF Component Inter.
XML Refresher Course Bálint Joó School of Physics University of Edinburgh May 02, 2003.
CSE 6331 © Leonidas Fegaras XML Tools1 XML Tools.
ARToolKit Settings The department of Computer Engineering Shin ho hwan.
Java and XML. What is XML XML stands for eXtensible Markup Language. A markup language is used to provide information about a document. Tags are added.
© Marty Hall, Larry Brown Web core programming 1 Simple API for XML SAX.
SAX2 and DOM2 Kanda Runapongsa Dept. of Computer Engineering Khon Kaen University.
XML and SAX (A quick overview) ● What is XML? ● What are SAX and DOM? ● Using SAX.
Extracting Typed Values from XML Data Fabio Simeoni David Lievens Paolo Manghi Steve Neely Richard Connor.
Internal Device Driver
When we create.rtf document apart from saving the actual info the tool saves additional info like start of a paragraph, bold, size of the font.. Etc. This.
영상 획득 영상 저장 카메라 파라메터 커스텀 이미지
Start ! iPhone Dev 남기수. Table of contents 1.Xcode - Xcode Install - Start Project ! 2. Dev. - Architecture - Create UI 3. Example - 스마트 대면맞고.
SDPL 20063: XML Processor Interfaces1 3. XML Processor APIs n How can (Java) applications manipulate structured (XML) documents? –An overview of XML processor.
Simple API for XML (SAX) Aug’10 – Dec ’10. Introduction to SAX Simple API for XML or SAX was developed as a standardized way to parse an XML document.
7-Mar-16 Simple API XML.  SAX and DOM are standards for XML parsers-- program APIs to read and interpret XML files  DOM is a W3C standard  SAX is an.
SDPL 2001Notes 3: XML Processor Interfaces1 3. XML Processor APIs n How applications can manipulate structured documents? –An overview of document parser.
아주대학교 LifecareScienceLAB Android Seminar 2 nd class Android Software Development 2011/04/13 – p.m. 06:00 – 팔달관 409 호 아주대학교.
Morpheus Server 2.0 정기교육 Version 목 차 Morpheus Server 2.0 SpringFramework API 개발 Morpheus Admin 실 습.
Data 전송하는 웹 서비스 Meilan JIANG Cyber infrastructure Research Laboratory Department of Advanced Technology Fusion.
1 Introduction SAX. Objectives 2  Simple API for XML  Parsing an XML Document  Parsing Contents  Parsing Attributes  Processing Instructions  Skipped.
Java API for XML Processing
Simple API for XML SAX. Agenda l Introduction to SAX l Installation and setup l Steps for SAX parsing l Defining a content handler l Examples Printing.
Parsing with SAX using Java Kanda Runapongsa Dept. of Computer Engineering Khon Kaen University.
XML Parsers Overview Types of parsers Using XML parsers SAX DOM
Parsing XML into programming languages
New Xml Converters General presentation of Xml converters The old way
XML Parsers By Chongbing Liu.
XML Parsers Overview Types of parsers Using XML parsers SAX DOM
Java API for XML Processing
A parser for XML Documents
Presentation transcript:

9 주 실습강의 XML Visualization(1) 학기, 소프트웨어 설계 및 실험 ( Ⅰ )

Artificial Intelligence Laboratory 실습목표

Artificial Intelligence Laboratory 프로그램에서 XML 문서 이용 방법  DOM  Document Object Model  XML 문서를 Object 의 개념으로 생각  문서를 한번에 읽어서 처리 ( 수정, 삭제 용이 )  SAX  Simple API for XML  이벤트 중심의 방법  문서를 순차적으로 읽음 ( 속도, 메모리 측면에서 효율적 )  문서 전체 구조정보를 가지지 않음

Artificial Intelligence Laboratory XML DOM (Document Object Model)

Artificial Intelligence Laboratory XML SAX(Simple API for XML)

Artificial Intelligence Laboratory DOM VS SAX

Artificial Intelligence Laboratory XML Parser  Xerces   오픈 소스 XML 파서  IBM 에서 개발 (xml4c)  C++, Java, Perl 지원  현재 Apache 에서 개발 / 관리  현재 버전 Xerces-C

Artificial Intelligence Laboratory Xerces 설치  Xerces Download   xerces-c zip (for windows)  압축해제  솔루션 실행  ~\xerces-c-3.0.1\projects\Win32\VC9\xerces-all\Xerces-all.sin  Build ( 빌드 -> 솔루션빌드 단축키 F6)  ~\xerces-c-3.0.1\Build\Win32\VC9\Debug\xerces-c_3_0D.dll 생성

Artificial Intelligence Laboratory Xerces 사용법  새 프로젝트 생성 ( VC++ Win32 Console Application)  추가 옵션에서 빈 프로젝트 체크  프로젝트에서 main.cpp 추가  프로젝트 속성 설정  C/C++ -> 일반 -> 추가 포함 디렉터리  ~\xerces-c-3.0.1\src 추가  링커 -> 일반 -> 추가 라이브러리 디렉터리  ~\xerces-c-3.0.1\Build\Win32\VC9\Debug 추가  ~\xerces-c-3.0.1\Build\Win32\VC9\Debug\xerces-c_3_0D.dll  프로젝트 폴더에 복사  링커 -> 입력 -> 추가종속성  Xerces-c_3D.lib 추가

Artificial Intelligence Laboratory Xerces 사용법  실행 테스트 #include int main(int argc, char * argv){ return 0; }

Artificial Intelligence Laboratory XML Handler 생성  Handler Class 생성  클래스 뷰 -> 프로젝트 추가 -> 클래스  C++ 클래스  클래스 이름 설정 (ex SAXHandler)  기본클래스 DefaultHandler  “ 예 ” 클릭  #include 추가  DefaultHandler Interface  #include 추가  XECES_CPP_NAMESPACE_USE 추가  namespace

Artificial Intelligence Laboratory

 DefaultHandler  Handler Class 의 기본 모델  SAX Parser 를 사용하기 위한 base class  DefaultHandler Class 를 상속하여 Interface 함수를 재정의 하여 사용

Artificial Intelligence Laboratory  DefaultHandler 의 주요 메서드  virture void startDocument() virture void endDocument() virture void startElement( const XMLCh *const uri,XMLCh const XMLCh *const localname,XMLCh const XMLCh *const qname,XMLCh const Attributes &attrs)Attributes virture void endElement( const XMLCh *const uri,XMLCh const XMLCh *const localname,XMLCh const XMLCh *const qname)XMLCh virture characters( const XMLCh *const chars,XMLCh const XMLSize_t length)XMLSize_t

Artificial Intelligence Laboratory  startDocument() 함수 추가  클래스 뷰 -> HanderClass 우클릭 -> 추가 -> 함수 추가  반환 형식 void  함수 이름 startDocument()  마침  endDocument() 함수 추가  각각 문서의 시작과 끝에 자동으로 호출됨.

Artificial Intelligence Laboratory  Main 작성

Artificial Intelligence Laboratory  Main

Artificial Intelligence Laboratory 추가구현 The Confidence Man Output ElementStart=book AttributeQName=genre AttributeValue=novel ElementStart=title TextValue=The Confidence Man ElementEnd=title ElementEnd=book

Artificial Intelligence Laboratory 추가구현  Element  XMLString::transcode(qname)  qname 의 값 출력.  Attribute  attribute.getLength()  Attribute 개수.  attribute.getQName(index)  Attribute QName  attribute.getValue(index)  Attribute Value