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