Hey, bei folgender simplen XML bekomme ich vom Browser einen Fehler der auf das "1.1" verweist. Wenn ich jedoch version="1.0" benutze klappt alles bestens. Woran kann das liegen ?
<?xml version="1.1" encoding="UTF-8"?>
<library xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:noNamespaceSchemaLocation='library.xsd'>
<book >
<author-ref>bla</author-ref>
<title>bla2</title>
<language>bla3</language>
<year>bla4</year>
</book >
<author id="egal">
<last-name>bla5</last-name>
<first-name>bla6</first-name>
</author>
</library>
_________________________________________________
Fehler:
XML-Verarbeitungsfehler: XML-Deklaration nicht wohlgeformt
Adresse: file:///C:/Users/Laptop/Desktop/1.xml
Zeile Nr. 1, Spalte 16:
<?xml version="1.1" encoding="UTF-8"?>
---------------^
<?xml version="1.1" encoding="UTF-8"?>
<library xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:noNamespaceSchemaLocation='library.xsd'>
<book >
<author-ref>bla</author-ref>
<title>bla2</title>
<language>bla3</language>
<year>bla4</year>
</book >
<author id="egal">
<last-name>bla5</last-name>
<first-name>bla6</first-name>
</author>
</library>
_________________________________________________
Fehler:
XML-Verarbeitungsfehler: XML-Deklaration nicht wohlgeformt
Adresse: file:///C:/Users/Laptop/Desktop/1.xml
Zeile Nr. 1, Spalte 16:
<?xml version="1.1" encoding="UTF-8"?>
---------------^
Comment