Tôi đang cố gắng để xóa một tệp xml với BeautifulSoup 4.4.0 có tên thẻ trong camelCase và find_all dường như không thể tìm thấy chúng. mã ví dụ:find_all with camelTên thẻ tên với BeautifulSoup 4
from bs4 import BeautifulSoup
xml = """
<hello>
world
</hello>
"""
soup = BeautifulSoup(xml, "lxml")
for x in soup.find_all("hello"):
print x
xml2 = """
<helloWorld>
:-)
</helloWorld>
"""
soup = BeautifulSoup(xml2, "lxml")
for x in soup.find_all("helloWorld"):
print x
Kết quả tôi nhận được là:
$ python soup_test.py
<hello>
world
</hello>
cách chính xác để nhìn lên lạc đà cased/tên thẻ uppercased là gì?