qx.xml.Document.fromString is able to parse XML and give a document node that can be searched with xpath, nodes modified, and re-serialized etc.
Is there an equivalent for HTML? I've got entities which the XML parser dislikes: XML Parsing Error: undefined entity Location: http://127.0.0.1:8070/r5048/user/client/source/index.html Line Number 1, Column 28: <html><head/><body><p>etete <img ---------------------------^ src="../../../user/data/_a030100000%5EU%5ER_r_002.JPG"/> <img src="../../../user/data/_a030100000%5EU%5ER_r_003.JPG"/><br/></p> </body></html> I'm looking at using new HTMLDocument or similar. The final solution would be to use regular expressions. Background: ========== I'm implementing a lazy load for images in the user-defined HTML content for messages that are displayed in one pane of our application. It is loosely based on the image preloader system in qooxdoo. Basically, the HTML content is parsed and img tags found. A preloader is created for each image, and a "loading" animated gif is substituted. The modified HTML is sent to an HTMLEmbed widget. When the preloader signals that the image is available, the proper image is put into the img tag (found via id) in the widget. The idea is to control download of large images. At present while the browser is downloading the image nothing else can be done in the UI. This way we will be able to terminate downloading if required. Hugh ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel