You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2017/09/13 16:19:08 UTC

svn commit: r1808254 [3/3] - in /commons/proper/vfs/trunk/commons-vfs2/src/test: java/org/apache/commons/vfs2/provider/zip/test/ resources/test-data/ resources/test-data/read-xml-tests/

Added: commons/proper/vfs/trunk/commons-vfs2/src/test/resources/test-data/read-xml-tests/name-invalid.xml
URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/commons-vfs2/src/test/resources/test-data/read-xml-tests/name-invalid.xml?rev=1808254&view=auto
==============================================================================
--- commons/proper/vfs/trunk/commons-vfs2/src/test/resources/test-data/read-xml-tests/name-invalid.xml (added)
+++ commons/proper/vfs/trunk/commons-vfs2/src/test/resources/test-data/read-xml-tests/name-invalid.xml Wed Sep 13 16:19:08 2017
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<name
+  xmlns="https://www.apache.org/vfs/example/name"
+  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xsi:schemaLocation="https://www.apache.org/xml/name.xsd">
+  <FOO>John</FOO>
+  <middle>Q.</middle>
+  <last>Public</last>
+</name>

Added: commons/proper/vfs/trunk/commons-vfs2/src/test/resources/test-data/read-xml-tests/name-not-well-formed.xml
URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/commons-vfs2/src/test/resources/test-data/read-xml-tests/name-not-well-formed.xml?rev=1808254&view=auto
==============================================================================
--- commons/proper/vfs/trunk/commons-vfs2/src/test/resources/test-data/read-xml-tests/name-not-well-formed.xml (added)
+++ commons/proper/vfs/trunk/commons-vfs2/src/test/resources/test-data/read-xml-tests/name-not-well-formed.xml Wed Sep 13 16:19:08 2017
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<name
+  xmlns="https://www.apache.org/vfs/example/name"
+  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xsi:schemaLocation="https://www.apache.org/xml/name.xsd">
+  <first>John</first>
+  <middle>Q.</middle>
+  <last>Public</last>

Added: commons/proper/vfs/trunk/commons-vfs2/src/test/resources/test-data/read-xml-tests/name-with-xsd-ref.xml
URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/commons-vfs2/src/test/resources/test-data/read-xml-tests/name-with-xsd-ref.xml?rev=1808254&view=auto
==============================================================================
--- commons/proper/vfs/trunk/commons-vfs2/src/test/resources/test-data/read-xml-tests/name-with-xsd-ref.xml (added)
+++ commons/proper/vfs/trunk/commons-vfs2/src/test/resources/test-data/read-xml-tests/name-with-xsd-ref.xml Wed Sep 13 16:19:08 2017
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<name
+  xmlns="https://www.apache.org/vfs/example/name"
+  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xsi:schemaLocation="https://www.apache.org/xml/name.xsd">
+  <first>John</first>
+  <middle>Q.</middle>
+  <last>Public</last>
+</name>

Added: commons/proper/vfs/trunk/commons-vfs2/src/test/resources/test-data/read-xml-tests/name.xml
URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/commons-vfs2/src/test/resources/test-data/read-xml-tests/name.xml?rev=1808254&view=auto
==============================================================================
--- commons/proper/vfs/trunk/commons-vfs2/src/test/resources/test-data/read-xml-tests/name.xml (added)
+++ commons/proper/vfs/trunk/commons-vfs2/src/test/resources/test-data/read-xml-tests/name.xml Wed Sep 13 16:19:08 2017
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<name>
+  <first>John</first>
+  <middle>Q.</middle>
+  <last>Public</last>
+</name>

Added: commons/proper/vfs/trunk/commons-vfs2/src/test/resources/test-data/read-xml-tests/name.xsd
URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/commons-vfs2/src/test/resources/test-data/read-xml-tests/name.xsd?rev=1808254&view=auto
==============================================================================
--- commons/proper/vfs/trunk/commons-vfs2/src/test/resources/test-data/read-xml-tests/name.xsd (added)
+++ commons/proper/vfs/trunk/commons-vfs2/src/test/resources/test-data/read-xml-tests/name.xsd Wed Sep 13 16:19:08 2017
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<xs:schema
+  xmlns:xs="http://www.w3.org/2001/XMLSchema"
+  targetNamespace="https://www.apache.org/vfs/example/name"
+  xmlns="https://www.apache.org/vfs/example/name"
+  elementFormDefault="qualified">
+
+  <xs:element
+    name="name"
+    type="nameType" />
+
+  <xs:complexType name="nameType">
+    <xs:sequence>
+      <xs:element
+        name="first"
+        type="xs:string" />
+      <xs:element
+        name="middle"
+        type="xs:string" />
+      <xs:element
+        name="last"
+        type="xs:string" />
+    </xs:sequence>
+  </xs:complexType>
+
+</xs:schema>

Added: commons/proper/vfs/trunk/commons-vfs2/src/test/resources/test-data/read-xml-tests/person.xml
URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/commons-vfs2/src/test/resources/test-data/read-xml-tests/person.xml?rev=1808254&view=auto
==============================================================================
--- commons/proper/vfs/trunk/commons-vfs2/src/test/resources/test-data/read-xml-tests/person.xml (added)
+++ commons/proper/vfs/trunk/commons-vfs2/src/test/resources/test-data/read-xml-tests/person.xml Wed Sep 13 16:19:08 2017
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<person:person
+  xmlns:person="https://www.apache.org/vfs/example/person"
+  xmlns:name="https://www.apache.org/vfs/example/name"
+  xmlns:addr="https://www.apache.org/vfs/example/address"
+  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xsi:schemaLocation="https://www.apache.org/vfs/example/person person.xsd">
+
+  <person:name>
+    <name:first>John</name:first>
+    <name:middle>Q.</name:middle>
+    <name:last>Public</name:last>
+  </person:name>
+
+  <person:address>
+    <addr:street>123 Main St.</addr:street>
+    <addr:city>Ridgway</addr:city>
+    <addr:state>CO</addr:state>
+    <addr:zip>81432</addr:zip>
+  </person:address>
+
+</person:person>

Added: commons/proper/vfs/trunk/commons-vfs2/src/test/resources/test-data/read-xml-tests/person.xsd
URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/commons-vfs2/src/test/resources/test-data/read-xml-tests/person.xsd?rev=1808254&view=auto
==============================================================================
--- commons/proper/vfs/trunk/commons-vfs2/src/test/resources/test-data/read-xml-tests/person.xsd (added)
+++ commons/proper/vfs/trunk/commons-vfs2/src/test/resources/test-data/read-xml-tests/person.xsd Wed Sep 13 16:19:08 2017
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<xs:schema
+  xmlns="https://www.apache.org/vfs/example/person"
+  xmlns:xs="http://www.w3.org/2001/XMLSchema"
+  xmlns:name="https://www.apache.org/vfs/example/name"
+  xmlns:address="https://www.apache.org/vfs/example/address"
+  targetNamespace="https://www.apache.org/vfs/example/person"
+  elementFormDefault="qualified">
+
+  <xs:import
+    namespace="https://www.apache.org/vfs/example/name"
+    schemaLocation="name.xsd" />
+  <xs:import
+    namespace="https://www.apache.org/vfs/example/address"
+    schemaLocation="address.xsd" />
+
+  <xs:element
+    name="person"
+    type="personType" />
+
+  <xs:complexType name="personType">
+    <xs:sequence>
+      <xs:element
+        name="name"
+        type="name:nameType" />
+      <xs:element
+        name="address"
+        type="address:addressType" />
+    </xs:sequence>
+  </xs:complexType>
+
+</xs:schema>