Hi,
I have tried the function "access the internet", but have encountered problems.
I have tried several web pages, with each one I get a (different) SaxParseException.
For example, the following call results in the exception:
A big disadvantage is that XPath cannot be used, but selector.
The question is, am I alone with this problem? Can someone help me to get the default implementation to work? Is an implementation with Jsoup possible, or is there something against it?
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Hi,
I have tried the function "access the internet", but have encountered problems.
I have tried several web pages, with each one I get a (different) SaxParseException.
For example, the following call results in the exception:
Does the call work for anyone? Is it possibly a problem with my phone?
Using the relevant lines from the BanglejsGadgetBridge project, I was able to recreate the error in a small sample project of my own.
Simple HTML/XML structures work, but complex web pages do not. I think the parser can't handle the embedded JavaScript. But I am not sure.
I searched for other solutions and tried Jsoup. For me it worked very well.
A big disadvantage is that XPath cannot be used, but selector.
The question is, am I alone with this problem? Can someone help me to get the default implementation to work? Is an implementation with Jsoup possible, or is there something against it?