it's to obvious to do and to hard to find when searching on the wrong places, so I turn to my brethern monks (sisters aswell)
I just want different pieces of information from a HTML file, like 'Author' or 'Price', or 'Artist' - that worked fine using regex. Extracting information like 'Description' is a bit more complicated and I wanted to move on to the next level of HTML extracting, using some DOM and possibly XPath to find just those paragraphs needed...
trying to test some modules already failed on the first attempts - and fcourse this has to do with the fact that most HTML is NOT XML, missing closing tags mostly and therefor not capable to just hand to a parser. Another warning-sign on the road was the "&Amp;", not something I like to get trouble with, I will asume that those will be translated to the proper XML entities
I'm stuck
How do I get HTML into a nice XML object that I can traverse?
simple question... though
In reply to extracting data from HTML by Jurassic Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |