I needed a method to modify xml file, preserving the structure and replacing only certain attributes and nodes content. Also, I needed a possibility to add dynamically inner xml content. Here is a pretty wonderful solution for simple xml data updating How To Modify XML File In Java – (DOM Parser). I added a mechanism to… Continue reading Java: modify XML file (extended)
Tag: xml
android: play media in app
During my research in the possibilities of playing audio and video from app, I found several ways of playing media. The simplest one is to use external player. It was described in the post “Android: how to play audio and video from app“. Here are some examples how to play media in app.
Android: RSS reader with complicated xml
RSS xml item, I needed to parse look as following: Благословение на Эрец-Исроэль, предисловие к благословению «Йерушалаим». Комментарии к молитве 73 Tue, 06 Mar 2012 05:00:00 GMT http://toldot.ru/tv/video/video_17869.html?template=168 Цикл видеоуроков рава Элиезера Ксидо, посвященный смыслу еврейских молитв http://toldot.ru/tv/video/video_17869.html?template=168 Рав Элиезер Ксидо I needed to get not only values for fields like “description” and “author”, but… Continue reading Android: RSS reader with complicated xml
Android 3 sections layout with bottom buttons
I was looking for a layout solution as following: HEADER ListView BOTTOM section with functional buttons Here is a good solution how to make header and bottom TextViews Android Layout with ListView between a “top bar” and “bottom bar” But I needed also buttons in the bottom section. So, I came up with the following… Continue reading Android 3 sections layout with bottom buttons
Post XML file to a page from Android
Working on one of my projects, I met a pretty simple task – post constructed XML file to certain page on a Web Server. You will need to create additional class for this purpose SBGen.java: public class SBGen { public String constructXml(Context context){ //DATA StringBuilder sb = new StringBuilder(); sb.append(“”); sb.append(“”); sb.append(“”); return sb.toString(); }… Continue reading Post XML file to a page from Android