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 增加获取info,text等属性方法 #30

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

upengfei
Copy link

在实际使用中,我们会通过xpath 获取某个节点的文本进行比对,或其他操作。但原有的方法中没有这个操作,故增加了这个处理。
主要添加内容:
1、动态增加属性attrib_info,获取该节点下所有信息
2、_XMLElement 类中增加属性:info,text。info,对应获取attrib_info的信息;text,从attrib_info中的text属性中获取文本内容。

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

Successfully merging this pull request may close these issues.

1 participant