O'Reilly logo

XML: kurz & gut by Michael Fitzgerald, Simon St. Laurent

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Die XML-Deklaration

Die optionalen XML-Deklarationen informieren über die Version und das Encoding und zudem über externe Auszeichnungsdeklarationen.

Produktionsregeln

[23] XMLDecl ::= '<?xml' VersionInfo EncodingDecl? SDDecl? S? '?>'
[24] VersionInfo ::= S 'version' Eq ("'" VersionNum "'" | '"' VersionNum '"')
[25] Eq ::= S? '=' S?
[26] VersionNum ::= '1.0' 1.0

[26] VersionNum ::= '1.1' 1.1

[32] SDDecl ::= S 'standalone' Eq (("'" ('yes' | 'no') "'")
 | ('"' ('yes' | 'no') '"'))
[80] EncodingDecl ::= S 'encoding' Eq ('"' EncName '"' | "'" EncName "'" )
[81] EncName ::= [A-Za-z] ([A-Za-z0-9._] | '-')* /*
 Encoding name contains only Latin characters */

Beispiele

<?xml version="1.0" ?> <?xml version="1.1" encoding="ISO-8859-1"?> <?xml version="1.0" encoding="UTF-8" ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required