Valid syntax for XML attributes [message #1101] |
Wed, 28 September 2011 10:14 |
Susanne Wunsch railML
Messages: 0 Registered: January 2020
|
|
|
|
Hello,
<!-- German version below - Deutsche Version unten -->
Sometimes there is a little confusion about the correct XML syntax in
attribute definitions. Which version is valid, which not?
(a) <element attribute="value"/>
(b) <element attribute='value'/>
W3C [1] gives us the answer: both are correct!
See railML-Wiki [2] for any explanations and workarounds in case of
troubles.
Kind regards...
Susanne
<!-- German version - Deutsche Version -->
Manchmal besteht Uneinigkeit über die richtige XML-Syntax für
Attributdefinitionen. Welche der folgenden Varianten ist korrekt? Welche
nicht?
(a) <element attribute="value"/>
(b) <element attribute='value'/>
W3C [3] gibt uns die Antwort: Beide Varianten sind korrekt!
Für diesbezügliche Erläuterungen und Workarounds im Falle von
Schwierigkeiten beim Datenaustausch hilft eine railML-Wiki-Seite [2]
weiter.
Liebe Grüße...
Susanne
[1] http://www.w3.org/TR/REC-xml
[2] http://wiki.railml.org/index.php?title=CO:attributeSyntax
[3] http://www.edition-w3.de/TR/REC-xml
--
Susanne Wunsch
Schema Coordinator: railML.common
|
|
|