• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to pass a String which contain xml data  RSS feed

 
sam liya
Ranch Hand
Posts: 1246
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to pass a String which contain xml data.below is the String .Can i use Sax parser for this ?

 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 15862
81
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you mean by "pass" a String? Do you mean: parse a String? Yes, you could use a SAX parser or any other kind of XML parser for that.
 
sam liya
Ranch Hand
Posts: 1246
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can we use this in android.Because i am getting above XML String in Android as a input.I need to extract data from that String.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, Android has a SAX parser built in. You should not normally use XML without an XML declaration that specifies the encoding, though.
 
sam liya
Ranch Hand
Posts: 1246
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks ULF.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!