| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| |
| <testSuite suiteName="AG" xmlns="http://www.ibm.com/xmlns/dfdl/testData" |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| xsi:schemaLocation="http://www.ibm.com/xmlns/dfdl/testData /xsd/tdml.xsd" |
| defaultRoundTrip="true"> |
| |
| <parserTestCase name="AG000" root="allZones" model="AG.dfdl.xsd" |
| description="Discriminated choices" |
| roundTrip="true"> |
| <document><![CDATA[1 |
| zone 1 |
| ]]></document> |
| <infoset> |
| <dfdlInfoset> |
| <allZones xmlns="http://example.com" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> |
| <zone1 xsi:type="xsd:string">zone 1</zone1> |
| </allZones> |
| </dfdlInfoset> |
| </infoset> |
| </parserTestCase> |
| |
| <parserTestCase name="AG001" root="allZones" model="AG.dfdl.xsd" |
| description="Discriminated choices" |
| roundTrip="true"> |
| <document><![CDATA[2 |
| zone 2 |
| ]]></document> |
| <infoset> |
| <dfdlInfoset> |
| <allZones xmlns="http://example.com" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> |
| <zone2 xsi:type="xsd:string">zone 2</zone2> |
| </allZones> |
| </dfdlInfoset> |
| </infoset> |
| </parserTestCase> |
| |
| <parserTestCase name="AG002" root="allZones" model="AG.dfdl.xsd" |
| description="Discriminated choices" |
| roundTrip="true"> |
| <document><![CDATA[3 |
| zone 3 |
| ]]></document> |
| <infoset> |
| <dfdlInfoset> |
| <allZones xmlns="http://example.com" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> |
| <zone3 xsi:type="xsd:string">zone 3</zone3> |
| </allZones> |
| </dfdlInfoset> |
| </infoset> |
| </parserTestCase> |
| </testSuite> |