#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2003
    Posts
    1
    Rep Power
    0

    Exclamation scanning char buffers for strings


    Problem is this:
    I have to parse an XML string by changing &amp; to & / &quot; to ' / &gt; to > / &lt; to < / &apos; to ". I used strtok as a starting point, but I'm having trouble because strtok does not tokenize by string, only by char.

    Any ideas?
  2. #2
  3. No Profile Picture
    Dinesh_P_V
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Location
    India
    Posts
    259
    Rep Power
    0
    first replace all the & symbols. Restart the work with ".
    Do again the same procedure for remaining strings.

    HTH
    -Murugesan
    Dinesh_P_V

IMN logo majestic logo threadwatch logo seochat tools logo