0

I am using XMLPullParser on Android to read the XML of this site: https://www.dotabuff.com/heroes/abaddon/matchups?date=patch_7.07b

What I want to read is just some info on the huge line 14.

At some point before that line, there is a '<' inside a string so I get this error:

org.xmlpull.v1.XmlPullParserException: Illegal: "<" inside attribute value 

(position:START_TAG <iframe id='vmv2-frm-'+id+'' src='kunkka-unit kunkka-leaderboard'>@3:5973 in java.io.InputStreamReader@7f90d80) 

I took a look at this question but since the page is not mine, there is nothing I can do to change the '<'.

I have no idea how to fix this, maybe there is a way to completely ignore the above lines that cause the error?

SkyPower
  • 103
  • 2
  • 13

1 Answers1

0

Use the code ,

YourString.replaceAll("<","")

it will replace the "<" value in your string with an empty string.

Clint Paul
  • 313
  • 2
  • 6
  • 18
  • What do you mean by 'YourString'? All I have is an InputStream that contains all the XML inside it. – SkyPower Nov 06 '17 at 12:34