|
-
March 24th, 2009, 02:00 PM
#1
string parsing question
Say I have a string like this:
string temp = "<Style id="STYLE">";
and I want to grab the part of the string that is just in quotes, how can I do that? ie. have a new string with just STYLE in it.
ie. string temp2 = "STYLE";
Thanks!
-
March 25th, 2009, 12:18 AM
#2
Re: string parsing question
Not sure why you want to write your own while you can just use some other proper written XML parsers to retrieve the attribute of a node.
1. Microsoft XML Parser SDK
2. XMLite
Hope this helps.
Regards,
Kevin Choong
Last edited by ckweius; March 25th, 2009 at 12:23 AM.
-
March 25th, 2009, 12:38 AM
#3
Re: string parsing question
There was a thread about this recently. Take a look at that.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|