Skip to main content

parse_comments

Function parse_comments 

Source
pub fn parse_comments(xml: &str) -> Result<CommentList>
Expand description

commentN.xml 解析评论列表(<p:cmLst>)。

§行为

  • 遍历所有 <p:cm> 元素,提取 authorId / dt / idx 属性;
  • 对每个 <p:cm> 内部的 <p:pos x="..." y="..."/><p:text>...</p:text> 分别解析;
  • 忽略无法识别的子元素。

§错误