CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2001
    Posts
    65

    problem with the "&" sign

    Hi all,
    i have this script :

    <Send>
    <URL>https://192.116.241.189/cgi-bin/cgimain</URL>
    <PostData>&</PostData>
    <TargetName>"g"</TargetName>
    </Send>

    and i'm trying to read the XML file from visual basic
    and i'm getting error because of the "&" sign in the
    <PostData> tag.

    what should i do to fix it ?


    P.S
    when i put some other string in the <PostData> tag
    it works fine.

  2. #2
    Join Date
    Jan 2003
    Location
    North Carolina
    Posts
    309
    Many times it has to do with the control sign effect. Try passing

    &amp;

    and see what happens. When it gets to the other side it should be read as the value & and not the potential control sign.

  3. #3
    Join Date
    Apr 2002
    Location
    Seattle, WA, USA
    Posts
    97
    '&' is an illegal xml character, since it is used to signify an entity. Instead, replace it with it's respective entity, &amp;amp;.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured