下面是一个包含单一根元素的文档.ppt
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_05.gif)
《下面是一个包含单一根元素的文档.ppt》由会员分享,可在线阅读,更多相关《下面是一个包含单一根元素的文档.ppt(49页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、Watermarking semi-Structure data黄华军What is the semi-structure data?Semi-structures are characterized by value lying both in the structure itself and in the individual nodes.Examples:XML documents Complex Web Content Relational DBMS Data etc.Problems&ChallengesIn most media watermarking,the noise-ban
2、d is usually the main recipient;Problems:Lack of bandwidth;Trade-offsChallenges:Discovering appropriate bandwidth channels;Using them in a most efficient and resilient way;The ModelStructure watermarkingUnderstand the applicationUnderstand the essence of the cover textXMLXML(Extensible Markup Langua
3、ge)is a simple,very flexible text format derived from SGML.Originally designed to meet the challenges of large-scale electronic publishing,XML is also playing an increasingly important role in the exchange of a wide variety of data on the Web and elsewhere Mrs.Mrs.Mary Mary McGoonMcGoon 1401 Main St
4、reet 1401 Main Street AnytownAnytown 34829 34829 Tags,elements,and attributes A tag is the text between the left angle bracket()and A tag is the text between the left angle bracket().There are starting tags(such the right angle bracket().There are starting tags(such as)and ending tags(such as)as)and
5、 ending tags(such as)An element is the starting tag,the ending tag,and An element is the starting tag,the ending tag,and everything in between.In the sample above,the everything in between.In the sample above,the element contains three child elements:,element contains three child elements:,and.,and.
6、An attribute is a name-value pair inside the starting tag An attribute is a name-value pair inside the starting tag of an element.In this example,state is an attribute of of an element.In this example,state is an attribute of the element;in earlier examples,was an the element;in earlier examples,was
7、 an element element Invalid,valid,and well-formed XNL documentsInvalid documents dont follow the syntax rules Invalid documents dont follow the syntax rules defined by the XML specification.If a developer defined by the XML specification.If a developer has defined rules for what the document can has
8、 defined rules for what the document can contain in a DTD or schema,and the document contain in a DTD or schema,and the document doesnt follow those rules,that document is doesnt follow those rules,that document is invalid as well.invalid as well.Valid documents follow both the XML syntax Valid docu
9、ments follow both the XML syntax rules and the rules defined in their DTD or rules and the rules defined in their DTD or schema.schema.Well-formed documents follow the XML syntax Well-formed documents follow the XML syntax rules but dont have a DTD or schema.rules but dont have a DTD or schema.well-
10、formed XML documents1、The root element 2、Elements cant overlap 3、End tags are required4、Elements are case sensitive5、Attributes must have quoted values 下面是一个包含单一根元素的文档:Hello,World!下面是一个不包含单一根元素的文档:Hello,World!Hola,el Mundo!I really love XML.I really love XML.YadaYada yadayada yadayada.YadaYada yaday
11、ada yadayada./In HTML,and are the same;in XML,theyre not.If you try to end an element with a tag,youll get an error.Elements are case sensitive Elements are case sensitive There are two rules for attributes in XML documents:Attributes must have values Those values must be enclosed within quotation m
12、arks,can use either single or double quotes,just as long as youre consistent.Document Type Definition(DTD)A DTD defines the elements that can appear in an XML document,the order in which they can appear,how they can be nested inside each other,and other basic details of XML document structure.DTDs a
13、re part of the original XML specification and are very similar to SGML DTDs.!-!ELEMENT address(name,street,city,state,postal-code)/XML schema Schemas define elements that can appear in a document Schemas define elements that can appear in a document Schemas define attributes that can appear in a Sch
14、emas define attributes that can appear in a document document Schemas define which elements are child elements Schemas define which elements are child elements Schemas define the order of child elements Schemas define the order of child elements Schemas define the number of child elements Schemas de
15、fine the number of child elements Schemas define whether an element is empty or can Schemas define whether an element is empty or can include text include text Schemas define data types for elements and attributes Schemas define data types for elements and attributes Schemas define default and fixed
16、 values for elements Schemas define default and fixed values for elements and attributes and attributes name=state value=2/name=postal-code value=0-95(-0-94)?/Document Object Model(DOM)The Document Object Model,commonly called The Document Object Model,commonly called the DOM,defines a set of interf
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 下面 一个 包含 一根 元素 文档
![提示](https://www.taowenge.com/images/bang_tan.gif)
限制150内