예제 #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))