Browse Source

Removed pyXml dependency.

main
Mark Bucciarelli 21 years ago
parent
commit
05ff549a64
1 changed files with 19 additions and 1 deletions
  1. +19
    -1
      XMLSchema.py

+ 19
- 1
XMLSchema.py View File

@@ -16,7 +16,25 @@ ident = "$Id$"


import types, weakref, urllib, sys import types, weakref, urllib, sys
from threading import RLock from threading import RLock
from xml.ns import SCHEMA, XMLNS, SOAP, WSDL
try:
from xml.ns import XMLNS
except ImportError:
# ref:
# http://cvs.sourceforge.net/viewcvs.py/pyxml/xml/xml/ns.py?view=markup
class XMLNS:
"""XMLNS, Namespaces in XML

XMLNS (14-Jan-1999) is a W3C Recommendation. It is specified in
http://www.w3.org/TR/REC-xml-names
BASE -- the basic namespace defined by the specification
XML -- the namespace for XML 1.0
HTML -- the namespace for HTML4.0
"""

BASE = "http://www.w3.org/2000/xmlns/"
XML = "http://www.w3.org/XML/1998/namespace"
HTML = "http://www.w3.org/TR/REC-html40"

from Utility import DOM, Collection from Utility import DOM, Collection
from StringIO import StringIO from StringIO import StringIO
try: try:


Loading…
Cancel
Save