Posts

Showing posts with the label XML

Remove all empty tags from XML in Java, C#

Image
Today I will show you how to remove all empty tags from XML File or a string Variable that contains  XML data, in both languages C# and Java. In My Previous tutorial,  I show how to Remove Empty Lines from  a string or from XML Data, After removing empty tags from XML there will be Empty Line in XML data besides these tags. So you must go through this tutorial as well. In this tutorial Again I will Use Regex Expression to identify empty tags from XML string or File and  replace these empty lines with my respective tags or string  or left them empty.

Remove Empty Lines from String or XML

Image
To day I will show you How to Remove Empty Lines from string variable or  string Variable containing XML Data . This Code will Work on Both C# and Java Language. In Code I use Reg-ex Expression  To Detect or Find empty lines from String and Replace any other Character , join with Previous line or Else ..

Read Or Parse XML File From Web Server in Android

Image
To Day I will show you How to read or Parse Xml File Hosted on Web Server or Hosting Server using Android . In this tutorial we Will Talk about How to Parse Xml file and How to Bind With List View in Android. In This Tutorials We will be Using . 1) HTTP Request to get XML File from Web Server or Hosting Server. 2) Read Or access XML Data .

Access XML File Hosted on Php Server In Windows Phone 7

Image
To Day I show you how to Access XML File Hosted on Php web Server Server or any other Server  In Windows Phone 7 . As we Know that Use XML Files For Storing data and Retrieving Data Through LINQ (Language Integrated Query  ). We can Access an XML file From a Local (Isolated Storage  ) and also From a web server Where XML file Is Hosted . Note In XML File We Can Store XML file on PHP Server or on Free web Hosting Server. Following Are the Steps Please Follow it. First We Create an account on  http://www.000webhost.com/   .It Provides Free PHP web Hosting .Note during Signup Choose SUB Domain which is free and (recommended). Then Confirm Then Confirmation Email. Now After Confirmation an Window open in which Select Domain Name From Drop Down and Press Go Buttton By this You Move To Control Penal of You Hosting Account. Now Select File Manager  (Clcik File Manager ) It ask for Password Enter the Password Which you Write in Signup...