示例#1
0
文件: __init__.py 项目: jrydberg/edgy
def evaluate(xpath, document):
    element = parse(document)
    return compile(xpath).evaluate(element)
示例#2
0
文件: rest.py 项目: jrydberg/edgy
 def fromString(cls, string):
     """
     Return a C{XMLRepresentation} with given content.
     """
     return cls(xml.parse(string))