How Can I exttact value

forum.sourcecode (2000-2005) & forum.td.sourcecode (2005-2010)
Didier Tourneur

How Can I exttact value

Post by Didier Tourneur » 22 May 2008, 16:50

 Posted by:  Didier Tourneur 

Hello

How can I extract the session id ( 1242456469-IMMO) from this xml object


1242456469-IMMO"

Didier

Elton Thanasi

Re: How Can I exttact value

Post by Elton Thanasi » 23 May 2008, 11:08

 Posted by:  Elton Thanasi 

For this specific requirement:
SalStrScan with and

For dynamic tasks:
SalStrTokenize
Hello

How can I extract the session id ( 1242456469-IMMO) from this xml object


1242456469-IMMO"

Didier

StefanM
Germany
Posts: 679
Joined: 10 Aug 2018, 15:57
Location: Bavaria

Re: How Can I exttact value

Post by StefanM » 26 May 2008, 21:36

 Posted by:  Stefan Misch 

Didier,

this seems to be a response from an XML-RPC-Service call. If you just
get this one parameter back, you may really be better off and handle
this using SAL string functions. If this is just an example from a
bigger response you may want to go the XML and XPath way using MS
XML-Parser (or maybe the new XML stuff from new TD versions - I've never
used this). Another solution could be ORACLE (if this is you backend DB):

select extractValue(XMLType('




1242456469-IMMO




'), '//string')
from DUAL;

Have fun,
Stefan

Alexander Traxler

Re: How Can I exttact value

Post by Alexander Traxler » 06 Jun 2008, 12:08

 Posted by:  Alexander Traxler 

Hello Didier,

maybe my classes for handling XML can help you ...(see attached)
They use XML4.0, but I guess they will work with other XML-versions, too.

Cheers from Vienna,
Alex

You do not have the required permissions to view the files attached to this post.

Return to “td.sourcecode”

Who is online

Users browsing this forum: [Ccbot] and 0 guests