priyaranjan panda

priyaranjan panda

  • NA
  • 14
  • 3.1k

load xml file node in datatable

May 8 2015 1:55 AM
I have  a xml file .A single node <TP> having multiple version like 1.0,1.1,1.2.I need  all  <TSTEP> content which was present inside <TESTPROCEDURE> NODE acording to version wise.means i want 1.1 related ,means i want only <TSTEP> data present in TP 1.1.
 
Please check it once & reply
 
 
This is my xml file,please save in xml file.
 

<?xml version="1.0"?>
-<ATLAS> -<HEADING> <FEATURENAME/> </HEADING> -<TP TYPE="" LATESTUPDATED="5/7/2015 2:06:53 PM" VERSION="1.0"> -<HISTORY> <CREATEDBY>priyaranjanp</CREATEDBY> <UPDATEDBY/> <UPDATEHISTORY/> <REVIEWED/> <REVIEWEDBY/> <REVIEWEDCOMMENTS/> <SCREENED/> <SCREENEDBY/> <SCREENCOMMENTS/> <TCCOUNT>0</TCCOUNT> </HISTORY> -<TESTPROCEDURE> -<TSTEP> <SLNO>1</SLNO> <LOG/> <REQID>SET_UP</REQID> <TESTSTEP>Set default CAN messages of CAN1</TESTSTEP> -<COMMAND>
<![CDATA[TX_SET_TO_DEFAULT<1>]]>
</COMMAND> <EXPECTEDRESULT/> -<ADDITIONALCOMMAND>
<![CDATA[]]>
</ADDITIONALCOMMAND> <COMMENTS/> </TSTEP> -<TSTEP> <SLNO>2</SLNO> <LOG/> <REQID>SET_UP</REQID> <TESTSTEP>Started Transmitting Channel 1 messages</TESTSTEP> -<COMMAND>
<![CDATA[START_TX<1>]]>
</COMMAND> <EXPECTEDRESULT/> -<ADDITIONALCOMMAND>
<![CDATA[Ensure messages of CAN1 flows]]>
</ADDITIONALCOMMAND> <COMMENTS/> </TSTEP> </TESTPROCEDURE> </TP> -<TP TYPE="" LATESTUPDATED="5/7/2015 2:07:19 PM" VERSION="1.1"> -<HISTORY> <CREATEDBY>priyaranjanp</CREATEDBY> <UPDATEDBY/> <UPDATEHISTORY/> <REVIEWED/> <REVIEWEDBY/> <REVIEWEDCOMMENTS/> <SCREENED/> <SCREENEDBY/> <SCREENCOMMENTS/> <TCCOUNT>0</TCCOUNT> </HISTORY> -<TESTPROCEDURE> -<TSTEP> <SLNO>1</SLNO> <LOG/> <REQID>SET_UP</REQID> <TESTSTEP>Set default CAN messages of CAN1</TESTSTEP> -<COMMAND>
<![CDATA[TX_SET_TO_DEFAULT<1>]]>
</COMMAND> <EXPECTEDRESULT/> -<ADDITIONALCOMMAND>
<![CDATA[]]>
</ADDITIONALCOMMAND> <COMMENTS/> </TSTEP> -<TSTEP> <SLNO>2</SLNO> <LOG/> <REQID>SET_UP</REQID> <TESTSTEP>Started Transmitting Channel 1 messages</TESTSTEP> -<COMMAND>
<![CDATA[START_TX<1>]]>
</COMMAND> <EXPECTEDRESULT/> -<ADDITIONALCOMMAND>
<![CDATA[]]>
</ADDITIONALCOMMAND> <COMMENTS>Ensure messages of CAN1 flows</COMMENTS> </TSTEP> -<TSTEP> <SLNO>3</SLNO> <LOG/> <REQID>SET_UP</REQID> <TESTSTEP>user CAPL: Request seed.</TESTSTEP> -<COMMAND>
<![CDATA[EXEC_USER_CAPL<0>]]>
</COMMAND> <EXPECTEDRESULT/> -<ADDITIONALCOMMAND>
<![CDATA[CONTINUE]]>
</ADDITIONALCOMMAND> <COMMENTS/> </TSTEP> -<TSTEP> <SLNO>4</SLNO> <LOG/> <REQID>SET_UP</REQID> <TESTSTEP>Wait 20 s.</TESTSTEP> -<COMMAND>
<![CDATA[SET_TIMER <TIMER0 = 20000>]]>
</COMMAND> <EXPECTEDRESULT/> -<ADDITIONALCOMMAND>
<![CDATA[CONTINUE]]>
</ADDITIONALCOMMAND> <COMMENTS/> </TSTEP> -<TSTEP> <SLNO>5</SLNO> <LOG/> <REQID>SET_UP</REQID> <TESTSTEP>user CAPL: Check seed response.</TESTSTEP> -<COMMAND>
<![CDATA[EXEC_USER_CAPL<1>]]>
</COMMAND> <EXPECTEDRESULT/> -<ADDITIONALCOMMAND>
<![CDATA[CONTINUE]]>
</ADDITIONALCOMMAND> <COMMENTS/> </TSTEP> -<TSTEP> <SLNO>6</SLNO> <LOG/> <REQID>SET_UP</REQID> <TESTSTEP>Wait 20 ms.</TESTSTEP> -<COMMAND>
<![CDATA[SET_TIMER <TIMER0 = 20>]]>
</COMMAND> <EXPECTEDRESULT/> -<ADDITIONALCOMMAND>
<![CDATA[CONTINUE]]>
</ADDITIONALCOMMAND> <COMMENTS/> </TSTEP> -<TSTEP> <SLNO>7</SLNO> <LOG/> <REQID>SET_UP</REQID> <TESTSTEP>user CAPL: Check key response.</TESTSTEP> -<COMMAND>
<![CDATA[EXEC_USER_CAPL<2>]]>
</COMMAND> <EXPECTEDRESULT/> -<ADDITIONALCOMMAND>
<![CDATA[CONTINUE]]>
</ADDITIONALCOMMAND> <COMMENTS/> </TSTEP> </TESTPROCEDURE> </TP> -<TP TYPE="" LATESTUPDATED="5/7/2015 2:07:47 PM" VERSION="1.2"> -<HISTORY> <CREATEDBY>priyaranjanp</CREATEDBY> <UPDATEDBY/> <UPDATEHISTORY/> <REVIEWED/> <REVIEWEDBY/> <REVIEWEDCOMMENTS/> <SCREENED/> <SCREENEDBY/> <SCREENCOMMENTS/> <TCCOUNT>0</TCCOUNT> </HISTORY> -<TESTPROCEDURE> -<TSTEP> <SLNO>1</SLNO> <LOG/> <REQID>SET_UP</REQID> <TESTSTEP>Set default CAN messages of CAN1</TESTSTEP> -<COMMAND>
<![CDATA[TX_SET_TO_DEFAULT<1>]]>
</COMMAND> <EXPECTEDRESULT/> -<ADDITIONALCOMMAND>
<![CDATA[]]>
</ADDITIONALCOMMAND> <COMMENTS/> </TSTEP> -<TSTEP> <SLNO>2</SLNO> <LOG/> <REQID>SET_UP</REQID> <TESTSTEP>Started Transmitting Channel 1 messages</TESTSTEP> -<COMMAND>
<![CDATA[START_TX<1>]]>
</COMMAND> <EXPECTEDRESULT/> -<ADDITIONALCOMMAND>
<![CDATA[]]>
</ADDITIONALCOMMAND> <COMMENTS>Ensure messages of CAN1 flows</COMMENTS> </TSTEP> -<TSTEP> <SLNO>3</SLNO> <LOG/> <REQID>SET_UP</REQID> <TESTSTEP>Set default CAN messages of CAN1</TESTSTEP> -<COMMAND>
<![CDATA[TX_SET_TO_DEFAULT<1>]]>
</COMMAND> <EXPECTEDRESULT/> -<ADDITIONALCOMMAND>
<![CDATA[]]>
</ADDITIONALCOMMAND> <COMMENTS/> </TSTEP> -<TSTEP> <SLNO>4</SLNO> <LOG/> <REQID>SET_UP</REQID> <TESTSTEP>Started Transmitting Channel 1 messages</TESTSTEP> -<COMMAND>
<![CDATA[START_TX<1>]]>
</COMMAND> <EXPECTEDRESULT/> -<ADDITIONALCOMMAND>
<![CDATA[]]>
</ADDITIONALCOMMAND> <COMMENTS/> </TSTEP> -<TSTEP> <SLNO>5</SLNO> <LOG/> <REQID>SET_UP</REQID> <TESTSTEP>user CAPL: Request seed.</TESTSTEP> -<COMMAND>
<![CDATA[EXEC_USER_CAPL<0>]]>
</COMMAND> <EXPECTEDRESULT/> -<ADDITIONALCOMMAND>
<![CDATA[]]>
</ADDITIONALCOMMAND> <COMMENTS>CONTINUE</COMMENTS> </TSTEP> -<TSTEP> <SLNO>6</SLNO> <LOG/> <REQID>SET_UP</REQID> <TESTSTEP>Wait 20 s.</TESTSTEP> -<COMMAND>
<![CDATA[SET_TIMER <TIMER0 = 20000>]]>
</COMMAND> <EXPECTEDRESULT/> -<ADDITIONALCOMMAND>
<![CDATA[]]>
</ADDITIONALCOMMAND> <COMMENTS>CONTINUE</COMMENTS> </TSTEP> -<TSTEP> <SLNO>7</SLNO> <LOG/> <REQID>SET_UP</REQID> <TESTSTEP>user CAPL: Check seed response.</TESTSTEP> -<COMMAND>
<![CDATA[EXEC_USER_CAPL<1>]]>
</COMMAND> <EXPECTEDRESULT/> -<ADDITIONALCOMMAND>
<![CDATA[]]>
</ADDITIONALCOMMAND> <COMMENTS>CONTINUE</COMMENTS> </TSTEP> -<TSTEP> <SLNO>8</SLNO> <LOG/> <REQID>SET_UP</REQID> <TESTSTEP>Wait 20 ms.</TESTSTEP> -<COMMAND>
<![CDATA[SET_TIMER <TIMER0 = 20>]]>
</COMMAND> <EXPECTEDRESULT/> -<ADDITIONALCOMMAND>
<![CDATA[]]>
</ADDITIONALCOMMAND> <COMMENTS>CONTINUE</COMMENTS> </TSTEP> -<TSTEP> <SLNO>9</SLNO> <LOG/> <REQID>SET_UP</REQID> <TESTSTEP>user CAPL: Check key response.</TESTSTEP> -<COMMAND>
<![CDATA[EXEC_USER_CAPL<2>]]>
</COMMAND> <EXPECTEDRESULT/> -<ADDITIONALCOMMAND>
<![CDATA[]]>
</ADDITIONALCOMMAND> <COMMENTS>CONTINUE</COMMENTS> </TSTEP> -<TSTEP> <SLNO>10</SLNO> <LOG/> <REQID/> <TESTSTEP>Wait for 800 mili second</TESTSTEP> -<COMMAND>
<![CDATA[SET_TIMER<TIMER0=800>]]>
</COMMAND> <EXPECTEDRESULT/> -<ADDITIONALCOMMAND>
<![CDATA[CONTINUE]]>
</ADDITIONALCOMMAND> <COMMENTS/> </TSTEP> </TESTPROCEDURE> </TP> </ATLAS>

Answers (2)