Browse Source

----------------------------------------------------------------------

Modified Files:
 	XMLSchema.py -- added a try clause to catch xml.dom.ext ImportError,
           and added a SplitQName function that matches xml.dom.ext.SplitQName
           output.

 ----------------------------------------------------------------------
main
Joshua Boverhof 21 years ago
parent
commit
8b66772f20
1 changed files with 13 additions and 1 deletions
  1. +13
    -1
      XMLSchema.py

+ 13
- 1
XMLSchema.py View File

@@ -16,10 +16,22 @@ ident = "$Id$"

import types, weakref, urllib, sys
from threading import RLock
from xml.dom.ext import SplitQName
from xml.ns import SCHEMA, XMLNS, SOAP, WSDL
from Utility import DOM, Collection
from StringIO import StringIO
try:
from xml.dom.ext import SplitQName
except ImportError, ex:
def SplitQName(qname):
l = qname.split(':')
if len(l) == 1:
l.insert(0, None)
elif len(l) == 2:
if l[0] == 'xmlns':
l.reverse()
else:
return
return tuple(l)

def GetSchema(component):
"""convience function for finding the parent XMLSchema instance.


||||||
x
 
000:0
Loading…
Cancel
Save