core-jgi/fitnesse/FitNesseRoot/FitLibraryWeb/XmlProcessing/content.txt

29 lines
1.6 KiB
Plaintext

!*< xml
!define sameAs {|''xml''|<first><xml/></first>|''same as''|<second><xml/></second>|
}
!define similarTo {|''xml''|<first><xml/></first>|''similar to''|<second><xml/></second>|
}
!define transform {|''transform''|<first><xml/></first>|''with''|xslt contents|
}
!define exists {|''xpath''|//xpath|''exists in''|<first><xml/></first>|
}
!define in {|''xpath''|//first|''in''|<first>red</first>|'''is'''|red|
}
!define match {|''xpath''|//first|''in''|<first>red</first>|''matches''|r.d|
}
*!
!3 Xml Processing
|!3 Action|!3 Description|!3 Example|
|[[''xml same as''][^XmlSameAs]]|''Checks the two lots of xml are the same''|${sameAs}|
|[[''xml same as'' (with name space)][^XmlSameAsWithNameSpace]]|''Checks the two lots of xml are the same, but where name spaces are used''|
|[[''xml similar to''][^XmlSimilarTo]]|''Checks the two lots of xml are the same''|${similarTo}|
|[[''transform with''][>TransformWith]]|''Transforms the given xml with the xslt''|${transform}|
|[[''xpath exists in''][>XpathExistsIn]]|''Checks for the existence of the element referenced by the xpath expression''|${exists}|
|[[''xpath in'' '''is'''][>XpathInIs]]|''Checks the value of the evaluated xpath expression''|${in}|
|[[''xpath in'' '''matches'''][>XpathInMatches]]|''Checks if value of the evaluated xpath expression matches the regular expression''|${match}|
|[[various error message][>VariousErrorMessage]]|''Show various error messages when things go wrong''|
#
!3 Implementation
#
''!-XmlDoFixture-!'' is a thin layer on top of xmlUnit. See http://xmlunit.sourceforge.net/ for further details.