2015-05-08, 16:46
(2015-05-08, 15:15)JohnWPB Wrote: Looking at it as you described, Should it then be:
<set tmdbcolid="118221">Weekend at Bernie's Collection</set tmdbcolid="118221">
As it stands, the element tmdbcolid="118221" is never "closed", and for anything trying to parse the[movie name].nfo, the </set> at the end of that line, has no matching <set>.
Nope. That is not the proper XML syntax.
You need to know the difference between an XML Element and an XML attribute.
The way he's writing it is just a clean way of minimizing the code/size.
This:
Code:
<set tmdbcolid="118221">Weekend at Bernie's Collection</set>
Is the same as:
Code:
<set>
<tmdbcolid>118221</tmdbcolid>
<name>Weekend at Bernie's Collection</name>
</set>
http://www.w3schools.com/dtd/dtd_el_vs_attr.asp