Hi Folks, As I mentioned previously, I need to convert <Airport_Name> to <name>. Here is an example conversion: <Airport_Name>JOHN F KENNEDY INTL </Airport_Name> <name>JOHN F KENNEDY INTL</name> The value of <name> is identical to the value of <Airport_Name>, except trailing spaces are removed. The value of <Airport_Name> is a fixed-length field (30 characters). There is an XML Schema for the <Airport_Name>
element, here it is: <xs:element name="Airport_Name"> The value of <name> is a string up to 50 characters, with trailing spaces removed. There is an XML Schema for
the <name> element, here it is: <xs:element name="name"> I have a file containing an <Airport_Name> for every airport in the world. The airport names are expressed using
ASCII characters. Suppose I iterate over every <Airport_Name> element in the file, convert its value to the appropriate <name> value,
and evaluate the following predicate: normalize-space(Airport_Name) eq name Suppose the predicate evaluates to true for every conversion. Have I verified the correctness of my conversion? If yes, then the way to verify the correctness of an XML-to-XML conversion is:
/Roger |