hi ralf, thanks for your answer. but also... your demo did not worked for me. You may try it yourself. thanks also for the links, will have a look.
here now for all fellows, two routines that work - with regular tags.. if they have innertags or not - and a routine that looks specialy for innertags. public String GetXml(String xtag, String xhtml) { String x1tag = ""; String x2tag = ""; int xstart = 0; int dummy = 0; int xend = 0; x1tag = "<" + xtag; xstart = xhtml.indexOf(x1tag); dummy = xtag.indexOf(" "); if (dummy != -1) xtag = xtag.substring(0, dummy); x2tag = "</" + xtag + ">"; xstart = xhtml.indexOf(">", xstart); if (xstart < 0) return ""; xend = xhtml.indexOf(x2tag, xstart); if (xend < 0) return ""; return xhtml.substring(xstart + 1, xend); } public String GetXmlInner(String xtag, String Attrib, String xhtml) { String x1tag = "<" + xtag; int x1len = x1tag.length(); String x2tag = ">"; int xstart; int xend; xstart = xhtml.indexOf(x1tag); if (xstart < 0) return ""; xend = xhtml.indexOf(x2tag, xstart); if (xend < 0) return ""; String Innerhtml = xhtml.substring(xstart + x1len, xend); // now search in the innerarea x1tag = Attrib + "=\""; x2tag = "\""; x1len = x1tag.length(); xstart = Innerhtml.indexOf(x1tag); if (xstart < 0) return ""; xend = Innerhtml.indexOf(x2tag, xstart + x1len); if (xend < 0) return ""; return Innerhtml.substring(xstart + x1len, xend); } --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---