Re: string extraction
- From: "Nicholas Paldino [.NET/C# MVP]" <mvp@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 17 May 2006 17:49:08 -0400
Draku,
What is it that makes it "pseudo xml"? It looks like XML without a root
element. Why not just encapsulate everything in a root element and then
parse it in an XML document?
Then you can use XPath and whatnot to get your values.
--
- Nicholas Paldino [.NET/C# MVP]
- mvp@xxxxxxxxxxxxxxxxxxxxxxxxxxx
"draku" <drakuu@xxxxxxxxx> wrote in message
news:1147897903.251255.10580@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I'm working on credit card processing gateway and the result of the
transaction is returned as pseudo XML! Nope not real XML. Any way the
"XML" looks like that:
<r_csp></r_csp>
<r_time>Wed May 17 13:04:13 2006</r_time>
<r_ref></r_ref>
<r_error>SGS-002304: Credit card is expired.</r_error>
<r_ordernum>420BC82C-446B73AD-248-B918E</r_ordernum>
<r_message></r_message>
<r_code></r_code>
<r_tdate></r_tdate>
<r_score></r_score>
I need to pars the code and extract the values. I can't really find a
good way of doing it. Since the number of values may change I would not
like to refer to them as value[1]... but rather r_error = value of
r_error.
Any hints? All help highly appreciated.
drakuu
.
- References:
- string extraction
- From: draku
- string extraction
- Prev by Date: Re: passing by ref to C++
- Next by Date: Re: Hiding the task bar through code.
- Previous by thread: Re: string extraction
- Next by thread: Exporting Datagrid to Excel - How to maintain hyperlink column
- Index(es):
Relevant Pages
|