This is stolen from flowforwarding enetconf
git://github.com/FlowForwarding/enetconf.git enetconf/priv/xml.xsd

This is a slimmed down version of http://www.w3.org/2001/xml.xsd.
Without this, validator can access to network when loading/validating XML.

Signed-off-by: Isaku Yamahata <[email protected]>
---
 ryu/lib/netconf/xml.xsd |   29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)
 create mode 100644 ryu/lib/netconf/xml.xsd

diff --git a/ryu/lib/netconf/xml.xsd b/ryu/lib/netconf/xml.xsd
new file mode 100644
index 0000000..6234d2e
--- /dev/null
+++ b/ryu/lib/netconf/xml.xsd
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="utf-8"?>
+<xs:schema targetNamespace="http://www.w3.org/XML/1998/namespace";
+           xmlns:xs="http://www.w3.org/2001/XMLSchema";
+           xmlns="http://www.w3.org/1999/xhtml";
+           xml:lang="en">
+ <xs:attribute name="lang">
+  <xs:simpleType>
+   <xs:union memberTypes="xs:language">
+    <xs:simpleType>
+     <xs:restriction base="xs:string">
+      <xs:enumeration value=""/>
+     </xs:restriction>
+    </xs:simpleType>
+   </xs:union>
+  </xs:simpleType>
+ </xs:attribute>
+ <xs:attribute name="space">
+  <xs:simpleType>
+   <xs:restriction base="xs:NCName">
+    <xs:enumeration value="default"/>
+    <xs:enumeration value="preserve"/>
+   </xs:restriction>
+  </xs:simpleType>
+ </xs:attribute>
+ <xs:attribute name="base"
+               type="xs:anyURI"/>
+ <xs:attribute name="id"
+               type="xs:ID"/>
+</xs:schema>
-- 
1.7.10.4


------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to