Element.appendChild(Doc.createTextNode(String))\r
\r
for Item in NodeList:\r
- if type(Item) == type([]):\r
+ if isinstance(Item, type([])):\r
Key = Item[0]\r
Value = Item[1]\r
if Key != '' and Key is not None and Value != '' and Value is not None:\r