|
|
| version 1.88, 2013/10/15 22:28:36 | version 1.91, 2015/10/26 01:21:55 |
|---|---|
| Line 1 | Line 1 |
| /** @file | /** @file |
| Parser: @b dom parser class. | Parser: @b dom parser class. |
| Copyright (c) 2001-2012 Art. Lebedev Studio (http://www.artlebedev.com) | Copyright (c) 2001-2015 Art. Lebedev Studio (http://www.artlebedev.com) |
| Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru) | Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru) |
| */ | */ |
| #include "classes.h" | #include "classes.h" |
| Line 162 static xmlNode* pa_getAttributeNodeNS(xm | Line 162 static xmlNode* pa_getAttributeNodeNS(xm |
| currentNode; | currentNode; |
| currentNode=currentNode->next) | currentNode=currentNode->next) |
| { | { |
| if(!namespaceURI || currentNode->ns && xmlStrEqual(currentNode->ns->href, namespaceURI)) | if(!namespaceURI || (currentNode->ns && xmlStrEqual(currentNode->ns->href, namespaceURI)) ) |
| if(!localName || xmlStrEqual(currentNode->name, localName)) | if(!localName || xmlStrEqual(currentNode->name, localName)) |
| return currentNode; | return currentNode; |
| } | } |
| Line 943 MXnode::MXnode(const char* aname, VState | Line 943 MXnode::MXnode(const char* aname, VState |
| // consts | // consts |
| #define CONST(name) \ | #define CONST(name) consts.put(#name, new VInt(XML_##name)) |
| consts.put(String::Body(#name), new VInt(XML_##name)) | #define CONST2(name, value) consts.put(#name, new VInt(value)) |
| #define CONST2(name, value) \ | |
| consts.put(String::Body(#name), new VInt(value)) | |
| CONST(ELEMENT_NODE); | CONST(ELEMENT_NODE); |
| CONST(ATTRIBUTE_NODE); | CONST(ATTRIBUTE_NODE); |