What drawbacks are there in using "scraping" techniques and tools like http://simplehtmldom.sourceforge.net/ if you need to display content in a different template and domain like "m.mysite.com" for a mobile version of your site? I understand that the traditional way to do this is to hook into your database and write SQL queries to access what you need.
However, my SQL knowledge is lacking and the DB is quite complex using a custom CMS (I didn't build the site originally) . Everything that I need is on the front-end and I can access each piece with Simple DOM and place it in a jQuery Mobile template.
The only drawback that I can see is that if someone changes class or an id on the main site it could break the mobile site. But what are the other implications? Would a mobile site built like this be slow to load even if the main site it is based off of loads fast? Anything else I'm missing?
Also, isn't this basically how services like http://www.dudamobile.com/ work? They certainly don't have access to your DB.
Thanks for any help.