谁用Jericho HTML Parser,看看Source的public Element findNextElement(int pos,  java.lang.String name)方法请问第一个参数的意思是什么?
api是这样写的:
findNextElementpublic Element findNextElement(int pos,
                               java.lang.String name)    Returns the Element with the specified name beginning at or immediately following the specified position in the source document.    This is equivalent to findNextStartTag(pos,name).getElement(), assuming the result is not null.    Specifying a null argument to the name parameter is equivalent to findNextElement(pos).    Specifying an argument to the name parameter that ends in a colon (:) searches for all elements in the specified XML namespace.    This method also returns elements consisting of unregistered tags if the specified name is not a valid XML tag name.    Parameters:
        pos - the position in the source document from which to start the search, may be out of bounds.
        name - the name of the element to search for. 
    Returns:
        the Element with the specified name beginning at or immediately following the specified position in the source document, or null if none exists or the specified position is out of bounds.
----------------int pos 是从文档开始的字节数吗?

解决方案 »

  1.   

    此回复为自动发出,仅用于显示而已,并无任何其他特殊作用
    楼主【sotier】截止到2008-07-15 10:39:03的历史汇总数据(不包括此帖):
    发帖的总数量:25                       发帖的总分数:410                      每贴平均分数:16                       
    回帖的总数量:28                       得分贴总数量:4                        回帖的得分率:14%                      
    结贴的总数量:25                       结贴的总分数:410                      
    无满意结贴数:6                        无满意结贴分:140                      
    未结的帖子数:0                        未结的总分数:0                        
    结贴的百分比:100.00%               结分的百分比:100.00%                  
    无满意结贴率:24.00 %               无满意结分率:34.15 %                  
    敬礼!