XPath

Size: px
Start display at page:

Download "XPath"

Transcription

1 Lecture 2: Query XML Document Spring

2 Content Part I Xpath Part II Xquery Part III XSL-Extensible Stylesheet Language Part IV XML Supported in SQL Server Part V Parsing XML in Java Spring

3 Review 1: Xpath expressions The most useful path expressions: nodename Selects all child nodes of the named node / Selects from the root node // Selects nodes in the document from the current node that match the selection no matter where they are. Selects the current node.. Selects the parent of the current Selects attributes

4 Review 2: Wildcards Path wildcards can be used to select unknown XML elements. node() Matches any element node Matches any attribute node Matches any node of any kind

5 Part I: XPath XML Path Language 5

6 Example for XPath Queries <bib> <book price= 55 > <publisher>addison-wesley</publisher> <author>serge Abiteboul</author> <author><first-name>rick</first-name> <last-name>hull</last-name> </author> <author>victor Vianu</author> <title>foundations of Databases</title> <year>1995</year> </book> <book> <publisher>freeman</publisher> <author>jeffrey D. Ullman</author> <title>principles of Database and Knowledge Base Systems</title> <year>1998</year> </book> </bib> 6

7 Data Model for XPath The root Processing instruction Comment bib The root element book book price=55 publisher author.... Addison-Wesley Serge Abiteboul 7

8 XPath: Simple Expressions /bib/book/year Result: <year>1995</year> <year>1998</year> /bib/paper/year Result: an empty set of nodes (there were no papers) 8

9 XPath: Restricted Kleene Closure //author Result: <author>serge Abiteboul</author> <author><first-name>rick</first-name> <last-name>hull</last-name> </author> <author>victor Vianu</author> <author>jeffrey D. Ullman</author> A set of 4 nodes /bib//first-name Result: <first-name>rick</first-name> 9

10 XPath: Functions /bib/book/author/text() Result: Serge Abiteboul Victor Vianu Jeffrey D. Ullman Rick Hull doesn t appear because he has no text node Some functions in XPath: text() = matches text nodes and returns the text value node() = matches any node (regardless of type) name() = returns the name of the current tag 10

11 XPath: Wildcard //author/* Result: <first-name>rick</first-name> <last-name>hull</last-name> * Matches any element (but not text or attribute) 11

12 XPath: Attribute Nodes Result: means that price is an Matches any attribute 12

13 XPath: Qualifiers /bib/book/author[first-name] Result: <author> <first-name>rick</first-name> <last-name>hull</last-name> </author> [first-name] means that author has to have a first-name child element. 13

14 XPath: More Qualifiers /bib/book/author[first-name][address[zip][city]]/last-name Result: returns all the last names of all authors with a first name and an address which includes city and zip code. [ ][ ] means that author satisfies both qualifiers. Spring

15 XPath: More Qualifiers < 60] /bib/book[author/first-name = Rick ] Boolean expressions /bib/book[author/text()] Existential expression /bib/book[2] Positional expression 15

16 XPath: Summary bib * / /bib bib/paper bib//paper matches a bib element matches any element matches the root element matches a bib element under root matches a paper in bib matches a paper in bib, at any depth 16

17 XPath: Summary (cont.) //paper paper matches a paper at any depth matches a paper or a book matches a price attribute matches price attribute in book, in bib bib/book[@price<55]/author/last-name matches? 17

18 The Root <?xml version="1.0"?> <bib> <paper>1</paper> <paper>2</paper> </bib> bib is the document element The root is above bib /bib = returns the document element / = returns the root Why? Because we may have comments before and after <bib> </bib>; they become siblings of bib element. This is advanced xmlogy 18

19 Part II : XQuery XML Query Language

20 Outline XML Data versus Relational. Query language for XML. An introduction to XQuery. Path Expressions. FLWOR Expressions. Examples. Other XQuery Syntax. XML XQuery Data Model. Links

21 XML Data versus Relational Data name phone row row row John 3634 Sue 6343 name phone phone phone name name Dick 6363 Relation in XML John 3634 Sue 6343 Dick 6363 { row: { name: John, phone: 3634 }, } row: { name: Sue, phone: 6343 }, row: { name: Dick, phone: 6363 }

22 Relational to XML Data A relation instance is basically a tree with: Unbounded fan-out at level 1 - i.e., any number of rows, Fixed fan-out at level 2 - i.e., fixed number fields. XML data is essentially an arbitrary tree: Unbounded fan-out at all nodes/levels, Any number of levels, Variable number of children at different nodes, with variable path lengths.

23 Query Language for XML Must be high-level; SQL for XML. Must conform to XSchema: But also work in absence of schema information. Support simple and complex/nested datatypes. Support universal and existential quantifiers, and aggregation. Operations on sequences and hierarchies of document structures. Capability to transform and create XML structures.

24 XQuery Influenced by XML-QL, Lorel, Quilt, YATL: Also, XPath and XML Schema. Reads a sequence of XML fragments or atomic values and returns a sequence of XML fragments or atomic values: Inputs/outputs are objects defined by XML-Query data model, rather than strings in XML syntax.

25 Overview of XQuery Path expressions. Element constructors. For-Let-Where-Order-Return - [FLWOR -- flower ] expressions: Several other kinds of expressions as well, including conditional expressions, list expressions, quantified expressions, etc, Generalises SELECT-FROM-HAVING-WHERE from SQL. Expressions evaluated with respect to a context: Item (current node), Position (in sequence being processed), Size (of the sequence being processed), Also includes namespaces, variables, functions, date, and so on.

26 Path Expressions Examples: Bib/paper Bib/book/publisher Bib/paper/author/lastname Given an XML document, the value of a path expression p is a set of objects

27 Path Expression Examples Bib &o1 paper book paper Doc = firstname &o43 references &o12 &o24 &o29 references references author title year author http title author author publisher title author author &o44 lastname &o45 &o46 &o &o47 &o48 &o49 &o50 &o51 firstname &96 page &25 lastname first last &o70 &o71 &243 &206 Serge Abiteboul Victor Vianu Bib/paper = <&o12,&o29> Bib/book/publisher = <&o51> Bib/paper/author/lastname = <&o71,&206> Note that order of elements matters!

28 Element Construction An XQuery expression can construct new values or structures. Example: consider the path expressions on the previous slide: Each of them returns a newly constructed sequence of elements, Key point is that we do not just return existing structures or atomic values; We can re-arrange them as we wish into new structures.

29 FLWOR Expressions FOR-LET-WHERE-ORDERBY-RETURN = FLWOR FOR/LET Clauses List of tuples WHERE Clause List of tuples ORDERBY/RETURN Clause Instance of XQuery data model

30 FOR versus LET FOR $x IN list-expr Binds $x in turn to each value in the list expression. LET $x = list-expr Binds $x to the entire list expression, Useful for common sub-expressions and for aggregations.

31 FOR versus LET FOR iterates over an input sequence and calculates some value for each item in that sequence, returning a sequence obtained by concatenating the results of these calculations. In simple cases there is one output item for every input item. So: for $n in (1 to 10) return $n * $n Returns the sequence (1, 4, 9, 16, 25, 36, 49, 64, 81, 100).

32 FOR versus LET The XQuery LET clause simply declares a variable and gives it a value: let $maxcredit := 3000 let $overdrawncustomers := //customer[overdraft > $maxcredit] return count($overdrawncustomers) In this example you can simply replace each variable reference by the expression that provides the expression's value. This means that the result is the same as: count(//customer[overdraft > 3000])

33 FOR versus LET: Example FOR $x IN document("bib.xml")/bib/book RETURN <result> $x </result> Returns: <result> <book>...</book></result> <result> <book>...</book></result> <result> <book>...</book></result>... FOR generates a list of bindings of $x to each book element in the bib. LET $x IN document("bib.xml")/bib/book RETURN <result> $x </result> Returns: <result> <book>...</book> <book>...</book> <book>...</book>... </result> LET generates a single binding of $x to the list of book elements in the bib.

34 XQuery Example (1) Find all book titles published after 1995: FOR $x IN document("bib.xml")/bib/book WHERE $x/year > 1995 RETURN $x/title Result: <title> abc </title> <title> def </title> <title> ghi </title>

35 XQuery Example (2) For each author of a book by Morgan Kaufmann, list all books they have published: FOR $a IN distinct(document("bib.xml") /bib/book[publisher= Morgan Kaufmann ]/author) RETURN <result> $a, FOR $t IN /bib/book[author=$a]/title RETURN $t </result> distinct = a function that eliminates duplicates (after converting inputs to atomic values).

36 Results for Example 2 <result> <author>jones</author> <title> abc </title> <title> def </title> </result> <result> <author> Smith </author> <title> ghi </title> </result> Observe how the nested structure of result elements is determined by the nested structure of the query. FOR $t IN /bib/book[author=$a]/title

37 WHERE The WHERE clause performs a very similar function to the WHERE clause in a SQL select statement: It specifies a condition to filter the items we are interested in, it is optional, but if it appears it must only appear once, after all the for and let clauses. for $genre in //genre/choice for $video in //video for $actorrefs in $video/actorref for $actor in //actor where $video/genre = $genre and $actor/@id = $actorrefs return concat($genre, ": ", $actor) First define all the tables they are interested in, then define a WHERE expression to define all the restriction conditions that select subsets of the rows in each table, and join conditions that show how the various tables are related.

38 XQuery Example (3) <big_publishers> FOR $p IN distinct(document("bib.xml")//publisher) LET $b := document("bib.xml")/book[publisher = $p] WHERE count($b) > 100 RETURN $p </big_publishers> For each publisher p - Let the list of books published by p be b Count the # books in b, and return p if b > 100 count = (aggregate) function that returns the number of elements

39 XQuery Example (4) Find books whose price is larger than average: LET $a=avg(document("bib.xml")/bib/book/price) FOR $b in document("bib.xml")/bib/book WHERE $b/price > $a RETURN $b avg() == aggregate function

40 Collections in XQuery Ordered and unordered collections: /bib/book/author = an ordered collection, distinct(/bib/book/author) = an unordered collection. Examples: LET $a = /bib/book $a is a collection statement that iterates over all books in collection. $b/author also a collection (several authors...). However: RETURN <result> $b/author </result> Returns a single collection! <result> <author>...</author> <author>...</author> <author>...</author>... </result>

41 ORDERBY If there is no order by clause in a FLWOR expression, then the order of the results is as if the for clauses defined a set of nested loops. Often you want the query results in sorted order, and this can be achieved using the order by clause. Sort the videos in ascending order of year, and within that in decreasing order of the user rating: for $x in //video order by $x/year ascending, number($x/user-rating) descending return $x/title

42 RETURN Every XQuery FLWOR expression has a return clause, and it always comes last. It defines the items that are included in the result. Usually the XQuery return clause generates a single item each time it is evaluated. In general, though, it can produce a sequence. For example, you can do this: for $v in //video[genre="comedy"] return //actor[@id = $v/actorref] Which selects all the actors for each comedy video.

43 Sorting in XQuery <publisher_list> FOR $p IN distinct(document("bib.xml")//publisher) ORDERBY $p RETURN <publisher> <name> $p/text() </name>, FOR $b IN document("bib.xml")//book[publisher = $p] ORDERBY $b/price DESCENDING RETURN <book> $b/title, $b/price </book> </publisher> </publisher_list>

44 Conditional Expressions: If-Then-Else FOR $h IN //holding ORDERBY $h/title RETURN <holding> $h/title, IF = "Journal" THEN $h/editor ELSE $h/author </holding>

45 Existential Quantifiers XQuery's SOME operator, the "existential quantifier". Testing whether a condition applies for some node within a given node-set is natural in XPath Tell me if there exists at least one reserve_price that is greater than 1000 dollars. Return value if true if at least one reserve_price has value greater than some $price in document("data/items.xml")//reserve_price satisfies $price > 1000

46 Existential Quantifiers FOR $b IN //book WHERE SOME $p IN $b//para SATISFIES contains($p, "sailing") AND contains($p, "windsurfing") RETURN $b/title

47 Universal Quantifiers XQuery's EVERY operator, is the "universal quantifier for testing whether a condition applies for every node within a node-set FOR $b IN //book WHERE EVERY $p IN $b//para SATISFIES contains($p, "sailing") RETURN $b/title

48 Other Interesting Things in XQuery Before and After: For dealing with order in the input. Filter: Deletes some edges in the result tree. Recursive functions. Namespaces. References, links Lots more stuff

49 Part III: XLS Extensible Stylesheet Language 49

50 What is XSL? XSL stands for Extensible Stylesheet Language CSS was designed for styling HTML pages, and can be used to style XML pages XSL was designed specifically to style XML pages, and is much more sophisticated than CSS XSL consists of three languages: XSLT (XSL Transformations) is a language used to transform XML documents into other kinds of documents (most commonly HTML, so they can be displayed) XPath is a language to select parts of an XML document to transform with XSLT XSL-FO (XSL Formatting Objects) is a replacement for CSS There are no current implementations of XSL-FO, and we won t cover it 50

51 How does it work? The XML source document is parsed into an XML source tree You use XPath to define templates that match parts of the source tree You use XSLT to transform the matched part and put the transformed information into the result tree The result tree is output as a result document Parts of the source document that are not matched by a template are typically copied unchanged 51

52 Simple XPath Here s a simple XML document: <?xml version="1.0"?> <library> <book> <title>xml</title> <author>gregory Brill</author> </book> <book> <title>java and XML</title> <author>brett McLaughlin</author> </book> </library > XPath expressions look a lot like paths in a computer file system / means the document itself (but no specific elements) /library selects the root element /library/book selects every book element //author selects every author element, wherever it occurs 52

53 Simple XSLT <xsl:for-each select="//book"> loops through every book element, everywhere in the document <xsl:value-of select="title"/> chooses the content of the title element at the current location <xsl:for-each select="//book"> <xsl:value-of select="title"/> </xsl:for-each> chooses the content of the title element for each book in the XML document 53

54 Using XSL to create HTML Our goal is to turn this: 54 <?xml version="1.0"?> <library> <book> <title>xml</title> <author>gregory Brill</author> </book> <book> <title>java and XML</title> <author>brett McLaughlin</author> </book> </library > Into HTML that displays something like this: Book Titles: XML Java and XML Book Authors: Gregory Brill Brett McLaughlin Note that we ve grouped titles and authors separately

55 What we need to do We need to save our XML into a file (let s call it books.xml) We need to create a file (say, books.xsl) that describes how to select elements from books.xml and embed them into an HTML page We do this by intermixing the HTML and the XSL in the books.xsl file We need to add a line to our books.xml file to tell it to refer to books.xsl for formatting information 55

56 books.xml, revised <?xml version="1.0"?> <?xml-stylesheet type="text/xsl" href="books.xsl"?> <library> <book> <title>xml</title> This tells you where to find the XSL file <author>gregory Brill</author> </book> <book> <title>java and XML</title> <author>brett McLaughlin</author> </book> </library > 56

57 Desired HTML <html> <head> <title>book Titles and Authors</title> </head> <body> <h2>book titles:</h2> <ul> <li>xml</li> <li>java and XML</li> </ul> <h2>book authors:</h2> <ul> <li>gregory Brill</li> <li>brett McLaughlin</li> </ul> </body> </html> Blue text is data extracted from the XML document Brown text is our HTML template We don t necessarily know how much data we will have 57

58 XSL outline <?xml version="1.0" encoding="iso "?> <xsl:stylesheet version="1.0" xmlns:xsl=" <xsl:template match="/"> <html>... </html> </xsl:template> </xsl:stylesheet> 58

59 Selecting titles and authors <h2>book titles:</h2> <ul> <xsl:for-each select="//book"> <li> <xsl:value-of select="title"/> </li> </xsl:for-each> </ul> <h2>book authors:</h2>...same thing, replacing title with author Notice the xsl:for-each loop Notice that XSL can rearrange the data; the HTML result can present information in a different order than the XML 59

60 All of books.xml <?xml version="1.0"?> <?xml-stylesheet type="text/xsl" href="books.xsl"?> <library> <book> <title>xml</title> <author>gregory Brill</author> </book> <book> <title>java and XML</title> <author>brett McLaughlin</author> </book> </library > Note: if you do View Source, this is what you will see, not the resultant HTML 60

61 All of books.xsl <?xml version="1.0" encoding="iso "?> <xsl:stylesheet version="1.0" xmlns:xsl=" XSL/Transform"> <xsl:template match="/"> <html> <head> <title>book Titles and Authors</title> </head> <body> <h2>book titles:</h2> <ul> <xsl:for-each select="//book"> <li> <xsl:value-of select="title"/> </li> </xsl:for-each> </ul> <h2>book authors:</h2> <ul> <xsl:for-each select="//book"> <li> <xsl:value-of select="author"/> </li> </xsl:for-each> </ul> </body> </html> </xsl:template> </xsl:stylesheet> 61

62 How to use it In a modern browser, you can just open the XML file Older browsers will ignore the XSL and just show you the XML contents as continuous text You can use a program such as Xalan, MSXML, or Saxon to create the HTML as a file This can be done on the server side, so that all the client side browser sees is plain HTML The server can create the HTML dynamically from the information currently in XML 62

63 Another Example of XSL Simple.xml Simple.xsl Simplexsl.xml Spring

64 Part IV: XML supported in SQL Server 64

65 XML 数据类型 用户可以将 XML 架构的集合与 XML 类型的变量 参数或列关联起来 在这种情况下,XML 数据类型实例称为 类型化 的 XML 实例, 否则称为 非类型化 的 XML 实例 虽然在 SQL Server 2008 中可以像其他数据类型一样使用 XML 数据类型, 但是使用时还是存在了一些限制, 如下所示 : XML 数据类型实例所占据的存储空间大小不能超过 2 GB; XML 列不能指定为主键或外键的一部分 ; 不能用做 sql_variant 实例的子类型 ; 不支持转换或转换为 text 或 ntext, 请改用 varchar(max) 或 nvarchar(max); 不能用在 GROUP BY 语句中 ; 不能用做除 ISNULL COALESCE 和 DATALENGTH 之外的系统标量函数的参数 ;

66 例 1 在 PXSCJ 数据库中创建一个表 Xmltable, 表中包含两列 :Name 和 Content, 分别存储 XML 文件名和 XML 文件的内容 ; 定义一个 XML 类型的变量并赋值 创建表 Xmltable 的 T-SQL 语句, 如下所示 : USE PXSCJ GO CREATE TABLE Xmltable ( Name char(20) NOT NULL PRIMARY KEY, Content xml NULL, ) 定义 XML 类型变量的 T-SQL 语句, 如下所示 : xml ntent></xmldata>'

67 SQL Server 2008 中导入 XML 数据 ( 一 ) 导入 XML 数据的方法一般有两种 1. 使用 INSERT 语句直接插入可以使用 INSERT 语句将 XML 数据以字符串形式直接插入 XML 类型列中 例 10.2 向例 10.1 新建的表 Xmltable 中插入一行包含 XML 数据的记录, 示例数据为之前定义的 note.xml 文件的内容 INSERT INTO Xmltable VALUES('note.xml', '<note><to>wang</to><from age="20">zhang</from> <heading>reminder</heading><body>don&apos;t forget me this weekend!</body></note>')

68 2. 使用行集函数 OPENROWSET 语句 当 XML 文件的内容很多时, 直接插入的方式显然不太合适 这时可以使用行集函数 OPENROWSET 来完成 OPENROWSET 函数返回一个表, 可以在查询的 FROM 子句中像引用表名那样引用 OPENROWSET 函数 将 OPENROWSET 函数返回的内容用做 INSERT 或 MERGE 语句的源表, 就可以将数据文件中的数据导入到 SQL Server 表中 OPENROWSET 函数的语法格式 : OPENROWSET ( BULK 'data_file', { FORMATFILE = 'format_file_path' [ <bulk_options> ] SINGLE_BLOB SINGLE_CLOB SINGLE_NCLOB } )

69 与 SELECT 一起使用的 FROM 子句可以调用 OPENROWSET(BULK...) 而非表名, 同时可以实现完整的 SELECT 功能 带有 BULK 选项的 OPENROWSET 函数在 FROM 子句中需要使用 AS 子句指定一个别名 也可以指定列别名, 如果未指定列别名列表, 则格式化文件必须具有列名, 指定列别名会覆盖格式化文件中的列名, 例如, SELECT FROM OPENROWSET(BULK...) AS table_alias SELECT FROM OPENROWSET(BULK...) AS table_alias(column_alias,...n) 例 3 假设 note.xml 文件保存在 D 盘根目录下, 使用 OPENROWSET 函数将该文件导入到数据表 Xmltable 中 插入数据使用如下语句 : INSERT INTO Xmltable(name, content) SELECT 'note2.xml' AS name, * FROM OPENROWSET(BULK 'D:\note.xml', SINGLE_BLOB) AS note

70 XML 数据插入后可以使用 SELECT 语句查看插入了哪些数据 : SELECT * FROM Xmltable 结果如图 11 所示

71 另外,OPENROWSET 函数还可以用于插入图片文件 文本文件 Word 文件 Excel 文件等内容 这里以插入图片文件为例, 具体的操作步骤如下 (1) 建立测试表 USE PXSCJ GO CREATE TABLE Test ( TestID int IDENTITY(1,1), BLOBName varchar(50), BLOBData varbinary(max) ) (2) 使用 OPENROWSET 函数将图片文件导入数据库表字段 INSERT INTO Test(BLOBName, BLOBData) SELECT 'picture', BulkColumn FROM OPENROWSET(Bulk 'D:\picture.jpg', SINGLE_BLOB) AS BLOB

72 (3) 查询导入数据若上述脚本执行成功, 则可以通过下述查询语句来查询表 BLOBTest 中插入的数据 : SELECT * FROM Test 图 10.2 查询图片数据

73 Xquery in SQL2008 XML 数据类型方法 SQL Server 2008 系统提供了一些内置的用于 XML 数据类型的方法 由于 XML 数 据是分层次的, 具有完整的结构和元数据, 所以在查询 XML 实例时与普通数据类型不同 可以使用 XML 数据类型方法查询存储在 XML 类型的变量或列中的 XML 实例 常用的 XML 数据类型方法有以下几种 (1)query() 方法 语法格式 : query ('XQuery') 该方法只有一个参数 XQuery,XQuery 为一个字符串, 用于指定查询 XML 实例中的 XML 节点 ( 如元素 属性 ) 的 XQuery 表达式 query() 方法返回一个 XML 类型的结果

74 例 4 声明一个 XML 变量并将有关学生信息的 XML 数据分配给它, 再使用 query() 方法对文档指定 XQuery 来查询 <student> 子元素 xml <school> <class> <student> <name> 王林 </name> <sex> 男 </sex> <age>20</age> </student> <student> <name> 何丽 </name> <sex> 女 </sex> <age>21</age> </student> </class> </school>' AS 学生信息

75 执行结果如图所示 XQuery 的基本用法 (2)value() 方法 语法格式 : value (XQuery, SQLType) value() 方法对 XML 执行 XQuery 查询, 并返回 SQL 类型的标量值 通常, 可以使用此方法从 XML 类型列 参数或变量内存储的 XML 实例中提取值 这样就可以指定将 XML 数据与非 XML 列中的数据进行合并或比较的 SELECT 查询了 XQuery:XQuery 表达式, 一个字符串文字, 从 XML 实例内部检索数据 XQuery 必须最多返回一个值, 否则将返回错误 SQLType: 要返回的首选 SQL 数据类型,value() 方法的返回类型要与 SQLType 参数匹配

76 例 5 使用 value() 方法从 XML 数据中查询出元素的属性值, 并赋给 char 变量 xml char(6) <school> <class><student number="081101"> <name> 王林 </name> <sex> 男 </sex> <age>20</age> </student> <student number="081102"> <name> 何丽 </name> <sex> 女 </sex> <age>21</age> </student></class> </school>' AS 学号

77 执行结果如图所示 value() 方法的使用 (3)exist() 方法 语法格式 : exist (XQuery) exist() 方法返回一个 位 值, 表示下列条件之一 1, 表示 True( 如果查询中的 XQuery 表达式返回一个非空结果 ), 即它至少返回一个 XML 节点 0, 表示 False( 如果它返回一个空结果 ) NULL( 如果执行查询的 XML 数据类型实例包含 NULL)

78 例 16 使用 exist() 方法判断一个 XML 变量中是否存在某个属性 xml '<student name=" 王林 "></student>' SELECT AS 位值执行结果如图 10.5 所示 exist() 方法的使用

79 (4)modify() 方法 语法格式 : modify (XML_DML) 使用该方法可以修改 XML 文档的内容, 也可以修改 XML 类型变量或列的内容等 XML_DML 参数是 XML 数据操作语言 (DML) 中的字符串, 使用 XML DML 语句可以在 XML 数据中插入 更新或删除节点 modify() 方法只能在 UPDATE 语句的 SET 子句中使用 XML 数据修改语言 (XML DML) 是对 XQuery 语言的扩展, 使 XQuery 语言能够进行数据操作 (DML) XML DML 将下列区分大小写的关键字添加到 XQuery 中 :insert( 插入 ) delete ( 删除 ) replace value of( 替换 ) XML DML 中 insert 关键字的功能是将一个或多个节点作为 XML 实例中节点的子节点或同级节点插入 XML 实例中 语法格式如下 : insert Expression1 {{as first as last} into after before}expression2

80 例.7 使用 XML DML 语句在一段 XML 数据中一个节点的后面添加一个节点 xml 王林 </name><sex> 男 </sex><age>20</age></student>' AS 插入节点前数据 <birthday> </birthday> after (/student/sex)[1]') 插入节点后数据执行结果如图所示 图 10.6 插入节点

81 XML DML 语句的 delete 关键字的功能是删除 XML 实例中的节点 语法格式如下 : delete Expression 表达式 Expression 不能是根节点 如果表达式返回空序列, 则不进行删除, 不返回错误 例 8 删除 XML 类型变量中的一个节点 xml '<student><name> 王林 </name><sex> 男 </sex><age>20</age></student>' AS 删除节点前数据 (/student/age)[1]') 删除节点后数据执行结果如图所示 图 10.7 删除节点

82 XML DML 语句的 replace value of 关键字的功能是在 XML 文档中更新节点的值 语法格式如下 : replace value of Expression1 with Expression2 Expression1 标识其值要更新的节点, 它必须仅标识一个单个节点 Expression2 用于指定节点的新值 例 9 将学生信息的 XML 数据中的 name 节点的属性值 使用 来代替 xml '<student><name number="081101"> 王林 </name><sex> 男 </sex><age>20</age> </student>' AS 更新节点前数据 value of (/student/name/@number)[1] with "091101" ') 更新节点后数据

83 执行结果如图所示 更新节点的值 (5)nodes() 方法 nodes() 方法可以将 XML 实例拆分成关系数据 nodes() 方法的结果是一个包含原始 XML 实例的逻辑副本的行集 在这些逻辑副本中, 每个行示例的上下文节点都被设置成由查询表达式标识的节点之一 这样, 后续的查询可以浏览与这些上下文节点相关的节点 语法格式 : nodes (XQuery) as Table(Column) XQuery 参数是一个字符串形式的 XQuery 表达式 如果查询表达式构造节点, 这些已构造的节点将在结果行集中显示 Table(Column) 用于指定结果行集的表名称和列名称

84 例 10 使用 nodes() 方法查找并列的 <student> 节点 xml <student number="081101"> <name> 王林 </name> <sex> 男 </sex> <age>20</age> </student> <student number="081102"> <name> 王燕 </name> <sex> 女 </sex> <age>21</age> </student> </class>' SELECT T.a.query('.') AS 结果 /class/student ) T(a)

85 执行结果如图所示 图 10.9 nodes() 方法的使用

86 3.XQuery 查询 SQL Server 2008 支持的 XQuery 基本语法中除了能够使用 Xpath 路径表达式进行查询外, 还包含一个通用标准格式 : FLWOR 表达式 FLWOR 是 For,Let,Where,Order by, Return 的缩写 以下示例说明了 FLWOR 的用法 ( 假设 book 元素是根元素 ): for $x in doc("note.xml")/book/note let $y :=/book/note/to where $x/number<20 order by $x/brand return $x/brand

87 例 11 查询 xml 文档中 age 元素小于 20 的 name 元素的数据 xml <student number="081101"> <name> 王林 </name><sex> 男 </sex><age>20</age> </student> <student number="081102"> <name> 王燕 </name><sex> 女 </sex><age>19</age> </student> <student number="081103"> <name> 程明 </name><sex> 男 </sex><age>18</age> </student> </class>' 执行结果如图所示 查询 age 元素小于 20 的 XML 数据

88 例 12 使用 FLWOR 表达式查询 XML 数据 XML ProductModelID="1" ProductModelName="SomeBike" > <Location LocationID="L1" > <Step>Manu step 1 at Loc 1</Step> <Step>Manu step 2 at Loc 1</Step> <Step>Manu step 3 at Loc 1</Step> </Location> <Location LocationID="L2" > <Step>Manu step 1 at Loc 2</Step> <Step>Manu step 2 at Loc 2</Step> <Step>Manu step 3 at Loc 2</Step> </Location> </ManuInstructions>' 'for $step in /ManuInstructions/Location[1]/Step return string($step) ' )

89 执行结果如图 11 所示 图 例 中 FLWOR 表达式的使用

90 FOR XML 子句的使用 在 SELECT 语句中使用 FOR XML 子句可以将 SQL Server 2008 中表的数据检索出来并自动生成 XML 格式 语法格式 : FOR XML { { RAW [ ( 'ElementName' ) ] AUTO } [ <CommonDirectives> [, { XMLDATA XMLSCHEMA [ ( 'TargetNameSpaceURI' ) ] } ] [, ELEMENTS [ XSINIL ABSENT ] ] EXPLICIT [ <CommonDirectives> [, XMLDATA ] ] PATH [ ( 'ElementName' ) ] [<CommonDirectives> [, ELEMENTS [ XSINIL ABSENT ] ] ] } <CommonDirectives> ::= [, BINARY BASE64 ] [, TYPE ] [, ROOT [ ( 'RootName' ) ]]

91 1.FOR XML RAW FOR XML RAW 是 FOR XML 查询模式中最简单的一种 它获得查询结果并将结果集内的每一行转换为以一般标识符 <row /> 作为元素标记的 XML 元素 在默认情况下,RAW 模式下元素名称为 <row>, 结果集中非空的列值将映射为 <row> 元素的一个属性, 即 <row> 元素的属性名称为列名或列别名 如果需要定义别的元素名称, 则可以使用 ElementName 来指定 RAW 模式下可以使用以下选项 BINARY BASE64: 指定查询返回二进制 base64 编码格式的二进制数据 TYPE: 指定查询以 XML 类型返回结果 ROOT [('RootName')]: 指定将一个根元素添加到结果 XML 中 可以指定要使用 RootName 生成的根元素名称, 如果不指定则默认为 <root> XMLDATA: 返回内联 XDR 架构, 但不将根元素添加到结果中 后续的 SQL Server 版本将删除该选项, 这里不推荐使用 XMLSCHEMA [('TargetNameSpaceURI')]: 返回内联 XSD 架构 如果指定该选项 ( 用于返回架构中指定的命名空间 ), 则可以选择指定目标命名空间 URI ELEMENTS: 指定列作为子元素返回 其中,ELEMENTS XSINIL 指定为空列值创建其 xsi:nil 属性设置为 True 的元素 ELEMENTS ABSENT 指示对于空列值, 将不在 XML 结果中添加对应的 XML 元素

92 例 13 查询 PXSCJ 数据库的 XSB 表中总学分大于 50 的学生信息, 并将结果返回为 XML 元素 USE PXSCJ GO SELECT 学号, 姓名, 性别, 出生时间 FROM XSB WHERE 总学分 >50 FOR XML RAW 执行上述语句, 查看结果窗口中的结果, 如图所示 图 使用 RAW 模式将查询结果生成为 XML 元素

93 例 14 使用 RAW 模式指定以 XML 类型返回结果 XML SELECT * FROM KCB FOR XML RAW('course'),TYPE) 执行结果如图 13 所示 图 返回 XML 类型的结果

94 2.FOR XML AUTO FOR XML AUTO 模式也返回 XML 文档, 该模式将查询结果返回为嵌套的 XML 树形式 不过和 RAW 模式不同的是, 在 AUTO 模式中使用表名作为元素名称,FROM 子句中每个在 SELECT 子句中至少列出一次的表都被表示为一个 XML 元素, 使用列名作为属性名称 AUTO 模式中使用的选项命令与 RAW 模式的相同 例 15 使用 AUTO 模式检索出学生的学号 课程名和成绩信息 SELECT CJB. 学号, 课程名, 成绩 FROM CJB JOIN KCB ON CJB. 课程号 =KCB. 课程号 FOR XML AUTO

95 执行结果如图 14 所示 图 使用 AUTO 模式生成 XML 元素

96 3.FOR XML EXPLICIT 使用 RAW 和 AUTO 模式都不能很好地控制从查询结果生成的 XML 的形状, 而 FOR XML EXPLICIT 模式允许用户显式地定义结果 XML 树的形状 EXPLICIT 模式产生独立于表的具有任意树形的层次结构 如果直接在 SELECT 语句中使用 FOR XML EXPLICIT 子句, 会出现错误 要正确使用 FOR XML EXPLICIT 模式, 在 SELECT 关键字后必须增加两个数据列 : Tag 和 Parent 第一列名称为 Tag,Tag 列必须提供当前元素的标记号 ( 整数类型 ), 查询必须为从行集构造的每个元素提供唯一标记号 第二列名称为 Parent,Parent 列必须提供父元素的标记号, 如果父元素为根元素, 则可以使用 NULL 或 0 这样,Tag 和 Parent 列将提供层次结构信息 例如,Tag 列的值为 1,Parent 列的值为 NULL, 则相应的元素将作为根元素 Tag 值为 2, Parent 值为 1, 则标记号为 2 的数据列的一组元素将作为根元素的子元素添加 除了在 SELECT 子句后包含 Tag 和 Parent 列外, 还应该至少包含一个数据列 格式如下 : [ ElementName!TagNumber!AttributeName!Directive ]

97 例 16 使用 EXPLICIT 模式检索出学号 姓名 总学分 3 列的信息 SELECT DISTINCT 1 AS Tag, NULL AS Parent, XSB. 学号 AS [ 学生信息!1! 学号 ], 姓名 AS [ 学生信息!1! 姓名 ], NULL AS [ 成绩信息!2! 成绩 ] FROM XSB, CJB WHERE XSB. 学号 =CJB. 学号 UNION ALL SELECT 2 AS Tag, 1 AS Parent, XSB. 学号, 姓名, 成绩 FROM XSB, CJB WHERE XSB. 学号 =CJB. 学号 ORDER BY [ 学生信息!1! 学号 ],[ 成绩信息!2! 成绩 ] FOR XML EXPLICIT

98 上述语句中使用 UNION ALL 组合了两个查询, 第一个查询将 < 学生信息 > 设为父元素, 并设置属性 学号 和 姓名, 将值 2 赋给 < 成绩信息 > 元素的 Tag, 将值 1 赋给 Parent, 从而将 < 成绩信息 > 设为 < 学生信息 > 的子元素 应用 FOR XML EXPLICIT, 并指定所需的 ORDER BY 子句 必须先按学号 再按成绩对行集进行排序, 以便先显示成绩中的 NULL 值 执行上述语句后单击显示的结果, 显示如图所示的窗口 使用 EXPLICIT 模式生成 XML 元素

99 4.FOR XML PATH FOR XML PATH 模式提供了一种更简单的方法来混合元素和属性 PATH 模式还是一种用于引入附加嵌套来表示复杂属性的较简单的方法 使用 PATH 模式可以为使用 EXPLICIT 指令所编写的查询提供更简单的代替方案 语法格式 : FOR XML PATH [ ( 'ElementName' ) ] [<CommonDirectives> [, ELEMENTS [ XSINIL ABSENT ] ] ] 在 PATH 模式中, 列名或列别名被作为 XPath 表达式来处理 这些表达式指明了如何将值映射到 XML 每个 XPath 表达式都是一个相对 XPath, 它提供了项类型 ( 如属性 元素和标量值 ) 以及将相对于行元素而生成的节点的名称和层次结构 如果查询生成的结果集中包含了列名, 则指定的列名将作为 <row> 元素的子元素, 相应的列值将作为元素的内容 例如, SELECT * FROM XSB WHERE 学号 = '081101' FOR XML PATH

100 上述语句的执行结果如下 : <row> < 学号 >081101</ 学号 > < 姓名 > 王林 </ 姓名 > < 性别 >1</ 性别 > < 出生时间 > </ 出生时间 > < 专业 > 计算机 </ 专业 > < 总学分 >60</ 总学分 > </row> 符号开始并且不包含 / 标记, 则将创建包含相应列值的 <row> 元素的属性 例如, SELECT 学号 AS '@ 编号 ', 姓名, 出生时间, 总学分 FROM XSB WHERE 学号 = '081101' FOR XML PATH

101 上述语句的执行结果如下 : <row 编号 ="081101"> < 姓名 > 王林 </ 姓名 > < 出生时间 > </ 出生时间 > < 总学分 >60</ 总学分 > </row> 使用 / 标记可以指定元素的层次, 例如, 学生信息 / 学号 可以指定 < 学生信息 > 为父元素,< 学号 > 为子元素 例 17 查找总学分大于 50 的学生,<row> 元素更名为 < 学生管理 >, 备注 作为 学生管理 的属性 学生管理 元素下是 学生信息 元素, 学号 姓名 和 总学分 作为 学生信息 的子元素 SELECT 备注 AS '@ 备注 ', 学号 AS ' 学生信息 / 学号 ', 姓名 AS ' 学生信息 / 姓名 ', 总学分 AS ' 学生信息 / 总学分 ' FROM XSB WHERE 总学分 >50 FOR XML PATH(' 学生管理 ')

102 执行结果如图所示 图 使用 PATH 模式生成 XML 元素

103 Part II : Parsing XML documents into Programming languages Parsing XML in Java

104 Outline Introduction to XML Parsers Tree-based Parsers and Event-base Parsers DOM DOM4J Spring

105 Introduction to parsers The word parser comes from compilers In a compiler, a parser is the module that reads and interprets the programming language.

106 Introduction to Parsers In XML, a parser is a software component that sits between the application and the XML files.

107 Introduction to parsers It reads a text-formatted XML file or stream and converts it to a document to be manipulated by the application.

108 Well-formedness and validity Well-formed documents respect the syntactic rules. Valid documents not only respect the syntactic rules but also conform to a structure as described in a DTD.

109 Validating vs. Non-validating parsers Both parsers enforce syntactic rules only validating parsers know how to validate documents against their DTDs

110 Tree-based parsers These map an XML document into an internal tree structure, and then allow an application to navigate that tree. Ideal for browsers, editors, XSL processors.

111 Operation of a Tree-based Parser XML DTD Document Tree Valid Tree-Based Parser Application Logic XML Document Internet Technologies

112 Event-based An event-based API reports parsing events (such as the start and end of elements) directly to the application through callbacks. The application implements handlers to deal with the different events

113 <?xml version="1.0"?> <doc> <para>hello, world!</para> </doc> start document start element: doc start element: para characters: Hello, world! end element: para end element: doc end document Spring

114 Event-based vs. Tree-based parsers Tree-based parsers deal generally small documents. Event-based parsers deal generally used for large documents.

115 Event-based vs. Tree-based parsers Tree-based parsers are generally easier to implement. Event-based parsers are more complex and give hard time for the programmer

116 What is DOM? The Document Object Model (DOM) is an application programming interface (API) for HTML and XML documents. It defines the logical structure of documents and the way a document is accessed and manipulated

117 Properties of DOM Programmers can build documents, navigate their structure, and add, modify, or delete elements and content. Provides a standard programming interface that can be used in a wide variety of environments and applications. structural isomorphism.

118 DOM Identifies The interfaces and objects used to represent and manipulate a document. The semantics of these interfaces and objects - including both behavior and attributes. The relationships and collaborations among these interfaces and objects.

119 What DOM is not!! The Document Object Model is not a binary specification. The Document Object Model is not a way of persisting objects to XML or HTML. The Document Object Model does not define "the true inner semantics" of XML or HTML.

120 What DOM is not!! The Document Object Model is not a set of data structures, it is an object model that specifies interfaces. The Document Object Model is not a competitor to the Component Object Model (COM).

121 <?xml version="1.0"?> <products> <product> <name>xml Editor</name> <price>499.00</price> </product> <product> <name>dtd Editor</name> <price>199.00</price> </product> <product> <name>xml Book</name> <price>19.99</price> </product> <product> <name>xml Training</name> <price>699.00</price> </product> </products> DOM into work

122 DOM into work

123 dom4j An Open Source XML framework for Java. Allows you to read, write, navigate, create and modify XML documents. Integrates with DOM and SAX. Full XPath support. XSLT Support.

124 Download and Use Go to: Go to and download the latest release (current = 1.4). Unzip. Don t forget the classpath. When working in an IDE, don t forget to add the log4j.jar library. Javadoc: Quick start guide:

125 Opening an XML Document import org.dom4j.*; public class TestDom4j { public Document parse(string id) throws DocumentException{ SAXReader reader = new SAXReader(); Document document = reader.read(id); return document; } } We can read: file, URL, InputStream, String

126 Example XML File <?xml version="1.0" encoding="utf-8"?> <salesdata xmlns:xsi=" xsi:nonamespaceschemalocation="c:\documents and Settings\eran\ My Documents\Academic\Courses\XML\xpath_ass_schema.xsd"> <year> <theyear>1997</theyear> <region><name>central</name><sales unit="millions">34</sales></region> <region><name>east</name><sales unit="millions">34</sales></region> <region><name>west</name><sales unit="millions">32</sales></region> </year> <year> <theyear>1998</theyear> <region><name>east</name><sales unit="millions">35</sales></region> region><name>west</name><sales unit="millions">42</sales> </region> </year> </salesdata>

127 Accessing XML Elements Accessing root element Retrieving child elements public void dump(document document) throws DocumentException{ Element root = document.getrootelement(); for (Iterator i = root.elementiterator(); i.hasnext(); ) { Element element = (Element)i.next(); System.out.println(element.getQualifiedName()); System.out.println(element.getTextTrim()); System.out.println(element.elementText("theyear")); } } Retrieving element name Retrieving element text Retrieving the text of the child element theyear

128 Accessing XML Elements cont d What will be the output of dump()? year 1997 year 1998 Why?

129 Accessing XML Elements Recursively public void go(element element, int depth){ for (int d=0; d<depth; d++){ System.out.print(" "); } System.out.print(element.getQualifiedName()); System.out.println(" "+ element.gettexttrim()); for (Iterator i = element.elementiterator(); i.hasnext(); ) { Element son = (Element)i.next(); go(son, depth+1); } } What will be the output?

130 Accessing Recursively cont d salesdata year theyear 1997 region name central sales 34 region name east sales 34 region name west sales 32 year theyear 1998 region name east sales 35 region name west sales 42 The whole XML tree, element names + values

131 Creating an XML document public Document createdocument() { Document document = DocumentHelper.createDocument(); Element root = document.addelement("phonebook"); Element address1 = root.addelement("address").addattribute("name", "Yuval").addAttribute("category", "family").addtext("ehud 3, Jerusalem"); Creating root element } Element address2 = root.addelement("address").addattribute("name", "Ortal").addAttribute("category", "friends").addtext("kibbutz Givaat Haim"); return document; What will we get when running go()? Adding elements

132 Creating an XML document cont d phonebook address Ehud 3, Jerusalem address Kibbutz Givaat Haim FileWriter out = new FileWriter("addresses.xml"); XMLWriter output = new XMLWriter(out); output.write(document); output.close(); XML tree structure of the new document Writing the XML document to a file

133 Client Program public static void main(string[] args) { Foo foo = new Foo(); try{ Opening the file Dumping and printed recursively } Document doc = foo.parse("c\\sales.xml"); foo.dump(doc); foo.go(doc.getrootelement(), 0); foo.xpath(doc); Document newdoc = foo.createdocument(); foo.go(newdoc.getrootelement(), 0); FileWriter out = new FileWriter( "C:\\addresses.xml" ); newdoc.write(out); } catch (Exception E){ System.out.println(E); } Creating a new document

134 Xpath - Introduction XML Path Language. XPath is a language for addressing parts of an XML document. Enables node locating and retrieving, very much like directory accessing in file systems. Limited (but not bad) filtering and querying abilities. Retrieved the actual PCDATA or node sets

135 Xpath Simple Path Selection Xpath Expression: /salesdata/year/theyear <theyear>1997</theyear> <theyear>1998</theyear> / signifies child-of /salesdata/year[2]/theyear <theyear>1998</theyear> Filtering the level getting only the second year element

136 Xpath Conditions /salesdata/year/region[sales > 34] <region> <name>east</name> <sales unit="millions">35</sales> </region> <region> <name>west</name> <sales unit="millions">42</sales> </region> Going down to region, and filtering according to the sales element /salesdata/year/region[sales >?

137 Xpath Traveling Up the Tree /salesdata/year/region[sales > 34]/parent::year/theyear <theyear>1998</theyear> Going up the XML tree (and then down again)

138 Xpath Traveling Down Fast /descendant::sales <sales unit="millions">34</sales> <sales unit="millions">34</sales> <sales unit="millions">32</sales> <sales unit="millions">35</sales> <sales unit="millions">42</sales> Going all the way down, until the sales element./*/sales Same same

139 Xpath Advanced Queries The years (text nodes) for which sales data exists: Logical operators //region[name=\"west\" and sales > year /theyear Accessing attributes ancestor is same as parent but goes all the way up to year <theyear>1998</theyear>

140 Xpath Advanced Queries (cont d) The years (text nodes) in which the west region sales were higher than the east region sales; sales may be expressed in thousands or in millions: illions'*1000 > lions *1000

141 Xpath in dom4j Xpath queries can be used in dom4j: public void xpath(document document) { XPath xpathselector = DocumentHelper.createXPath("/salesdata/year/theyear"); List results = xpathselector.selectnodes(document); for (Iterator iter = results.iterator(); iter.hasnext(); ) { Element element = (Element) iter.next(); } } System.out.println(element.asXML()); Xpath expression is fed to the xpathselector The nodes are selec from the document, according to the xpa query

142 Links For more information, see The current draft of the spec itself A list of implementations Summaries and links to all sorts of XQuery resources Software AG s XML server implementing XQuery Tutorials, home of Bumblebee Saxon is most highly regarded open source XQuery implementation

Microsoft PowerPoint - ch6 [相容模式]

Microsoft PowerPoint - ch6 [相容模式] UiBinder wzyang@asia.edu.tw UiBinder Java GWT UiBinder XML UI i18n (widget) 1 2 UiBinder HelloWidget.ui.xml: UI HelloWidgetBinder HelloWidget.java XML UI Owner class ( Composite ) UI XML UiBinder: Owner

More information

Knowledge and its Place in Nature by Hilary Kornblith

Knowledge and its Place in Nature by Hilary Kornblith Deduction by Daniel Bonevac Chapter 7 Quantified Natural Deduction Quantified Natural Deduction As with truth trees, natural deduction in Q depends on the addition of some new rules to handle the quantifiers.

More information

Windows XP

Windows XP Windows XP What is Windows XP Windows is an Operating System An Operating System is the program that controls the hardware of your computer, and gives you an interface that allows you and other programs

More information

國家圖書館典藏電子全文

國家圖書館典藏電子全文 EAI EAI Middleware EAI 3.1 EAI EAI Client/Server Internet,www,Jav a 3.1 EAI Message Brokers -Data Transformation Business Rule XML XML 37 3.1 XML XML XML EAI XML 1. XML XML Java Script VB Script Active

More information

2/80 2

2/80 2 2/80 2 3/80 3 DSP2400 is a high performance Digital Signal Processor (DSP) designed and developed by author s laboratory. It is designed for multimedia and wireless application. To develop application

More information

數位圖書館/博物館相關標準 2

數位圖書館/博物館相關標準 2 數 2 立 XML (Extensibility) XML 行 (Self-description) (Structure) XML (Validation) XML DTD 行 XML 列 XML-Language SGML without tears Self-describing Documents Well-formed and Valid Documents XML-Link Power

More information

2 SGML, XML Document Traditional WYSIWYG Document Content Presentation Content Presentation Structure Structure? XML/SGML 3 2 SGML SGML Standard Gener

2 SGML, XML Document Traditional WYSIWYG Document Content Presentation Content Presentation Structure Structure? XML/SGML 3 2 SGML SGML Standard Gener SGML HTML XML 1 SGML XML Extensible Markup Language XML SGML Standard Generalized Markup Language, ISO 8879, SGML HTML ( Hypertext Markup Language HTML) (Markup Language) (Tag) < > Markup (ISO) 1986 SGML

More information

Microsoft Word - template.doc

Microsoft Word - template.doc HGC efax Service User Guide I. Getting Started Page 1 II. Fax Forward Page 2 4 III. Web Viewing Page 5 7 IV. General Management Page 8 12 V. Help Desk Page 13 VI. Logout Page 13 Page 0 I. Getting Started

More information

<4D6963726F736F667420576F7264202D2032303130C4EAC0EDB9A4C0E04142BCB6D4C4B6C1C5D0B6CFC0FDCCE2BEABD1A15F325F2E646F63>

<4D6963726F736F667420576F7264202D2032303130C4EAC0EDB9A4C0E04142BCB6D4C4B6C1C5D0B6CFC0FDCCE2BEABD1A15F325F2E646F63> 2010 年 理 工 类 AB 级 阅 读 判 断 例 题 精 选 (2) Computer mouse How does the mouse work? We have to start at the bottom, so think upside down for now. It all starts with mouse ball. As the mouse ball in the bottom

More information

Microsoft Word - TIP006SCH Uni-edit Writing Tip - Presentperfecttenseandpasttenseinyourintroduction readytopublish

Microsoft Word - TIP006SCH Uni-edit Writing Tip - Presentperfecttenseandpasttenseinyourintroduction readytopublish 我 难 度 : 高 级 对 们 现 不 在 知 仍 道 有 听 影 过 响 多 少 那 次 么 : 研 英 究 过 文 论 去 写 文 时 作 的 表 技 引 示 巧 言 事 : 部 情 引 分 发 言 该 生 使 在 中 用 过 去, 而 现 在 完 成 时 仅 表 示 事 情 发 生 在 过 去, 并 的 哪 现 种 在 时 完 态 成 呢 时? 和 难 过 道 去 不 时 相 关? 是 所 有

More information

4. 每 组 学 生 将 写 有 习 语 和 含 义 的 两 组 卡 片 分 别 洗 牌, 将 顺 序 打 乱, 然 后 将 两 组 卡 片 反 面 朝 上 置 于 课 桌 上 5. 学 生 依 次 从 两 组 卡 片 中 各 抽 取 一 张, 展 示 给 小 组 成 员, 并 大 声 朗 读 卡

4. 每 组 学 生 将 写 有 习 语 和 含 义 的 两 组 卡 片 分 别 洗 牌, 将 顺 序 打 乱, 然 后 将 两 组 卡 片 反 面 朝 上 置 于 课 桌 上 5. 学 生 依 次 从 两 组 卡 片 中 各 抽 取 一 张, 展 示 给 小 组 成 员, 并 大 声 朗 读 卡 Tips of the Week 课 堂 上 的 英 语 习 语 教 学 ( 二 ) 2015-04-19 吴 倩 MarriottCHEI 大 家 好! 欢 迎 来 到 Tips of the Week! 这 周 我 想 和 老 师 们 分 享 另 外 两 个 课 堂 上 可 以 开 展 的 英 语 习 语 教 学 活 动 其 中 一 个 活 动 是 一 个 充 满 趣 味 的 游 戏, 另 外

More information

Oracle Database 10g: SQL (OCE) 的第一堂課

Oracle Database 10g: SQL (OCE) 的第一堂課 商 用 資 料 庫 的 第 一 堂 課 中 華 大 學 資 訊 管 理 系 助 理 教 授 李 之 中 http://www.chu.edu.tw/~leecc 甲 骨 文 俱 樂 部 @Taiwan Facebook 社 團 https://www.facebook.com/groups/365923576787041/ 2014/09/15 問 題 一 大 三 了, 你 為 什 麼 還 在 這

More information

epub83-1

epub83-1 C++Builder 1 C + + B u i l d e r C + + B u i l d e r C + + B u i l d e r C + + B u i l d e r 1.1 1.1.1 1-1 1. 1-1 1 2. 1-1 2 A c c e s s P a r a d o x Visual FoxPro 3. / C / S 2 C + + B u i l d e r / C

More information

XML/DTD (1) XML (Markup) SGML HTML XML XML XML 2004/7/ All Rights Reserved 2

XML/DTD (1) XML (Markup) SGML HTML XML XML XML 2004/7/ All Rights Reserved 2 XML/DTD (1) XML (Markup) SGML HTML XML XML XML 2004 All Rights Reserved 2 SGML Standard Generalized Markup Language ( ) XML Extensible Markup Language HTML HyperText Markup Language 2004 All Rights Reserved

More information

Microsoft PowerPoint - Performance Analysis of Video Streaming over LTE using.pptx

Microsoft PowerPoint - Performance Analysis of Video Streaming over LTE using.pptx ENSC 427 Communication Networks Spring 2016 Group #2 Project URL: http://www.sfu.ca/~rkieu/ensc427_project.html Amer, Zargham 301149920 Kieu, Ritchie 301149668 Xiao, Lei 301133381 1 Roadmap Introduction

More information

Microsoft PowerPoint - 05-SQL3-advanced.ppt

Microsoft PowerPoint - 05-SQL3-advanced.ppt SQL: Interactive Queries (2) Prof. Weining Zhang Cs.utsa.edu Aggregate Functions Functions that take a set of tuples and compute an aggregated value. Five standard functions: count, min, max, avg, sum

More information

SQL: Interactive Queries (2)

SQL: Interactive Queries (2) SQL: Interactive Queries (2) Prof. Weining Zhang Cs.utsa.edu Aggregate Functions Functions that take a set of tuples and compute an aggregated value. Five standard functions: count, min, max, avg, sum

More information

Fun Time (1) What happens in memory? 1 i n t i ; 2 s h o r t j ; 3 double k ; 4 char c = a ; 5 i = 3; j = 2; 6 k = i j ; H.-T. Lin (NTU CSIE) Referenc

Fun Time (1) What happens in memory? 1 i n t i ; 2 s h o r t j ; 3 double k ; 4 char c = a ; 5 i = 3; j = 2; 6 k = i j ; H.-T. Lin (NTU CSIE) Referenc References (Section 5.2) Hsuan-Tien Lin Deptartment of CSIE, NTU OOP Class, March 15-16, 2010 H.-T. Lin (NTU CSIE) References OOP 03/15-16/2010 0 / 22 Fun Time (1) What happens in memory? 1 i n t i ; 2

More information

Chn 116 Neh.d.01.nis

Chn 116 Neh.d.01.nis 31 尼 希 米 书 尼 希 米 的 祷 告 以 下 是 哈 迦 利 亚 的 儿 子 尼 希 米 所 1 说 的 话 亚 达 薛 西 王 朝 二 十 年 基 斯 流 月 *, 我 住 在 京 城 书 珊 城 里 2 我 的 兄 弟 哈 拿 尼 和 其 他 一 些 人 从 犹 大 来 到 书 珊 城 我 向 他 们 打 听 那 些 劫 后 幸 存 的 犹 太 人 家 族 和 耶 路 撒 冷 的 情 形

More information

untitled

untitled Co-integration and VECM Yi-Nung Yang CYCU, Taiwan May, 2012 不 列 1 Learning objectives Integrated variables Co-integration Vector Error correction model (VECM) Engle-Granger 2-step co-integration test Johansen

More information

Computer Architecture

Computer Architecture ECE 3120 Computer Systems Assembly Programming Manjeera Jeedigunta http://blogs.cae.tntech.edu/msjeedigun21 Email: msjeedigun21@tntech.edu Tel: 931-372-6181, Prescott Hall 120 Prev: Basic computer concepts

More information

Important Notice SUNPLUS TECHNOLOGY CO. reserves the right to change this documentation without prior notice. Information provided by SUNPLUS TECHNOLO

Important Notice SUNPLUS TECHNOLOGY CO. reserves the right to change this documentation without prior notice. Information provided by SUNPLUS TECHNOLO Car DVD New GUI IR Flow User Manual V0.1 Jan 25, 2008 19, Innovation First Road Science Park Hsin-Chu Taiwan 300 R.O.C. Tel: 886-3-578-6005 Fax: 886-3-578-4418 Web: www.sunplus.com Important Notice SUNPLUS

More information

Microsoft PowerPoint - STU_EC_Ch08.ppt

Microsoft PowerPoint - STU_EC_Ch08.ppt 樹德科技大學資訊工程系 Chapter 8: Counters Shi-Huang Chen Fall 2010 1 Outline Asynchronous Counter Operation Synchronous Counter Operation Up/Down Synchronous Counters Design of Synchronous Counters Cascaded Counters

More information

软件测试(TA07)第一学期考试

软件测试(TA07)第一学期考试 一 判 断 题 ( 每 题 1 分, 正 确 的, 错 误 的,20 道 ) 1. 软 件 测 试 按 照 测 试 过 程 分 类 为 黑 盒 白 盒 测 试 ( ) 2. 在 设 计 测 试 用 例 时, 应 包 括 合 理 的 输 入 条 件 和 不 合 理 的 输 入 条 件 ( ) 3. 集 成 测 试 计 划 在 需 求 分 析 阶 段 末 提 交 ( ) 4. 单 元 测 试 属 于 动

More information

Microsoft Word doc

Microsoft Word doc 中 考 英 语 科 考 试 标 准 及 试 卷 结 构 技 术 指 标 构 想 1 王 后 雄 童 祥 林 ( 华 中 师 范 大 学 考 试 研 究 院, 武 汉,430079, 湖 北 ) 提 要 : 本 文 从 结 构 模 式 内 容 要 素 能 力 要 素 题 型 要 素 难 度 要 素 分 数 要 素 时 限 要 素 等 方 面 细 致 分 析 了 中 考 英 语 科 试 卷 结 构 的

More information

Microsoft Word - ChineseSATII .doc

Microsoft Word - ChineseSATII .doc 中 文 SAT II 冯 瑶 一 什 么 是 SAT II 中 文 (SAT Subject Test in Chinese with Listening)? SAT Subject Test 是 美 国 大 学 理 事 会 (College Board) 为 美 国 高 中 生 举 办 的 全 国 性 专 科 标 准 测 试 考 生 的 成 绩 是 美 国 大 学 录 取 新 生 的 重 要 依

More information

Microsoft Word - (web)_F.1_Notes_&_Application_Form(Chi)(non-SPCCPS)_16-17.doc

Microsoft Word - (web)_F.1_Notes_&_Application_Form(Chi)(non-SPCCPS)_16-17.doc 聖 保 羅 男 女 中 學 學 年 中 一 入 學 申 請 申 請 須 知 申 請 程 序 : 請 將 下 列 文 件 交 回 本 校 ( 麥 當 勞 道 33 號 ( 請 以 A4 紙 張 雙 面 影 印, 並 用 魚 尾 夾 夾 起 : 填 妥 申 請 表 並 貼 上 近 照 小 學 五 年 級 上 下 學 期 成 績 表 影 印 本 課 外 活 動 表 現 及 服 務 的 證 明 文 件 及

More information

WWW PHP

WWW PHP WWW PHP 2003 1 2 function function_name (parameter 1, parameter 2, parameter n ) statement list function_name sin, Sin, SIN parameter 1, parameter 2, parameter n 0 1 1 PHP HTML 3 function strcat ($left,

More information

Microsoft Word - 第四組心得.doc

Microsoft Word - 第四組心得.doc 徐 婉 真 這 四 天 的 綠 島 人 權 體 驗 營 令 我 印 象 深 刻, 尤 其 第 三 天 晚 上 吳 豪 人 教 授 的 那 堂 課, 他 讓 我 聽 到 不 同 於 以 往 的 正 義 之 聲 轉 型 正 義, 透 過 他 幽 默 熱 情 的 語 調 激 起 了 我 對 政 治 的 興 趣, 願 意 在 未 來 多 關 心 社 會 多 了 解 政 治 第 一 天 抵 達 綠 島 不 久,

More information

BC04 Module_antenna__ doc

BC04 Module_antenna__ doc http://www.infobluetooth.com TEL:+86-23-68798999 Fax: +86-23-68889515 Page 1 of 10 http://www.infobluetooth.com TEL:+86-23-68798999 Fax: +86-23-68889515 Page 2 of 10 http://www.infobluetooth.com TEL:+86-23-68798999

More information

Microsoft Word - 11月電子報1130.doc

Microsoft Word - 11月電子報1130.doc 發 行 人 : 楊 進 成 出 刊 日 期 2008 年 12 月 1 日, 第 38 期 第 1 頁 / 共 16 頁 封 面 圖 話 來 來 來, 來 葳 格 ; 玩 玩 玩, 玩 數 學 在 11 月 17 到 21 日 這 5 天 裡 每 天 一 個 題 目, 孩 子 們 依 據 不 同 年 段, 尋 找 屬 於 自 己 的 解 答, 這 些 數 學 題 目 和 校 園 情 境 緊 緊 結

More information

6-1 Table Column Data Type Row Record 1. DBMS 2. DBMS MySQL Microsoft Access SQL Server Oracle 3. ODBC SQL 1. Structured Query Language 2. IBM

6-1 Table Column Data Type Row Record 1. DBMS 2. DBMS MySQL Microsoft Access SQL Server Oracle 3. ODBC SQL 1. Structured Query Language 2. IBM CHAPTER 6 SQL SQL SQL 6-1 Table Column Data Type Row Record 1. DBMS 2. DBMS MySQL Microsoft Access SQL Server Oracle 3. ODBC SQL 1. Structured Query Language 2. IBM 3. 1986 10 ANSI SQL ANSI X3. 135-1986

More information

<4D6963726F736F667420506F776572506F696E74202D20C8EDBCFEBCDCB9B9CAA6D1D0D0DEBDB2D7F92E707074>

<4D6963726F736F667420506F776572506F696E74202D20C8EDBCFEBCDCB9B9CAA6D1D0D0DEBDB2D7F92E707074> 软 件 架 构 师 研 修 讲 座 胡 协 刚 软 件 架 构 师 UML/RUP 专 家 szjinco@public.szptt.net.cn 中 国 软 件 架 构 师 网 东 软 培 训 中 心 小 故 事 : 七 人 分 粥 当 前 软 件 团 队 的 开 发 现 状 和 面 临 的 问 题 软 件 项 目 的 特 点 解 决 之 道 : 从 瀑 布 模 型 到 迭 代 模 型 解 决 项

More information

RUN_PC連載_12_.doc

RUN_PC連載_12_.doc PowerBuilder 8 (12) PowerBuilder 8.0 PowerBuilder PowerBuilder 8 PowerBuilder 8 / IDE PowerBuilder PowerBuilder 8.0 PowerBuilder PowerBuilder PowerBuilder PowerBuilder 8.0 PowerBuilder 6 PowerBuilder 7

More information

< F5FB77CB6BCBD672028B0B6A46AABE4B751A874A643295F5FB8D5C5AA28A668ADB6292E706466>

< F5FB77CB6BCBD672028B0B6A46AABE4B751A874A643295F5FB8D5C5AA28A668ADB6292E706466> A A A A A i A A A A A A A ii Introduction to the Chinese Editions of Great Ideas Penguin s Great Ideas series began publication in 2004. A somewhat smaller list is published in the USA and a related, even

More information

ENGG1410-F Tutorial 6

ENGG1410-F Tutorial 6 Jianwen Zhao Department of Computer Science and Engineering The Chinese University of Hong Kong 1/16 Problem 1. Matrix Diagonalization Diagonalize the following matrix: A = [ ] 1 2 4 3 2/16 Solution The

More information

( Version 0.4 ) 1

( Version 0.4 ) 1 ( Version 0.4 ) 1 3 3.... 3 3 5.... 9 10 12 Entities-Relationship Model. 13 14 15.. 17 2 ( ) version 0.3 Int TextVarchar byte byte byte 3 Id Int 20 Name Surname Varchar 20 Forename Varchar 20 Alternate

More information

Improved Preimage Attacks on AES-like Hash Functions: Applications to Whirlpool and Grøstl

Improved Preimage Attacks on AES-like Hash Functions: Applications to Whirlpool and Grøstl SKLOIS (Pseudo) Preimage Attack on Reduced-Round Grøstl Hash Function and Others Shuang Wu, Dengguo Feng, Wenling Wu, Jian Guo, Le Dong, Jian Zou March 20, 2012 Institute. of Software, Chinese Academy

More information

目 錄 實 施 計 畫 1 專 題 演 講 因 應 十 二 年 國 民 基 本 教 育 課 程 綱 要 學 校 本 位 課 程 的 整 體 布 局 A-1 推 動 十 二 年 國 民 基 本 教 育 課 程 綱 要 相 關 配 套 措 施 A-10 分 組 研 討 法 規 研 修 B-1 課 程 教

目 錄 實 施 計 畫 1 專 題 演 講 因 應 十 二 年 國 民 基 本 教 育 課 程 綱 要 學 校 本 位 課 程 的 整 體 布 局 A-1 推 動 十 二 年 國 民 基 本 教 育 課 程 綱 要 相 關 配 套 措 施 A-10 分 組 研 討 法 規 研 修 B-1 課 程 教 高 級 中 等 學 校 學 科 中 心 105 年 度 研 討 會 會 議 手 冊 時 間 :105 年 5 月 18-19 日 地 點 : 明 湖 水 漾 會 館 ( 苗 栗 縣 頭 屋 鄉 ) 指 導 單 位 : 教 育 部 國 民 及 學 前 教 育 署 主 辦 單 位 : 普 通 型 高 級 中 等 學 校 課 程 推 動 工 作 圈 ( 國 立 宜 蘭 高 級 中 學 ) 協 辦 單 位

More information

UDC The Design and Implementation of a Specialized Search Engine Based on Robot Technology 厦门大学博硕士论文摘要库

UDC The Design and Implementation of a Specialized Search Engine Based on Robot Technology 厦门大学博硕士论文摘要库 10384 200128011 UDC The Design and Implementation of a Specialized Search Engine Based on Robot Technology 2004 5 2004 2004 2004 5 World Wide Web Robot Web / (Focused Crawling) Web Meta data Web Web I

More information

可 愛 的 動 物 小 五 雷 雅 理 第 一 次 小 六 甲 黃 駿 朗 今 年 暑 假 發 生 了 一 件 令 人 非 常 難 忘 的 事 情, 我 第 一 次 參 加 宿 營, 離 開 父 母, 自 己 照 顧 自 己, 出 發 前, 我 的 心 情 十 分 緊 張 當 到 達 目 的 地 後

可 愛 的 動 物 小 五 雷 雅 理 第 一 次 小 六 甲 黃 駿 朗 今 年 暑 假 發 生 了 一 件 令 人 非 常 難 忘 的 事 情, 我 第 一 次 參 加 宿 營, 離 開 父 母, 自 己 照 顧 自 己, 出 發 前, 我 的 心 情 十 分 緊 張 當 到 達 目 的 地 後 郭家朗 許鈞嵐 劉振迪 樊偉賢 林洛鋒 第 36 期 出版日期 28-3-2014 出版日期 28-3-2014 可 愛 的 動 物 小 五 雷 雅 理 第 一 次 小 六 甲 黃 駿 朗 今 年 暑 假 發 生 了 一 件 令 人 非 常 難 忘 的 事 情, 我 第 一 次 參 加 宿 營, 離 開 父 母, 自 己 照 顧 自 己, 出 發 前, 我 的 心 情 十 分 緊 張 當 到 達 目

More information

2017 CCAFL Chinese in Context

2017 CCAFL Chinese in Context Student/Registration Number Centre Number 2017 PUBLIC EXAMINATION Chinese in Context Reading Time: 10 minutes Working Time: 2 hours and 30 minutes You have 10 minutes to read all the papers and to familiarise

More information

國立中山大學學位論文典藏.PDF

國立中山大學學位論文典藏.PDF I II III The Study of Factors to the Failure or Success of Applying to Holding International Sport Games Abstract For years, holding international sport games has been Taiwan s goal and we are on the way

More information

Preface This guide is intended to standardize the use of the WeChat brand and ensure the brand's integrity and consistency. The guide applies to all d

Preface This guide is intended to standardize the use of the WeChat brand and ensure the brand's integrity and consistency. The guide applies to all d WeChat Search Visual Identity Guidelines WEDESIGN 2018. 04 Preface This guide is intended to standardize the use of the WeChat brand and ensure the brand's integrity and consistency. The guide applies

More information

參 加 第 二 次 pesta 的 我, 在 是 次 交 流 營 上 除 了, 與 兩 年 沒 有 見 面 的 朋 友 再 次 相 聚, 加 深 友 誼 外, 更 獲 得 與 上 屆 不 同 的 體 驗 和 經 歴 比 較 起 香 港 和 馬 來 西 亞 的 活 動 模 式, 確 是 有 不 同 特

參 加 第 二 次 pesta 的 我, 在 是 次 交 流 營 上 除 了, 與 兩 年 沒 有 見 面 的 朋 友 再 次 相 聚, 加 深 友 誼 外, 更 獲 得 與 上 屆 不 同 的 體 驗 和 經 歴 比 較 起 香 港 和 馬 來 西 亞 的 活 動 模 式, 確 是 有 不 同 特 WE ARE BOY S BRIGADE 參 加 第 二 次 pesta 的 我, 在 是 次 交 流 營 上 除 了, 與 兩 年 沒 有 見 面 的 朋 友 再 次 相 聚, 加 深 友 誼 外, 更 獲 得 與 上 屆 不 同 的 體 驗 和 經 歴 比 較 起 香 港 和 馬 來 西 亞 的 活 動 模 式, 確 是 有 不 同 特 別 之 處 如 控 制 時 間 及 人 流 方 面, 香

More information

Value Chain ~ (E-Business RD / Pre-Sales / Consultant) APS, Advanc

Value Chain ~ (E-Business RD / Pre-Sales / Consultant) APS, Advanc Key @ Value Chain fanchihmin@yahoo.com.tw 1 Key@ValueChain 1994.6 1996.6 2000.6 2000.10 ~ 2004.10 (E- RD / Pre-Sales / Consultant) APS, Advanced Planning & Scheduling CDP, Collaborative Demand Planning

More information

Logitech Wireless Combo MK45 English

Logitech Wireless Combo MK45 English Logitech Wireless Combo MK45 Setup Guide Logitech Wireless Combo MK45 English................................................................................... 7..........................................

More information

Olav Lundström MicroSCADA Pro Marketing & Sales 2005 ABB - 1-1MRS755673

Olav Lundström MicroSCADA Pro Marketing & Sales 2005 ABB - 1-1MRS755673 Olav Lundström MicroSCADA Pro Marketing & Sales 2005 ABB - 1 - Contents MicroSCADA Pro Portal Marketing and sales Ordering MicroSCADA Pro Partners Club 2005 ABB - 2 - MicroSCADA Pro - Portal Imagine that

More information

1505.indd

1505.indd 上 海 市 孙 中 山 宋 庆 龄 文 物 管 理 委 员 会 上 海 宋 庆 龄 研 究 会 主 办 2015.05 总 第 148 期 图 片 新 闻 2015 年 9 月 22 日, 由 上 海 孙 中 山 故 居 纪 念 馆 台 湾 辅 仁 大 学 和 台 湾 图 书 馆 联 合 举 办 的 世 纪 姻 缘 纪 念 孙 中 山 先 生 逝 世 九 十 周 年 及 其 革 命 历 程 特 展

More information

WWW PHP Comments Literals Identifiers Keywords Variables Constants Data Types Operators & Expressions 2

WWW PHP Comments Literals Identifiers Keywords Variables Constants Data Types Operators & Expressions 2 WWW PHP 2003 1 Comments Literals Identifiers Keywords Variables Constants Data Types Operators & Expressions 2 Comments PHP Shell Style: # C++ Style: // C Style: /* */ $value = $p * exp($r * $t); # $value

More information

OOAD PowerDesigner OOAD Applying PowerDesigner CASE Tool in OOAD PowerDesigner CASE Tool PowerDesigner PowerDesigner CASE To

OOAD PowerDesigner OOAD Applying PowerDesigner CASE Tool in OOAD PowerDesigner CASE Tool PowerDesigner PowerDesigner CASE To PowerDesigner Applying PowerDesigner CASE Tool in OOAD albertchung@mpinfo.com.tw PowerDesigner CASE Tool PowerDesigner PowerDesigner CASE Tool PowerDesigner CASE Tool CASE Tool PowerDesignerUnified ProcessUMLing

More information

徐汇教育214/3月刊 重 点 关 注 高中生异性交往的小团体辅导 及效果研究 颜静红 摘 要 采用人际关系综合诊断量表 郑日昌编制并 与同性交往所不能带来的好处 带来稳定感和安全感 能 修订 对我校高一学生进行问卷测量 实验组前后测 在 够度过更快乐的时光 获得与别人友好相处的经验 宽容 量表总分和第 4 项因子分 异性交往困扰 上均有显著差 大度和理解力得到发展 得到掌握社会技术的机会 得到 异

More information

PowerPoint 簡報

PowerPoint 簡報 XML DTD 理論 (1) XML 論 數 (Markup) 念 SGML XML XML XML 2003 All Rights Reserved 2 SGML Standard Generalized Markup Language ( ) XML Extensible Markup Language HTML HyperText Markup Language 2003 All Rights

More information

2009.05

2009.05 2009 05 2009.05 2009.05 璆 2009.05 1 亿 平 方 米 6 万 套 10 名 20 亿 元 5 个 月 30 万 亿 60 万 平 方 米 Data 围 观 CCDI 公 司 内 刊 企 业 版 P08 围 观 CCDI 管 理 学 上 有 句 名 言 : 做 正 确 的 事, 比 正 确 地 做 事 更 重 要 方 向 的 对 错 于 大 局 的 意 义 而 言,

More information

新竹市建華國民中學九十四學年度課程計畫

新竹市建華國民中學九十四學年度課程計畫 目 錄 壹 依 據... 3 貳 目 的... 3 參 學 校 背 景 簡 述 與 課 程 發 展 條 件 分 析... 3 一 學 校 基 本 資 料... 3 二 學 校 課 程 發 展 條 件 分 析 (SWOTS)... 4 肆 學 校 教 育 目 標 與 願 景... 5 ㄧ 學 校 願 景... 5 二 學 校 願 景 圖 像... 5 三 學 校 發 展 方 向 與 展 望... 5

More information

Lorem ipsum dolor sit amet, consectetuer adipiscing elit

Lorem ipsum dolor sit amet, consectetuer adipiscing elit English for Study in Australia 留 学 澳 洲 英 语 讲 座 Lesson 3: Make yourself at home 第 三 课 : 宾 至 如 归 L1 Male: 各 位 朋 友 好, 欢 迎 您 收 听 留 学 澳 洲 英 语 讲 座 节 目, 我 是 澳 大 利 亚 澳 洲 广 播 电 台 的 节 目 主 持 人 陈 昊 L1 Female: 各 位

More information

國家圖書館典藏電子全文

國家圖書館典藏電子全文 - - I - II - Abstract Except for few intellect games such as chess, mahjong, and poker games, role-play games in on-line games are the mainstream. As for the so-called RPG, briefly speaking, it is the

More information

國立桃園高中96學年度新生始業輔導新生手冊目錄

國立桃園高中96學年度新生始業輔導新生手冊目錄 彰 化 考 區 104 年 國 中 教 育 會 考 簡 章 簡 章 核 定 文 號 : 彰 化 縣 政 府 104 年 01 月 27 日 府 教 學 字 第 1040027611 號 函 中 華 民 國 104 年 2 月 9 日 彰 化 考 區 104 年 國 中 教 育 會 考 試 務 會 編 印 主 辦 學 校 : 國 立 鹿 港 高 級 中 學 地 址 :50546 彰 化 縣 鹿 港 鎮

More information

2015年4月11日雅思阅读预测机经(新东方版)

2015年4月11日雅思阅读预测机经(新东方版) 剑 桥 雅 思 10 第 一 时 间 解 析 阅 读 部 分 1 剑 桥 雅 思 10 整 体 内 容 统 计 2 剑 桥 雅 思 10 话 题 类 型 从 以 上 统 计 可 以 看 出, 雅 思 阅 读 的 考 试 话 题 一 直 广 泛 多 样 而 题 型 则 稳 中 有 变 以 剑 桥 10 的 test 4 为 例 出 现 的 三 篇 文 章 分 别 是 自 然 类, 心 理 研 究 类,

More information

1.ai

1.ai HDMI camera ARTRAY CO,. LTD Introduction Thank you for purchasing the ARTCAM HDMI camera series. This manual shows the direction how to use the viewer software. Please refer other instructions or contact

More information

Microsoft PowerPoint - AWOL - Acrobat Windows Outlook.ppt [Compatibility Mode]

Microsoft PowerPoint - AWOL - Acrobat Windows Outlook.ppt [Compatibility Mode] AWOL Windows - Tips & Tricks Resolution, color depth & refresh rate Background color Service packs Disk cleanup (cleanmgr) Disk defragmentation AWOL Windows Resolution, Color Depth & Refresh Rate The main

More information

HCD0174_2008

HCD0174_2008 Reliability Laboratory Page: 1 of 5 Date: December 23, 2008 WINMATE COMMUNICATION INC. 9 F, NO. 111-6, SHING-DE RD., SAN-CHUNG CITY, TAIPEI, TAIWAN, R.O.C. The following merchandise was submitted and identified

More information

前言 C# C# C# C C# C# C# C# C# microservices C# More Effective C# More Effective C# C# C# C# Effective C# 50 C# C# 7 Effective vii

前言 C# C# C# C C# C# C# C# C# microservices C# More Effective C# More Effective C# C# C# C# Effective C# 50 C# C# 7 Effective vii 前言 C# C# C# C C# C# C# C# C# microservices C# More Effective C# More Effective C# C# C# C# Effective C# 50 C# C# 7 Effective vii C# 7 More Effective C# C# C# C# C# C# Common Language Runtime CLR just-in-time

More information

Microsoft PowerPoint - TTCN-Introduction-v5.ppt

Microsoft PowerPoint - TTCN-Introduction-v5.ppt Conformance Testing and TTCN 工研院無線通訊技術部林牧台 / Morton Lin 03-5912360 mtlin@itri.org.tw 1 Outline Introduction and Terminology Conformance Testing Process 3GPP conformance testing and test cases A real world

More information

1 * 1 *

1 * 1 * 1 * 1 * taka@unii.ac.jp 1992, p. 233 2013, p. 78 2. 1. 2014 1992, p. 233 1995, p. 134 2. 2. 3. 1. 2014 2011, 118 3. 2. Psathas 1995, p. 12 seen but unnoticed B B Psathas 1995, p. 23 2004 2006 2004 4 ah

More information

EJB-Programming-3.PDF

EJB-Programming-3.PDF :, JBuilder EJB 2.x CMP EJB Relationships JBuilder EJB Test Client EJB EJB Seminar CMP Entity Beans Value Object Design Pattern J2EE Design Patterns Value Object Value Object Factory J2EE EJB Test Client

More information

Microsoft Word - Final Exam Review Packet.docx

Microsoft Word - Final Exam Review Packet.docx Do you know these words?... 3.1 3.5 Can you do the following?... Ask for and say the date. Use the adverbial of time correctly. Use Use to ask a tag question. Form a yes/no question with the verb / not

More information

硕 士 学 位 论 文 论 文 题 目 : 北 岛 诗 歌 创 作 的 双 重 困 境 专 业 名 称 : 中 国 现 当 代 文 学 研 究 方 向 : 中 国 新 诗 研 究 论 文 作 者 : 奚 荣 荣 指 导 老 师 : 姜 玉 琴 2014 年 12 月

硕 士 学 位 论 文 论 文 题 目 : 北 岛 诗 歌 创 作 的 双 重 困 境 专 业 名 称 : 中 国 现 当 代 文 学 研 究 方 向 : 中 国 新 诗 研 究 论 文 作 者 : 奚 荣 荣 指 导 老 师 : 姜 玉 琴 2014 年 12 月 硕 士 学 位 论 文 论 文 题 目 : 北 岛 诗 歌 创 作 的 双 重 困 境 专 业 名 称 : 中 国 现 当 代 文 学 研 究 方 向 : 中 国 新 诗 研 究 论 文 作 者 : 奚 荣 荣 指 导 老 师 : 姜 玉 琴 2014 年 12 月 致 谢 文 学 是 我 们 人 类 宝 贵 的 精 神 财 富 两 年 半 的 硕 士 学 习 让 我 进 一 步 接 近 文 学,

More information

東莞工商總會劉百樂中學

東莞工商總會劉百樂中學 /2015/ 頁 (2015 年 版 ) 目 錄 : 中 文 1 English Language 2-3 數 學 4-5 通 識 教 育 6 物 理 7 化 學 8 生 物 9 組 合 科 學 ( 化 學 ) 10 組 合 科 學 ( 生 物 ) 11 企 業 會 計 及 財 務 概 論 12 中 國 歷 史 13 歷 史 14 地 理 15 經 濟 16 資 訊 及 通 訊 科 技 17 視 覺

More information

Print

Print HONG KONG PHARMACEUTICAL JOURNAL VOL 16 NO 1 (Supplement 1) Jan March 2009 ISSN 1727-2874 A Consolidated List of Poisons, Antibiotics and Dangerous Drugs Last update: February 2009 The Pharmaceutical Society

More information

Microsoft PowerPoint - CH 04 Techniques of Circuit Analysis

Microsoft PowerPoint - CH 04 Techniques of Circuit Analysis Chap. 4 Techniques of Circuit Analysis Contents 4.1 Terminology 4.2 Introduction to the Node-Voltage Method 4.3 The Node-Voltage Method and Dependent Sources 4.4 The Node-Voltage Method: Some Special Cases

More information

The Development of Color Constancy and Calibration System

The Development of Color Constancy and Calibration System The Development of Color Constancy and Calibration System The Development of Color Constancy and Calibration System LabVIEW CCD BMP ii Abstract The modern technologies develop more and more faster, and

More information

國家圖書館典藏電子全文

國家圖書館典藏電子全文 i ii Abstract The most important task in human resource management is to encourage and help employees to develop their potential so that they can fully contribute to the organization s goals. The main

More information

目錄

目錄 資 訊 素 養 線 上 教 材 單 元 五 資 料 庫 概 論 及 Access 5.1 資 料 庫 概 論 5.1.1 為 什 麼 需 要 資 料 庫? 日 常 生 活 裡 我 們 常 常 需 要 記 錄 一 些 事 物, 以 便 有 朝 一 日 所 記 錄 的 事 物 能 夠 派 得 上 用 場 我 們 能 藉 由 記 錄 每 天 的 生 活 開 銷, 就 可 以 在 每 個 月 的 月 底 知

More information

Construction of Chinese pediatric standard database A Dissertation Submitted for the Master s Degree Candidate:linan Adviser:Prof. Han Xinmin Nanjing

Construction of Chinese pediatric standard database A Dissertation Submitted for the Master s Degree Candidate:linan Adviser:Prof. Han Xinmin Nanjing 密 级 : 公 开 学 号 :20081209 硕 士 学 位 论 文 中 医 儿 科 标 准 数 据 库 建 设 研 究 研 究 生 李 楠 指 导 教 师 学 科 专 业 所 在 学 院 毕 业 时 间 韩 新 民 教 授 中 医 儿 科 学 第 一 临 床 医 学 院 2011 年 06 月 Construction of Chinese pediatric standard database

More information

Gassama Abdoul Gadiri University of Science and Technology of China A dissertation for master degree Ordinal Probit Regression Model and Application in Credit Rating for Users of Credit Card Author :

More information

USPTO Academic research Corporate needs Global/International Inventors Libraries News Media/Publication Patent Attorney or Agent USPTO e (ebusiness Ce

USPTO Academic research Corporate needs Global/International Inventors Libraries News Media/Publication Patent Attorney or Agent USPTO e (ebusiness Ce I 2002.03.27 2 http://www.uspto.gov/ http://www.wipo.org/ http://ipdl.wipo.int/ esp@cenet http://www.european-patent-office.org/ http://ep.espacenet.com/ http://www.cpo.cn.net/ 3 4 USPTO USPTO First time

More information

從詩歌的鑒賞談生命價值的建構

從詩歌的鑒賞談生命價值的建構 Viktor E. Frankl (logotherapy) (will-to-meaning) (creative values) Ture (Good) (Beauty) (experiential values) (attitudinal values) 1 2 (logotherapy) (biological) (2) (psychological) (3) (noölogical) (4)

More information

「人名權威檔」資料庫欄位建置表

「人名權威檔」資料庫欄位建置表 ( version 0.2) 1 3 3 3 3 5 6 9.... 11 Entities - Relationship Model..... 12 13 14 16 2 ( ) Int Varchar Text byte byte byte Id Int 20 Name Surname Varchar 20 Forename Varchar 20 Alternate Type Varchar 10

More information

1.JasperReport ireport JasperReport ireport JDK JDK JDK JDK ant ant...6

1.JasperReport ireport JasperReport ireport JDK JDK JDK JDK ant ant...6 www.brainysoft.net 1.JasperReport ireport...4 1.1 JasperReport...4 1.2 ireport...4 2....4 2.1 JDK...4 2.1.1 JDK...4 2.1.2 JDK...5 2.1.3 JDK...5 2.2 ant...6 2.2.1 ant...6 2.2.2 ant...6 2.3 JasperReport...7

More information

Some experiences in working with Madagascar: installa7on & development Tengfei Wang, Peng Zou Tongji university

Some experiences in working with Madagascar: installa7on & development Tengfei Wang, Peng Zou Tongji university Some experiences in working with Madagascar: installa7on & development Tengfei Wang, Peng Zou Tongji university Map data @ Google Reproducible research in Madagascar How to conduct a successful installation

More information

untitled

untitled ArcGIS Server Web services Web services Application Web services Web Catalog ArcGIS Server Web services 6-2 Web services? Internet (SOAP) :, : Credit card authentication, shopping carts GIS:, locator services,

More information

SDK 概要 使用 Maven 的用户可以从 Maven 库中搜索 "odps-sdk" 获取不同版本的 Java SDK: 包名 odps-sdk-core odps-sdk-commons odps-sdk-udf odps-sdk-mapred odps-sdk-graph 描述 ODPS 基

SDK 概要 使用 Maven 的用户可以从 Maven 库中搜索 odps-sdk 获取不同版本的 Java SDK: 包名 odps-sdk-core odps-sdk-commons odps-sdk-udf odps-sdk-mapred odps-sdk-graph 描述 ODPS 基 开放数据处理服务 ODPS SDK SDK 概要 使用 Maven 的用户可以从 Maven 库中搜索 "odps-sdk" 获取不同版本的 Java SDK: 包名 odps-sdk-core odps-sdk-commons odps-sdk-udf odps-sdk-mapred odps-sdk-graph 描述 ODPS 基础功能的主体接口, 搜索关键词 "odpssdk-core" 一些

More information

Lorem ipsum dolor sit amet, consectetuer adipiscing elit

Lorem ipsum dolor sit amet, consectetuer adipiscing elit 留 学 澳 洲 英 语 讲 座 English for Study in Australia 第 十 三 课 : 与 同 学 一 起 做 功 课 Lesson 13: Working together L1 Male 各 位 听 众 朋 友 好, 我 是 澳 大 利 亚 澳 洲 广 播 电 台 的 节 目 主 持 人 陈 昊 L1 Female 各 位 好, 我 是 马 健 媛 L1 Male L1

More information

簡報技巧

簡報技巧 2 Q & A 4 7 Presenter Audienc e 7 10 / 11 7 / 11 / 7 55 11 / 7 55 38 11 12 13 14 Q & A 1. : 1. : 1. : / 5W Who What When Where Why 1. : / 5W Who What When 5W2H How to do How much Where Why 1.

More information

untitled

untitled VOL 18 NO 4 (Supplement 1) Oct - Dec 2011 ISSN 1727-2874 The Pharmaceutical Society of Hong Kong The Practising Pharmacists Association of Hong Kong The Society of Hospital Pharmacists of Hong Kong HK$80.00

More information

PowerPoint Presentation

PowerPoint Presentation TOEFL Practice Online User Guide Revised September 2009 In This Guide General Tips for Using TOEFL Practice Online Directions for New Users Directions for Returning Users 2 General Tips To use TOEFL Practice

More information

A VALIDATION STUDY OF THE ACHIEVEMENT TEST OF TEACHING CHINESE AS THE SECOND LANGUAGE by Chen Wei A Thesis Submitted to the Graduate School and Colleg

A VALIDATION STUDY OF THE ACHIEVEMENT TEST OF TEACHING CHINESE AS THE SECOND LANGUAGE by Chen Wei A Thesis Submitted to the Graduate School and Colleg 上 海 外 国 语 大 学 SHANGHAI INTERNATIONAL STUDIES UNIVERSITY 硕 士 学 位 论 文 MASTER DISSERTATION 学 院 国 际 文 化 交 流 学 院 专 业 汉 语 国 际 教 育 硕 士 题 目 届 别 2010 届 学 生 陈 炜 导 师 张 艳 莉 副 教 授 日 期 2010 年 4 月 A VALIDATION STUDY

More information

Microsoft Word - 24.doc

Microsoft Word - 24.doc 水 陸 畢 陳 晚 明 飲 食 風 尚 初 探 蕭 慧 媛 桃 園 創 新 技 術 學 院 觀 光 與 休 閒 事 業 管 理 系 摘 要 飲 食 是 人 類 維 持 與 發 展 生 命 的 基 礎 之 一, 飲 食 風 尚 會 隨 著 社 會 地 位 物 質 條 件 以 及 人 為 因 素 轉 移, 不 同 階 層 的 飲 食 方 式, 往 往 標 誌 著 他 們 的 社 會 身 分, 甚 至 反

More information

Microsoft PowerPoint - Aqua-Sim.pptx

Microsoft PowerPoint - Aqua-Sim.pptx Peng Xie, Zhong Zhou, Zheng Peng, Hai Yan, Tiansi Hu, Jun-Hong Cui, Zhijie Shi, Yunsi Fei, Shengli Zhou Underwater Sensor Network Lab 1 Outline Motivations System Overview Aqua-Sim Components Experimental

More information

Liao Mei-Yu Professor, Department of Chinese Literature, National Cheng Kung University Abstract Yao Ying was a government official in Taiwan for more

Liao Mei-Yu Professor, Department of Chinese Literature, National Cheng Kung University Abstract Yao Ying was a government official in Taiwan for more 2006 12 137-178 The Various Viewpoints of Yao Ying s Jail-period Poems 137 Liao Mei-Yu Professor, Department of Chinese Literature, National Cheng Kung University Abstract Yao Ying was a government official

More information

2-7.FIT)

2-7.FIT) 文 化 园 地 8 2009 年 8 月 18 日 星 期 二 E-mail:liuliyuan@qunlitimes.com 群 立 文 化 感 受 今 天 你 开 心 了 吗? 周 传 喜 群 雄 争 立 竞 争 意 识 ; 傲 立 群 雄 奋 斗 目 标, 这 几 句 话 一 直 是 群 立 的 文 化 和 方 针, 也 同 样 是 我 很 喜 欢 的 座 右 铭 我 想 这 几 句 话 生

More information

EJB-Programming-4-cn.doc

EJB-Programming-4-cn.doc EJB (4) : (Entity Bean Value Object ) JBuilder EJB 2.x CMP EJB Relationships JBuilder EJB Test Client EJB EJB Seminar CMP Entity Beans Session Bean J2EE Session Façade Design Pattern Session Bean Session

More information

C/C++语言 - 运算符、表达式和语句

C/C++语言 - 运算符、表达式和语句 C/C++ Table of contents 1. 2. 3. 4. C C++ 5. 6. 7. 1 i // shoe1.c: # include # define ADJUST 7. 64 # define SCALE 0. 325 int main ( void ) { double shoe, foot ; shoe = 9. 0; foot = SCALE * shoe

More information

南華大學數位論文

南華大學數位論文 I II Abstract This study aims at understanding and analysing the general situation and predicament of current educational development in Savigi tribe and probing the roles played by the school, the family

More information

AN INTRODUCTION TO PHYSICAL COMPUTING USING ARDUINO, GRASSHOPPER, AND FIREFLY (CHINESE EDITION ) INTERACTIVE PROTOTYPING

AN INTRODUCTION TO PHYSICAL COMPUTING USING ARDUINO, GRASSHOPPER, AND FIREFLY (CHINESE EDITION ) INTERACTIVE PROTOTYPING AN INTRODUCTION TO PHYSICAL COMPUTING USING ARDUINO, GRASSHOPPER, AND FIREFLY (CHINESE EDITION ) INTERACTIVE PROTOTYPING 前言 - Andrew Payne 目录 1 2 Firefly Basics 3 COMPONENT TOOLBOX 目录 4 RESOURCES 致谢

More information

學 科 100% ( 為 單 複 選 題, 每 題 2.5 分, 共 100 分 ) 1. 請 參 閱 附 圖 作 答 : (A) 選 項 A (B) 選 項 B (C) 選 項 C (D) 選 項 D Ans:D 2. 下 列 對 於 資 料 庫 正 規 化 (Normalization) 的 敘

學 科 100% ( 為 單 複 選 題, 每 題 2.5 分, 共 100 分 ) 1. 請 參 閱 附 圖 作 答 : (A) 選 項 A (B) 選 項 B (C) 選 項 C (D) 選 項 D Ans:D 2. 下 列 對 於 資 料 庫 正 規 化 (Normalization) 的 敘 ITE 資 訊 專 業 人 員 鑑 定 資 料 庫 系 統 開 發 與 設 計 實 務 試 卷 編 號 :IDS101 注 意 事 項 一 本 測 驗 為 單 面 印 刷 試 題, 共 計 十 三 頁 第 二 至 十 三 頁 為 四 十 道 學 科 試 題, 測 驗 時 間 90 分 鐘 : 每 題 2.5 分, 總 測 驗 時 間 為 90 分 鐘 二 執 行 CSF 測 驗 系 統 -Client

More information

00. - 0-000 0 10 0 00-0 0 11 12 13 14 15 b 16 17 18 19 0 - 20 0 0-0 0 21 22 H.Mead 0-0 - ( ) 23 ( ) 24 ( ) 25 ( ) 26 27 00 0 00 0 28 29 30 31 ( ) 0 0 32 ( ) 33 ( ) 34 ( ) 35 ( ) 36 ( ) ( ) Northrop F.S.C.

More information

2015 Chinese FL Written examination

2015 Chinese FL Written examination Victorian Certificate of Education 2015 SUPERVISOR TO ATTACH PROCESSING LABEL HERE Letter STUDENT NUMBER CHINESE FIRST LANGUAGE Written examination Monday 16 November 2015 Reading time: 11.45 am to 12.00

More information