tag:blogger.com,1999:blog-2515880289700454211.post3098941248807546546..comments2024-03-15T22:06:41.251+06:00Comments on Marks PC Solution: All about XMLMd. Abdur Rahamanhttp://www.blogger.com/profile/04784540210298584772noreply@blogger.comBlogger1125tag:blogger.com,1999:blog-2515880289700454211.post-63551824509703843332014-02-16T12:20:41.874+06:002014-02-16T12:20:41.874+06:00Good to see my name here!
But the title says, all...Good to see my name here!<br /><br />But the title says, all about XML. Well, to be honest, the post does not explain all the things about xml. It just defines it. XML has many rules. In fact, it is strictly structured. Even a single disposition of a character can break the whole XML code. There are 2 important rules for XML which you should mention.<br /><br />1. Every tag that starts must have an ending tag. (<tag></tag>) But if it doesn't contain anything inside it, it can go like this: <tag /> (without the ending tag.)<br /><br />2. Every attribute must have values enclosed with double quotes. Early HTML standards did not specify this. But XHTML (or HTML with XML standards) takes this rule seriously.<br />So, <input type="checkbox" checked > is invalid.<br />But, <input type="checkbox" checked="checked" /> is valid.<br /><br />These 2 rules are the gist of XHTML.<br /><br />You are right that XML does not do anything by itself. It is just data. The reason behind inventing this complex data structure is that it is ideal for storing hierarchical data. For example,<br /><br /><family><br> <br> <parents><br> <parent name="Shameem" role="Father" /><br> <parent name="Khaleda" role="Mother" /><br> </parents><br> <br> <children><br> <child name="Khalid" role="Son" /><br> <child name="Tarik" role="Son" /><br> <child name="Tanvir" role="Son" /><br> <child name="Adnan" role="Son" /><br> </children><br> </family><br /><br />Here you can see that the family structure has been presented in a hierarchical manner. The tags are there. So if you want to add another parent, for example, a grand parent, it is easier. And from the single code you can understand the hierarchical relation among the data. Examples would make it clearer my friend.Adnan Shameemhttps://www.blogger.com/profile/03795435968155667026noreply@blogger.com