Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xpath匹配标签使用或后得到的结果集不是按顺序出现 #1115

Open
wanygan83 opened this issue Apr 7, 2023 · 0 comments
Open

Comments

@wanygan83
Copy link

您好,使用 node.getHtml().xpath("//p|img").nodes()方法执行得到节点结果集,p 标签和 img 不是按顺序的,img 是在最后面,如果把 img 写在 p 前面则 img 标签是在结果集最前面,请问有其它办法吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant