2019-09-30 22:08:37 -04:00
|
|
|
import os
|
|
|
|
##
|
|
|
|
from lxml import etree
|
|
|
|
|
2019-10-28 01:26:31 -04:00
|
|
|
# https://stackoverflow.com/questions/30232031/how-can-i-strip-namespaces-out-of-an-lxml-tree/30233635#30233635 ?
|
2019-10-22 14:34:39 -04:00
|
|
|
|
2019-09-30 22:08:37 -04:00
|
|
|
class Config(object):
|
|
|
|
def __init__(self):
|
|
|
|
self.xml = None
|
|
|
|
|
|
|
|
def parseLocalFile(self, fpath):
|
|
|
|
fpath = os.path.abspath(os.path.expanduser(fpath))
|
|
|
|
pass
|
|
|
|
|
|
|
|
def parseRemoteFile(self, url):
|
|
|
|
pass
|
|
|
|
|
|
|
|
def parseRawContent(self, content):
|
|
|
|
pass
|