dom-parser

regex: match string only if not part of a tag

Hi, I am trying to match a string only if it is not part of an html tag. For example when searching for the string: "abc". <a href="foo.html">abc def</a> should match <p> foo bar foo abc foo bar</p> should match but <a href="abc.html">foo</a> should not match. Thanks for the help! ...

Android: Parsing XML DOM parser. Converting childnodes to string.

Hello, Again a question. This time I'm parsing XML messages I receive from a server. Someone thought to be smart and decided to place HTML pages in a XML message. Now I'm kind of facing problems because I want to extract that HTML page as a string from this XML message. Ok this is the XML message I'm parsing: <AmigoRequest> <From></Fr...