1 / 9

Physical Structure(entities)

Physical Structure(entities). SNU IDB Lab. Contents. Concepts Figures of Document Entity Defining an entity Grammar in Declaring Entity Examples of EntityDeclaration URL format. Concepts. XML specification Include a facility for physically isolating and storing any part of a document

moswen
Download Presentation

Physical Structure(entities)

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Physical Structure(entities) SNU IDB Lab.

  2. Contents Concepts Figures of Document Entity Defining an entity Grammar in Declaring Entity Examples of EntityDeclaration URL format

  3. Concepts • XML specification • Include a facility for physically isolating and storing any part of a document • Each unit of information is called an entity • Document entity • the data file considered to represent the entire document • referred to the name of the file containing it

  4. Figures of Document Entity document entity (no entities) document entity (main content) document entity (framework file) A A B C D

  5. Defining an entity • Entity must be defined before the first reference to them in the data stream • Declared in the DTD(Document Type Definition) • Using an entity declaration(GEDecl or PEDecl) • <Example> • <!DOCTYPE MyBook [ • <!ENTITY …..> ]>

  6. Grammar in Declaring Entity GEDecl : EntityDecl PEDecl : GEDecl <!ENTITY> S Name S EntityDef > S : PEDecl <!ENTITY> S % S Name S PEDef > S : EntityValue EntityDef ExternalID NDataDecl EntityValue : PEDefl ExternalID

  7. Examples of EntityDeclaration &li; &gt; &amp; &apos; &quot; for ‘<‘ for ‘>’ for ‘&’ for ‘ ’ ’ for ‘ ” ’; • Internal text entities • <!ENTITY XML “eXtensible Markup Language”> • <!ENTITY DemoEntity ‘The rule is 6” long.’> • Built-in entities • <!ENTITY sample “Use &quot; and ‘as delimiters.”>

  8. Examples of EntityDeclaration(2) • Parameter entities • <!ENTITY %AnEntity “(Parma|list)”> • External text entities • <!ENTITY myent SYSTEM “/EMTS/MYENT.XML”> • <!ENTITY myent PUBLIC “-//MyCorp//ENTITY Syperscript Chars//EN”….> • Binary entities • <!ENTITY Jsphoto SYSTEM “/ENTS/Jsphoto.tif” NDATA “TIFF”>

  9. <!ENTITY ent9 SYSTEM “../entities/entity9.xml”> /xml/docs/document.xml/ entities/entity9.xml xml xml entity9.xml document.xml entity9.xml document.xml entities docs entities URL format <!ENTITY ent9 SYSTEM “entities/entity9.xml”>/xml/document.xml/entities/entity9.xml

More Related