Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Parsing HTML without YQL

Hi,
I am trying to parse the HTML output retrieved by a web page, but after I get the responseText string containing the HTML source I could find a way to call the DOM methods to parse the page. Trying to use responseXML doesn't work because it's a HTML page, and using YQL neither because the source website blocked it. Titanium mobile is advertised to use web technologies so it's seems to me very strange that can't be used basic DOM manipulation functions.
thank you in advance

— asked October 2nd 2010 by Antonio Calanducci
  • dom
  • html
  • parse
1 Comment
  • Great question, I'm looking at the same thing right now and it looks like I'll need to implement something from scratch unless I am overlooking something obvious.

    — commented October 14th 2010 by Brian Raymond

1 Answer

  • Antonio, you may want to take a look at jsom. See also cheerio. In theory, either of these could be included into a Titanium mobile project as CommonJS modules.

    — answered August 11th 2012 by Bob Sims
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.