jgo
June 24th, 2001, 10:58 AM
I write client/server type programs in VB. During any data retrieval (or submission), I (and the whole company) uses Strings as the data type of choice for the RDS call. I've implemented a common way for myself to do it, using delimiters and tags. Currently, I call "tagged" Strings as XML. My question is that, is it really XML? It is tagging a string at its simplest form. I retrieve whatever data's between the two tags..for example:
(tag1)This is tag 1 data(/tag1)
(imagine the parenthesis are brackets () bec. I couldn't get the string to appear correctly on here)
I wrote parsing functions for these (in VB) and soon wrote in C++ (which runs 240% faster). In my function with the example above, if you pass it "tag1", it will return "This is tag 1 data". Would you consider a string that looks like that, XML, or not. If not, what is it? Another question is, are there already existent functions that parse out strings like that? I want it quick and simple and return a string (the data between the tag that a specify).
I want to benchmark my function against it.
Also please remember that when the data gets to the client, I don't display it on a Web Browser or anything.
Thanks.
On a long enough timeline, our survival rate is cut down to zero.
-Tyler Durden-
(tag1)This is tag 1 data(/tag1)
(imagine the parenthesis are brackets () bec. I couldn't get the string to appear correctly on here)
I wrote parsing functions for these (in VB) and soon wrote in C++ (which runs 240% faster). In my function with the example above, if you pass it "tag1", it will return "This is tag 1 data". Would you consider a string that looks like that, XML, or not. If not, what is it? Another question is, are there already existent functions that parse out strings like that? I want it quick and simple and return a string (the data between the tag that a specify).
I want to benchmark my function against it.
Also please remember that when the data gets to the client, I don't display it on a Web Browser or anything.
Thanks.
On a long enough timeline, our survival rate is cut down to zero.
-Tyler Durden-