escape '<' in vb

rockwell

Active member
Joined
Dec 6, 2005
Messages
36
Programming Experience
Beginner
hello all, i am trying to post a string to an other program(php), the string is actually xml tags, when i send the string as below

str = "config=<?xml version='1.0' encoding='UTF-8'?><map>name</map>"

but when im recieving an empty string at the other end, when i remove the first "<" then i get the string "?xml version='1.0' encoding='UTF-8'?>" and the remaining string after this is lost. Is it has something to do with '<'

Any suggestions please and thanks for your time ....
 
did you try:
str = Chr(60) + "config=<?xml version='1.0' encoding='UTF-8'?><map>name</map>"
 
Back
Top