KHTML::DOM::NameNodeMap.item problem

chongchao cai caichongchao at yahoo.com.cn
Tue Jul 10 11:30:46 CEST 2007


dear Sir/Madam:

           Recently,I meet a problem when I use the DOM::NameNodeMap of
 lib_khtml. 
           I found that I can't get the node when I use this method
 NamedNodeMap.item(0),I can not get nothing from this method.It looks like
 this method is invalid.but others such as NamedNodeMap.length() is all
 right.

                DOM::NamedNodeMap myAttr;  //right
                myAttr = pre->node.attributes();//right
                DOM::Node attrNode;//right
                unsigned long a = 0;//right
                cout << myAttr.length() << endl;//right

                attrNode = myAttr.item( a); 
                //this part is wrong . i can not get anything from this
 method.why?

           Would you like to give me idea how can i solve this problem?
           Thank you very much for your support.            

 		
---------------------------------
抢注雅虎免费邮箱-3.5G容量,20M附件! 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/khtml-devel/attachments/20070710/6f7f82b3/attachment.html 


More information about the Khtml-devel mailing list