goquery
goquery copied to clipboard
`text` Non-html formats are filtered
For example, xml format can't use text()
<?xml version="1.0" encoding= "UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans">
xxxx
</beans>
The results:
xxxx
Hello,
Goquery is an html parser (it uses the net/html html5 parser internally), it doesn't parse arbitrary xml. You can use the stdlib's xml package for that or I know there are some userland packages that support xpath and more specific xml features.
Martin