Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XML 1.1 that is not XML 1.0 1

Status
Not open for further replies.

deanat78

Programmer
Feb 9, 2007
7
CA
Hi everyone
I'm fairly new to XML, I started reading about it a few weeks ago
I read about the new features in XML 1.1 and I understand that the main difference is that it allows for more characters
Now, I tried looking for XML files that are well-formed 1.1 but not well-formed 1.0 but I couldn't find any such examples. So I tried to make my own, please tell me if what I say is right:
1. In 1.1, Mongolian and Amharic letters are allowed as element names, but in 1.0 it will not be well-formed

2. The following is well-formed because it has characters that are allowed in 1.1
<?xml version="1.1"?>
<root>&#x1; &#x2; &#x3; &#x4;</root>

3. The following is NOT well-formed because it's 1.0
<?xml version="1.0"?>
<root>&#x1; &#x2; &#x3; &#x4;</root>

Am I correct?
 
1. So it is.
2. positive, well-formed v1.1.
3. positive, not well-formed v1.0.
 
Thanks a lot tsuji, I really needed confirmation on that, now I feel a lot better knowing that I finally know the difference
 
I don't think that's quite right. V1.1 allows Amharic (and so on) in the tags themselves. V1.0 wouldn't object to them as data.

And Elliote Rusty Harold's advice is that there aren't many people in the world who need v1.1, so declaring it is a good way to cause yourself grief: stick to v1.0.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top