Wednesday, 15 May 2013

XML parsing ampersand in Scala -



XML parsing ampersand in Scala -

i have xml document i'm parsing in scala, clip of might this:

<my_url> http://whatever.com/somestuff?id=123&amp;sub=http%3a%2f%2fanother.com%22 </my_url>

i'm parsing text matching on evtext events this:

case evtext(text) => fieldtext = text.tostring

my problem i'm getting 2 evtext events url above. 1 part:

http://whatever.com/somestuff?id=123

and part:

sub=http%3a%2f%2fanother.com%22

the ampersand lost. there way detect/handle can unified url string need? don't/can't know type of my_url (i.e. don't know there's url in field).

xml scala

No comments:

Post a Comment