Skip to content

Instantly share code, notes, and snippets.

@jrobertson
Created October 28, 2010 21:43
Show Gist options
  • Select an option

  • Save jrobertson/652392 to your computer and use it in GitHub Desktop.

Select an option

Save jrobertson/652392 to your computer and use it in GitHub Desktop.

Revisions

  1. jrobertson created this gist Oct 28, 2010.
    30 changes: 30 additions & 0 deletions rexle_testdata.xml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,30 @@
    <tests>
    <summary/>
    <records>
    <test>
    <summary>
    <path>1</path>
    <description>return the element which matches @colour="red"</description>
    </summary>
    <records>
    <io>
    <summary>
    <type>input</type>
    <xml>
    <![CDATA[
    <a>ddd<trust colour='red'>abc</trust><trust>fff</trust></a>
    ]]>
    </xml>
    <xpath>trust[@colour='red']</xpath>
    </summary>
    </io>
    <io>
    <summary>
    <type>output</type>
    <value>abc</value>
    </summary>
    </io>
    </records>
    </test>
    </records>
    </tests>