Exemple #1
0
def evaluate(xpath, document):
    element = parse(document)
    return compile(xpath).evaluate(element)
Exemple #2
0
 def fromString(cls, string):
     """
     Return a C{XMLRepresentation} with given content.
     """
     return cls(xml.parse(string))