1.1xml文档结构

document    ::=    prolog?, element+, Misc*  
prolog
  prolog    ::=    XMLDecl? Misc* (doctypedecl Misc*)? 
  XMLDecl    ::=    ''
  VersionInfo    ::=    S 'version' Eq ("'" VersionNum "'" | '"' VersionNum '"')
  EncodingDecl    ::=    S 'encoding' Eq ('"' EncName '"' | "'" EncName "'" ) 
  SDDecl    ::=    S 'standalone' Eq (("'" ('yes' | 'no') "'") | ('"' ('yes' | 'no') '"'))

 Comment    ::=    ''
 S    ::=    (#x20 | #x9 | #xD | #xA)+
 PI    ::=    '' Char*)))? '?>'
 

  Misc    ::=    Comment | PI | S 

 doctypedecl    ::=    ''
   ExternalID    ::=    'SYSTEM' S SystemLiteral  | 'PUBLIC' S PubidLiteral S SystemLiteral 




Hello, world!

你可能感兴趣的:(xml)