|
|
BMcD
Newbie
Reged: 03/12/09
Posts: 19
Loc: Dublin
|
|
Hi, Does Rational Robot support XPaths ? I'm a little unsure of what it is - is it just the same functionality as using the Robot's SQAGetProperty etc ? Thanks, Barry
|
BMen3D
Newbie
Reged: 04/14/08
Posts: 19
|
|
You can use someting like this
Set xObj = CreateObject ("Microsoft.XMLDOM") Set xmlDoc= CreateObject("Microsoft.XMLDOM")
xmlDoc.async= False xmlDoc.Load(strFolderIncome & aFiles(iFile))
If (xmlDoc.parseError.errorCode <> 0) Then Dim myErr as Object Set myErr = xmlDoc.parseError MsgBox( "You have error " & myErr.reason) Else Dim objNodeListUsage as Object
set objNodeListUsage = xmlDoc.getElementsbyTagName("LOAN/Usage")
ReDim aLoan(1,6) aLoan(0,1) = objNodeListUsage.Item(i).text
...
This example will load an cerain XML and check him. Then it gets the value between the followin XML tags <LOAN><USAGE>blabla</USAGE></LOAN>
With XPath you can read out (query) an XML on an easy way
Grtz
|
|
0 registered and 1 anonymous users are browsing this forum.
Moderator: AJ, RSBarber
Print Topic
|
Forum Permissions
You cannot start new topics
You cannot reply to topics
HTML is disabled
UBBCode is enabled
|
Rating:
Topic views: 1426
|
|
|
|
|
|
Powered by UBB.threads™ 6.5.5
|