Permalink
Browse files

Handle comments in XML parsing.

  • Loading branch information...
1 parent bb4d430 commit 177533b77cb3a3e4f39f3bba6aa7fc48fb8ef11d @christosc christosc committed with Aug 19, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/extensions/xml/wax_xml.m
View
2 lib/extensions/xml/wax_xml.m
@@ -129,6 +129,8 @@ static void createTable(lua_State *L, xmlNode *node, char *textLabel, char *attr
lua_rawset(L, -3);
break;
+ case XML_COMMENT_NODE: // do nothing if it's a comment
+ break;
default:
// I have no idea what these things are... XML is for weirdos
luaL_error(L, "UNKNOWN NODE TYPE %d", node->type);

0 comments on commit 177533b

Please sign in to comment.