gawel / pyquery

A jquery-like library for python
http://pyquery.rtfd.org/
Other
2.3k stars 182 forks source link

Impossible to get an xml tag That have as name html <HR > tag #163

Closed 071792 closed 7 years ago

071792 commented 7 years ago

My xml document is like That :

......

.....
< value > valuex

.... And when i print my pyquery object the tag


change to < hr /> How Can i tell pyquery to not use html syntaxe

wmig commented 7 years ago

find('H1') method cant find tags with any Upper letters ( < H1> ) but children() return it

wmig commented 7 years ago

its possible to use some trick - $._translator.lower_case_element_names = False

gawel commented 7 years ago

Yes, this is the trick