top

Nodename with # on 2012 platform

Published 2014-10-27 | (Compatible with SDK 3.5,4.5,5.0,5.1 and 2012,2013,2014 models)

Parsing nodes containing # character

During HTML Read, if nodeName is having "#" character like "#text" or "#comment" then it needs to be handled explicitly in case of webkit however in case of Maple, it is handled automatically.

For Webkit, '#' character needs to be taken care explicitly with the method given below.

Source Files

Note

Refer to files in this package.

Example

if(xml.childNodes[i].nodeName.charAt(0) != '#') {
    // handle the node started with # here     }
else {
    // ?
}