1 / 5

XML

XML. document ::= prolog element Misc *. prolog ::= XMLDecl Misc* ( doctypedecl Misc*)?. XMLDecl ::= '<?xml' VersionInfo EncodingDecl? SDecl? S? '?>'. VersionInfo ::= S 'version' S? '=' S? ('1.1'|'1.0'|``1.1",|``1.0"). element ::= EmptyElemTag | STag content ETag.

allie
Download Presentation

XML

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. XML

  2. document ::= prologelementMisc* prolog ::= XMLDecl Misc* (doctypedecl Misc*)? XMLDecl ::= '<?xml' VersionInfo EncodingDecl? SDecl? S? '?>' VersionInfo ::= S 'version' S? '=' S? ('1.1'|'1.0'|``1.1",|``1.0") element ::= EmptyElemTag| STagcontent ETag STag ::= '<' Name (S Attribute)* S? '>' ETag ::= '</' Name S? '/>' EmptyElemTag::= '<' Name (S Attribute)* S? '/>' content ::= CharData?((element|Reference|CDSect|PI|Comment)CharData?)* Attribute ::= Name S? '=' S? AttValue Misc ::= Comment | PI | S S – “white space”

  3. DTD

  4. doctypedecl ::= '<!DOCTYPE' S Name (S ExternalID)? S? ( '[' intSubset ']' S?)? intSubset :: = (markupdecl | DeclSep)* DeclSep ::= S | PEReference markupdecl ::= elementdecl | AttlistDecl | EntityDecl | NotationDecl | PI | Comment elementdecl ::= '<!ELEMENT' S Name S contentspec S? '>' contentspec ::= 'EMPTY' | 'ANY' | Mixed | children children ::= (choice|seq) ('?' | '*' | '+')? choice ::= '(' S? cp (S? '|' S? cp)+ S? ')' cp ::= (Name | choice | seq) ('?' | '*' | '+')? seq ::= '(' cp ( S? ',' S? cp)* S? ')' Mixed ::= '(' S? '#PCDATA' ( S? '|' Name)* S? ')*' | '(' S? '#PCDATA' S? ')'

  5. doctypedecl ::= '<!DOCTYPE' S Name (S ExternalID)? S? ( '[' intSubset ']' S?)? intSubset :: = (markupdecl | DeclSep)* markupdecl ::= elementdecl | AttlistDecl | EntityDecl | NotationDecl | PI | Comment AttlistDecl ::= '<ATTLIST' S Name AttDef* S? '>' AttDef ::= S Name S AttType S DefaultDecl AttType ::= 'CDATA' | 'ID' | 'IDREF' | 'IDREFS' | 'ENTITY’ | 'ENTITIES' | 'NMTOKEN' | 'NMTOKENS' |EnumeratedType EnumeratedType ::= NotationType | Enumeration NotationType ::= 'NOTATION' S '(' S? Name (S? '|' S? Name)* S? ')' Enumeration ::= '(' S? Nmtoken (S? '|' S? Nmtoken)* S? ')' DefaultDecl ::= '#REQUIRED' | '#IMPLIED' | ( ('#FIXED' S)? AttValue

More Related