From deaa11776d7be61ad0eb9af9a8e563041b144e53 Mon Sep 17 00:00:00 2001 From: Hyunjee Kim Date: Thu, 31 Jan 2019 10:27:13 +0900 Subject: [PATCH] Imported Upstream version 3.0.2 Change-Id: If813afbcea03682a042e068ed1ffce6e980c4f9d Signed-off-by: Hyunjee Kim --- CHANGES.txt | 15 + PKG-INFO | 13 +- doc/build.txt | 4 +- doc/html/FAQ.html | 6 +- doc/html/api.html | 6 +- doc/html/api/abc.ABCMeta-class.html | 448 - doc/html/api/api-objects.txt | 6951 ------- doc/html/api/class-tree.html | 1100 -- doc/html/api/deprecated-index.html | 167 - doc/html/api/epydoc.css | 322 - doc/html/api/exceptions.AssertionError-class.html | 302 - doc/html/api/frames.html | 17 - doc/html/api/help.html | 278 - doc/html/api/identifier-index-A.html | 261 - doc/html/api/identifier-index-B.html | 224 - doc/html/api/identifier-index-C.html | 469 - doc/html/api/identifier-index-D.html | 384 - doc/html/api/identifier-index-E.html | 701 - doc/html/api/identifier-index-F.html | 340 - doc/html/api/identifier-index-G.html | 224 - doc/html/api/identifier-index-H.html | 305 - doc/html/api/identifier-index-I.html | 493 - doc/html/api/identifier-index-J.html | 159 - doc/html/api/identifier-index-K.html | 176 - doc/html/api/identifier-index-L.html | 252 - doc/html/api/identifier-index-M.html | 221 - doc/html/api/identifier-index-N.html | 239 - doc/html/api/identifier-index-O.html | 198 - doc/html/api/identifier-index-P.html | 295 - doc/html/api/identifier-index-Q.html | 160 - doc/html/api/identifier-index-R.html | 735 - doc/html/api/identifier-index-S.html | 1132 -- doc/html/api/identifier-index-T.html | 3166 --- doc/html/api/identifier-index-U.html | 206 - doc/html/api/identifier-index-V.html | 206 - doc/html/api/identifier-index-W.html | 200 - doc/html/api/identifier-index-X.html | 445 - doc/html/api/identifier-index-Y.html | 145 - doc/html/api/identifier-index-Z.html | 145 - doc/html/api/identifier-index-_.html | 1844 -- doc/html/api/identifier-index.html | 261 - doc/html/api/index.html | 17 - doc/html/api/lxml-module.html | 254 - doc/html/api/lxml-pysrc.html | 145 - doc/html/api/lxml.ElementInclude-module.html | 299 - doc/html/api/lxml.ElementInclude-pysrc.html | 540 - ...xml.ElementInclude.FatalIncludeError-class.html | 226 - doc/html/api/lxml.builder-module.html | 224 - doc/html/api/lxml.builder-pysrc.html | 458 - doc/html/api/lxml.builder.ElementMaker-class.html | 377 - doc/html/api/lxml.cssselect-module.html | 249 - doc/html/api/lxml.cssselect-pysrc.html | 315 - doc/html/api/lxml.cssselect.CSSSelector-class.html | 330 - .../lxml.cssselect.LxmlHTMLTranslator-class.html | 153 - .../api/lxml.cssselect.LxmlTranslator-class.html | 160 - doc/html/api/lxml.doctestcompare-module.html | 515 - doc/html/api/lxml.doctestcompare-pysrc.html | 1114 -- ...ml.doctestcompare.LHTMLOutputChecker-class.html | 251 - ...xml.doctestcompare.LXMLOutputChecker-class.html | 632 - .../lxml.doctestcompare._RestoreChecker-class.html | 371 - doc/html/api/lxml.etree-module.html | 2469 --- .../api/lxml.etree.AncestorsIterator-class.html | 255 - ...ree.AttributeBasedElementClassLookup-class.html | 315 - doc/html/api/lxml.etree.C14NError-class.html | 208 - doc/html/api/lxml.etree.CDATA-class.html | 293 - doc/html/api/lxml.etree.CommentBase-class.html | 370 - .../lxml.etree.CustomElementClassLookup-class.html | 294 - doc/html/api/lxml.etree.DTD-class.html | 433 - doc/html/api/lxml.etree.DTDError-class.html | 214 - doc/html/api/lxml.etree.DTDParseError-class.html | 210 - .../api/lxml.etree.DTDValidateError-class.html | 210 - doc/html/api/lxml.etree.DocInfo-class.html | 332 - doc/html/api/lxml.etree.DocumentInvalid-class.html | 210 - .../api/lxml.etree.ETCompatXMLParser-class.html | 347 - doc/html/api/lxml.etree.ETXPath-class.html | 315 - doc/html/api/lxml.etree.ElementBase-class.html | 383 - .../api/lxml.etree.ElementChildIterator-class.html | 255 - .../api/lxml.etree.ElementClassLookup-class.html | 254 - ...lxml.etree.ElementDefaultClassLookup-class.html | 328 - ...lxml.etree.ElementDepthFirstIterator-class.html | 309 - ...ml.etree.ElementNamespaceClassLookup-class.html | 341 - .../api/lxml.etree.ElementTextIterator-class.html | 301 - doc/html/api/lxml.etree.EntityBase-class.html | 371 - doc/html/api/lxml.etree.Error-class.html | 206 - doc/html/api/lxml.etree.ErrorDomains-class.html | 486 - doc/html/api/lxml.etree.ErrorLevels-class.html | 258 - doc/html/api/lxml.etree.ErrorTypes-class.html | 5414 ------ ...xml.etree.FallbackElementClassLookup-class.html | 322 - doc/html/api/lxml.etree.HTMLParser-class.html | 358 - doc/html/api/lxml.etree.LxmlError-class.html | 270 - .../api/lxml.etree.LxmlRegistryError-class.html | 214 - doc/html/api/lxml.etree.LxmlSyntaxError-class.html | 232 - .../lxml.etree.NamespaceRegistryError-class.html | 210 - doc/html/api/lxml.etree.PIBase-class.html | 372 - doc/html/api/lxml.etree.ParseError-class.html | 292 - ....etree.ParserBasedElementClassLookup-class.html | 258 - doc/html/api/lxml.etree.ParserError-class.html | 208 - doc/html/api/lxml.etree.PyErrorLog-class.html | 455 - .../lxml.etree.PythonElementClassLookup-class.html | 311 - doc/html/api/lxml.etree.QName-class.html | 508 - doc/html/api/lxml.etree.RelaxNG-class.html | 347 - doc/html/api/lxml.etree.RelaxNGError-class.html | 214 - .../api/lxml.etree.RelaxNGErrorTypes-class.html | 563 - .../api/lxml.etree.RelaxNGParseError-class.html | 210 - .../api/lxml.etree.RelaxNGValidateError-class.html | 210 - doc/html/api/lxml.etree.Resolver-class.html | 476 - doc/html/api/lxml.etree.Schematron-class.html | 388 - doc/html/api/lxml.etree.SchematronError-class.html | 214 - .../api/lxml.etree.SchematronParseError-class.html | 210 - .../lxml.etree.SchematronValidateError-class.html | 210 - .../api/lxml.etree.SerialisationError-class.html | 208 - .../api/lxml.etree.SiblingsIterator-class.html | 256 - doc/html/api/lxml.etree.TreeBuilder-class.html | 404 - doc/html/api/lxml.etree.XInclude-class.html | 313 - doc/html/api/lxml.etree.XIncludeError-class.html | 208 - doc/html/api/lxml.etree.XMLParser-class.html | 398 - doc/html/api/lxml.etree.XMLSchema-class.html | 349 - doc/html/api/lxml.etree.XMLSchemaError-class.html | 214 - .../api/lxml.etree.XMLSchemaParseError-class.html | 210 - .../lxml.etree.XMLSchemaValidateError-class.html | 210 - doc/html/api/lxml.etree.XMLSyntaxError-class.html | 230 - doc/html/api/lxml.etree.XPath-class.html | 383 - .../lxml.etree.XPathDocumentEvaluator-class.html | 362 - .../lxml.etree.XPathElementEvaluator-class.html | 397 - doc/html/api/lxml.etree.XPathError-class.html | 214 - doc/html/api/lxml.etree.XPathEvalError-class.html | 216 - .../api/lxml.etree.XPathFunctionError-class.html | 212 - .../api/lxml.etree.XPathResultError-class.html | 212 - .../api/lxml.etree.XPathSyntaxError-class.html | 238 - doc/html/api/lxml.etree.XSLT-class.html | 597 - .../api/lxml.etree.XSLTAccessControl-class.html | 450 - doc/html/api/lxml.etree.XSLTApplyError-class.html | 210 - doc/html/api/lxml.etree.XSLTError-class.html | 214 - doc/html/api/lxml.etree.XSLTExtension-class.html | 399 - .../api/lxml.etree.XSLTExtensionError-class.html | 210 - doc/html/api/lxml.etree.XSLTParseError-class.html | 210 - doc/html/api/lxml.etree.XSLTSaveError-class.html | 210 - doc/html/api/lxml.etree._Attrib-class.html | 694 - doc/html/api/lxml.etree._BaseErrorLog-class.html | 368 - doc/html/api/lxml.etree._BaseParser-class.html | 436 - doc/html/api/lxml.etree._Comment-class.html | 362 - doc/html/api/lxml.etree._Document-class.html | 249 - doc/html/api/lxml.etree._DomainErrorLog-class.html | 350 - doc/html/api/lxml.etree._Element-class.html | 1621 -- .../api/lxml.etree._ElementIterator-class.html | 298 - .../lxml.etree._ElementMatchIterator-class.html | 300 - .../api/lxml.etree._ElementStringResult-class.html | 264 - .../api/lxml.etree._ElementTagMatcher-class.html | 253 - doc/html/api/lxml.etree._ElementTree-class.html | 1020 - .../lxml.etree._ElementUnicodeResult-class.html | 355 - doc/html/api/lxml.etree._Entity-class.html | 377 - doc/html/api/lxml.etree._ErrorLog-class.html | 458 - doc/html/api/lxml.etree._FeedParser-class.html | 399 - doc/html/api/lxml.etree._IDDict-class.html | 504 - doc/html/api/lxml.etree._ListErrorLog-class.html | 592 - doc/html/api/lxml.etree._LogEntry-class.html | 369 - .../lxml.etree._ProcessingInstruction-class.html | 429 - .../api/lxml.etree._RotatingErrorLog-class.html | 350 - .../api/lxml.etree._SaxParserTarget-class.html | 251 - .../api/lxml.etree._TargetParserResult-class.html | 259 - doc/html/api/lxml.etree._Validator-class.html | 368 - .../api/lxml.etree._XPathEvaluatorBase-class.html | 344 - ...xml.etree._XSLTProcessingInstruction-class.html | 411 - doc/html/api/lxml.etree._XSLTResultTree-class.html | 337 - doc/html/api/lxml.etree.iterparse-class.html | 488 - doc/html/api/lxml.etree.iterwalk-class.html | 345 - doc/html/api/lxml.html-module.html | 1311 -- doc/html/api/lxml.html-pysrc.html | 3609 ---- doc/html/api/lxml.html.CheckboxGroup-class.html | 435 - doc/html/api/lxml.html.CheckboxValues-class.html | 368 - doc/html/api/lxml.html.ElementSoup-module.html | 285 - doc/html/api/lxml.html.ElementSoup-pysrc.html | 141 - doc/html/api/lxml.html.FieldsDict-class.html | 702 - doc/html/api/lxml.html.FormElement-class.html | 572 - doc/html/api/lxml.html.HTMLParser-class.html | 276 - doc/html/api/lxml.html.HtmlComment-class.html | 289 - doc/html/api/lxml.html.HtmlElement-class.html | 283 - .../lxml.html.HtmlElementClassLookup-class.html | 386 - doc/html/api/lxml.html.HtmlEntity-class.html | 290 - doc/html/api/lxml.html.HtmlMixin-class.html | 789 - .../lxml.html.HtmlProcessingInstruction-class.html | 290 - doc/html/api/lxml.html.InputElement-class.html | 615 - doc/html/api/lxml.html.InputGetter-class.html | 453 - doc/html/api/lxml.html.InputMixin-class.html | 351 - doc/html/api/lxml.html.LabelElement-class.html | 386 - .../api/lxml.html.MultipleSelectOptions-class.html | 411 - doc/html/api/lxml.html.RadioGroup-class.html | 434 - doc/html/api/lxml.html.SelectElement-class.html | 529 - doc/html/api/lxml.html.TextareaElement-class.html | 395 - doc/html/api/lxml.html.XHTMLParser-class.html | 288 - doc/html/api/lxml.html._MethodFunc-class.html | 275 - doc/html/api/lxml.html.builder-module.html | 857 - doc/html/api/lxml.html.builder-pysrc.html | 455 - doc/html/api/lxml.html.clean-module.html | 749 - doc/html/api/lxml.html.clean-pysrc.html | 1246 -- doc/html/api/lxml.html.clean.Cleaner-class.html | 735 - doc/html/api/lxml.html.defs-module.html | 760 - doc/html/api/lxml.html.defs-pysrc.html | 250 - doc/html/api/lxml.html.diff-module.html | 1346 -- doc/html/api/lxml.html.diff-pysrc.html | 1757 -- doc/html/api/lxml.html.diff.DEL_END-class.html | 116 - doc/html/api/lxml.html.diff.DEL_START-class.html | 116 - ...html.diff.InsensitiveSequenceMatcher-class.html | 257 - doc/html/api/lxml.html.diff.NoDeletes-class.html | 204 - doc/html/api/lxml.html.diff.href_token-class.html | 364 - doc/html/api/lxml.html.diff.tag_token-class.html | 449 - doc/html/api/lxml.html.diff.token-class.html | 434 - doc/html/api/lxml.html.formfill-module.html | 568 - doc/html/api/lxml.html.formfill-pysrc.html | 809 - ...ml.html.formfill.DefaultErrorCreator-class.html | 325 - .../api/lxml.html.formfill.FormNotFound-class.html | 207 - doc/html/api/lxml.html.html5parser-module.html | 440 - doc/html/api/lxml.html.html5parser-pysrc.html | 590 - .../lxml.html.html5parser.HTMLParser-class.html | 275 - .../lxml.html.html5parser.XHTMLParser-class.html | 161 - doc/html/api/lxml.html.soupparser-module.html | 471 - doc/html/api/lxml.html.soupparser-pysrc.html | 339 - doc/html/api/lxml.html.usedoctest-module.html | 123 - doc/html/api/lxml.html.usedoctest-pysrc.html | 138 - doc/html/api/lxml.includes-module.html | 140 - doc/html/api/lxml.includes-pysrc.html | 122 - doc/html/api/lxml.isoschematron-module.html | 555 - doc/html/api/lxml.isoschematron-pysrc.html | 618 - .../api/lxml.isoschematron.Schematron-class.html | 707 - doc/html/api/lxml.objectify-module.html | 1165 -- doc/html/api/lxml.objectify.BoolElement-class.html | 823 - .../api/lxml.objectify.ElementMaker-class.html | 359 - .../api/lxml.objectify.FloatElement-class.html | 412 - doc/html/api/lxml.objectify.IntElement-class.html | 418 - doc/html/api/lxml.objectify.LongElement-class.html | 412 - doc/html/api/lxml.objectify.NoneElement-class.html | 594 - .../api/lxml.objectify.NumberElement-class.html | 1240 -- doc/html/api/lxml.objectify.ObjectPath-class.html | 474 - ...xml.objectify.ObjectifiedDataElement-class.html | 430 - .../lxml.objectify.ObjectifiedElement-class.html | 881 - ...bjectify.ObjectifyElementClassLookup-class.html | 298 - doc/html/api/lxml.objectify.PyType-class.html | 465 - .../api/lxml.objectify.StringElement-class.html | 753 - ...jectify._ObjectifyElementMakerCaller-class.html | 263 - doc/html/api/lxml.pyclasslookup-module.html | 139 - doc/html/api/lxml.pyclasslookup-pysrc.html | 128 - doc/html/api/lxml.sax-module.html | 241 - doc/html/api/lxml.sax-pysrc.html | 508 - .../lxml.sax.ElementTreeContentHandler-class.html | 893 - .../api/lxml.sax.ElementTreeProducer-class.html | 303 - doc/html/api/lxml.sax.SaxError-class.html | 208 - doc/html/api/lxml.tests-module.html | 188 - doc/html/api/lxml.tests-pysrc.html | 124 - doc/html/api/lxml.tests.common_imports-module.html | 499 - doc/html/api/lxml.tests.common_imports-pysrc.html | 553 - ....tests.common_imports.HelperTestCase-class.html | 442 - ...l.tests.common_imports.LargeFileLike-class.html | 194 - ....common_imports.LargeFileLikeUnicode-class.html | 252 - ...l.tests.common_imports.SillyFileLike-class.html | 168 - .../lxml.tests.common_imports.skipif-class.html | 266 - doc/html/api/lxml.tests.test_builder-module.html | 243 - doc/html/api/lxml.tests.test_builder-pysrc.html | 241 - ...l.tests.test_builder.BuilderTestCase-class.html | 422 - .../api/lxml.tests.test_classlookup-module.html | 283 - .../api/lxml.tests.test_classlookup-pysrc.html | 640 - ...test_classlookup.ClassLookupTestCase-class.html | 578 - doc/html/api/lxml.tests.test_css-module.html | 253 - doc/html/api/lxml.tests.test_css-pysrc.html | 204 - .../api/lxml.tests.test_css.CSSTestCase-class.html | 362 - doc/html/api/lxml.tests.test_dtd-module.html | 245 - doc/html/api/lxml.tests.test_dtd-pysrc.html | 666 - ...lxml.tests.test_dtd.ETreeDtdTestCase-class.html | 628 - .../api/lxml.tests.test_elementtree-module.html | 293 - .../api/lxml.tests.test_elementtree-pysrc.html | 10197 ---------- ...est_elementtree.CElementTreeTestCase-class.html | 627 - ...tests.test_elementtree.ETreeTestCase-class.html | 663 - ...test_elementtree.ElementTreeTestCase-class.html | 661 - ....test_elementtree._ETreeTestCaseBase-class.html | 4763 ----- doc/html/api/lxml.tests.test_errors-module.html | 243 - doc/html/api/lxml.tests.test_errors-pysrc.html | 275 - ...lxml.tests.test_errors.ErrorTestCase-class.html | 438 - doc/html/api/lxml.tests.test_etree-module.html | 290 - doc/html/api/lxml.tests.test_etree-pysrc.html | 9244 --------- ...l.tests.test_etree.ETreeC14NTestCase-class.html | 523 - ...l.tests.test_etree.ETreeErrorLogTest-class.html | 424 - ...l.tests.test_etree.ETreeOnlyTestCase-class.html | 3854 ---- ....tests.test_etree.ETreeWriteTestCase-class.html | 458 - ...sts.test_etree.ETreeXIncludeTestCase-class.html | 370 - ...ts.test_etree.ElementIncludeTestCase-class.html | 370 - ...l.tests.test_etree._XIncludeTestCase-class.html | 400 - .../api/lxml.tests.test_htmlparser-module.html | 254 - doc/html/api/lxml.tests.test_htmlparser-pysrc.html | 1305 -- ...s.test_htmlparser.HtmlParserTestCase-class.html | 1026 - doc/html/api/lxml.tests.test_io-module.html | 260 - doc/html/api/lxml.tests.test_io-pysrc.html | 818 - .../lxml.tests.test_io.ETreeIOTestCase-class.html | 409 - ....tests.test_io.ElementTreeIOTestCase-class.html | 407 - .../lxml.tests.test_io._IOTestCaseBase-class.html | 702 - .../api/lxml.tests.test_isoschematron-module.html | 245 - .../api/lxml.tests.test_isoschematron-pysrc.html | 1668 -- ...chematron.ETreeISOSchematronTestCase-class.html | 698 - doc/html/api/lxml.tests.test_nsclasses-module.html | 246 - doc/html/api/lxml.tests.test_nsclasses-pysrc.html | 585 - ...lasses.ETreeNamespaceClassesTestCase-class.html | 560 - ...NamespaceClassesTestCase.bluff_class-class.html | 265 - ...mespaceClassesTestCase.default_class-class.html | 249 - ...eNamespaceClassesTestCase.maeh_class-class.html | 265 - doc/html/api/lxml.tests.test_objectify-module.html | 563 - doc/html/api/lxml.tests.test_objectify-pysrc.html | 5608 ------ ...sts.test_objectify.ObjectifyTestCase-class.html | 3563 ---- .../api/lxml.tests.test_pyclasslookup-module.html | 287 - .../api/lxml.tests.test_pyclasslookup-pysrc.html | 879 - ..._pyclasslookup.PyClassLookupTestCase-class.html | 880 - doc/html/api/lxml.tests.test_relaxng-module.html | 245 - doc/html/api/lxml.tests.test_relaxng-pysrc.html | 540 - ...ts.test_relaxng.ETreeRelaxNGTestCase-class.html | 522 - doc/html/api/lxml.tests.test_sax-module.html | 245 - doc/html/api/lxml.tests.test_sax-pysrc.html | 620 - ...lxml.tests.test_sax.ETreeSaxTestCase-class.html | 668 - .../api/lxml.tests.test_schematron-module.html | 245 - doc/html/api/lxml.tests.test_schematron-pysrc.html | 340 - ...t_schematron.ETreeSchematronTestCase-class.html | 426 - doc/html/api/lxml.tests.test_threading-module.html | 254 - doc/html/api/lxml.tests.test_threading-pysrc.html | 1090 -- ...est_threading.ThreadPipelineTestCase-class.html | 533 - ...ipelineTestCase.ParseAndExtendWorker-class.html | 312 - ...g.ThreadPipelineTestCase.ParseWorker-class.html | 312 - ...ThreadPipelineTestCase.ReverseWorker-class.html | 238 - ....ThreadPipelineTestCase.RotateWorker-class.html | 238 - ...readPipelineTestCase.SerialiseWorker-class.html | 238 - ...eading.ThreadPipelineTestCase.Worker-class.html | 325 - ...sts.test_threading.ThreadingTestCase-class.html | 553 - doc/html/api/lxml.tests.test_unicode-module.html | 304 - doc/html/api/lxml.tests.test_unicode-pysrc.html | 432 - ...l.tests.test_unicode.UnicodeTestCase-class.html | 538 - doc/html/api/lxml.tests.test_xmlschema-module.html | 252 - doc/html/api/lxml.tests.test_xmlschema-pysrc.html | 1065 - ...hema.ETreeXMLSchemaResolversTestCase-class.html | 551 - ...emaResolversTestCase.simple_resolver-class.html | 306 - ...est_xmlschema.ETreeXMLSchemaTestCase-class.html | 586 - .../api/lxml.tests.test_xpathevaluator-module.html | 574 - .../api/lxml.tests.test_xpathevaluator-pysrc.html | 1927 -- ...hevaluator.ETreeETXPathClassTestCase-class.html | 380 - ...athevaluator.ETreeXPathClassTestCase-class.html | 428 - ...athevaluator.ETreeXPathExsltTestCase-class.html | 430 - ...st_xpathevaluator.ETreeXPathTestCase-class.html | 1052 - doc/html/api/lxml.tests.test_xslt-module.html | 301 - doc/html/api/lxml.tests.test_xslt-pysrc.html | 3825 ---- ...l.tests.test_xslt.ETreeEXSLTTestCase-class.html | 524 - ...est_xslt.ETreeXSLTExtElementTestCase-class.html | 556 - ...s.test_xslt.ETreeXSLTExtFuncTestCase-class.html | 396 - ...ml.tests.test_xslt.ETreeXSLTTestCase-class.html | 1132 -- ...lxml.tests.test_xslt.Py3XSLTTestCase-class.html | 403 - doc/html/api/lxml.usedoctest-module.html | 122 - doc/html/api/lxml.usedoctest-pysrc.html | 134 - doc/html/api/module-tree.html | 174 - doc/html/api/redirect.html | 38 - doc/html/api/str-class.html | 1650 -- doc/html/api/toc-everything.html | 1203 -- doc/html/api/toc-lxml-module.html | 33 - doc/html/api/toc-lxml.ElementInclude-module.html | 48 - doc/html/api/toc-lxml.builder-module.html | 38 - doc/html/api/toc-lxml.cssselect-module.html | 51 - doc/html/api/toc-lxml.doctestcompare-module.html | 72 - doc/html/api/toc-lxml.etree-module.html | 257 - doc/html/api/toc-lxml.html-module.html | 194 - doc/html/api/toc-lxml.html.ElementSoup-module.html | 39 - doc/html/api/toc-lxml.html.builder-module.html | 126 - doc/html/api/toc-lxml.html.clean-module.html | 105 - doc/html/api/toc-lxml.html.defs-module.html | 49 - doc/html/api/toc-lxml.html.diff-module.html | 184 - doc/html/api/toc-lxml.html.formfill-module.html | 95 - doc/html/api/toc-lxml.html.html5parser-module.html | 48 - doc/html/api/toc-lxml.html.soupparser-module.html | 58 - doc/html/api/toc-lxml.html.usedoctest-module.html | 29 - doc/html/api/toc-lxml.includes-module.html | 31 - doc/html/api/toc-lxml.isoschematron-module.html | 77 - doc/html/api/toc-lxml.objectify-module.html | 85 - doc/html/api/toc-lxml.pyclasslookup-module.html | 31 - doc/html/api/toc-lxml.sax-module.html | 40 - doc/html/api/toc-lxml.tests-module.html | 31 - .../api/toc-lxml.tests.common_imports-module.html | 71 - .../api/toc-lxml.tests.test_builder-module.html | 36 - .../toc-lxml.tests.test_classlookup-module.html | 37 - doc/html/api/toc-lxml.tests.test_css-module.html | 36 - doc/html/api/toc-lxml.tests.test_dtd-module.html | 36 - .../toc-lxml.tests.test_elementtree-module.html | 43 - .../api/toc-lxml.tests.test_errors-module.html | 36 - doc/html/api/toc-lxml.tests.test_etree-module.html | 44 - .../api/toc-lxml.tests.test_htmlparser-module.html | 37 - doc/html/api/toc-lxml.tests.test_io-module.html | 40 - .../toc-lxml.tests.test_isoschematron-module.html | 36 - .../api/toc-lxml.tests.test_nsclasses-module.html | 36 - .../api/toc-lxml.tests.test_objectify-module.html | 49 - .../toc-lxml.tests.test_pyclasslookup-module.html | 37 - .../api/toc-lxml.tests.test_relaxng-module.html | 36 - doc/html/api/toc-lxml.tests.test_sax-module.html | 36 - .../api/toc-lxml.tests.test_schematron-module.html | 36 - .../api/toc-lxml.tests.test_threading-module.html | 37 - .../api/toc-lxml.tests.test_unicode-module.html | 42 - .../api/toc-lxml.tests.test_xmlschema-module.html | 37 - .../toc-lxml.tests.test_xpathevaluator-module.html | 55 - doc/html/api/toc-lxml.tests.test_xslt-module.html | 43 - doc/html/api/toc-lxml.usedoctest-module.html | 29 - doc/html/api/toc-xml.etree.ElementTree-module.html | 72 - doc/html/api/toc.html | 78 - doc/html/api/xml.etree.ElementTree-module.html | 805 - doc/html/api/xml.etree.ElementTree-pysrc.html | 3062 --- .../api/xml.etree.ElementTree.Element-class.html | 751 - .../xml.etree.ElementTree.ElementTree-class.html | 445 - .../xml.etree.ElementTree.ParseError-class.html | 214 - .../api/xml.etree.ElementTree.QName-class.html | 346 - .../xml.etree.ElementTree.TreeBuilder-class.html | 331 - .../api/xml.etree.ElementTree.XMLParser-class.html | 497 - ...etree.ElementTree._IterParseIterator-class.html | 285 - ...etree.ElementTree._SimpleElementPath-class.html | 263 - doc/html/build.html | 10 +- doc/html/capi.html | 6 +- .../{changes-3.0.1.html => changes-3.0.2.html} | 495 +- doc/html/compatibility.html | 6 +- doc/html/credits.html | 6 +- doc/html/cssselect.html | 6 +- doc/html/element_classes.html | 6 +- doc/html/elementsoup.html | 6 +- doc/html/extensions.html | 6 +- doc/html/html5parser.html | 6 +- doc/html/index.html | 13 +- doc/html/installation.html | 6 +- doc/html/intro.html | 6 +- doc/html/lxml-source-howto.html | 6 +- doc/html/lxmlhtml.html | 6 +- doc/html/objectify.html | 6 +- doc/html/parsing.html | 6 +- doc/html/performance.html | 6 +- doc/html/resolvers.html | 6 +- doc/html/sax.html | 6 +- doc/html/sitemap.html | 2 +- doc/html/tutorial.html | 6 +- doc/html/validation.html | 6 +- doc/html/xpathxslt.html | 6 +- doc/main.txt | 10 +- doc/pdf/pubkey.asc | 36 - doc/s5/lxml-ep2008.html | 14 +- src/lxml.egg-info/PKG-INFO | 13 +- src/lxml.egg-info/SOURCES.txt | 410 +- src/lxml/includes/lxml-version.h | 3 + src/lxml/lxml.etree.c | 19343 ++++++++++--------- src/lxml/lxml.etree.h | 8 +- src/lxml/lxml.objectify.c | 1233 +- version.txt | 2 +- 445 files changed, 11006 insertions(+), 226130 deletions(-) delete mode 100644 doc/html/api/abc.ABCMeta-class.html delete mode 100644 doc/html/api/api-objects.txt delete mode 100644 doc/html/api/class-tree.html delete mode 100644 doc/html/api/deprecated-index.html delete mode 100644 doc/html/api/epydoc.css delete mode 100644 doc/html/api/exceptions.AssertionError-class.html delete mode 100644 doc/html/api/frames.html delete mode 100644 doc/html/api/help.html delete mode 100644 doc/html/api/identifier-index-A.html delete mode 100644 doc/html/api/identifier-index-B.html delete mode 100644 doc/html/api/identifier-index-C.html delete mode 100644 doc/html/api/identifier-index-D.html delete mode 100644 doc/html/api/identifier-index-E.html delete mode 100644 doc/html/api/identifier-index-F.html delete mode 100644 doc/html/api/identifier-index-G.html delete mode 100644 doc/html/api/identifier-index-H.html delete mode 100644 doc/html/api/identifier-index-I.html delete mode 100644 doc/html/api/identifier-index-J.html delete mode 100644 doc/html/api/identifier-index-K.html delete mode 100644 doc/html/api/identifier-index-L.html delete mode 100644 doc/html/api/identifier-index-M.html delete mode 100644 doc/html/api/identifier-index-N.html delete mode 100644 doc/html/api/identifier-index-O.html delete mode 100644 doc/html/api/identifier-index-P.html delete mode 100644 doc/html/api/identifier-index-Q.html delete mode 100644 doc/html/api/identifier-index-R.html delete mode 100644 doc/html/api/identifier-index-S.html delete mode 100644 doc/html/api/identifier-index-T.html delete mode 100644 doc/html/api/identifier-index-U.html delete mode 100644 doc/html/api/identifier-index-V.html delete mode 100644 doc/html/api/identifier-index-W.html delete mode 100644 doc/html/api/identifier-index-X.html delete mode 100644 doc/html/api/identifier-index-Y.html delete mode 100644 doc/html/api/identifier-index-Z.html delete mode 100644 doc/html/api/identifier-index-_.html delete mode 100644 doc/html/api/identifier-index.html delete mode 100644 doc/html/api/index.html delete mode 100644 doc/html/api/lxml-module.html delete mode 100644 doc/html/api/lxml-pysrc.html delete mode 100644 doc/html/api/lxml.ElementInclude-module.html delete mode 100644 doc/html/api/lxml.ElementInclude-pysrc.html delete mode 100644 doc/html/api/lxml.ElementInclude.FatalIncludeError-class.html delete mode 100644 doc/html/api/lxml.builder-module.html delete mode 100644 doc/html/api/lxml.builder-pysrc.html delete mode 100644 doc/html/api/lxml.builder.ElementMaker-class.html delete mode 100644 doc/html/api/lxml.cssselect-module.html delete mode 100644 doc/html/api/lxml.cssselect-pysrc.html delete mode 100644 doc/html/api/lxml.cssselect.CSSSelector-class.html delete mode 100644 doc/html/api/lxml.cssselect.LxmlHTMLTranslator-class.html delete mode 100644 doc/html/api/lxml.cssselect.LxmlTranslator-class.html delete mode 100644 doc/html/api/lxml.doctestcompare-module.html delete mode 100644 doc/html/api/lxml.doctestcompare-pysrc.html delete mode 100644 doc/html/api/lxml.doctestcompare.LHTMLOutputChecker-class.html delete mode 100644 doc/html/api/lxml.doctestcompare.LXMLOutputChecker-class.html delete mode 100644 doc/html/api/lxml.doctestcompare._RestoreChecker-class.html delete mode 100644 doc/html/api/lxml.etree-module.html delete mode 100644 doc/html/api/lxml.etree.AncestorsIterator-class.html delete mode 100644 doc/html/api/lxml.etree.AttributeBasedElementClassLookup-class.html delete mode 100644 doc/html/api/lxml.etree.C14NError-class.html delete mode 100644 doc/html/api/lxml.etree.CDATA-class.html delete mode 100644 doc/html/api/lxml.etree.CommentBase-class.html delete mode 100644 doc/html/api/lxml.etree.CustomElementClassLookup-class.html delete mode 100644 doc/html/api/lxml.etree.DTD-class.html delete mode 100644 doc/html/api/lxml.etree.DTDError-class.html delete mode 100644 doc/html/api/lxml.etree.DTDParseError-class.html delete mode 100644 doc/html/api/lxml.etree.DTDValidateError-class.html delete mode 100644 doc/html/api/lxml.etree.DocInfo-class.html delete mode 100644 doc/html/api/lxml.etree.DocumentInvalid-class.html delete mode 100644 doc/html/api/lxml.etree.ETCompatXMLParser-class.html delete mode 100644 doc/html/api/lxml.etree.ETXPath-class.html delete mode 100644 doc/html/api/lxml.etree.ElementBase-class.html delete mode 100644 doc/html/api/lxml.etree.ElementChildIterator-class.html delete mode 100644 doc/html/api/lxml.etree.ElementClassLookup-class.html delete mode 100644 doc/html/api/lxml.etree.ElementDefaultClassLookup-class.html delete mode 100644 doc/html/api/lxml.etree.ElementDepthFirstIterator-class.html delete mode 100644 doc/html/api/lxml.etree.ElementNamespaceClassLookup-class.html delete mode 100644 doc/html/api/lxml.etree.ElementTextIterator-class.html delete mode 100644 doc/html/api/lxml.etree.EntityBase-class.html delete mode 100644 doc/html/api/lxml.etree.Error-class.html delete mode 100644 doc/html/api/lxml.etree.ErrorDomains-class.html delete mode 100644 doc/html/api/lxml.etree.ErrorLevels-class.html delete mode 100644 doc/html/api/lxml.etree.ErrorTypes-class.html delete mode 100644 doc/html/api/lxml.etree.FallbackElementClassLookup-class.html delete mode 100644 doc/html/api/lxml.etree.HTMLParser-class.html delete mode 100644 doc/html/api/lxml.etree.LxmlError-class.html delete mode 100644 doc/html/api/lxml.etree.LxmlRegistryError-class.html delete mode 100644 doc/html/api/lxml.etree.LxmlSyntaxError-class.html delete mode 100644 doc/html/api/lxml.etree.NamespaceRegistryError-class.html delete mode 100644 doc/html/api/lxml.etree.PIBase-class.html delete mode 100644 doc/html/api/lxml.etree.ParseError-class.html delete mode 100644 doc/html/api/lxml.etree.ParserBasedElementClassLookup-class.html delete mode 100644 doc/html/api/lxml.etree.ParserError-class.html delete mode 100644 doc/html/api/lxml.etree.PyErrorLog-class.html delete mode 100644 doc/html/api/lxml.etree.PythonElementClassLookup-class.html delete mode 100644 doc/html/api/lxml.etree.QName-class.html delete mode 100644 doc/html/api/lxml.etree.RelaxNG-class.html delete mode 100644 doc/html/api/lxml.etree.RelaxNGError-class.html delete mode 100644 doc/html/api/lxml.etree.RelaxNGErrorTypes-class.html delete mode 100644 doc/html/api/lxml.etree.RelaxNGParseError-class.html delete mode 100644 doc/html/api/lxml.etree.RelaxNGValidateError-class.html delete mode 100644 doc/html/api/lxml.etree.Resolver-class.html delete mode 100644 doc/html/api/lxml.etree.Schematron-class.html delete mode 100644 doc/html/api/lxml.etree.SchematronError-class.html delete mode 100644 doc/html/api/lxml.etree.SchematronParseError-class.html delete mode 100644 doc/html/api/lxml.etree.SchematronValidateError-class.html delete mode 100644 doc/html/api/lxml.etree.SerialisationError-class.html delete mode 100644 doc/html/api/lxml.etree.SiblingsIterator-class.html delete mode 100644 doc/html/api/lxml.etree.TreeBuilder-class.html delete mode 100644 doc/html/api/lxml.etree.XInclude-class.html delete mode 100644 doc/html/api/lxml.etree.XIncludeError-class.html delete mode 100644 doc/html/api/lxml.etree.XMLParser-class.html delete mode 100644 doc/html/api/lxml.etree.XMLSchema-class.html delete mode 100644 doc/html/api/lxml.etree.XMLSchemaError-class.html delete mode 100644 doc/html/api/lxml.etree.XMLSchemaParseError-class.html delete mode 100644 doc/html/api/lxml.etree.XMLSchemaValidateError-class.html delete mode 100644 doc/html/api/lxml.etree.XMLSyntaxError-class.html delete mode 100644 doc/html/api/lxml.etree.XPath-class.html delete mode 100644 doc/html/api/lxml.etree.XPathDocumentEvaluator-class.html delete mode 100644 doc/html/api/lxml.etree.XPathElementEvaluator-class.html delete mode 100644 doc/html/api/lxml.etree.XPathError-class.html delete mode 100644 doc/html/api/lxml.etree.XPathEvalError-class.html delete mode 100644 doc/html/api/lxml.etree.XPathFunctionError-class.html delete mode 100644 doc/html/api/lxml.etree.XPathResultError-class.html delete mode 100644 doc/html/api/lxml.etree.XPathSyntaxError-class.html delete mode 100644 doc/html/api/lxml.etree.XSLT-class.html delete mode 100644 doc/html/api/lxml.etree.XSLTAccessControl-class.html delete mode 100644 doc/html/api/lxml.etree.XSLTApplyError-class.html delete mode 100644 doc/html/api/lxml.etree.XSLTError-class.html delete mode 100644 doc/html/api/lxml.etree.XSLTExtension-class.html delete mode 100644 doc/html/api/lxml.etree.XSLTExtensionError-class.html delete mode 100644 doc/html/api/lxml.etree.XSLTParseError-class.html delete mode 100644 doc/html/api/lxml.etree.XSLTSaveError-class.html delete mode 100644 doc/html/api/lxml.etree._Attrib-class.html delete mode 100644 doc/html/api/lxml.etree._BaseErrorLog-class.html delete mode 100644 doc/html/api/lxml.etree._BaseParser-class.html delete mode 100644 doc/html/api/lxml.etree._Comment-class.html delete mode 100644 doc/html/api/lxml.etree._Document-class.html delete mode 100644 doc/html/api/lxml.etree._DomainErrorLog-class.html delete mode 100644 doc/html/api/lxml.etree._Element-class.html delete mode 100644 doc/html/api/lxml.etree._ElementIterator-class.html delete mode 100644 doc/html/api/lxml.etree._ElementMatchIterator-class.html delete mode 100644 doc/html/api/lxml.etree._ElementStringResult-class.html delete mode 100644 doc/html/api/lxml.etree._ElementTagMatcher-class.html delete mode 100644 doc/html/api/lxml.etree._ElementTree-class.html delete mode 100644 doc/html/api/lxml.etree._ElementUnicodeResult-class.html delete mode 100644 doc/html/api/lxml.etree._Entity-class.html delete mode 100644 doc/html/api/lxml.etree._ErrorLog-class.html delete mode 100644 doc/html/api/lxml.etree._FeedParser-class.html delete mode 100644 doc/html/api/lxml.etree._IDDict-class.html delete mode 100644 doc/html/api/lxml.etree._ListErrorLog-class.html delete mode 100644 doc/html/api/lxml.etree._LogEntry-class.html delete mode 100644 doc/html/api/lxml.etree._ProcessingInstruction-class.html delete mode 100644 doc/html/api/lxml.etree._RotatingErrorLog-class.html delete mode 100644 doc/html/api/lxml.etree._SaxParserTarget-class.html delete mode 100644 doc/html/api/lxml.etree._TargetParserResult-class.html delete mode 100644 doc/html/api/lxml.etree._Validator-class.html delete mode 100644 doc/html/api/lxml.etree._XPathEvaluatorBase-class.html delete mode 100644 doc/html/api/lxml.etree._XSLTProcessingInstruction-class.html delete mode 100644 doc/html/api/lxml.etree._XSLTResultTree-class.html delete mode 100644 doc/html/api/lxml.etree.iterparse-class.html delete mode 100644 doc/html/api/lxml.etree.iterwalk-class.html delete mode 100644 doc/html/api/lxml.html-module.html delete mode 100644 doc/html/api/lxml.html-pysrc.html delete mode 100644 doc/html/api/lxml.html.CheckboxGroup-class.html delete mode 100644 doc/html/api/lxml.html.CheckboxValues-class.html delete mode 100644 doc/html/api/lxml.html.ElementSoup-module.html delete mode 100644 doc/html/api/lxml.html.ElementSoup-pysrc.html delete mode 100644 doc/html/api/lxml.html.FieldsDict-class.html delete mode 100644 doc/html/api/lxml.html.FormElement-class.html delete mode 100644 doc/html/api/lxml.html.HTMLParser-class.html delete mode 100644 doc/html/api/lxml.html.HtmlComment-class.html delete mode 100644 doc/html/api/lxml.html.HtmlElement-class.html delete mode 100644 doc/html/api/lxml.html.HtmlElementClassLookup-class.html delete mode 100644 doc/html/api/lxml.html.HtmlEntity-class.html delete mode 100644 doc/html/api/lxml.html.HtmlMixin-class.html delete mode 100644 doc/html/api/lxml.html.HtmlProcessingInstruction-class.html delete mode 100644 doc/html/api/lxml.html.InputElement-class.html delete mode 100644 doc/html/api/lxml.html.InputGetter-class.html delete mode 100644 doc/html/api/lxml.html.InputMixin-class.html delete mode 100644 doc/html/api/lxml.html.LabelElement-class.html delete mode 100644 doc/html/api/lxml.html.MultipleSelectOptions-class.html delete mode 100644 doc/html/api/lxml.html.RadioGroup-class.html delete mode 100644 doc/html/api/lxml.html.SelectElement-class.html delete mode 100644 doc/html/api/lxml.html.TextareaElement-class.html delete mode 100644 doc/html/api/lxml.html.XHTMLParser-class.html delete mode 100644 doc/html/api/lxml.html._MethodFunc-class.html delete mode 100644 doc/html/api/lxml.html.builder-module.html delete mode 100644 doc/html/api/lxml.html.builder-pysrc.html delete mode 100644 doc/html/api/lxml.html.clean-module.html delete mode 100644 doc/html/api/lxml.html.clean-pysrc.html delete mode 100644 doc/html/api/lxml.html.clean.Cleaner-class.html delete mode 100644 doc/html/api/lxml.html.defs-module.html delete mode 100644 doc/html/api/lxml.html.defs-pysrc.html delete mode 100644 doc/html/api/lxml.html.diff-module.html delete mode 100644 doc/html/api/lxml.html.diff-pysrc.html delete mode 100644 doc/html/api/lxml.html.diff.DEL_END-class.html delete mode 100644 doc/html/api/lxml.html.diff.DEL_START-class.html delete mode 100644 doc/html/api/lxml.html.diff.InsensitiveSequenceMatcher-class.html delete mode 100644 doc/html/api/lxml.html.diff.NoDeletes-class.html delete mode 100644 doc/html/api/lxml.html.diff.href_token-class.html delete mode 100644 doc/html/api/lxml.html.diff.tag_token-class.html delete mode 100644 doc/html/api/lxml.html.diff.token-class.html delete mode 100644 doc/html/api/lxml.html.formfill-module.html delete mode 100644 doc/html/api/lxml.html.formfill-pysrc.html delete mode 100644 doc/html/api/lxml.html.formfill.DefaultErrorCreator-class.html delete mode 100644 doc/html/api/lxml.html.formfill.FormNotFound-class.html delete mode 100644 doc/html/api/lxml.html.html5parser-module.html delete mode 100644 doc/html/api/lxml.html.html5parser-pysrc.html delete mode 100644 doc/html/api/lxml.html.html5parser.HTMLParser-class.html delete mode 100644 doc/html/api/lxml.html.html5parser.XHTMLParser-class.html delete mode 100644 doc/html/api/lxml.html.soupparser-module.html delete mode 100644 doc/html/api/lxml.html.soupparser-pysrc.html delete mode 100644 doc/html/api/lxml.html.usedoctest-module.html delete mode 100644 doc/html/api/lxml.html.usedoctest-pysrc.html delete mode 100644 doc/html/api/lxml.includes-module.html delete mode 100644 doc/html/api/lxml.includes-pysrc.html delete mode 100644 doc/html/api/lxml.isoschematron-module.html delete mode 100644 doc/html/api/lxml.isoschematron-pysrc.html delete mode 100644 doc/html/api/lxml.isoschematron.Schematron-class.html delete mode 100644 doc/html/api/lxml.objectify-module.html delete mode 100644 doc/html/api/lxml.objectify.BoolElement-class.html delete mode 100644 doc/html/api/lxml.objectify.ElementMaker-class.html delete mode 100644 doc/html/api/lxml.objectify.FloatElement-class.html delete mode 100644 doc/html/api/lxml.objectify.IntElement-class.html delete mode 100644 doc/html/api/lxml.objectify.LongElement-class.html delete mode 100644 doc/html/api/lxml.objectify.NoneElement-class.html delete mode 100644 doc/html/api/lxml.objectify.NumberElement-class.html delete mode 100644 doc/html/api/lxml.objectify.ObjectPath-class.html delete mode 100644 doc/html/api/lxml.objectify.ObjectifiedDataElement-class.html delete mode 100644 doc/html/api/lxml.objectify.ObjectifiedElement-class.html delete mode 100644 doc/html/api/lxml.objectify.ObjectifyElementClassLookup-class.html delete mode 100644 doc/html/api/lxml.objectify.PyType-class.html delete mode 100644 doc/html/api/lxml.objectify.StringElement-class.html delete mode 100644 doc/html/api/lxml.objectify._ObjectifyElementMakerCaller-class.html delete mode 100644 doc/html/api/lxml.pyclasslookup-module.html delete mode 100644 doc/html/api/lxml.pyclasslookup-pysrc.html delete mode 100644 doc/html/api/lxml.sax-module.html delete mode 100644 doc/html/api/lxml.sax-pysrc.html delete mode 100644 doc/html/api/lxml.sax.ElementTreeContentHandler-class.html delete mode 100644 doc/html/api/lxml.sax.ElementTreeProducer-class.html delete mode 100644 doc/html/api/lxml.sax.SaxError-class.html delete mode 100644 doc/html/api/lxml.tests-module.html delete mode 100644 doc/html/api/lxml.tests-pysrc.html delete mode 100644 doc/html/api/lxml.tests.common_imports-module.html delete mode 100644 doc/html/api/lxml.tests.common_imports-pysrc.html delete mode 100644 doc/html/api/lxml.tests.common_imports.HelperTestCase-class.html delete mode 100644 doc/html/api/lxml.tests.common_imports.LargeFileLike-class.html delete mode 100644 doc/html/api/lxml.tests.common_imports.LargeFileLikeUnicode-class.html delete mode 100644 doc/html/api/lxml.tests.common_imports.SillyFileLike-class.html delete mode 100644 doc/html/api/lxml.tests.common_imports.skipif-class.html delete mode 100644 doc/html/api/lxml.tests.test_builder-module.html delete mode 100644 doc/html/api/lxml.tests.test_builder-pysrc.html delete mode 100644 doc/html/api/lxml.tests.test_builder.BuilderTestCase-class.html delete mode 100644 doc/html/api/lxml.tests.test_classlookup-module.html delete mode 100644 doc/html/api/lxml.tests.test_classlookup-pysrc.html delete mode 100644 doc/html/api/lxml.tests.test_classlookup.ClassLookupTestCase-class.html delete mode 100644 doc/html/api/lxml.tests.test_css-module.html delete mode 100644 doc/html/api/lxml.tests.test_css-pysrc.html delete mode 100644 doc/html/api/lxml.tests.test_css.CSSTestCase-class.html delete mode 100644 doc/html/api/lxml.tests.test_dtd-module.html delete mode 100644 doc/html/api/lxml.tests.test_dtd-pysrc.html delete mode 100644 doc/html/api/lxml.tests.test_dtd.ETreeDtdTestCase-class.html delete mode 100644 doc/html/api/lxml.tests.test_elementtree-module.html delete mode 100644 doc/html/api/lxml.tests.test_elementtree-pysrc.html delete mode 100644 doc/html/api/lxml.tests.test_elementtree.CElementTreeTestCase-class.html delete mode 100644 doc/html/api/lxml.tests.test_elementtree.ETreeTestCase-class.html delete mode 100644 doc/html/api/lxml.tests.test_elementtree.ElementTreeTestCase-class.html delete mode 100644 doc/html/api/lxml.tests.test_elementtree._ETreeTestCaseBase-class.html delete mode 100644 doc/html/api/lxml.tests.test_errors-module.html delete mode 100644 doc/html/api/lxml.tests.test_errors-pysrc.html delete mode 100644 doc/html/api/lxml.tests.test_errors.ErrorTestCase-class.html delete mode 100644 doc/html/api/lxml.tests.test_etree-module.html delete mode 100644 doc/html/api/lxml.tests.test_etree-pysrc.html delete mode 100644 doc/html/api/lxml.tests.test_etree.ETreeC14NTestCase-class.html delete mode 100644 doc/html/api/lxml.tests.test_etree.ETreeErrorLogTest-class.html delete mode 100644 doc/html/api/lxml.tests.test_etree.ETreeOnlyTestCase-class.html delete mode 100644 doc/html/api/lxml.tests.test_etree.ETreeWriteTestCase-class.html delete mode 100644 doc/html/api/lxml.tests.test_etree.ETreeXIncludeTestCase-class.html delete mode 100644 doc/html/api/lxml.tests.test_etree.ElementIncludeTestCase-class.html delete mode 100644 doc/html/api/lxml.tests.test_etree._XIncludeTestCase-class.html delete mode 100644 doc/html/api/lxml.tests.test_htmlparser-module.html delete mode 100644 doc/html/api/lxml.tests.test_htmlparser-pysrc.html delete mode 100644 doc/html/api/lxml.tests.test_htmlparser.HtmlParserTestCase-class.html delete mode 100644 doc/html/api/lxml.tests.test_io-module.html delete mode 100644 doc/html/api/lxml.tests.test_io-pysrc.html delete mode 100644 doc/html/api/lxml.tests.test_io.ETreeIOTestCase-class.html delete mode 100644 doc/html/api/lxml.tests.test_io.ElementTreeIOTestCase-class.html delete mode 100644 doc/html/api/lxml.tests.test_io._IOTestCaseBase-class.html delete mode 100644 doc/html/api/lxml.tests.test_isoschematron-module.html delete mode 100644 doc/html/api/lxml.tests.test_isoschematron-pysrc.html delete mode 100644 doc/html/api/lxml.tests.test_isoschematron.ETreeISOSchematronTestCase-class.html delete mode 100644 doc/html/api/lxml.tests.test_nsclasses-module.html delete mode 100644 doc/html/api/lxml.tests.test_nsclasses-pysrc.html delete mode 100644 doc/html/api/lxml.tests.test_nsclasses.ETreeNamespaceClassesTestCase-class.html delete mode 100644 doc/html/api/lxml.tests.test_nsclasses.ETreeNamespaceClassesTestCase.bluff_class-class.html delete mode 100644 doc/html/api/lxml.tests.test_nsclasses.ETreeNamespaceClassesTestCase.default_class-class.html delete mode 100644 doc/html/api/lxml.tests.test_nsclasses.ETreeNamespaceClassesTestCase.maeh_class-class.html delete mode 100644 doc/html/api/lxml.tests.test_objectify-module.html delete mode 100644 doc/html/api/lxml.tests.test_objectify-pysrc.html delete mode 100644 doc/html/api/lxml.tests.test_objectify.ObjectifyTestCase-class.html delete mode 100644 doc/html/api/lxml.tests.test_pyclasslookup-module.html delete mode 100644 doc/html/api/lxml.tests.test_pyclasslookup-pysrc.html delete mode 100644 doc/html/api/lxml.tests.test_pyclasslookup.PyClassLookupTestCase-class.html delete mode 100644 doc/html/api/lxml.tests.test_relaxng-module.html delete mode 100644 doc/html/api/lxml.tests.test_relaxng-pysrc.html delete mode 100644 doc/html/api/lxml.tests.test_relaxng.ETreeRelaxNGTestCase-class.html delete mode 100644 doc/html/api/lxml.tests.test_sax-module.html delete mode 100644 doc/html/api/lxml.tests.test_sax-pysrc.html delete mode 100644 doc/html/api/lxml.tests.test_sax.ETreeSaxTestCase-class.html delete mode 100644 doc/html/api/lxml.tests.test_schematron-module.html delete mode 100644 doc/html/api/lxml.tests.test_schematron-pysrc.html delete mode 100644 doc/html/api/lxml.tests.test_schematron.ETreeSchematronTestCase-class.html delete mode 100644 doc/html/api/lxml.tests.test_threading-module.html delete mode 100644 doc/html/api/lxml.tests.test_threading-pysrc.html delete mode 100644 doc/html/api/lxml.tests.test_threading.ThreadPipelineTestCase-class.html delete mode 100644 doc/html/api/lxml.tests.test_threading.ThreadPipelineTestCase.ParseAndExtendWorker-class.html delete mode 100644 doc/html/api/lxml.tests.test_threading.ThreadPipelineTestCase.ParseWorker-class.html delete mode 100644 doc/html/api/lxml.tests.test_threading.ThreadPipelineTestCase.ReverseWorker-class.html delete mode 100644 doc/html/api/lxml.tests.test_threading.ThreadPipelineTestCase.RotateWorker-class.html delete mode 100644 doc/html/api/lxml.tests.test_threading.ThreadPipelineTestCase.SerialiseWorker-class.html delete mode 100644 doc/html/api/lxml.tests.test_threading.ThreadPipelineTestCase.Worker-class.html delete mode 100644 doc/html/api/lxml.tests.test_threading.ThreadingTestCase-class.html delete mode 100644 doc/html/api/lxml.tests.test_unicode-module.html delete mode 100644 doc/html/api/lxml.tests.test_unicode-pysrc.html delete mode 100644 doc/html/api/lxml.tests.test_unicode.UnicodeTestCase-class.html delete mode 100644 doc/html/api/lxml.tests.test_xmlschema-module.html delete mode 100644 doc/html/api/lxml.tests.test_xmlschema-pysrc.html delete mode 100644 doc/html/api/lxml.tests.test_xmlschema.ETreeXMLSchemaResolversTestCase-class.html delete mode 100644 doc/html/api/lxml.tests.test_xmlschema.ETreeXMLSchemaResolversTestCase.simple_resolver-class.html delete mode 100644 doc/html/api/lxml.tests.test_xmlschema.ETreeXMLSchemaTestCase-class.html delete mode 100644 doc/html/api/lxml.tests.test_xpathevaluator-module.html delete mode 100644 doc/html/api/lxml.tests.test_xpathevaluator-pysrc.html delete mode 100644 doc/html/api/lxml.tests.test_xpathevaluator.ETreeETXPathClassTestCase-class.html delete mode 100644 doc/html/api/lxml.tests.test_xpathevaluator.ETreeXPathClassTestCase-class.html delete mode 100644 doc/html/api/lxml.tests.test_xpathevaluator.ETreeXPathExsltTestCase-class.html delete mode 100644 doc/html/api/lxml.tests.test_xpathevaluator.ETreeXPathTestCase-class.html delete mode 100644 doc/html/api/lxml.tests.test_xslt-module.html delete mode 100644 doc/html/api/lxml.tests.test_xslt-pysrc.html delete mode 100644 doc/html/api/lxml.tests.test_xslt.ETreeEXSLTTestCase-class.html delete mode 100644 doc/html/api/lxml.tests.test_xslt.ETreeXSLTExtElementTestCase-class.html delete mode 100644 doc/html/api/lxml.tests.test_xslt.ETreeXSLTExtFuncTestCase-class.html delete mode 100644 doc/html/api/lxml.tests.test_xslt.ETreeXSLTTestCase-class.html delete mode 100644 doc/html/api/lxml.tests.test_xslt.Py3XSLTTestCase-class.html delete mode 100644 doc/html/api/lxml.usedoctest-module.html delete mode 100644 doc/html/api/lxml.usedoctest-pysrc.html delete mode 100644 doc/html/api/module-tree.html delete mode 100644 doc/html/api/redirect.html delete mode 100644 doc/html/api/str-class.html delete mode 100644 doc/html/api/toc-everything.html delete mode 100644 doc/html/api/toc-lxml-module.html delete mode 100644 doc/html/api/toc-lxml.ElementInclude-module.html delete mode 100644 doc/html/api/toc-lxml.builder-module.html delete mode 100644 doc/html/api/toc-lxml.cssselect-module.html delete mode 100644 doc/html/api/toc-lxml.doctestcompare-module.html delete mode 100644 doc/html/api/toc-lxml.etree-module.html delete mode 100644 doc/html/api/toc-lxml.html-module.html delete mode 100644 doc/html/api/toc-lxml.html.ElementSoup-module.html delete mode 100644 doc/html/api/toc-lxml.html.builder-module.html delete mode 100644 doc/html/api/toc-lxml.html.clean-module.html delete mode 100644 doc/html/api/toc-lxml.html.defs-module.html delete mode 100644 doc/html/api/toc-lxml.html.diff-module.html delete mode 100644 doc/html/api/toc-lxml.html.formfill-module.html delete mode 100644 doc/html/api/toc-lxml.html.html5parser-module.html delete mode 100644 doc/html/api/toc-lxml.html.soupparser-module.html delete mode 100644 doc/html/api/toc-lxml.html.usedoctest-module.html delete mode 100644 doc/html/api/toc-lxml.includes-module.html delete mode 100644 doc/html/api/toc-lxml.isoschematron-module.html delete mode 100644 doc/html/api/toc-lxml.objectify-module.html delete mode 100644 doc/html/api/toc-lxml.pyclasslookup-module.html delete mode 100644 doc/html/api/toc-lxml.sax-module.html delete mode 100644 doc/html/api/toc-lxml.tests-module.html delete mode 100644 doc/html/api/toc-lxml.tests.common_imports-module.html delete mode 100644 doc/html/api/toc-lxml.tests.test_builder-module.html delete mode 100644 doc/html/api/toc-lxml.tests.test_classlookup-module.html delete mode 100644 doc/html/api/toc-lxml.tests.test_css-module.html delete mode 100644 doc/html/api/toc-lxml.tests.test_dtd-module.html delete mode 100644 doc/html/api/toc-lxml.tests.test_elementtree-module.html delete mode 100644 doc/html/api/toc-lxml.tests.test_errors-module.html delete mode 100644 doc/html/api/toc-lxml.tests.test_etree-module.html delete mode 100644 doc/html/api/toc-lxml.tests.test_htmlparser-module.html delete mode 100644 doc/html/api/toc-lxml.tests.test_io-module.html delete mode 100644 doc/html/api/toc-lxml.tests.test_isoschematron-module.html delete mode 100644 doc/html/api/toc-lxml.tests.test_nsclasses-module.html delete mode 100644 doc/html/api/toc-lxml.tests.test_objectify-module.html delete mode 100644 doc/html/api/toc-lxml.tests.test_pyclasslookup-module.html delete mode 100644 doc/html/api/toc-lxml.tests.test_relaxng-module.html delete mode 100644 doc/html/api/toc-lxml.tests.test_sax-module.html delete mode 100644 doc/html/api/toc-lxml.tests.test_schematron-module.html delete mode 100644 doc/html/api/toc-lxml.tests.test_threading-module.html delete mode 100644 doc/html/api/toc-lxml.tests.test_unicode-module.html delete mode 100644 doc/html/api/toc-lxml.tests.test_xmlschema-module.html delete mode 100644 doc/html/api/toc-lxml.tests.test_xpathevaluator-module.html delete mode 100644 doc/html/api/toc-lxml.tests.test_xslt-module.html delete mode 100644 doc/html/api/toc-lxml.usedoctest-module.html delete mode 100644 doc/html/api/toc-xml.etree.ElementTree-module.html delete mode 100644 doc/html/api/toc.html delete mode 100644 doc/html/api/xml.etree.ElementTree-module.html delete mode 100644 doc/html/api/xml.etree.ElementTree-pysrc.html delete mode 100644 doc/html/api/xml.etree.ElementTree.Element-class.html delete mode 100644 doc/html/api/xml.etree.ElementTree.ElementTree-class.html delete mode 100644 doc/html/api/xml.etree.ElementTree.ParseError-class.html delete mode 100644 doc/html/api/xml.etree.ElementTree.QName-class.html delete mode 100644 doc/html/api/xml.etree.ElementTree.TreeBuilder-class.html delete mode 100644 doc/html/api/xml.etree.ElementTree.XMLParser-class.html delete mode 100644 doc/html/api/xml.etree.ElementTree._IterParseIterator-class.html delete mode 100644 doc/html/api/xml.etree.ElementTree._SimpleElementPath-class.html rename doc/html/{changes-3.0.1.html => changes-3.0.2.html} (99%) delete mode 100644 doc/pdf/pubkey.asc create mode 100644 src/lxml/includes/lxml-version.h diff --git a/CHANGES.txt b/CHANGES.txt index 3f2441c..4f4ba26 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -2,6 +2,21 @@ lxml changelog ============== +3.0.2 (2012-12-14) +================== + +Features added +-------------- + +Bugs fixed +---------- + +* Fix crash during interpreter shutdown by switching to Cython 0.17.3 for building. + +Other changes +------------- + + 3.0.1 (2012-10-14) ================== diff --git a/PKG-INFO b/PKG-INFO index 6411ba8..ba207fa 100644 --- a/PKG-INFO +++ b/PKG-INFO @@ -1,12 +1,12 @@ Metadata-Version: 1.1 Name: lxml -Version: 3.0.1 +Version: 3.0.2 Summary: Powerful and Pythonic XML processing library combining libxml2/libxslt with the ElementTree API. Home-page: http://lxml.de/ Author: lxml dev team Author-email: lxml-dev@lxml.de License: UNKNOWN -Download-URL: http://pypi.python.org/packages/source/l/lxml/lxml-3.0.1.tar.gz +Download-URL: http://pypi.python.org/packages/source/l/lxml/lxml-3.0.2.tar.gz Description: lxml is a Pythonic, mature binding for the libxml2 and libxslt libraries. It provides safe and convenient access to these libraries using the ElementTree API. @@ -37,7 +37,7 @@ Description: lxml is a Pythonic, mature binding for the libxml2 and libxslt libr as soon as a maintenance branch has been established. Note that this requires Cython to be installed at an appropriate version for the build. - 3.0.1 (2012-10-14) + 3.0.2 (2012-12-14) ================== Features added @@ -46,12 +46,7 @@ Description: lxml is a Pythonic, mature binding for the libxml2 and libxslt libr Bugs fixed ---------- - * LP#1065924: Element proxies could disappear during garbage collection - in PyPy without proper cleanup. - - * GH#71: Failure to work with libxml2 2.6.x. - - * LP#1065139: static MacOS-X build failed in Py3. + * Fix crash during interpreter shutdown by switching to Cython 0.17.3 for building. Other changes ------------- diff --git a/doc/build.txt b/doc/build.txt index 08d7a9c..6085251 100644 --- a/doc/build.txt +++ b/doc/build.txt @@ -42,9 +42,9 @@ developer sources (e.g. to test a bug fix that has not been release yet) or if you want to be an lxml developer, then you do need a working Cython installation. You can use pip_ to install it:: - pip install "Cython>=0.17.1" + pip install "Cython>=0.17.3" -lxml currently requires Cython 0.17.1, later release versions should +lxml currently requires Cython 0.17.3, later release versions should work as well. diff --git a/doc/html/FAQ.html b/doc/html/FAQ.html index cc8104e..2c12668 100644 --- a/doc/html/FAQ.html +++ b/doc/html/FAQ.html @@ -2,7 +2,7 @@ - + lxml FAQ - Frequently Asked Questions @@ -10,7 +10,7 @@
-

lxml FAQ - Frequently Asked Questions

+

lxml FAQ - Frequently Asked Questions

Frequently asked questions on lxml. See also the notes on compatibility to ElementTree.

@@ -838,7 +838,7 @@ map it to your namespace. See also the question above.

diff --git a/doc/html/api.html b/doc/html/api.html index ddacff2..e59ed5f 100644 --- a/doc/html/api.html +++ b/doc/html/api.html @@ -2,13 +2,13 @@ - + APIs specific to lxml.etree
-

APIs specific to lxml.etree

+

APIs specific to lxml.etree

lxml.etree tries to follow established APIs wherever possible. Sometimes, however, the need to expose a feature in an easy way led to the invention of a @@ -401,7 +401,7 @@ example:

diff --git a/doc/html/api/abc.ABCMeta-class.html b/doc/html/api/abc.ABCMeta-class.html deleted file mode 100644 index 2519ae1..0000000 --- a/doc/html/api/abc.ABCMeta-class.html +++ /dev/null @@ -1,448 +0,0 @@ - - - - - abc.ABCMeta - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - abc :: - ABCMeta :: - Class ABCMeta - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Type ABCMeta

-
-object --+    
-         |    
-      type --+
-             |
-            ABCMeta
-
- -
-

Metaclass for defining Abstract Base Classes (ABCs).

-

Use this metaclass to create an ABC. An ABC can be subclassed -directly, and then acts as a mix-in class. You can also register -unrelated concrete classes (even built-in classes) and unrelated -ABCs as 'virtual subclasses' -- these and their descendants will -be considered subclasses of the registering ABC by the built-in -issubclass() function, but the registering ABC won't show up in -their MRO (Method Resolution Order) nor will method -implementations defined by the registering ABC be callable (not -even via super()).

- - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
- bool - - - - - - -
__instancecheck__(cls, - instance)
- Override for isinstance(instance, cls).
- - -
- -
- bool - - - - - - -
__subclasscheck__(cls, - subclass)
- Override for issubclass(subclass, cls).
- - -
- -
-   - - - - - - -
_dump_registry(cls, - file=None)
- Debug helper to print the ABC registry.
- - -
- -
-   - - - - - - -
register(cls, - subclass)
- Register a virtual subclass of an ABC.
- - -
- -
-

Inherited from type: - __call__, - __delattr__, - __eq__, - __ge__, - __getattribute__, - __gt__, - __hash__, - __init__, - __le__, - __lt__, - __ne__, - __repr__, - __setattr__, - __subclasses__, - mro -

-

Inherited from object: - __format__, - __reduce__, - __reduce_ex__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Static Methods[hide private]
-
- a new object with type S, a subtype of T - - - - - - -
__new__(mcls, - name, - bases, - namespace) - - -
- -
- - - - - - - - - -
- - - - - -
Class Variables[hide private]
-
-   - - _abc_invalidation_counter = 18 -
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from type: - __abstractmethods__, - __base__, - __bases__, - __basicsize__, - __dictoffset__, - __flags__, - __itemsize__, - __mro__, - __name__, - __weakrefoffset__ -

-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__instancecheck__(cls, - instance) -

-
  -
- - Override for isinstance(instance, cls). -
-
Returns: bool
-
Overrides: - type.__instancecheck__ -
-
-
-
- -
- -
- - -
-

__new__(mcls, - name, - bases, - namespace) -
Static Method -

-
  -
- - -
-
Returns: a new object with type S, a subtype of T
-
Overrides: - object.__new__ -
(inherited documentation)
- -
-
-
- -
- -
- - -
-

__subclasscheck__(cls, - subclass) -

-
  -
- - Override for issubclass(subclass, cls). -
-
Returns: bool
-
Overrides: - type.__subclasscheck__ -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/api-objects.txt b/doc/html/api/api-objects.txt deleted file mode 100644 index 7c8fa05..0000000 --- a/doc/html/api/api-objects.txt +++ /dev/null @@ -1,6951 +0,0 @@ -lxml lxml-module.html -lxml.get_include lxml-module.html#get_include -lxml.__package__ lxml-module.html#__package__ -lxml.ElementInclude lxml.ElementInclude-module.html -lxml.ElementInclude.include lxml.ElementInclude-module.html#include -lxml.ElementInclude.XINCLUDE_INCLUDE lxml.ElementInclude-module.html#XINCLUDE_INCLUDE -lxml.ElementInclude.XINCLUDE_FALLBACK lxml.ElementInclude-module.html#XINCLUDE_FALLBACK -lxml.ElementInclude._include lxml.ElementInclude-module.html#_include -lxml.ElementInclude.__package__ lxml.ElementInclude-module.html#__package__ -lxml.ElementInclude._lxml_default_loader lxml.ElementInclude-module.html#_lxml_default_loader -lxml.ElementInclude.XINCLUDE lxml.ElementInclude-module.html#XINCLUDE -lxml.ElementInclude._wrap_et_loader lxml.ElementInclude-module.html#_wrap_et_loader -lxml.ElementInclude.default_loader lxml.ElementInclude-module.html#default_loader -lxml.builder lxml.builder-module.html -lxml.builder.E lxml.builder-module.html#E -lxml.builder.__package__ lxml.builder-module.html#__package__ -lxml.builder.callable lxml.builder-module.html#callable -lxml.cssselect lxml.cssselect-module.html -lxml.cssselect.ns lxml.cssselect-module.html#ns -lxml.cssselect.SelectorError lxml.cssselect-module.html#SelectorError -lxml.cssselect._make_lower_case lxml.cssselect-module.html#_make_lower_case -lxml.cssselect.ExpressionError lxml.cssselect-module.html#ExpressionError -lxml.cssselect.external_cssselect lxml.cssselect-module.html#external_cssselect -lxml.cssselect.SelectorSyntaxError lxml.cssselect-module.html#SelectorSyntaxError -lxml.doctestcompare lxml.doctestcompare-module.html -lxml.doctestcompare._norm_whitespace_re lxml.doctestcompare-module.html#_norm_whitespace_re -lxml.doctestcompare.norm_whitespace lxml.doctestcompare-module.html#norm_whitespace -lxml.doctestcompare.PARSE_XML lxml.doctestcompare-module.html#PARSE_XML -lxml.doctestcompare._IS_PYTHON_3 lxml.doctestcompare-module.html#_IS_PYTHON_3 -lxml.doctestcompare._find_doctest_frame lxml.doctestcompare-module.html#_find_doctest_frame -lxml.doctestcompare.strip lxml.doctestcompare-module.html#strip -lxml.doctestcompare._repr_re lxml.doctestcompare-module.html#_repr_re -lxml.doctestcompare._html_parser lxml.doctestcompare-module.html#_html_parser -lxml.doctestcompare.NOPARSE_MARKUP lxml.doctestcompare-module.html#NOPARSE_MARKUP -lxml.doctestcompare.__package__ lxml.doctestcompare-module.html#__package__ -lxml.doctestcompare.html_fromstring lxml.doctestcompare-module.html#html_fromstring -lxml.doctestcompare.temp_install lxml.doctestcompare-module.html#temp_install -lxml.doctestcompare.__test__ lxml.doctestcompare-module.html#__test__ -lxml.doctestcompare.install lxml.doctestcompare-module.html#install -lxml.doctestcompare.PARSE_HTML lxml.doctestcompare-module.html#PARSE_HTML -lxml.etree lxml.etree-module.html -lxml.etree.XPathEvaluator lxml.etree-module.html#XPathEvaluator -lxml.etree.XMLID lxml.etree-module.html#XMLID -lxml.etree.LIBXSLT_VERSION lxml.etree-module.html#LIBXSLT_VERSION -lxml.etree.XMLDTDID lxml.etree-module.html#XMLDTDID -lxml.etree.ElementTree lxml.etree-module.html#ElementTree -lxml.etree.cleanup_namespaces lxml.etree-module.html#cleanup_namespaces -lxml.etree.set_default_parser lxml.etree-module.html#set_default_parser -lxml.etree.parseid lxml.etree-module.html#parseid -lxml.etree.tostring lxml.etree-module.html#tostring -lxml.etree.iselement lxml.etree-module.html#iselement -lxml.etree.FunctionNamespace lxml.etree-module.html#FunctionNamespace -lxml.etree.strip_attributes lxml.etree-module.html#strip_attributes -lxml.etree.Entity lxml.etree-module.html#Entity -lxml.etree.__package__ lxml.etree-module.html#__package__ -lxml.etree.dump lxml.etree-module.html#dump -lxml.etree.strip_elements lxml.etree-module.html#strip_elements -lxml.etree.HTML lxml.etree-module.html#HTML -lxml.etree.memory_debugger lxml.etree-module.html#memory_debugger -lxml.etree.PI lxml.etree-module.html#PI -lxml.etree.Extension lxml.etree-module.html#Extension -lxml.etree.DEBUG lxml.etree-module.html#DEBUG -lxml.etree.Comment lxml.etree-module.html#Comment -lxml.etree.ProcessingInstruction lxml.etree-module.html#ProcessingInstruction -lxml.etree.LXML_VERSION lxml.etree-module.html#LXML_VERSION -lxml.etree.LIBXML_COMPILED_VERSION lxml.etree-module.html#LIBXML_COMPILED_VERSION -lxml.etree.strip_tags lxml.etree-module.html#strip_tags -lxml.etree.tounicode lxml.etree-module.html#tounicode -lxml.etree.LIBXSLT_COMPILED_VERSION lxml.etree-module.html#LIBXSLT_COMPILED_VERSION -lxml.etree.__pyx_capi__ lxml.etree-module.html#__pyx_capi__ -lxml.etree.XML lxml.etree-module.html#XML -lxml.etree.__test__ lxml.etree-module.html#__test__ -lxml.etree.use_global_python_log lxml.etree-module.html#use_global_python_log -lxml.etree.LIBXML_VERSION lxml.etree-module.html#LIBXML_VERSION -lxml.etree.tostringlist lxml.etree-module.html#tostringlist -lxml.etree.SubElement lxml.etree-module.html#SubElement -lxml.etree.get_default_parser lxml.etree-module.html#get_default_parser -lxml.etree.register_namespace lxml.etree-module.html#register_namespace -lxml.etree.parse lxml.etree-module.html#parse -lxml.etree.set_element_class_lookup lxml.etree-module.html#set_element_class_lookup -lxml.etree.clear_error_log lxml.etree-module.html#clear_error_log -lxml.etree.fromstringlist lxml.etree-module.html#fromstringlist -lxml.etree.Element lxml.etree-module.html#Element -lxml.etree.fromstring lxml.etree-module.html#fromstring -lxml.html lxml.html-module.html -lxml.html._css_import_re lxml.html-module.html#_css_import_re -lxml.html._css_url_re lxml.html-module.html#_css_url_re -lxml.html.parse lxml.html-module.html#parse -lxml.html._nons lxml.html-module.html#_nons -lxml.html._forms_xpath lxml.html-module.html#_forms_xpath -lxml.html._contains_block_level_tag lxml.html-module.html#_contains_block_level_tag -lxml.html._element_name lxml.html-module.html#_element_name -lxml.html.basestring lxml.html-module.html#basestring -lxml.html._archive_re lxml.html-module.html#_archive_re -lxml.html.iterlinks lxml.html-module.html#iterlinks -lxml.html.__package__ lxml.html-module.html#__package__ -lxml.html._collect_string_content lxml.html-module.html#_collect_string_content -lxml.html.submit_form lxml.html-module.html#submit_form -lxml.html.xhtml_parser lxml.html-module.html#xhtml_parser -lxml.html.XHTML_NAMESPACE lxml.html-module.html#XHTML_NAMESPACE -lxml.html._id_xpath lxml.html-module.html#_id_xpath -lxml.html.make_links_absolute lxml.html-module.html#make_links_absolute -lxml.html.resolve_base_href lxml.html-module.html#resolve_base_href -lxml.html.__bytes_replace_meta_content_type lxml.html-module.html#__bytes_replace_meta_content_type -lxml.html.rewrite_links lxml.html-module.html#rewrite_links -lxml.html.fragment_fromstring lxml.html-module.html#fragment_fromstring -lxml.html.html_to_xhtml lxml.html-module.html#html_to_xhtml -lxml.html._unquote_match lxml.html-module.html#_unquote_match -lxml.html.fragments_fromstring lxml.html-module.html#fragments_fromstring -lxml.html.__str_replace_meta_content_type lxml.html-module.html#__str_replace_meta_content_type -lxml.html._options_xpath lxml.html-module.html#_options_xpath -lxml.html.document_fromstring lxml.html-module.html#document_fromstring -lxml.html.Element lxml.html-module.html#Element -lxml.html.__fix_docstring lxml.html-module.html#__fix_docstring -lxml.html._class_xpath lxml.html-module.html#_class_xpath -lxml.html._rel_links_xpath lxml.html-module.html#_rel_links_xpath -lxml.html.tostring lxml.html-module.html#tostring -lxml.html.find_class lxml.html-module.html#find_class -lxml.html.find_rel_links lxml.html-module.html#find_rel_links -lxml.html.html_parser lxml.html-module.html#html_parser -lxml.html.open_in_browser lxml.html-module.html#open_in_browser -lxml.html.fromstring lxml.html-module.html#fromstring -lxml.html._label_xpath lxml.html-module.html#_label_xpath -lxml.html._transform_result lxml.html-module.html#_transform_result -lxml.html.open_http_urllib lxml.html-module.html#open_http_urllib -lxml.html.xhtml_to_html lxml.html-module.html#xhtml_to_html -lxml.html.ElementSoup lxml.html.ElementSoup-module.html -lxml.html.ElementSoup.parse lxml.html.ElementSoup-module.html#parse -lxml.html.ElementSoup._parse lxml.html.soupparser-module.html#parse -lxml.html.ElementSoup.convert_tree lxml.html.ElementSoup-module.html#convert_tree -lxml.html.ElementSoup.__doc__ lxml.html.ElementSoup-module.html#__doc__ -lxml.html.ElementSoup.__package__ lxml.html.ElementSoup-module.html#__package__ -lxml.html.builder lxml.html.builder-module.html -lxml.html.builder.BLOCKQUOTE lxml.html.builder-module.html#BLOCKQUOTE -lxml.html.builder.OBJECT lxml.html.builder-module.html#OBJECT -lxml.html.builder.LINK lxml.html.builder-module.html#LINK -lxml.html.builder.BR lxml.html.builder-module.html#BR -lxml.html.builder.OPTGROUP lxml.html.builder-module.html#OPTGROUP -lxml.html.builder.__package__ lxml.html.builder-module.html#__package__ -lxml.html.builder.SUB lxml.html.builder-module.html#SUB -lxml.html.builder.PRE lxml.html.builder-module.html#PRE -lxml.html.builder.FRAME lxml.html.builder-module.html#FRAME -lxml.html.builder.BODY lxml.html.builder-module.html#BODY -lxml.html.builder.TH lxml.html.builder-module.html#TH -lxml.html.builder.P lxml.html.builder-module.html#P -lxml.html.builder.BASE lxml.html.builder-module.html#BASE -lxml.html.builder.TFOOT lxml.html.builder-module.html#TFOOT -lxml.html.builder.VAR lxml.html.builder-module.html#VAR -lxml.html.builder.MAP lxml.html.builder-module.html#MAP -lxml.html.builder.OL lxml.html.builder-module.html#OL -lxml.html.builder.TEXTAREA lxml.html.builder-module.html#TEXTAREA -lxml.html.builder.ACRONYM lxml.html.builder-module.html#ACRONYM -lxml.html.builder.MENU lxml.html.builder-module.html#MENU -lxml.html.builder.DT lxml.html.builder-module.html#DT -lxml.html.builder.ADDRESS lxml.html.builder-module.html#ADDRESS -lxml.html.builder.CODE lxml.html.builder-module.html#CODE -lxml.html.builder.HR lxml.html.builder-module.html#HR -lxml.html.builder.ISINDEX lxml.html.builder-module.html#ISINDEX -lxml.html.builder.HEAD lxml.html.builder-module.html#HEAD -lxml.html.builder.LABEL lxml.html.builder-module.html#LABEL -lxml.html.builder.META lxml.html.builder-module.html#META -lxml.html.builder.DEL lxml.html.builder-module.html#DEL -lxml.html.builder.FONT lxml.html.builder-module.html#FONT -lxml.html.builder.SELECT lxml.html.builder-module.html#SELECT -lxml.html.builder.NOFRAMES lxml.html.builder-module.html#NOFRAMES -lxml.html.builder.CENTER lxml.html.builder-module.html#CENTER -lxml.html.builder.KBD lxml.html.builder-module.html#KBD -lxml.html.builder.HTML lxml.html.builder-module.html#HTML -lxml.html.builder.EM lxml.html.builder-module.html#EM -lxml.html.builder.FRAMESET lxml.html.builder-module.html#FRAMESET -lxml.html.builder.FIELDSET lxml.html.builder-module.html#FIELDSET -lxml.html.builder.FOR lxml.html.builder-module.html#FOR -lxml.html.builder.BASEFONT lxml.html.builder-module.html#BASEFONT -lxml.html.builder.BDO lxml.html.builder-module.html#BDO -lxml.html.builder.PARAM lxml.html.builder-module.html#PARAM -lxml.html.builder.S lxml.html.builder-module.html#S -lxml.html.builder.INPUT lxml.html.builder-module.html#INPUT -lxml.html.builder.H2 lxml.html.builder-module.html#H2 -lxml.html.builder.H3 lxml.html.builder-module.html#H3 -lxml.html.builder.BUTTON lxml.html.builder-module.html#BUTTON -lxml.html.builder.SCRIPT lxml.html.builder-module.html#SCRIPT -lxml.html.builder.H6 lxml.html.builder-module.html#H6 -lxml.html.builder.H4 lxml.html.builder-module.html#H4 -lxml.html.builder.INS lxml.html.builder-module.html#INS -lxml.html.builder.UL lxml.html.builder-module.html#UL -lxml.html.builder.STRIKE lxml.html.builder-module.html#STRIKE -lxml.html.builder.OPTION lxml.html.builder-module.html#OPTION -lxml.html.builder.TITLE lxml.html.builder-module.html#TITLE -lxml.html.builder.SUP lxml.html.builder-module.html#SUP -lxml.html.builder.SMALL lxml.html.builder-module.html#SMALL -lxml.html.builder.STRONG lxml.html.builder-module.html#STRONG -lxml.html.builder.COL lxml.html.builder-module.html#COL -lxml.html.builder.AREA lxml.html.builder-module.html#AREA -lxml.html.builder.APPLET lxml.html.builder-module.html#APPLET -lxml.html.builder.TABLE lxml.html.builder-module.html#TABLE -lxml.html.builder.B lxml.html.builder-module.html#B -lxml.html.builder.IMG lxml.html.builder-module.html#IMG -lxml.html.builder.DFN lxml.html.builder-module.html#DFN -lxml.html.builder.SPAN lxml.html.builder-module.html#SPAN -lxml.html.builder.DL lxml.html.builder-module.html#DL -lxml.html.builder.H1 lxml.html.builder-module.html#H1 -lxml.html.builder.DD lxml.html.builder-module.html#DD -lxml.html.builder.TBODY lxml.html.builder-module.html#TBODY -lxml.html.builder.DIV lxml.html.builder-module.html#DIV -lxml.html.builder.H5 lxml.html.builder-module.html#H5 -lxml.html.builder.LEGEND lxml.html.builder-module.html#LEGEND -lxml.html.builder.DIR lxml.html.builder-module.html#DIR -lxml.html.builder.NOSCRIPT lxml.html.builder-module.html#NOSCRIPT -lxml.html.builder.COLGROUP lxml.html.builder-module.html#COLGROUP -lxml.html.builder.BIG lxml.html.builder-module.html#BIG -lxml.html.builder.TT lxml.html.builder-module.html#TT -lxml.html.builder.TR lxml.html.builder-module.html#TR -lxml.html.builder.LI lxml.html.builder-module.html#LI -lxml.html.builder.IFRAME lxml.html.builder-module.html#IFRAME -lxml.html.builder.TD lxml.html.builder-module.html#TD -lxml.html.builder.CLASS lxml.html.builder-module.html#CLASS -lxml.html.builder.A lxml.html.builder-module.html#A -lxml.html.builder.STYLE lxml.html.builder-module.html#STYLE -lxml.html.builder.E lxml.html.builder-module.html#E -lxml.html.builder.FORM lxml.html.builder-module.html#FORM -lxml.html.builder.I lxml.html.builder-module.html#I -lxml.html.builder.Q lxml.html.builder-module.html#Q -lxml.html.builder.CAPTION lxml.html.builder-module.html#CAPTION -lxml.html.builder.U lxml.html.builder-module.html#U -lxml.html.builder.ABBR lxml.html.builder-module.html#ABBR -lxml.html.builder.THEAD lxml.html.builder-module.html#THEAD -lxml.html.builder.SAMP lxml.html.builder-module.html#SAMP -lxml.html.builder.CITE lxml.html.builder-module.html#CITE -lxml.html.clean lxml.html.clean-module.html -lxml.html.clean._css_import_re lxml.html.clean-module.html#_css_import_re -lxml.html.clean.word_break_html lxml.html.clean-module.html#word_break_html -lxml.html.clean._link_regexes lxml.html.clean-module.html#_link_regexes -lxml.html.clean._substitute_whitespace lxml.html.clean-module.html#_substitute_whitespace -lxml.html.clean._find_styled_elements lxml.html.clean-module.html#_find_styled_elements -lxml.html.clean.unichr lxml.html.clean-module.html#unichr -lxml.html.clean._break_text lxml.html.clean-module.html#_break_text -lxml.html.clean.basestring lxml.html.clean-module.html#basestring -lxml.html.clean._avoid_classes lxml.html.clean-module.html#_avoid_classes -lxml.html.clean._javascript_scheme_re lxml.html.clean-module.html#_javascript_scheme_re -lxml.html.clean.__package__ lxml.html.clean-module.html#__package__ -lxml.html.clean._avoid_elements lxml.html.clean-module.html#_avoid_elements -lxml.html.clean._find_external_links lxml.html.clean-module.html#_find_external_links -lxml.html.clean._insert_break lxml.html.clean-module.html#_insert_break -lxml.html.clean.autolink lxml.html.clean-module.html#autolink -lxml.html.clean._conditional_comment_re lxml.html.clean-module.html#_conditional_comment_re -lxml.html.clean._link_text lxml.html.clean-module.html#_link_text -lxml.html.clean._avoid_hosts lxml.html.clean-module.html#_avoid_hosts -lxml.html.clean.autolink_html lxml.html.clean-module.html#autolink_html -lxml.html.clean.clean_html lxml.html.clean-module.html#clean_html -lxml.html.clean._avoid_word_break_classes lxml.html.clean-module.html#_avoid_word_break_classes -lxml.html.clean._css_javascript_re lxml.html.clean-module.html#_css_javascript_re -lxml.html.clean.word_break lxml.html.clean-module.html#word_break -lxml.html.clean._break_prefer_re lxml.html.clean-module.html#_break_prefer_re -lxml.html.clean.clean lxml.html.clean-module.html#clean -lxml.html.clean._avoid_word_break_elements lxml.html.clean-module.html#_avoid_word_break_elements -lxml.html.defs lxml.html.defs-module.html -lxml.html.defs.block_tags lxml.html.defs-module.html#block_tags -lxml.html.defs.link_attrs lxml.html.defs-module.html#link_attrs -lxml.html.defs.tags lxml.html.defs-module.html#tags -lxml.html.defs.font_style_tags lxml.html.defs-module.html#font_style_tags -lxml.html.defs.event_attrs lxml.html.defs-module.html#event_attrs -lxml.html.defs.safe_attrs lxml.html.defs-module.html#safe_attrs -lxml.html.defs.table_tags lxml.html.defs-module.html#table_tags -lxml.html.defs.__package__ lxml.html.defs-module.html#__package__ -lxml.html.defs.top_level_tags lxml.html.defs-module.html#top_level_tags -lxml.html.defs.form_tags lxml.html.defs-module.html#form_tags -lxml.html.defs.phrase_tags lxml.html.defs-module.html#phrase_tags -lxml.html.defs.deprecated_tags lxml.html.defs-module.html#deprecated_tags -lxml.html.defs.head_tags lxml.html.defs-module.html#head_tags -lxml.html.defs.list_tags lxml.html.defs-module.html#list_tags -lxml.html.defs.special_inline_tags lxml.html.defs-module.html#special_inline_tags -lxml.html.defs.empty_tags lxml.html.defs-module.html#empty_tags -lxml.html.defs.general_block_tags lxml.html.defs-module.html#general_block_tags -lxml.html.defs.frame_tags lxml.html.defs-module.html#frame_tags -lxml.html.defs.nonstandard_tags lxml.html.defs-module.html#nonstandard_tags -lxml.html.diff lxml.html.diff-module.html -lxml.html.diff._move_el_inside_block lxml.html.diff-module.html#_move_el_inside_block -lxml.html.diff.compress_merge_back lxml.html.diff-module.html#compress_merge_back -lxml.html.diff.serialize_html_fragment lxml.html.diff-module.html#serialize_html_fragment -lxml.html.diff.split_delete lxml.html.diff-module.html#split_delete -lxml.html.diff.split_unbalanced lxml.html.diff-module.html#split_unbalanced -lxml.html.diff.is_word lxml.html.diff-module.html#is_word -lxml.html.diff._contains_block_level_tag lxml.html.diff-module.html#_contains_block_level_tag -lxml.html.diff.empty_tags lxml.html.diff-module.html#empty_tags -lxml.html.diff.is_start_tag lxml.html.diff-module.html#is_start_tag -lxml.html.diff.end_tag lxml.html.diff-module.html#end_tag -lxml.html.diff.fixup_chunks lxml.html.diff-module.html#fixup_chunks -lxml.html.diff.html_annotate lxml.html.diff-module.html#html_annotate -lxml.html.diff.cleanup_delete lxml.html.diff-module.html#cleanup_delete -lxml.html.diff.htmldiff lxml.html.diff-module.html#htmldiff -lxml.html.diff._fixup_ins_del_tags lxml.html.diff-module.html#_fixup_ins_del_tags -lxml.html.diff.htmldiff_tokens lxml.html.diff-module.html#htmldiff_tokens -lxml.html.diff.expand_tokens lxml.html.diff-module.html#expand_tokens -lxml.html.diff.__package__ lxml.html.diff-module.html#__package__ -lxml.html.diff.block_level_tags lxml.html.diff-module.html#block_level_tags -lxml.html.diff.compress_tokens lxml.html.diff-module.html#compress_tokens -lxml.html.diff.html_annotate_merge_annotations lxml.html.diff-module.html#html_annotate_merge_annotations -lxml.html.diff._merge_element_contents lxml.html.diff-module.html#_merge_element_contents -lxml.html.diff.split_words lxml.html.diff-module.html#split_words -lxml.html.diff.block_level_container_tags lxml.html.diff-module.html#block_level_container_tags -lxml.html.diff.flatten_el lxml.html.diff-module.html#flatten_el -lxml.html.diff.markup_serialize_tokens lxml.html.diff-module.html#markup_serialize_tokens -lxml.html.diff._body_re lxml.html.diff-module.html#_body_re -lxml.html.diff.locate_unbalanced_start lxml.html.diff-module.html#locate_unbalanced_start -lxml.html.diff.fixup_ins_del_tags lxml.html.diff-module.html#fixup_ins_del_tags -lxml.html.diff.default_markup lxml.html.diff-module.html#default_markup -lxml.html.diff.tokenize lxml.html.diff-module.html#tokenize -lxml.html.diff.cleanup_html lxml.html.diff-module.html#cleanup_html -lxml.html.diff.tokenize_annotated lxml.html.diff-module.html#tokenize_annotated -lxml.html.diff.parse_html lxml.html.diff-module.html#parse_html -lxml.html.diff.merge_insert lxml.html.diff-module.html#merge_insert -lxml.html.diff.merge_delete lxml.html.diff-module.html#merge_delete -lxml.html.diff._ins_del_re lxml.html.diff-module.html#_ins_del_re -lxml.html.diff.locate_unbalanced_end lxml.html.diff-module.html#locate_unbalanced_end -lxml.html.diff.start_tag lxml.html.diff-module.html#start_tag -lxml.html.diff._end_body_re lxml.html.diff-module.html#_end_body_re -lxml.html.diff.is_end_tag lxml.html.diff-module.html#is_end_tag -lxml.html.diff.copy_annotations lxml.html.diff-module.html#copy_annotations -lxml.html.diff.end_whitespace_re lxml.html.diff-module.html#end_whitespace_re -lxml.html.diff.start_whitespace_re lxml.html.diff-module.html#start_whitespace_re -lxml.html.formfill lxml.html.formfill-module.html -lxml.html.formfill._fill_single lxml.html.formfill-module.html#_fill_single -lxml.html.formfill._input_xpath lxml.html.formfill-module.html#_input_xpath -lxml.html.formfill._insert_error lxml.html.formfill-module.html#_insert_error -lxml.html.formfill._fill_form lxml.html.formfill-module.html#_fill_form -lxml.html.formfill._check lxml.html.formfill-module.html#_check -lxml.html.formfill._takes_multiple lxml.html.formfill-module.html#_takes_multiple -lxml.html.formfill.__package__ lxml.html.formfill-module.html#__package__ -lxml.html.formfill.insert_errors_html lxml.html.formfill-module.html#insert_errors_html -lxml.html.formfill._form_name_xpath lxml.html.formfill-module.html#_form_name_xpath -lxml.html.formfill._name_xpath lxml.html.formfill-module.html#_name_xpath -lxml.html.formfill.fill_form_html lxml.html.formfill-module.html#fill_form_html -lxml.html.formfill._add_class lxml.html.formfill-module.html#_add_class -lxml.html.formfill.default_error_creator lxml.html.formfill-module.html#default_error_creator -lxml.html.formfill._find_elements_for_name lxml.html.formfill-module.html#_find_elements_for_name -lxml.html.formfill._label_for_xpath lxml.html.formfill-module.html#_label_for_xpath -lxml.html.formfill._fill_multiple lxml.html.formfill-module.html#_fill_multiple -lxml.html.formfill._select lxml.html.formfill-module.html#_select -lxml.html.formfill.fill_form lxml.html.formfill-module.html#fill_form -lxml.html.formfill.insert_errors lxml.html.formfill-module.html#insert_errors -lxml.html.formfill._find_form_ids lxml.html.formfill-module.html#_find_form_ids -lxml.html.formfill._tag lxml.html.formfill-module.html#_tag -lxml.html.formfill._find_form lxml.html.formfill-module.html#_find_form -lxml.html.html5parser lxml.html.html5parser-module.html -lxml.html.html5parser.parse lxml.html.html5parser-module.html#parse -lxml.html.html5parser.html_parser lxml.html.html5parser-module.html#html_parser -lxml.html.html5parser.__package__ lxml.html.html5parser-module.html#__package__ -lxml.html.html5parser.xhtml_parser lxml.html.html5parser-module.html#xhtml_parser -lxml.html.html5parser.fragment_fromstring lxml.html.html5parser-module.html#fragment_fromstring -lxml.html.html5parser.fragments_fromstring lxml.html.html5parser-module.html#fragments_fromstring -lxml.html.html5parser.document_fromstring lxml.html.html5parser-module.html#document_fromstring -lxml.html.html5parser.fromstring lxml.html.html5parser-module.html#fromstring -lxml.html.html5parser._find_tag lxml.html.html5parser-module.html#_find_tag -lxml.html.html5parser._looks_like_url lxml.html.html5parser-module.html#_looks_like_url -lxml.html.soupparser lxml.html.soupparser-module.html -lxml.html.soupparser._convert_tree lxml.html.soupparser-module.html#_convert_tree -lxml.html.soupparser._convert_children lxml.html.soupparser-module.html#_convert_children -lxml.html.soupparser.__package__ lxml.html.soupparser-module.html#__package__ -lxml.html.soupparser.parse lxml.html.soupparser-module.html#parse -lxml.html.soupparser.convert_tree lxml.html.soupparser-module.html#convert_tree -lxml.html.soupparser.__doc__ lxml.html.soupparser-module.html#__doc__ -lxml.html.soupparser.fromstring lxml.html.soupparser-module.html#fromstring -lxml.html.soupparser.unescape lxml.html.soupparser-module.html#unescape -lxml.html.soupparser._parse lxml.html.soupparser-module.html#_parse -lxml.html.soupparser._append_text lxml.html.soupparser-module.html#_append_text -lxml.html.soupparser.handle_entities lxml.html.soupparser-module.html#handle_entities -lxml.html.usedoctest lxml.html.usedoctest-module.html -lxml.includes lxml.includes-module.html -lxml.includes.__package__ lxml.includes-module.html#__package__ -lxml.isoschematron lxml.isoschematron-module.html -lxml.isoschematron.SVRL_NS lxml.isoschematron-module.html#SVRL_NS -lxml.isoschematron.iso_svrl_for_xslt1 lxml.isoschematron-module.html#iso_svrl_for_xslt1 -lxml.isoschematron._xml_schema_root lxml.isoschematron-module.html#_xml_schema_root -lxml.isoschematron._stylesheet_param_dict lxml.isoschematron-module.html#_stylesheet_param_dict -lxml.isoschematron.svrl_validation_errors lxml.isoschematron-module.html#svrl_validation_errors -lxml.isoschematron.iso_dsdl_include lxml.isoschematron-module.html#iso_dsdl_include -lxml.isoschematron.extract_rng lxml.isoschematron-module.html#extract_rng -lxml.isoschematron._resources_dir lxml.isoschematron-module.html#_resources_dir -lxml.isoschematron.__package__ lxml.isoschematron-module.html#__package__ -lxml.isoschematron.SCHEMATRON_NS lxml.isoschematron-module.html#SCHEMATRON_NS -lxml.isoschematron._schematron_root lxml.isoschematron-module.html#_schematron_root -lxml.isoschematron.extract_xsd lxml.isoschematron-module.html#extract_xsd -lxml.isoschematron.RELAXNG_NS lxml.isoschematron-module.html#RELAXNG_NS -lxml.isoschematron.XML_SCHEMA_NS lxml.isoschematron-module.html#XML_SCHEMA_NS -lxml.isoschematron.schematron_schema_valid lxml.isoschematron-module.html#schematron_schema_valid -lxml.isoschematron.stylesheet_params lxml.isoschematron-module.html#stylesheet_params -lxml.isoschematron.iso_abstract_expand lxml.isoschematron-module.html#iso_abstract_expand -lxml.objectify lxml.objectify-module.html -lxml.objectify.enable_recursive_str lxml.objectify-module.html#enable_recursive_str -lxml.objectify.dump lxml.objectify-module.html#dump -lxml.objectify.__parseBool lxml.objectify-module.html#__parseBool -lxml.objectify.annotate lxml.objectify-module.html#annotate -lxml.objectify.set_default_parser lxml.objectify-module.html#set_default_parser -lxml.objectify.pyannotate lxml.objectify-module.html#pyannotate -lxml.objectify.getRegisteredTypes lxml.objectify-module.html#getRegisteredTypes -lxml.objectify.xsiannotate lxml.objectify-module.html#xsiannotate -lxml.objectify.PYTYPE_ATTRIBUTE lxml.objectify-module.html#PYTYPE_ATTRIBUTE -lxml.objectify.__package__ lxml.objectify-module.html#__package__ -lxml.objectify.pytypename lxml.objectify-module.html#pytypename -lxml.objectify.makeparser lxml.objectify-module.html#makeparser -lxml.objectify.XML lxml.objectify-module.html#XML -lxml.objectify.deannotate lxml.objectify-module.html#deannotate -lxml.objectify.E lxml.objectify-module.html#E -lxml.objectify.Element lxml.objectify-module.html#Element -lxml.objectify.__test__ lxml.objectify-module.html#__test__ -lxml.objectify.__unpickleElementTree lxml.objectify-module.html#__unpickleElementTree -lxml.objectify.__lower_bool lxml.objectify-module.html#__lower_bool -lxml.objectify.parse lxml.objectify-module.html#parse -lxml.objectify.set_pytype_attribute_tag lxml.objectify-module.html#set_pytype_attribute_tag -lxml.objectify.__checkBool lxml.objectify-module.html#__checkBool -lxml.objectify.fromstring lxml.objectify-module.html#fromstring -lxml.objectify.DataElement lxml.objectify-module.html#DataElement -lxml.objectify.SubElement lxml.objectify-module.html#SubElement -lxml.pyclasslookup lxml.pyclasslookup-module.html -lxml.pyclasslookup.__package__ lxml.pyclasslookup-module.html#__package__ -lxml.sax lxml.sax-module.html -lxml.sax.Comment lxml.etree-module.html#Comment -lxml.sax.ProcessingInstruction lxml.etree-module.html#PI -lxml.sax.SubElement lxml.etree-module.html#SubElement -lxml.sax.__package__ lxml.sax-module.html#__package__ -lxml.sax.saxify lxml.sax-module.html#saxify -lxml.sax._getNsTag lxml.sax-module.html#_getNsTag -lxml.sax.ElementTree lxml.etree-module.html#ElementTree -lxml.tests lxml.tests-module.html -lxml.tests.__package__ lxml.tests-module.html#__package__ -lxml.tests.common_imports lxml.tests.common_imports-module.html -lxml.tests.common_imports.make_doctest lxml.tests.common_imports-module.html#make_doctest -lxml.tests.common_imports._str lxml.tests.common_imports-module.html#_str -lxml.tests.common_imports._bytes lxml.tests.common_imports-module.html#_bytes -lxml.tests.common_imports.canonicalize lxml.tests.common_imports-module.html#canonicalize -lxml.tests.common_imports._fix_unicode lxml.tests.common_imports-module.html#_fix_unicode -lxml.tests.common_imports.write_to_file lxml.tests.common_imports-module.html#write_to_file -lxml.tests.common_imports.__package__ lxml.tests.common_imports-module.html#__package__ -lxml.tests.common_imports.filter_by_version lxml.tests.common_imports-module.html#filter_by_version -lxml.tests.common_imports._get_caller_relative_path lxml.tests.common_imports-module.html#_get_caller_relative_path -lxml.tests.common_imports.unentitify lxml.tests.common_imports-module.html#unentitify -lxml.tests.common_imports.doctest_parser lxml.tests.common_imports-module.html#doctest_parser -lxml.tests.common_imports._fix_bytes lxml.tests.common_imports-module.html#_fix_bytes -lxml.tests.common_imports._fix_exceptions lxml.tests.common_imports-module.html#_fix_exceptions -lxml.tests.common_imports.make_version_tuple lxml.tests.common_imports-module.html#make_version_tuple -lxml.tests.common_imports.ET_VERSION lxml.tests.common_imports-module.html#ET_VERSION -lxml.tests.common_imports.read_file lxml.tests.common_imports-module.html#read_file -lxml.tests.common_imports.fileInTestDir lxml.tests.common_imports-module.html#fileInTestDir -lxml.tests.common_imports.CET_VERSION lxml.tests.common_imports-module.html#CET_VERSION -lxml.tests.common_imports._fix_traceback lxml.tests.common_imports-module.html#_fix_traceback -lxml.tests.common_imports.readFileInTestDir lxml.tests.common_imports-module.html#readFileInTestDir -lxml.tests.test_builder lxml.tests.test_builder-module.html -lxml.tests.test_builder.__package__ lxml.tests.test_builder-module.html#__package__ -lxml.tests.test_builder._bytes lxml.tests.common_imports-module.html#_bytes -lxml.tests.test_builder.test_suite lxml.tests.test_builder-module.html#test_suite -lxml.tests.test_builder.this_dir lxml.tests.test_builder-module.html#this_dir -lxml.tests.test_classlookup lxml.tests.test_classlookup-module.html -lxml.tests.test_classlookup.xml_str lxml.tests.test_classlookup-module.html#xml_str -lxml.tests.test_classlookup.this_dir lxml.tests.test_classlookup-module.html#this_dir -lxml.tests.test_classlookup.fileInTestDir lxml.tests.common_imports-module.html#fileInTestDir -lxml.tests.test_classlookup._str lxml.tests.common_imports-module.html#_str -lxml.tests.test_classlookup.__package__ lxml.tests.test_classlookup-module.html#__package__ -lxml.tests.test_classlookup._bytes lxml.tests.common_imports-module.html#_bytes -lxml.tests.test_classlookup.test_suite lxml.tests.test_classlookup-module.html#test_suite -lxml.tests.test_classlookup.canonicalize lxml.tests.common_imports-module.html#canonicalize -lxml.tests.test_css lxml.tests.test_css-module.html -lxml.tests.test_css.__package__ lxml.tests.test_css-module.html#__package__ -lxml.tests.test_css.HTML lxml.tests.test_css-module.html#HTML -lxml.tests.test_css.test_suite lxml.tests.test_css-module.html#test_suite -lxml.tests.test_dtd lxml.tests.test_dtd-module.html -lxml.tests.test_dtd.make_doctest lxml.tests.common_imports-module.html#make_doctest -lxml.tests.test_dtd.fileInTestDir lxml.tests.common_imports-module.html#fileInTestDir -lxml.tests.test_dtd.__package__ lxml.tests.test_dtd-module.html#__package__ -lxml.tests.test_dtd._bytes lxml.tests.common_imports-module.html#_bytes -lxml.tests.test_dtd.test_suite lxml.tests.test_dtd-module.html#test_suite -lxml.tests.test_dtd.this_dir lxml.tests.test_dtd-module.html#this_dir -lxml.tests.test_elementtree lxml.tests.test_elementtree-module.html -lxml.tests.test_elementtree._str lxml.tests.common_imports-module.html#_str -lxml.tests.test_elementtree.canonicalize lxml.tests.common_imports-module.html#canonicalize -lxml.tests.test_elementtree._bytes lxml.tests.common_imports-module.html#_bytes -lxml.tests.test_elementtree.__package__ lxml.tests.test_elementtree-module.html#__package__ -lxml.tests.test_elementtree.filter_by_version lxml.tests.common_imports-module.html#filter_by_version -lxml.tests.test_elementtree.this_dir lxml.tests.test_elementtree-module.html#this_dir -lxml.tests.test_elementtree.reversed lxml.tests.test_elementtree-module.html#reversed -lxml.tests.test_elementtree.cElementTree lxml.tests.test_elementtree-module.html#cElementTree -lxml.tests.test_elementtree.fileInTestDir lxml.tests.common_imports-module.html#fileInTestDir -lxml.tests.test_elementtree.test_suite lxml.tests.test_elementtree-module.html#test_suite -lxml.tests.test_errors lxml.tests.test_errors-module.html -lxml.tests.test_errors.__package__ lxml.tests.test_errors-module.html#__package__ -lxml.tests.test_errors.test_suite lxml.tests.test_errors-module.html#test_suite -lxml.tests.test_errors.this_dir lxml.tests.test_errors-module.html#this_dir -lxml.tests.test_etree lxml.tests.test_etree-module.html -lxml.tests.test_etree.make_doctest lxml.tests.common_imports-module.html#make_doctest -lxml.tests.test_etree._str lxml.tests.common_imports-module.html#_str -lxml.tests.test_etree.fileInTestDir lxml.tests.common_imports-module.html#fileInTestDir -lxml.tests.test_etree._bytes lxml.tests.common_imports-module.html#_bytes -lxml.tests.test_etree.canonicalize lxml.tests.common_imports-module.html#canonicalize -lxml.tests.test_etree.__package__ lxml.tests.test_etree-module.html#__package__ -lxml.tests.test_etree.this_dir lxml.tests.test_etree-module.html#this_dir -lxml.tests.test_etree.read_file lxml.tests.common_imports-module.html#read_file -lxml.tests.test_etree.sorted lxml.tests.common_imports-module.html#sorted -lxml.tests.test_etree.test_suite lxml.tests.test_etree-module.html#test_suite -lxml.tests.test_htmlparser lxml.tests.test_htmlparser-module.html -lxml.tests.test_htmlparser._str lxml.tests.common_imports-module.html#_str -lxml.tests.test_htmlparser.fileInTestDir lxml.tests.common_imports-module.html#fileInTestDir -lxml.tests.test_htmlparser.__package__ lxml.tests.test_htmlparser-module.html#__package__ -lxml.tests.test_htmlparser.write_to_file lxml.tests.common_imports-module.html#write_to_file -lxml.tests.test_htmlparser._bytes lxml.tests.common_imports-module.html#_bytes -lxml.tests.test_htmlparser.test_suite lxml.tests.test_htmlparser-module.html#test_suite -lxml.tests.test_htmlparser.this_dir lxml.tests.test_htmlparser-module.html#this_dir -lxml.tests.test_io lxml.tests.test_io-module.html -lxml.tests.test_io._str lxml.tests.common_imports-module.html#_str -lxml.tests.test_io._bytes lxml.tests.common_imports-module.html#_bytes -lxml.tests.test_io.read_file lxml.tests.common_imports-module.html#read_file -lxml.tests.test_io.this_dir lxml.tests.test_io-module.html#this_dir -lxml.tests.test_io.__package__ lxml.tests.test_io-module.html#__package__ -lxml.tests.test_io.write_to_file lxml.tests.common_imports-module.html#write_to_file -lxml.tests.test_io.fileInTestDir lxml.tests.common_imports-module.html#fileInTestDir -lxml.tests.test_io.test_suite lxml.tests.test_io-module.html#test_suite -lxml.tests.test_isoschematron lxml.tests.test_isoschematron-module.html -lxml.tests.test_isoschematron.make_doctest lxml.tests.common_imports-module.html#make_doctest -lxml.tests.test_isoschematron.fileInTestDir lxml.tests.common_imports-module.html#fileInTestDir -lxml.tests.test_isoschematron.__package__ lxml.tests.test_isoschematron-module.html#__package__ -lxml.tests.test_isoschematron.test_suite lxml.tests.test_isoschematron-module.html#test_suite -lxml.tests.test_isoschematron.this_dir lxml.tests.test_isoschematron-module.html#this_dir -lxml.tests.test_nsclasses lxml.tests.test_nsclasses-module.html -lxml.tests.test_nsclasses.make_doctest lxml.tests.common_imports-module.html#make_doctest -lxml.tests.test_nsclasses.__package__ lxml.tests.test_nsclasses-module.html#__package__ -lxml.tests.test_nsclasses._bytes lxml.tests.common_imports-module.html#_bytes -lxml.tests.test_nsclasses.test_suite lxml.tests.test_nsclasses-module.html#test_suite -lxml.tests.test_nsclasses.this_dir lxml.tests.test_nsclasses-module.html#this_dir -lxml.tests.test_objectify lxml.tests.test_objectify-module.html -lxml.tests.test_objectify.xsitype2objclass lxml.tests.test_objectify-module.html#xsitype2objclass -lxml.tests.test_objectify.make_doctest lxml.tests.common_imports-module.html#make_doctest -lxml.tests.test_objectify._str lxml.tests.common_imports-module.html#_str -lxml.tests.test_objectify._bytes lxml.tests.common_imports-module.html#_bytes -lxml.tests.test_objectify.PYTYPE_NAMESPACE lxml.tests.test_objectify-module.html#PYTYPE_NAMESPACE -lxml.tests.test_objectify.canonicalize lxml.tests.common_imports-module.html#canonicalize -lxml.tests.test_objectify.pytype2objclass lxml.tests.test_objectify-module.html#pytype2objclass -lxml.tests.test_objectify.xml_str lxml.tests.test_objectify-module.html#xml_str -lxml.tests.test_objectify.DEFAULT_NSMAP lxml.tests.test_objectify-module.html#DEFAULT_NSMAP -lxml.tests.test_objectify.XML_SCHEMA_NS lxml.tests.test_objectify-module.html#XML_SCHEMA_NS -lxml.tests.test_objectify.TREE_PYTYPE lxml.tests.test_objectify-module.html#TREE_PYTYPE -lxml.tests.test_objectify.__package__ lxml.tests.test_objectify-module.html#__package__ -lxml.tests.test_objectify.XML_SCHEMA_INSTANCE_TYPE_ATTR lxml.tests.test_objectify-module.html#XML_SCHEMA_INSTANCE_TYPE_ATTR -lxml.tests.test_objectify.XML_SCHEMA_NIL_ATTR lxml.tests.test_objectify-module.html#XML_SCHEMA_NIL_ATTR -lxml.tests.test_objectify.this_dir lxml.tests.test_objectify-module.html#this_dir -lxml.tests.test_objectify.XML_SCHEMA_INSTANCE_NS lxml.tests.test_objectify-module.html#XML_SCHEMA_INSTANCE_NS -lxml.tests.test_objectify.objectclass2xsitype lxml.tests.test_objectify-module.html#objectclass2xsitype -lxml.tests.test_objectify.v lxml.tests.test_objectify-module.html#v -lxml.tests.test_objectify.objectclass2pytype lxml.tests.test_objectify-module.html#objectclass2pytype -lxml.tests.test_objectify.fileInTestDir lxml.tests.common_imports-module.html#fileInTestDir -lxml.tests.test_objectify.test_suite lxml.tests.test_objectify-module.html#test_suite -lxml.tests.test_pyclasslookup lxml.tests.test_pyclasslookup-module.html -lxml.tests.test_pyclasslookup.xml_str lxml.tests.test_pyclasslookup-module.html#xml_str -lxml.tests.test_pyclasslookup.this_dir lxml.tests.test_pyclasslookup-module.html#this_dir -lxml.tests.test_pyclasslookup.fileInTestDir lxml.tests.common_imports-module.html#fileInTestDir -lxml.tests.test_pyclasslookup.__package__ lxml.tests.test_pyclasslookup-module.html#__package__ -lxml.tests.test_pyclasslookup._bytes lxml.tests.common_imports-module.html#_bytes -lxml.tests.test_pyclasslookup.test_suite lxml.tests.test_pyclasslookup-module.html#test_suite -lxml.tests.test_pyclasslookup.canonicalize lxml.tests.common_imports-module.html#canonicalize -lxml.tests.test_relaxng lxml.tests.test_relaxng-module.html -lxml.tests.test_relaxng.make_doctest lxml.tests.common_imports-module.html#make_doctest -lxml.tests.test_relaxng.fileInTestDir lxml.tests.common_imports-module.html#fileInTestDir -lxml.tests.test_relaxng.__package__ lxml.tests.test_relaxng-module.html#__package__ -lxml.tests.test_relaxng._bytes lxml.tests.common_imports-module.html#_bytes -lxml.tests.test_relaxng.test_suite lxml.tests.test_relaxng-module.html#test_suite -lxml.tests.test_relaxng.this_dir lxml.tests.test_relaxng-module.html#this_dir -lxml.tests.test_sax lxml.tests.test_sax-module.html -lxml.tests.test_sax.make_doctest lxml.tests.common_imports-module.html#make_doctest -lxml.tests.test_sax.__package__ lxml.tests.test_sax-module.html#__package__ -lxml.tests.test_sax._bytes lxml.tests.common_imports-module.html#_bytes -lxml.tests.test_sax.test_suite lxml.tests.test_sax-module.html#test_suite -lxml.tests.test_sax.this_dir lxml.tests.test_sax-module.html#this_dir -lxml.tests.test_schematron lxml.tests.test_schematron-module.html -lxml.tests.test_schematron.make_doctest lxml.tests.common_imports-module.html#make_doctest -lxml.tests.test_schematron.fileInTestDir lxml.tests.common_imports-module.html#fileInTestDir -lxml.tests.test_schematron.__package__ lxml.tests.test_schematron-module.html#__package__ -lxml.tests.test_schematron.test_suite lxml.tests.test_schematron-module.html#test_suite -lxml.tests.test_schematron.this_dir lxml.tests.test_schematron-module.html#this_dir -lxml.tests.test_threading lxml.tests.test_threading-module.html -lxml.tests.test_threading.__package__ lxml.tests.test_threading-module.html#__package__ -lxml.tests.test_threading._bytes lxml.tests.common_imports-module.html#_bytes -lxml.tests.test_threading.test_suite lxml.tests.test_threading-module.html#test_suite -lxml.tests.test_threading.this_dir lxml.tests.test_threading-module.html#this_dir -lxml.tests.test_unicode lxml.tests.test_unicode-module.html -lxml.tests.test_unicode.uxml lxml.tests.test_unicode-module.html#uxml -lxml.tests.test_unicode.klingon lxml.tests.test_unicode-module.html#klingon -lxml.tests.test_unicode.invalid_tag lxml.tests.test_unicode-module.html#invalid_tag -lxml.tests.test_unicode._str lxml.tests.common_imports-module.html#_str -lxml.tests.test_unicode.__package__ lxml.tests.test_unicode-module.html#__package__ -lxml.tests.test_unicode._bytes lxml.tests.common_imports-module.html#_bytes -lxml.tests.test_unicode.test_suite lxml.tests.test_unicode-module.html#test_suite -lxml.tests.test_unicode.this_dir lxml.tests.test_unicode-module.html#this_dir -lxml.tests.test_unicode.uni lxml.tests.test_unicode-module.html#uni -lxml.tests.test_unicode.ascii_uni lxml.tests.test_unicode-module.html#ascii_uni -lxml.tests.test_xmlschema lxml.tests.test_xmlschema-module.html -lxml.tests.test_xmlschema.make_doctest lxml.tests.common_imports-module.html#make_doctest -lxml.tests.test_xmlschema.fileInTestDir lxml.tests.common_imports-module.html#fileInTestDir -lxml.tests.test_xmlschema.__package__ lxml.tests.test_xmlschema-module.html#__package__ -lxml.tests.test_xmlschema.test_suite lxml.tests.test_xmlschema-module.html#test_suite -lxml.tests.test_xmlschema.this_dir lxml.tests.test_xmlschema-module.html#this_dir -lxml.tests.test_xpathevaluator lxml.tests.test_xpathevaluator-module.html -lxml.tests.test_xpathevaluator.argsTest1 lxml.tests.test_xpathevaluator-module.html#argsTest1 -lxml.tests.test_xpathevaluator.argsTest2 lxml.tests.test_xpathevaluator-module.html#argsTest2 -lxml.tests.test_xpathevaluator.make_doctest lxml.tests.common_imports-module.html#make_doctest -lxml.tests.test_xpathevaluator.tag lxml.tests.test_xpathevaluator-module.html#tag -lxml.tests.test_xpathevaluator.stringTest lxml.tests.test_xpathevaluator-module.html#stringTest -lxml.tests.test_xpathevaluator._bytes lxml.tests.common_imports-module.html#_bytes -lxml.tests.test_xpathevaluator.booleanTest lxml.tests.test_xpathevaluator-module.html#booleanTest -lxml.tests.test_xpathevaluator.this_dir lxml.tests.test_xpathevaluator-module.html#this_dir -lxml.tests.test_xpathevaluator.setTest lxml.tests.test_xpathevaluator-module.html#setTest -lxml.tests.test_xpathevaluator.resultTypesTest2 lxml.tests.test_xpathevaluator-module.html#resultTypesTest2 -lxml.tests.test_xpathevaluator.SAMPLE_XML lxml.tests.test_xpathevaluator-module.html#SAMPLE_XML -lxml.tests.test_xpathevaluator.__package__ lxml.tests.test_xpathevaluator-module.html#__package__ -lxml.tests.test_xpathevaluator.test_suite lxml.tests.test_xpathevaluator-module.html#test_suite -lxml.tests.test_xpathevaluator.floatTest lxml.tests.test_xpathevaluator-module.html#floatTest -lxml.tests.test_xpathevaluator.stringListTest lxml.tests.test_xpathevaluator-module.html#stringListTest -lxml.tests.test_xpathevaluator.xpath lxml.tests.test_xpathevaluator-module.html#xpath -lxml.tests.test_xpathevaluator.tag_or_value lxml.tests.test_xpathevaluator-module.html#tag_or_value -lxml.tests.test_xpathevaluator.resultTypesTest lxml.tests.test_xpathevaluator-module.html#resultTypesTest -lxml.tests.test_xpathevaluator.extension lxml.tests.test_xpathevaluator-module.html#extension -lxml.tests.test_xpathevaluator.uri lxml.tests.test_xpathevaluator-module.html#uri -lxml.tests.test_xpathevaluator.setTest2 lxml.tests.test_xpathevaluator-module.html#setTest2 -lxml.tests.test_xslt lxml.tests.test_xslt-module.html -lxml.tests.test_xslt.make_doctest lxml.tests.common_imports-module.html#make_doctest -lxml.tests.test_xslt._str lxml.tests.common_imports-module.html#_str -lxml.tests.test_xslt._bytes lxml.tests.common_imports-module.html#_bytes -lxml.tests.test_xslt.this_dir lxml.tests.test_xslt-module.html#this_dir -lxml.tests.test_xslt.__package__ lxml.tests.test_xslt-module.html#__package__ -lxml.tests.test_xslt.is_python3 lxml.tests.test_xslt-module.html#is_python3 -lxml.tests.test_xslt.fileInTestDir lxml.tests.common_imports-module.html#fileInTestDir -lxml.tests.test_xslt.test_suite lxml.tests.test_xslt-module.html#test_suite -lxml.usedoctest lxml.usedoctest-module.html -xml.etree.ElementTree xml.etree.ElementTree-module.html -xml.etree.ElementTree.XMLID xml.etree.ElementTree-module.html#XMLID -xml.etree.ElementTree.register_namespace xml.etree.ElementTree-module.html#register_namespace -xml.etree.ElementTree.dump xml.etree.ElementTree-module.html#dump -xml.etree.ElementTree._raise_serialization_error xml.etree.ElementTree-module.html#_raise_serialization_error -xml.etree.ElementTree.HTML_EMPTY xml.etree.ElementTree-module.html#HTML_EMPTY -xml.etree.ElementTree._serialize_text xml.etree.ElementTree-module.html#_serialize_text -xml.etree.ElementTree.parse xml.etree.ElementTree-module.html#parse -xml.etree.ElementTree._encode xml.etree.ElementTree-module.html#_encode -xml.etree.ElementTree._namespace_map xml.etree.ElementTree-module.html#_namespace_map -xml.etree.ElementTree.__package__ xml.etree.ElementTree-module.html#__package__ -xml.etree.ElementTree._serialize xml.etree.ElementTree-module.html#_serialize -xml.etree.ElementTree._serialize_xml xml.etree.ElementTree-module.html#_serialize_xml -xml.etree.ElementTree.PI xml.etree.ElementTree-module.html#PI -xml.etree.ElementTree._escape_attrib xml.etree.ElementTree-module.html#_escape_attrib -xml.etree.ElementTree.XML xml.etree.ElementTree-module.html#XML -xml.etree.ElementTree._namespaces xml.etree.ElementTree-module.html#_namespaces -xml.etree.ElementTree._escape_cdata xml.etree.ElementTree-module.html#_escape_cdata -xml.etree.ElementTree._serialize_html xml.etree.ElementTree-module.html#_serialize_html -xml.etree.ElementTree._escape_attrib_html xml.etree.ElementTree-module.html#_escape_attrib_html -xml.etree.ElementTree.VERSION xml.etree.ElementTree-module.html#VERSION -xml.etree.ElementTree.tostring xml.etree.ElementTree-module.html#tostring -xml.etree.ElementTree.fromstringlist xml.etree.ElementTree-module.html#fromstringlist -xml.etree.ElementTree.iselement xml.etree.ElementTree-module.html#iselement -xml.etree.ElementTree.Comment xml.etree.ElementTree-module.html#Comment -xml.etree.ElementTree.ProcessingInstruction xml.etree.ElementTree-module.html#ProcessingInstruction -xml.etree.ElementTree.tostringlist xml.etree.ElementTree-module.html#tostringlist -xml.etree.ElementTree.fromstring xml.etree.ElementTree-module.html#fromstring -xml.etree.ElementTree.iterparse xml.etree.ElementTree-module.html#iterparse -xml.etree.ElementTree.SubElement xml.etree.ElementTree-module.html#SubElement -abc.ABCMeta abc.ABCMeta-class.html -abc.ABCMeta.__new__ abc.ABCMeta-class.html#__new__ -abc.ABCMeta._abc_invalidation_counter abc.ABCMeta-class.html#_abc_invalidation_counter -abc.ABCMeta.__instancecheck__ abc.ABCMeta-class.html#__instancecheck__ -abc.ABCMeta.__subclasscheck__ abc.ABCMeta-class.html#__subclasscheck__ -abc.ABCMeta.register abc.ABCMeta-class.html#register -abc.ABCMeta._dump_registry abc.ABCMeta-class.html#_dump_registry -exceptions.AssertionError exceptions.AssertionError-class.html -exceptions.AssertionError.__init__ exceptions.AssertionError-class.html#__init__ -exceptions.AssertionError.__new__ exceptions.AssertionError-class.html#__new__ -lxml.ElementInclude.FatalIncludeError lxml.ElementInclude.FatalIncludeError-class.html -lxml.etree.LxmlError.__init__ lxml.etree.LxmlError-class.html#__init__ -lxml.builder.ElementMaker lxml.builder.ElementMaker-class.html -lxml.builder.ElementMaker.__getattr__ lxml.builder.ElementMaker-class.html#__getattr__ -lxml.builder.ElementMaker.__call__ lxml.builder.ElementMaker-class.html#__call__ -lxml.builder.ElementMaker.__init__ lxml.builder.ElementMaker-class.html#__init__ -lxml.cssselect.CSSSelector lxml.cssselect.CSSSelector-class.html -lxml.etree.XPath.__new__ lxml.etree.XPath-class.html#__new__ -lxml.etree._XPathEvaluatorBase.evaluate lxml.etree._XPathEvaluatorBase-class.html#evaluate -lxml.etree._XPathEvaluatorBase.error_log lxml.etree._XPathEvaluatorBase-class.html#error_log -lxml.cssselect.CSSSelector.__repr__ lxml.cssselect.CSSSelector-class.html#__repr__ -lxml.etree.XPath.__call__ lxml.etree.XPath-class.html#__call__ -lxml.etree.XPath.path lxml.etree.XPath-class.html#path -lxml.cssselect.CSSSelector.__init__ lxml.cssselect.CSSSelector-class.html#__init__ -lxml.cssselect.LxmlHTMLTranslator lxml.cssselect.LxmlHTMLTranslator-class.html -lxml.cssselect.LxmlTranslator.xpath_contains_function lxml.cssselect.LxmlTranslator-class.html#xpath_contains_function -lxml.cssselect.LxmlTranslator lxml.cssselect.LxmlTranslator-class.html -lxml.cssselect.LxmlTranslator.xpath_contains_function lxml.cssselect.LxmlTranslator-class.html#xpath_contains_function -lxml.doctestcompare.LHTMLOutputChecker lxml.doctestcompare.LHTMLOutputChecker-class.html -lxml.doctestcompare.LXMLOutputChecker.collect_diff_end_tag lxml.doctestcompare.LXMLOutputChecker-class.html#collect_diff_end_tag -lxml.doctestcompare.LXMLOutputChecker.text_compare lxml.doctestcompare.LXMLOutputChecker-class.html#text_compare -lxml.doctestcompare.LHTMLOutputChecker.get_default_parser lxml.doctestcompare.LHTMLOutputChecker-class.html#get_default_parser -lxml.doctestcompare.LXMLOutputChecker.collect_diff_tag lxml.doctestcompare.LXMLOutputChecker-class.html#collect_diff_tag -lxml.doctestcompare.LXMLOutputChecker.collect_diff_text lxml.doctestcompare.LXMLOutputChecker-class.html#collect_diff_text -lxml.doctestcompare.LXMLOutputChecker.get_parser lxml.doctestcompare.LXMLOutputChecker-class.html#get_parser -lxml.doctestcompare.LXMLOutputChecker.collect_diff lxml.doctestcompare.LXMLOutputChecker-class.html#collect_diff -lxml.doctestcompare.LXMLOutputChecker.html_empty_tag lxml.doctestcompare.LXMLOutputChecker-class.html#html_empty_tag -lxml.doctestcompare.LXMLOutputChecker._looks_like_markup lxml.doctestcompare.LXMLOutputChecker-class.html#_looks_like_markup -lxml.doctestcompare.LXMLOutputChecker.format_tag lxml.doctestcompare.LXMLOutputChecker-class.html#format_tag -lxml.doctestcompare.LXMLOutputChecker.check_output lxml.doctestcompare.LXMLOutputChecker-class.html#check_output -lxml.doctestcompare.LXMLOutputChecker.compare_docs lxml.doctestcompare.LXMLOutputChecker-class.html#compare_docs -lxml.doctestcompare.LXMLOutputChecker.format_doc lxml.doctestcompare.LXMLOutputChecker-class.html#format_doc -lxml.doctestcompare.LXMLOutputChecker.output_difference lxml.doctestcompare.LXMLOutputChecker-class.html#output_difference -lxml.doctestcompare.LXMLOutputChecker.format_end_tag lxml.doctestcompare.LXMLOutputChecker-class.html#format_end_tag -lxml.doctestcompare.LXMLOutputChecker.format_text lxml.doctestcompare.LXMLOutputChecker-class.html#format_text -lxml.doctestcompare.LXMLOutputChecker.empty_tags lxml.doctestcompare.LXMLOutputChecker-class.html#empty_tags -lxml.doctestcompare.LXMLOutputChecker.tag_compare lxml.doctestcompare.LXMLOutputChecker-class.html#tag_compare -lxml.doctestcompare.LXMLOutputChecker lxml.doctestcompare.LXMLOutputChecker-class.html -lxml.doctestcompare.LXMLOutputChecker.text_compare lxml.doctestcompare.LXMLOutputChecker-class.html#text_compare -lxml.doctestcompare.LXMLOutputChecker._looks_like_markup lxml.doctestcompare.LXMLOutputChecker-class.html#_looks_like_markup -lxml.doctestcompare.LXMLOutputChecker.empty_tags lxml.doctestcompare.LXMLOutputChecker-class.html#empty_tags -lxml.doctestcompare.LXMLOutputChecker.collect_diff_tag lxml.doctestcompare.LXMLOutputChecker-class.html#collect_diff_tag -lxml.doctestcompare.LXMLOutputChecker.compare_docs lxml.doctestcompare.LXMLOutputChecker-class.html#compare_docs -lxml.doctestcompare.LXMLOutputChecker.get_parser lxml.doctestcompare.LXMLOutputChecker-class.html#get_parser -lxml.doctestcompare.LXMLOutputChecker.html_empty_tag lxml.doctestcompare.LXMLOutputChecker-class.html#html_empty_tag -lxml.doctestcompare.LXMLOutputChecker.get_default_parser lxml.doctestcompare.LXMLOutputChecker-class.html#get_default_parser -lxml.doctestcompare.LXMLOutputChecker.format_tag lxml.doctestcompare.LXMLOutputChecker-class.html#format_tag -lxml.doctestcompare.LXMLOutputChecker.check_output lxml.doctestcompare.LXMLOutputChecker-class.html#check_output -lxml.doctestcompare.LXMLOutputChecker.collect_diff lxml.doctestcompare.LXMLOutputChecker-class.html#collect_diff -lxml.doctestcompare.LXMLOutputChecker.tag_compare lxml.doctestcompare.LXMLOutputChecker-class.html#tag_compare -lxml.doctestcompare.LXMLOutputChecker.format_doc lxml.doctestcompare.LXMLOutputChecker-class.html#format_doc -lxml.doctestcompare.LXMLOutputChecker.output_difference lxml.doctestcompare.LXMLOutputChecker-class.html#output_difference -lxml.doctestcompare.LXMLOutputChecker.format_end_tag lxml.doctestcompare.LXMLOutputChecker-class.html#format_end_tag -lxml.doctestcompare.LXMLOutputChecker.format_text lxml.doctestcompare.LXMLOutputChecker-class.html#format_text -lxml.doctestcompare.LXMLOutputChecker.collect_diff_end_tag lxml.doctestcompare.LXMLOutputChecker-class.html#collect_diff_end_tag -lxml.doctestcompare.LXMLOutputChecker.collect_diff_text lxml.doctestcompare.LXMLOutputChecker-class.html#collect_diff_text -lxml.doctestcompare._RestoreChecker lxml.doctestcompare._RestoreChecker-class.html -lxml.doctestcompare._RestoreChecker.uninstall_dt_self lxml.doctestcompare._RestoreChecker-class.html#uninstall_dt_self -lxml.doctestcompare._RestoreChecker.install_clone lxml.doctestcompare._RestoreChecker-class.html#install_clone -lxml.doctestcompare._RestoreChecker.uninstall_module lxml.doctestcompare._RestoreChecker-class.html#uninstall_module -lxml.doctestcompare._RestoreChecker.uninstall_clone lxml.doctestcompare._RestoreChecker-class.html#uninstall_clone -lxml.doctestcompare._RestoreChecker.install_dt_self lxml.doctestcompare._RestoreChecker-class.html#install_dt_self -lxml.doctestcompare._RestoreChecker.__call__ lxml.doctestcompare._RestoreChecker-class.html#__call__ -lxml.doctestcompare._RestoreChecker.call_super lxml.doctestcompare._RestoreChecker-class.html#call_super -lxml.doctestcompare._RestoreChecker.__init__ lxml.doctestcompare._RestoreChecker-class.html#__init__ -lxml.etree.AncestorsIterator lxml.etree.AncestorsIterator-class.html -lxml.etree.AncestorsIterator.__new__ lxml.etree.AncestorsIterator-class.html#__new__ -lxml.etree._ElementMatchIterator.__next__ lxml.etree._ElementMatchIterator-class.html#__next__ -lxml.etree._ElementMatchIterator.next lxml.etree._ElementMatchIterator-class.html#next -lxml.etree._ElementMatchIterator.__iter__ lxml.etree._ElementMatchIterator-class.html#__iter__ -lxml.etree.AttributeBasedElementClassLookup lxml.etree.AttributeBasedElementClassLookup-class.html -lxml.etree.AttributeBasedElementClassLookup.__new__ lxml.etree.AttributeBasedElementClassLookup-class.html#__new__ -lxml.etree.FallbackElementClassLookup.fallback lxml.etree.FallbackElementClassLookup-class.html#fallback -lxml.etree.FallbackElementClassLookup.set_fallback lxml.etree.FallbackElementClassLookup-class.html#set_fallback -lxml.etree.AttributeBasedElementClassLookup.__init__ lxml.etree.AttributeBasedElementClassLookup-class.html#__init__ -lxml.etree.C14NError lxml.etree.C14NError-class.html -lxml.etree.LxmlError.__init__ lxml.etree.LxmlError-class.html#__init__ -lxml.etree.CDATA lxml.etree.CDATA-class.html -lxml.etree.CDATA.__new__ lxml.etree.CDATA-class.html#__new__ -lxml.etree.CDATA.__init__ lxml.etree.CDATA-class.html#__init__ -lxml.etree.CommentBase lxml.etree.CommentBase-class.html -lxml.etree._Element.getprevious lxml.etree._Element-class.html#getprevious -lxml.etree._Element.getparent lxml.etree._Element-class.html#getparent -lxml.etree._Element.sourceline lxml.etree._Element-class.html#sourceline -lxml.etree._Element.iterfind lxml.etree._Element-class.html#iterfind -lxml.etree._Element._init lxml.etree._Element-class.html#_init -lxml.etree._Element.nsmap lxml.etree._Element-class.html#nsmap -lxml.etree._Element.replace lxml.etree._Element-class.html#replace -lxml.etree._Element.prefix lxml.etree._Element-class.html#prefix -lxml.etree._Comment.tag lxml.etree._Comment-class.html#tag -lxml.etree._Element.iter lxml.etree._Element-class.html#iter -lxml.etree._Element.addprevious lxml.etree._Element-class.html#addprevious -lxml.etree._Element.addnext lxml.etree._Element-class.html#addnext -lxml.etree._Element.find lxml.etree._Element-class.html#find -lxml.etree._Element.getnext lxml.etree._Element-class.html#getnext -lxml.etree._Element.index lxml.etree._Element-class.html#index -lxml.etree.CommentBase.__new__ lxml.etree.CommentBase-class.html#__new__ -lxml.etree._Element.__contains__ lxml.etree._Element-class.html#__contains__ -lxml.etree._Element.findtext lxml.etree._Element-class.html#findtext -lxml.etree._Element.tail lxml.etree._Element-class.html#tail -lxml.etree._Element.getroottree lxml.etree._Element-class.html#getroottree -lxml.etree._Element.iterdescendants lxml.etree._Element-class.html#iterdescendants -lxml.etree._Element.getchildren lxml.etree._Element-class.html#getchildren -lxml.etree.CommentBase.__init__ lxml.etree.CommentBase-class.html#__init__ -lxml.etree._Element.xpath lxml.etree._Element-class.html#xpath -lxml.etree._Element.__deepcopy__ lxml.etree._Element-class.html#__deepcopy__ -lxml.etree._Element.makeelement lxml.etree._Element-class.html#makeelement -lxml.etree._Element.base lxml.etree._Element-class.html#base -lxml.etree._Element.iterchildren lxml.etree._Element-class.html#iterchildren -lxml.etree._Element.iterancestors lxml.etree._Element-class.html#iterancestors -lxml.etree._Element.extend lxml.etree._Element-class.html#extend -lxml.etree._Element.__reversed__ lxml.etree._Element-class.html#__reversed__ -lxml.etree._Element.itersiblings lxml.etree._Element-class.html#itersiblings -lxml.etree._Element.__nonzero__ lxml.etree._Element-class.html#__nonzero__ -lxml.etree._Element.clear lxml.etree._Element-class.html#clear -lxml.etree._Element.itertext lxml.etree._Element-class.html#itertext -lxml.etree._Element.findall lxml.etree._Element-class.html#findall -lxml.etree._Element.__iter__ lxml.etree._Element-class.html#__iter__ -lxml.etree._Element.remove lxml.etree._Element-class.html#remove -lxml.etree._Comment.__repr__ lxml.etree._Comment-class.html#__repr__ -lxml.etree._Element.getiterator lxml.etree._Element-class.html#getiterator -lxml.etree._Element.__copy__ lxml.etree._Element-class.html#__copy__ -lxml.etree.CustomElementClassLookup lxml.etree.CustomElementClassLookup-class.html -lxml.etree.CustomElementClassLookup.__new__ lxml.etree.CustomElementClassLookup-class.html#__new__ -lxml.etree.CustomElementClassLookup.lookup lxml.etree.CustomElementClassLookup-class.html#lookup -lxml.etree.FallbackElementClassLookup.fallback lxml.etree.FallbackElementClassLookup-class.html#fallback -lxml.etree.FallbackElementClassLookup.set_fallback lxml.etree.FallbackElementClassLookup-class.html#set_fallback -lxml.etree.FallbackElementClassLookup.__init__ lxml.etree.FallbackElementClassLookup-class.html#__init__ -lxml.etree.DTD lxml.etree.DTD-class.html -lxml.etree._Validator._append_log_message lxml.etree._Validator-class.html#_append_log_message -lxml.etree.DTD.iterelements lxml.etree.DTD-class.html#iterelements -lxml.etree.DTD.system_url lxml.etree.DTD-class.html#system_url -lxml.etree._Validator.validate lxml.etree._Validator-class.html#validate -lxml.etree.DTD.__init__ lxml.etree.DTD-class.html#__init__ -lxml.etree.DTD.__new__ lxml.etree.DTD-class.html#__new__ -lxml.etree._Validator._clear_error_log lxml.etree._Validator-class.html#_clear_error_log -lxml.etree.DTD.iterentities lxml.etree.DTD-class.html#iterentities -lxml.etree.DTD.entities lxml.etree.DTD-class.html#entities -lxml.etree.DTD.__call__ lxml.etree.DTD-class.html#__call__ -lxml.etree.DTD.elements lxml.etree.DTD-class.html#elements -lxml.etree._Validator.assert_ lxml.etree._Validator-class.html#assert_ -lxml.etree.DTD.name lxml.etree.DTD-class.html#name -lxml.etree._Validator.assertValid lxml.etree._Validator-class.html#assertValid -lxml.etree._Validator.error_log lxml.etree._Validator-class.html#error_log -lxml.etree.DTD.external_id lxml.etree.DTD-class.html#external_id -lxml.etree.DTDError lxml.etree.DTDError-class.html -lxml.etree.LxmlError.__init__ lxml.etree.LxmlError-class.html#__init__ -lxml.etree.DTDParseError lxml.etree.DTDParseError-class.html -lxml.etree.LxmlError.__init__ lxml.etree.LxmlError-class.html#__init__ -lxml.etree.DTDValidateError lxml.etree.DTDValidateError-class.html -lxml.etree.LxmlError.__init__ lxml.etree.LxmlError-class.html#__init__ -lxml.etree.DocInfo lxml.etree.DocInfo-class.html -lxml.etree.DocInfo.xml_version lxml.etree.DocInfo-class.html#xml_version -lxml.etree.DocInfo.public_id lxml.etree.DocInfo-class.html#public_id -lxml.etree.DocInfo.encoding lxml.etree.DocInfo-class.html#encoding -lxml.etree.DocInfo.externalDTD lxml.etree.DocInfo-class.html#externalDTD -lxml.etree.DocInfo.system_url lxml.etree.DocInfo-class.html#system_url -lxml.etree.DocInfo.__new__ lxml.etree.DocInfo-class.html#__new__ -lxml.etree.DocInfo.internalDTD lxml.etree.DocInfo-class.html#internalDTD -lxml.etree.DocInfo.URL lxml.etree.DocInfo-class.html#URL -lxml.etree.DocInfo.standalone lxml.etree.DocInfo-class.html#standalone -lxml.etree.DocInfo.root_name lxml.etree.DocInfo-class.html#root_name -lxml.etree.DocInfo.doctype lxml.etree.DocInfo-class.html#doctype -lxml.etree.DocumentInvalid lxml.etree.DocumentInvalid-class.html -lxml.etree.LxmlError.__init__ lxml.etree.LxmlError-class.html#__init__ -lxml.etree.ETCompatXMLParser lxml.etree.ETCompatXMLParser-class.html -lxml.etree._FeedParser.feed lxml.etree._FeedParser-class.html#feed -lxml.etree._BaseParser.set_element_class_lookup lxml.etree._BaseParser-class.html#set_element_class_lookup -lxml.etree._FeedParser.close lxml.etree._FeedParser-class.html#close -lxml.etree.ETCompatXMLParser.__init__ lxml.etree.ETCompatXMLParser-class.html#__init__ -lxml.etree.ETCompatXMLParser.__new__ lxml.etree.ETCompatXMLParser-class.html#__new__ -lxml.etree._BaseParser.setElementClassLookup lxml.etree._BaseParser-class.html#setElementClassLookup -lxml.etree._BaseParser.version lxml.etree._BaseParser-class.html#version -lxml.etree._BaseParser.makeelement lxml.etree._BaseParser-class.html#makeelement -lxml.etree._BaseParser.copy lxml.etree._BaseParser-class.html#copy -lxml.etree._BaseParser.resolvers lxml.etree._BaseParser-class.html#resolvers -lxml.etree._BaseParser.target lxml.etree._BaseParser-class.html#target -lxml.etree._BaseParser.error_log lxml.etree._BaseParser-class.html#error_log -lxml.etree._FeedParser.feed_error_log lxml.etree._FeedParser-class.html#feed_error_log -lxml.etree.ETXPath lxml.etree.ETXPath-class.html -lxml.etree.ETXPath.__new__ lxml.etree.ETXPath-class.html#__new__ -lxml.etree._XPathEvaluatorBase.evaluate lxml.etree._XPathEvaluatorBase-class.html#evaluate -lxml.etree._XPathEvaluatorBase.error_log lxml.etree._XPathEvaluatorBase-class.html#error_log -lxml.etree.XPath.__repr__ lxml.etree.XPath-class.html#__repr__ -lxml.etree.XPath.__call__ lxml.etree.XPath-class.html#__call__ -lxml.etree.XPath.path lxml.etree.XPath-class.html#path -lxml.etree.ETXPath.__init__ lxml.etree.ETXPath-class.html#__init__ -lxml.etree.ElementBase lxml.etree.ElementBase-class.html -lxml.etree._Element.getprevious lxml.etree._Element-class.html#getprevious -lxml.etree._Element.set lxml.etree._Element-class.html#set -lxml.etree._Element.getparent lxml.etree._Element-class.html#getparent -lxml.etree._Element.sourceline lxml.etree._Element-class.html#sourceline -lxml.etree._Element.text lxml.etree._Element-class.html#text -lxml.etree._Element.iterfind lxml.etree._Element-class.html#iterfind -lxml.etree._Element._init lxml.etree._Element-class.html#_init -lxml.etree._Element.nsmap lxml.etree._Element-class.html#nsmap -lxml.etree._Element.replace lxml.etree._Element-class.html#replace -lxml.etree._Element.prefix lxml.etree._Element-class.html#prefix -lxml.etree._Element.tag lxml.etree._Element-class.html#tag -lxml.etree._Element.iter lxml.etree._Element-class.html#iter -lxml.etree._Element.addnext lxml.etree._Element-class.html#addnext -lxml.etree._Element.addprevious lxml.etree._Element-class.html#addprevious -lxml.etree._Element.find lxml.etree._Element-class.html#find -lxml.etree._Element.append lxml.etree._Element-class.html#append -lxml.etree._Element.getnext lxml.etree._Element-class.html#getnext -lxml.etree._Element.index lxml.etree._Element-class.html#index -lxml.etree.ElementBase.__new__ lxml.etree.ElementBase-class.html#__new__ -lxml.etree._Element.__contains__ lxml.etree._Element-class.html#__contains__ -lxml.etree._Element.findtext lxml.etree._Element-class.html#findtext -lxml.etree._Element.tail lxml.etree._Element-class.html#tail -lxml.etree._Element.getroottree lxml.etree._Element-class.html#getroottree -lxml.etree._Element.iterdescendants lxml.etree._Element-class.html#iterdescendants -lxml.etree._Element.getchildren lxml.etree._Element-class.html#getchildren -lxml.etree.ElementBase.__init__ lxml.etree.ElementBase-class.html#__init__ -lxml.etree._Element.__len__ lxml.etree._Element-class.html#__len__ -lxml.etree._Element.xpath lxml.etree._Element-class.html#xpath -lxml.etree._Element.__getitem__ lxml.etree._Element-class.html#__getitem__ -lxml.etree._Element.get lxml.etree._Element-class.html#get -lxml.etree._Element.keys lxml.etree._Element-class.html#keys -lxml.etree._Element.__deepcopy__ lxml.etree._Element-class.html#__deepcopy__ -lxml.etree._Element.makeelement lxml.etree._Element-class.html#makeelement -lxml.etree._Element.__iter__ lxml.etree._Element-class.html#__iter__ -lxml.etree._Element.base lxml.etree._Element-class.html#base -lxml.etree._Element.insert lxml.etree._Element-class.html#insert -lxml.etree._Element.iterchildren lxml.etree._Element-class.html#iterchildren -lxml.etree._Element.iterancestors lxml.etree._Element-class.html#iterancestors -lxml.etree._Element.extend lxml.etree._Element-class.html#extend -lxml.etree._Element.__delitem__ lxml.etree._Element-class.html#__delitem__ -lxml.etree._Element.__reversed__ lxml.etree._Element-class.html#__reversed__ -lxml.etree._Element.itersiblings lxml.etree._Element-class.html#itersiblings -lxml.etree._Element.__nonzero__ lxml.etree._Element-class.html#__nonzero__ -lxml.etree._Element.items lxml.etree._Element-class.html#items -lxml.etree._Element.clear lxml.etree._Element-class.html#clear -lxml.etree._Element.itertext lxml.etree._Element-class.html#itertext -lxml.etree._Element.findall lxml.etree._Element-class.html#findall -lxml.etree._Element.__setitem__ lxml.etree._Element-class.html#__setitem__ -lxml.etree._Element.remove lxml.etree._Element-class.html#remove -lxml.etree._Element.values lxml.etree._Element-class.html#values -lxml.etree._Element.__repr__ lxml.etree._Element-class.html#__repr__ -lxml.etree._Element.getiterator lxml.etree._Element-class.html#getiterator -lxml.etree._Element.attrib lxml.etree._Element-class.html#attrib -lxml.etree._Element.__copy__ lxml.etree._Element-class.html#__copy__ -lxml.etree.ElementChildIterator lxml.etree.ElementChildIterator-class.html -lxml.etree.ElementChildIterator.__new__ lxml.etree.ElementChildIterator-class.html#__new__ -lxml.etree._ElementMatchIterator.__next__ lxml.etree._ElementMatchIterator-class.html#__next__ -lxml.etree._ElementMatchIterator.next lxml.etree._ElementMatchIterator-class.html#next -lxml.etree._ElementMatchIterator.__iter__ lxml.etree._ElementMatchIterator-class.html#__iter__ -lxml.etree.ElementClassLookup lxml.etree.ElementClassLookup-class.html -lxml.etree.ElementClassLookup.__new__ lxml.etree.ElementClassLookup-class.html#__new__ -lxml.etree.ElementDefaultClassLookup lxml.etree.ElementDefaultClassLookup-class.html -lxml.etree.ElementDefaultClassLookup.entity_class lxml.etree.ElementDefaultClassLookup-class.html#entity_class -lxml.etree.ElementDefaultClassLookup.__new__ lxml.etree.ElementDefaultClassLookup-class.html#__new__ -lxml.etree.ElementDefaultClassLookup.element_class lxml.etree.ElementDefaultClassLookup-class.html#element_class -lxml.etree.ElementDefaultClassLookup.pi_class lxml.etree.ElementDefaultClassLookup-class.html#pi_class -lxml.etree.ElementDefaultClassLookup.comment_class lxml.etree.ElementDefaultClassLookup-class.html#comment_class -lxml.etree.ElementDefaultClassLookup.__init__ lxml.etree.ElementDefaultClassLookup-class.html#__init__ -lxml.etree.ElementDepthFirstIterator lxml.etree.ElementDepthFirstIterator-class.html -lxml.etree.ElementDepthFirstIterator.__new__ lxml.etree.ElementDepthFirstIterator-class.html#__new__ -lxml.etree.ElementDepthFirstIterator.__next__ lxml.etree.ElementDepthFirstIterator-class.html#__next__ -lxml.etree.ElementDepthFirstIterator.next lxml.etree.ElementDepthFirstIterator-class.html#next -lxml.etree.ElementDepthFirstIterator.__iter__ lxml.etree.ElementDepthFirstIterator-class.html#__iter__ -lxml.etree.ElementNamespaceClassLookup lxml.etree.ElementNamespaceClassLookup-class.html -lxml.etree.ElementNamespaceClassLookup.__new__ lxml.etree.ElementNamespaceClassLookup-class.html#__new__ -lxml.etree.ElementNamespaceClassLookup.get_namespace lxml.etree.ElementNamespaceClassLookup-class.html#get_namespace -lxml.etree.FallbackElementClassLookup.fallback lxml.etree.FallbackElementClassLookup-class.html#fallback -lxml.etree.FallbackElementClassLookup.set_fallback lxml.etree.FallbackElementClassLookup-class.html#set_fallback -lxml.etree.ElementNamespaceClassLookup.__init__ lxml.etree.ElementNamespaceClassLookup-class.html#__init__ -lxml.etree.ElementTextIterator lxml.etree.ElementTextIterator-class.html -lxml.etree.ElementTextIterator.__new__ lxml.etree.ElementTextIterator-class.html#__new__ -lxml.etree.ElementTextIterator.__next__ lxml.etree.ElementTextIterator-class.html#__next__ -lxml.etree.ElementTextIterator.next lxml.etree.ElementTextIterator-class.html#next -lxml.etree.ElementTextIterator.__iter__ lxml.etree.ElementTextIterator-class.html#__iter__ -lxml.etree.EntityBase lxml.etree.EntityBase-class.html -lxml.etree._Element.getprevious lxml.etree._Element-class.html#getprevious -lxml.etree._Element.getparent lxml.etree._Element-class.html#getparent -lxml.etree._Element.sourceline lxml.etree._Element-class.html#sourceline -lxml.etree._Entity.text lxml.etree._Entity-class.html#text -lxml.etree._Element.iterfind lxml.etree._Element-class.html#iterfind -lxml.etree._Element._init lxml.etree._Element-class.html#_init -lxml.etree._Element.nsmap lxml.etree._Element-class.html#nsmap -lxml.etree._Element.replace lxml.etree._Element-class.html#replace -lxml.etree._Element.prefix lxml.etree._Element-class.html#prefix -lxml.etree._Entity.tag lxml.etree._Entity-class.html#tag -lxml.etree._Element.iter lxml.etree._Element-class.html#iter -lxml.etree._Element.addprevious lxml.etree._Element-class.html#addprevious -lxml.etree._Element.addnext lxml.etree._Element-class.html#addnext -lxml.etree._Element.find lxml.etree._Element-class.html#find -lxml.etree._Element.getnext lxml.etree._Element-class.html#getnext -lxml.etree._Element.index lxml.etree._Element-class.html#index -lxml.etree.EntityBase.__new__ lxml.etree.EntityBase-class.html#__new__ -lxml.etree._Element.__contains__ lxml.etree._Element-class.html#__contains__ -lxml.etree._Element.findtext lxml.etree._Element-class.html#findtext -lxml.etree._Element.tail lxml.etree._Element-class.html#tail -lxml.etree._Element.getroottree lxml.etree._Element-class.html#getroottree -lxml.etree._Element.iterdescendants lxml.etree._Element-class.html#iterdescendants -lxml.etree._Element.getchildren lxml.etree._Element-class.html#getchildren -lxml.etree.EntityBase.__init__ lxml.etree.EntityBase-class.html#__init__ -lxml.etree._Element.xpath lxml.etree._Element-class.html#xpath -lxml.etree._Element.__deepcopy__ lxml.etree._Element-class.html#__deepcopy__ -lxml.etree._Element.makeelement lxml.etree._Element-class.html#makeelement -lxml.etree._Element.base lxml.etree._Element-class.html#base -lxml.etree._Element.iterchildren lxml.etree._Element-class.html#iterchildren -lxml.etree._Element.iterancestors lxml.etree._Element-class.html#iterancestors -lxml.etree._Element.extend lxml.etree._Element-class.html#extend -lxml.etree._Element.__reversed__ lxml.etree._Element-class.html#__reversed__ -lxml.etree._Element.itersiblings lxml.etree._Element-class.html#itersiblings -lxml.etree._Element.__nonzero__ lxml.etree._Element-class.html#__nonzero__ -lxml.etree._Entity.name lxml.etree._Entity-class.html#name -lxml.etree._Element.clear lxml.etree._Element-class.html#clear -lxml.etree._Element.itertext lxml.etree._Element-class.html#itertext -lxml.etree._Element.findall lxml.etree._Element-class.html#findall -lxml.etree._Element.__iter__ lxml.etree._Element-class.html#__iter__ -lxml.etree._Element.remove lxml.etree._Element-class.html#remove -lxml.etree._Entity.__repr__ lxml.etree._Entity-class.html#__repr__ -lxml.etree._Element.getiterator lxml.etree._Element-class.html#getiterator -lxml.etree._Element.__copy__ lxml.etree._Element-class.html#__copy__ -lxml.etree.Error lxml.etree.Error-class.html -lxml.etree.ErrorDomains lxml.etree.ErrorDomains-class.html -lxml.etree.ErrorDomains.HTTP lxml.etree.ErrorDomains-class.html#HTTP -lxml.etree.ErrorDomains.SCHEMATRONV lxml.etree.ErrorDomains-class.html#SCHEMATRONV -lxml.etree.ErrorDomains.DTD lxml.etree.ErrorDomains-class.html#DTD -lxml.etree.ErrorDomains.VALID lxml.etree.ErrorDomains-class.html#VALID -lxml.etree.ErrorDomains.I18N lxml.etree.ErrorDomains-class.html#I18N -lxml.etree.ErrorDomains._getName lxml.etree.ErrorDomains-class.html#_getName -lxml.etree.ErrorDomains.C14N lxml.etree.ErrorDomains-class.html#C14N -lxml.etree.ErrorDomains.NONE lxml.etree.ErrorDomains-class.html#NONE -lxml.etree.ErrorDomains.DATATYPE lxml.etree.ErrorDomains-class.html#DATATYPE -lxml.etree.ErrorDomains.XINCLUDE lxml.etree.ErrorDomains-class.html#XINCLUDE -lxml.etree.ErrorDomains.HTML lxml.etree.ErrorDomains-class.html#HTML -lxml.etree.ErrorDomains.CHECK lxml.etree.ErrorDomains-class.html#CHECK -lxml.etree.ErrorDomains.FTP lxml.etree.ErrorDomains-class.html#FTP -lxml.etree.ErrorDomains._names lxml.etree.ErrorDomains-class.html#_names -lxml.etree.ErrorDomains.XSLT lxml.etree.ErrorDomains-class.html#XSLT -lxml.etree.ErrorDomains.PARSER lxml.etree.ErrorDomains-class.html#PARSER -lxml.etree.ErrorDomains.NAMESPACE lxml.etree.ErrorDomains-class.html#NAMESPACE -lxml.etree.ErrorDomains.MODULE lxml.etree.ErrorDomains-class.html#MODULE -lxml.etree.ErrorDomains.IO lxml.etree.ErrorDomains-class.html#IO -lxml.etree.ErrorDomains.REGEXP lxml.etree.ErrorDomains-class.html#REGEXP -lxml.etree.ErrorDomains.XPATH lxml.etree.ErrorDomains-class.html#XPATH -lxml.etree.ErrorDomains.RELAXNGV lxml.etree.ErrorDomains-class.html#RELAXNGV -lxml.etree.ErrorDomains.RELAXNGP lxml.etree.ErrorDomains-class.html#RELAXNGP -lxml.etree.ErrorDomains.WRITER lxml.etree.ErrorDomains-class.html#WRITER -lxml.etree.ErrorDomains.TREE lxml.etree.ErrorDomains-class.html#TREE -lxml.etree.ErrorDomains.SCHEMASP lxml.etree.ErrorDomains-class.html#SCHEMASP -lxml.etree.ErrorDomains.CATALOG lxml.etree.ErrorDomains-class.html#CATALOG -lxml.etree.ErrorDomains.SCHEMASV lxml.etree.ErrorDomains-class.html#SCHEMASV -lxml.etree.ErrorDomains.MEMORY lxml.etree.ErrorDomains-class.html#MEMORY -lxml.etree.ErrorDomains.OUTPUT lxml.etree.ErrorDomains-class.html#OUTPUT -lxml.etree.ErrorDomains.XPOINTER lxml.etree.ErrorDomains-class.html#XPOINTER -lxml.etree.ErrorLevels lxml.etree.ErrorLevels-class.html -lxml.etree.ErrorLevels.NONE lxml.etree.ErrorLevels-class.html#NONE -lxml.etree.ErrorLevels._names lxml.etree.ErrorLevels-class.html#_names -lxml.etree.ErrorLevels.WARNING lxml.etree.ErrorLevels-class.html#WARNING -lxml.etree.ErrorLevels.ERROR lxml.etree.ErrorLevels-class.html#ERROR -lxml.etree.ErrorLevels.FATAL lxml.etree.ErrorLevels-class.html#FATAL -lxml.etree.ErrorLevels._getName lxml.etree.ErrorLevels-class.html#_getName -lxml.etree.ErrorTypes lxml.etree.ErrorTypes-class.html -lxml.etree.ErrorTypes.I18N_CONV_FAILED lxml.etree.ErrorTypes-class.html#I18N_CONV_FAILED -lxml.etree.ErrorTypes.SCHEMAP_ATTRFORMDEFAULT_VALUE lxml.etree.ErrorTypes-class.html#SCHEMAP_ATTRFORMDEFAULT_VALUE -lxml.etree.ErrorTypes.SCHEMAP_REDEFINED_NOTATION lxml.etree.ErrorTypes-class.html#SCHEMAP_REDEFINED_NOTATION -lxml.etree.ErrorTypes.RNGP_EXCEPT_MULTIPLE lxml.etree.ErrorTypes-class.html#RNGP_EXCEPT_MULTIPLE -lxml.etree.ErrorTypes.SCHEMAP_AU_PROPS_CORRECT_2 lxml.etree.ErrorTypes-class.html#SCHEMAP_AU_PROPS_CORRECT_2 -lxml.etree.ErrorTypes.IO_EINVAL lxml.etree.ErrorTypes-class.html#IO_EINVAL -lxml.etree.ErrorTypes.ERR_VERSION_MISMATCH lxml.etree.ErrorTypes-class.html#ERR_VERSION_MISMATCH -lxml.etree.ErrorTypes.ERR_ELEMCONTENT_NOT_STARTED lxml.etree.ErrorTypes-class.html#ERR_ELEMCONTENT_NOT_STARTED -lxml.etree.ErrorTypes.SCHEMAP_TYPE_AND_SUBTYPE lxml.etree.ErrorTypes-class.html#SCHEMAP_TYPE_AND_SUBTYPE -lxml.etree.ErrorTypes.FTP_URL_SYNTAX lxml.etree.ErrorTypes-class.html#FTP_URL_SYNTAX -lxml.etree.ErrorTypes.SCHEMAP_UNKNOWN_ATTRIBUTE_GROUP lxml.etree.ErrorTypes-class.html#SCHEMAP_UNKNOWN_ATTRIBUTE_GROUP -lxml.etree.ErrorTypes.SCHEMAP_INVALID_ATTR_USE lxml.etree.ErrorTypes-class.html#SCHEMAP_INVALID_ATTR_USE -lxml.etree.ErrorTypes.CHECK_WRONG_PREV lxml.etree.ErrorTypes-class.html#CHECK_WRONG_PREV -lxml.etree.ErrorTypes.CHECK_NS_SCOPE lxml.etree.ErrorTypes-class.html#CHECK_NS_SCOPE -lxml.etree.ErrorTypes.CHECK_NOT_NS_DECL lxml.etree.ErrorTypes-class.html#CHECK_NOT_NS_DECL -lxml.etree.ErrorTypes.XINCLUDE_XPTR_RESULT lxml.etree.ErrorTypes-class.html#XINCLUDE_XPTR_RESULT -lxml.etree.ErrorTypes.ERR_PEREF_IN_EPILOG lxml.etree.ErrorTypes-class.html#ERR_PEREF_IN_EPILOG -lxml.etree.ErrorTypes.IO_EMLINK lxml.etree.ErrorTypes-class.html#IO_EMLINK -lxml.etree.ErrorTypes.RNGP_PARAM_NAME_MISSING lxml.etree.ErrorTypes-class.html#RNGP_PARAM_NAME_MISSING -lxml.etree.ErrorTypes.WAR_NS_URI_RELATIVE lxml.etree.ErrorTypes-class.html#WAR_NS_URI_RELATIVE -lxml.etree.ErrorTypes.SCHEMAP_SRC_ELEMENT_2_2 lxml.etree.ErrorTypes-class.html#SCHEMAP_SRC_ELEMENT_2_2 -lxml.etree.ErrorTypes.IO_ENFILE lxml.etree.ErrorTypes-class.html#IO_ENFILE -lxml.etree.ErrorTypes.SCHEMATRONV_ASSERT lxml.etree.ErrorTypes-class.html#SCHEMATRONV_ASSERT -lxml.etree.ErrorTypes.FTP_ACCNT lxml.etree.ErrorTypes-class.html#FTP_ACCNT -lxml.etree.ErrorTypes.RNGP_PAT_START_GROUP lxml.etree.ErrorTypes-class.html#RNGP_PAT_START_GROUP -lxml.etree.ErrorTypes.SCHEMAV_MISSING lxml.etree.ErrorTypes-class.html#SCHEMAV_MISSING -lxml.etree.ErrorTypes.MODULE_OPEN lxml.etree.ErrorTypes-class.html#MODULE_OPEN -lxml.etree.ErrorTypes.XPATH_INVALID_OPERAND lxml.etree.ErrorTypes-class.html#XPATH_INVALID_OPERAND -lxml.etree.ErrorTypes.CHECK_FOUND_NOTATION lxml.etree.ErrorTypes-class.html#CHECK_FOUND_NOTATION -lxml.etree.ErrorTypes.SCHEMAP_SRC_IMPORT_1_1 lxml.etree.ErrorTypes-class.html#SCHEMAP_SRC_IMPORT_1_1 -lxml.etree.ErrorTypes.ERR_UNPARSED_ENTITY lxml.etree.ErrorTypes-class.html#ERR_UNPARSED_ENTITY -lxml.etree.ErrorTypes.SCHEMAP_UNKNOWN_NOTATION_CHILD lxml.etree.ErrorTypes-class.html#SCHEMAP_UNKNOWN_NOTATION_CHILD -lxml.etree.ErrorTypes.CHECK_OUTSIDE_DICT lxml.etree.ErrorTypes-class.html#CHECK_OUTSIDE_DICT -lxml.etree.ErrorTypes.SCHEMAV_NOTEMPTY lxml.etree.ErrorTypes-class.html#SCHEMAV_NOTEMPTY -lxml.etree.ErrorTypes.RNGP_PAT_DATA_EXCEPT_GROUP lxml.etree.ErrorTypes-class.html#RNGP_PAT_DATA_EXCEPT_GROUP -lxml.etree.ErrorTypes.ERR_PEREF_SEMICOL_MISSING lxml.etree.ErrorTypes-class.html#ERR_PEREF_SEMICOL_MISSING -lxml.etree.ErrorTypes.DTD_LOAD_ERROR lxml.etree.ErrorTypes-class.html#DTD_LOAD_ERROR -lxml.etree.ErrorTypes.SCHEMAP_INVALID_BOOLEAN lxml.etree.ErrorTypes-class.html#SCHEMAP_INVALID_BOOLEAN -lxml.etree.ErrorTypes.DTD_NOT_STANDALONE lxml.etree.ErrorTypes-class.html#DTD_NOT_STANDALONE -lxml.etree.ErrorTypes.SCHEMAP_ST_PROPS_CORRECT_3 lxml.etree.ErrorTypes-class.html#SCHEMAP_ST_PROPS_CORRECT_3 -lxml.etree.ErrorTypes.SCHEMAV_CVC_ATTRIBUTE_1 lxml.etree.ErrorTypes-class.html#SCHEMAV_CVC_ATTRIBUTE_1 -lxml.etree.ErrorTypes.SCHEMAV_CVC_ATTRIBUTE_3 lxml.etree.ErrorTypes-class.html#SCHEMAV_CVC_ATTRIBUTE_3 -lxml.etree.ErrorTypes.SCHEMAV_CVC_ATTRIBUTE_2 lxml.etree.ErrorTypes-class.html#SCHEMAV_CVC_ATTRIBUTE_2 -lxml.etree.ErrorTypes.SCHEMAV_CVC_ATTRIBUTE_4 lxml.etree.ErrorTypes-class.html#SCHEMAV_CVC_ATTRIBUTE_4 -lxml.etree.ErrorTypes.C14N_INVALID_NODE lxml.etree.ErrorTypes-class.html#C14N_INVALID_NODE -lxml.etree.ErrorTypes.XPATH_START_LITERAL_ERROR lxml.etree.ErrorTypes-class.html#XPATH_START_LITERAL_ERROR -lxml.etree.ErrorTypes.RNGP_TEXT_HAS_CHILD lxml.etree.ErrorTypes-class.html#RNGP_TEXT_HAS_CHILD -lxml.etree.ErrorTypes.SCHEMAV_CVC_WILDCARD lxml.etree.ErrorTypes-class.html#SCHEMAV_CVC_WILDCARD -lxml.etree.ErrorTypes.XPATH_UNDEF_VARIABLE_ERROR lxml.etree.ErrorTypes-class.html#XPATH_UNDEF_VARIABLE_ERROR -lxml.etree.ErrorTypes.SCHEMAP_S4S_ATTR_MISSING lxml.etree.ErrorTypes-class.html#SCHEMAP_S4S_ATTR_MISSING -lxml.etree.ErrorTypes.SCHEMAP_INTERNAL lxml.etree.ErrorTypes-class.html#SCHEMAP_INTERNAL -lxml.etree.ErrorTypes.RNGP_EXCEPT_MISSING lxml.etree.ErrorTypes-class.html#RNGP_EXCEPT_MISSING -lxml.etree.ErrorTypes.TREE_INVALID_HEX lxml.etree.ErrorTypes-class.html#TREE_INVALID_HEX -lxml.etree.ErrorTypes.RNGP_DEFINE_CREATE_FAILED lxml.etree.ErrorTypes-class.html#RNGP_DEFINE_CREATE_FAILED -lxml.etree.ErrorTypes.XPATH_ENCODING_ERROR lxml.etree.ErrorTypes-class.html#XPATH_ENCODING_ERROR -lxml.etree.ErrorTypes.SCHEMAV_CVC_IDC lxml.etree.ErrorTypes-class.html#SCHEMAV_CVC_IDC -lxml.etree.ErrorTypes.CHECK_NO_ELEM lxml.etree.ErrorTypes-class.html#CHECK_NO_ELEM -lxml.etree.ErrorTypes.IO_EXDEV lxml.etree.ErrorTypes-class.html#IO_EXDEV -lxml.etree.ErrorTypes.SCHEMAP_UNKNOWN_TYPE lxml.etree.ErrorTypes-class.html#SCHEMAP_UNKNOWN_TYPE -lxml.etree.ErrorTypes.ERR_LT_IN_ATTRIBUTE lxml.etree.ErrorTypes-class.html#ERR_LT_IN_ATTRIBUTE -lxml.etree.ErrorTypes.SCHEMAP_SUPERNUMEROUS_LIST_ITEM_TYPE lxml.etree.ErrorTypes-class.html#SCHEMAP_SUPERNUMEROUS_LIST_ITEM_TYPE -lxml.etree.ErrorTypes.IO_EMFILE lxml.etree.ErrorTypes-class.html#IO_EMFILE -lxml.etree.ErrorTypes.SCHEMAV_CVC_ELT_3_2_2 lxml.etree.ErrorTypes-class.html#SCHEMAV_CVC_ELT_3_2_2 -lxml.etree.ErrorTypes.SCHEMAV_CVC_ELT_3_2_1 lxml.etree.ErrorTypes-class.html#SCHEMAV_CVC_ELT_3_2_1 -lxml.etree.ErrorTypes.XINCLUDE_XPTR_FAILED lxml.etree.ErrorTypes-class.html#XINCLUDE_XPTR_FAILED -lxml.etree.ErrorTypes.ERR_MISPLACED_CDATA_END lxml.etree.ErrorTypes-class.html#ERR_MISPLACED_CDATA_END -lxml.etree.ErrorTypes.RNGP_ELEMENT_NO_CONTENT lxml.etree.ErrorTypes-class.html#RNGP_ELEMENT_NO_CONTENT -lxml.etree.ErrorTypes.IO_ENOENT lxml.etree.ErrorTypes-class.html#IO_ENOENT -lxml.etree.ErrorTypes.RNGP_ATTRIBUTE_NOOP lxml.etree.ErrorTypes-class.html#RNGP_ATTRIBUTE_NOOP -lxml.etree.ErrorTypes.SCHEMAP_SRC_REDEFINE lxml.etree.ErrorTypes-class.html#SCHEMAP_SRC_REDEFINE -lxml.etree.ErrorTypes.ERR_CHARREF_IN_PROLOG lxml.etree.ErrorTypes-class.html#ERR_CHARREF_IN_PROLOG -lxml.etree.ErrorTypes.RNGP_REF_NAME_INVALID lxml.etree.ErrorTypes-class.html#RNGP_REF_NAME_INVALID -lxml.etree.ErrorTypes.ERR_NOTATION_PROCESSING lxml.etree.ErrorTypes-class.html#ERR_NOTATION_PROCESSING -lxml.etree.ErrorTypes.RNGP_INCLUDE_EMPTY lxml.etree.ErrorTypes-class.html#RNGP_INCLUDE_EMPTY -lxml.etree.ErrorTypes.RNGP_INCLUDE_RECURSE lxml.etree.ErrorTypes-class.html#RNGP_INCLUDE_RECURSE -lxml.etree.ErrorTypes.SCHEMAP_ELEM_NONAME_NOREF lxml.etree.ErrorTypes-class.html#SCHEMAP_ELEM_NONAME_NOREF -lxml.etree.ErrorTypes.RNGP_EMPTY_CONTENT lxml.etree.ErrorTypes-class.html#RNGP_EMPTY_CONTENT -lxml.etree.ErrorTypes.XPTR_EVAL_FAILED lxml.etree.ErrorTypes-class.html#XPTR_EVAL_FAILED -lxml.etree.ErrorTypes.SCHEMAV_CVC_COMPLEX_TYPE_2_1 lxml.etree.ErrorTypes-class.html#SCHEMAV_CVC_COMPLEX_TYPE_2_1 -lxml.etree.ErrorTypes.XPATH_INVALID_CTXT_POSITION lxml.etree.ErrorTypes-class.html#XPATH_INVALID_CTXT_POSITION -lxml.etree.ErrorTypes.SCHEMAV_CVC_COMPLEX_TYPE_2_3 lxml.etree.ErrorTypes-class.html#SCHEMAV_CVC_COMPLEX_TYPE_2_3 -lxml.etree.ErrorTypes.SCHEMAV_CVC_COMPLEX_TYPE_2_4 lxml.etree.ErrorTypes-class.html#SCHEMAV_CVC_COMPLEX_TYPE_2_4 -lxml.etree.ErrorTypes.ERR_INTERNAL_ERROR lxml.etree.ErrorTypes-class.html#ERR_INTERNAL_ERROR -lxml.etree.ErrorTypes.ERR_DOCTYPE_NOT_FINISHED lxml.etree.ErrorTypes-class.html#ERR_DOCTYPE_NOT_FINISHED -lxml.etree.ErrorTypes.RNGP_PAT_NSNAME_EXCEPT_ANYNAME lxml.etree.ErrorTypes-class.html#RNGP_PAT_NSNAME_EXCEPT_ANYNAME -lxml.etree.ErrorTypes.RNGP_EMPTY_NOT_EMPTY lxml.etree.ErrorTypes-class.html#RNGP_EMPTY_NOT_EMPTY -lxml.etree.ErrorTypes.SCHEMAP_NO_XMLNS lxml.etree.ErrorTypes-class.html#SCHEMAP_NO_XMLNS -lxml.etree.ErrorTypes.RNGP_PAT_LIST_ATTR lxml.etree.ErrorTypes-class.html#RNGP_PAT_LIST_ATTR -lxml.etree.ErrorTypes.ERR_NO_DTD lxml.etree.ErrorTypes-class.html#ERR_NO_DTD -lxml.etree.ErrorTypes.ERR_ENTITY_LOOP lxml.etree.ErrorTypes-class.html#ERR_ENTITY_LOOP -lxml.etree.ErrorTypes.IO_EINTR lxml.etree.ErrorTypes-class.html#IO_EINTR -lxml.etree.ErrorTypes.ERR_MISSING_ENCODING lxml.etree.ErrorTypes-class.html#ERR_MISSING_ENCODING -lxml.etree.ErrorTypes.DTD_STANDALONE_WHITE_SPACE lxml.etree.ErrorTypes-class.html#DTD_STANDALONE_WHITE_SPACE -lxml.etree.ErrorTypes.DTD_ENTITY_TYPE lxml.etree.ErrorTypes-class.html#DTD_ENTITY_TYPE -lxml.etree.ErrorTypes.IO_ENOTEMPTY lxml.etree.ErrorTypes-class.html#IO_ENOTEMPTY -lxml.etree.ErrorTypes.RNGP_REF_NO_NAME lxml.etree.ErrorTypes-class.html#RNGP_REF_NO_NAME -lxml.etree.ErrorTypes.XINCLUDE_MULTIPLE_ROOT lxml.etree.ErrorTypes-class.html#XINCLUDE_MULTIPLE_ROOT -lxml.etree.ErrorTypes.SCHEMAV_NOTYPE lxml.etree.ErrorTypes-class.html#SCHEMAV_NOTYPE -lxml.etree.ErrorTypes.RNGP_ELEMENT_EMPTY lxml.etree.ErrorTypes-class.html#RNGP_ELEMENT_EMPTY -lxml.etree.ErrorTypes.IO_ECANCELED lxml.etree.ErrorTypes-class.html#IO_ECANCELED -lxml.etree.ErrorTypes.RNGP_EXCEPT_NO_CONTENT lxml.etree.ErrorTypes-class.html#RNGP_EXCEPT_NO_CONTENT -lxml.etree.ErrorTypes.WAR_NS_COLUMN lxml.etree.ErrorTypes-class.html#WAR_NS_COLUMN -lxml.etree.ErrorTypes.IO_ENOTSOCK lxml.etree.ErrorTypes-class.html#IO_ENOTSOCK -lxml.etree.ErrorTypes.SCHEMAP_COS_ST_DERIVED_OK_2_1 lxml.etree.ErrorTypes-class.html#SCHEMAP_COS_ST_DERIVED_OK_2_1 -lxml.etree.ErrorTypes.ERR_URI_FRAGMENT lxml.etree.ErrorTypes-class.html#ERR_URI_FRAGMENT -lxml.etree.ErrorTypes.SCHEMAV_NOTNILLABLE lxml.etree.ErrorTypes-class.html#SCHEMAV_NOTNILLABLE -lxml.etree.ErrorTypes.RNGP_PAT_LIST_TEXT lxml.etree.ErrorTypes-class.html#RNGP_PAT_LIST_TEXT -lxml.etree.ErrorTypes.SCHEMAV_UNDECLAREDELEM lxml.etree.ErrorTypes-class.html#SCHEMAV_UNDECLAREDELEM -lxml.etree.ErrorTypes.SCHEMAP_AG_PROPS_CORRECT lxml.etree.ErrorTypes-class.html#SCHEMAP_AG_PROPS_CORRECT -lxml.etree.ErrorTypes.IO_ENOMEM lxml.etree.ErrorTypes-class.html#IO_ENOMEM -lxml.etree.ErrorTypes.ERR_NOTATION_NOT_STARTED lxml.etree.ErrorTypes-class.html#ERR_NOTATION_NOT_STARTED -lxml.etree.ErrorTypes.SCHEMAP_UNKNOWN_ELEM_CHILD lxml.etree.ErrorTypes-class.html#SCHEMAP_UNKNOWN_ELEM_CHILD -lxml.etree.ErrorTypes.SCHEMAV_CVC_ELT_4_1 lxml.etree.ErrorTypes-class.html#SCHEMAV_CVC_ELT_4_1 -lxml.etree.ErrorTypes.SCHEMAV_CVC_ELT_4_3 lxml.etree.ErrorTypes-class.html#SCHEMAV_CVC_ELT_4_3 -lxml.etree.ErrorTypes.DTD_NO_DOC lxml.etree.ErrorTypes-class.html#DTD_NO_DOC -lxml.etree.ErrorTypes.RNGP_TYPE_NOT_FOUND lxml.etree.ErrorTypes-class.html#RNGP_TYPE_NOT_FOUND -lxml.etree.ErrorTypes.DTD_NO_ROOT lxml.etree.ErrorTypes-class.html#DTD_NO_ROOT -lxml.etree.ErrorTypes.SCHEMAP_UNKNOWN_ATTRGRP_CHILD lxml.etree.ErrorTypes-class.html#SCHEMAP_UNKNOWN_ATTRGRP_CHILD -lxml.etree.ErrorTypes.IO_EACCES lxml.etree.ErrorTypes-class.html#IO_EACCES -lxml.etree.ErrorTypes._names lxml.etree.ErrorTypes-class.html#_names -lxml.etree.ErrorTypes.SCHEMAP_SRC_UNION_MEMBERTYPES_OR_SIMPLETYPES lxml.etree.ErrorTypes-class.html#SCHEMAP_SRC_UNION_MEMBERTYPES_OR_SIMPLETYPES -lxml.etree.ErrorTypes.ERR_RESERVED_XML_NAME lxml.etree.ErrorTypes-class.html#ERR_RESERVED_XML_NAME -lxml.etree.ErrorTypes.RNGP_TEXT_EXPECTED lxml.etree.ErrorTypes-class.html#RNGP_TEXT_EXPECTED -lxml.etree.ErrorTypes.RNGP_CHOICE_EMPTY lxml.etree.ErrorTypes-class.html#RNGP_CHOICE_EMPTY -lxml.etree.ErrorTypes.ERR_TAG_NOT_FINISHED lxml.etree.ErrorTypes-class.html#ERR_TAG_NOT_FINISHED -lxml.etree.ErrorTypes.CHECK_FOUND_TEXT lxml.etree.ErrorTypes-class.html#CHECK_FOUND_TEXT -lxml.etree.ErrorTypes.RNGP_PARENTREF_NO_NAME lxml.etree.ErrorTypes-class.html#RNGP_PARENTREF_NO_NAME -lxml.etree.ErrorTypes.RNGP_PAT_ONEMORE_GROUP_ATTR lxml.etree.ErrorTypes-class.html#RNGP_PAT_ONEMORE_GROUP_ATTR -lxml.etree.ErrorTypes.SCHEMAV_CVC_ENUMERATION_VALID lxml.etree.ErrorTypes-class.html#SCHEMAV_CVC_ENUMERATION_VALID -lxml.etree.ErrorTypes.SCHEMAP_UNKNOWN_RESTRICTION_CHILD lxml.etree.ErrorTypes-class.html#SCHEMAP_UNKNOWN_RESTRICTION_CHILD -lxml.etree.ErrorTypes.DTD_ELEM_REDEFINED lxml.etree.ErrorTypes-class.html#DTD_ELEM_REDEFINED -lxml.etree.ErrorTypes.RNGP_MISSING_HREF lxml.etree.ErrorTypes-class.html#RNGP_MISSING_HREF -lxml.etree.ErrorTypes.IO_ERANGE lxml.etree.ErrorTypes-class.html#IO_ERANGE -lxml.etree.ErrorTypes.HTTP_UNKNOWN_HOST lxml.etree.ErrorTypes-class.html#HTTP_UNKNOWN_HOST -lxml.etree.ErrorTypes.RNGP_PAT_START_ATTR lxml.etree.ErrorTypes-class.html#RNGP_PAT_START_ATTR -lxml.etree.ErrorTypes.SCHEMAP_NOTATION_NO_NAME lxml.etree.ErrorTypes-class.html#SCHEMAP_NOTATION_NO_NAME -lxml.etree.ErrorTypes.NS_ERR_COLON lxml.etree.ErrorTypes-class.html#NS_ERR_COLON -lxml.etree.ErrorTypes.ERR_PEREF_IN_INT_SUBSET lxml.etree.ErrorTypes-class.html#ERR_PEREF_IN_INT_SUBSET -lxml.etree.ErrorTypes.RNGP_VALUE_EMPTY lxml.etree.ErrorTypes-class.html#RNGP_VALUE_EMPTY -lxml.etree.ErrorTypes.WAR_UNKNOWN_VERSION lxml.etree.ErrorTypes-class.html#WAR_UNKNOWN_VERSION -lxml.etree.ErrorTypes.SCHEMAV_ISABSTRACT lxml.etree.ErrorTypes-class.html#SCHEMAV_ISABSTRACT -lxml.etree.ErrorTypes.IO_EMSGSIZE lxml.etree.ErrorTypes-class.html#IO_EMSGSIZE -lxml.etree.ErrorTypes.CATALOG_ENTRY_BROKEN lxml.etree.ErrorTypes-class.html#CATALOG_ENTRY_BROKEN -lxml.etree.ErrorTypes.SCHEMAP_SRC_IMPORT_1_2 lxml.etree.ErrorTypes-class.html#SCHEMAP_SRC_IMPORT_1_2 -lxml.etree.ErrorTypes.RNGP_CREATE_FAILURE lxml.etree.ErrorTypes-class.html#RNGP_CREATE_FAILURE -lxml.etree.ErrorTypes.ERR_NAME_REQUIRED lxml.etree.ErrorTypes-class.html#ERR_NAME_REQUIRED -lxml.etree.ErrorTypes.SCHEMAP_S4S_ATTR_NOT_ALLOWED lxml.etree.ErrorTypes-class.html#SCHEMAP_S4S_ATTR_NOT_ALLOWED -lxml.etree.ErrorTypes.ERR_ATTLIST_NOT_FINISHED lxml.etree.ErrorTypes-class.html#ERR_ATTLIST_NOT_FINISHED -lxml.etree.ErrorTypes._getName lxml.etree.ErrorTypes-class.html#_getName -lxml.etree.ErrorTypes.XPTR_EXTRA_OBJECTS lxml.etree.ErrorTypes-class.html#XPTR_EXTRA_OBJECTS -lxml.etree.ErrorTypes.IO_EISCONN lxml.etree.ErrorTypes-class.html#IO_EISCONN -lxml.etree.ErrorTypes.SCHEMAP_UNKNOWN_CHOICE_CHILD lxml.etree.ErrorTypes-class.html#SCHEMAP_UNKNOWN_CHOICE_CHILD -lxml.etree.ErrorTypes.ERR_PUBID_REQUIRED lxml.etree.ErrorTypes-class.html#ERR_PUBID_REQUIRED -lxml.etree.ErrorTypes.SCHEMAP_NOTHING_TO_PARSE lxml.etree.ErrorTypes-class.html#SCHEMAP_NOTHING_TO_PARSE -lxml.etree.ErrorTypes.RNGP_NOTALLOWED_NOT_EMPTY lxml.etree.ErrorTypes-class.html#RNGP_NOTALLOWED_NOT_EMPTY -lxml.etree.ErrorTypes.RNGP_REF_NOT_EMPTY lxml.etree.ErrorTypes-class.html#RNGP_REF_NOT_EMPTY -lxml.etree.ErrorTypes.SCHEMAP_DEF_AND_PREFIX lxml.etree.ErrorTypes-class.html#SCHEMAP_DEF_AND_PREFIX -lxml.etree.ErrorTypes.ERR_NOTATION_NOT_FINISHED lxml.etree.ErrorTypes-class.html#ERR_NOTATION_NOT_FINISHED -lxml.etree.ErrorTypes.RNGP_ATTRIBUTE_CHILDREN lxml.etree.ErrorTypes-class.html#RNGP_ATTRIBUTE_CHILDREN -lxml.etree.ErrorTypes.RNGP_PAT_START_DATA lxml.etree.ErrorTypes-class.html#RNGP_PAT_START_DATA -lxml.etree.ErrorTypes.RNGP_ELEMENT_NAME lxml.etree.ErrorTypes-class.html#RNGP_ELEMENT_NAME -lxml.etree.ErrorTypes.XPATH_UNKNOWN_FUNC_ERROR lxml.etree.ErrorTypes-class.html#XPATH_UNKNOWN_FUNC_ERROR -lxml.etree.ErrorTypes.RNGP_PAT_DATA_EXCEPT_INTERLEAVE lxml.etree.ErrorTypes-class.html#RNGP_PAT_DATA_EXCEPT_INTERLEAVE -lxml.etree.ErrorTypes.ERR_VERSION_MISSING lxml.etree.ErrorTypes-class.html#ERR_VERSION_MISSING -lxml.etree.ErrorTypes.RNGP_DEFINE_MISSING lxml.etree.ErrorTypes-class.html#RNGP_DEFINE_MISSING -lxml.etree.ErrorTypes.CATALOG_NOT_CATALOG lxml.etree.ErrorTypes-class.html#CATALOG_NOT_CATALOG -lxml.etree.ErrorTypes.XINCLUDE_TEXT_DOCUMENT lxml.etree.ErrorTypes-class.html#XINCLUDE_TEXT_DOCUMENT -lxml.etree.ErrorTypes.DTD_NO_ELEM_NAME lxml.etree.ErrorTypes-class.html#DTD_NO_ELEM_NAME -lxml.etree.ErrorTypes.ERR_UNSUPPORTED_ENCODING lxml.etree.ErrorTypes-class.html#ERR_UNSUPPORTED_ENCODING -lxml.etree.ErrorTypes.ERR_ENTITY_NOT_STARTED lxml.etree.ErrorTypes-class.html#ERR_ENTITY_NOT_STARTED -lxml.etree.ErrorTypes.SCHEMAV_ATTRUNKNOWN lxml.etree.ErrorTypes-class.html#SCHEMAV_ATTRUNKNOWN -lxml.etree.ErrorTypes.DTD_ELEM_DEFAULT_NAMESPACE lxml.etree.ErrorTypes-class.html#DTD_ELEM_DEFAULT_NAMESPACE -lxml.etree.ErrorTypes.IO_EDOM lxml.etree.ErrorTypes-class.html#IO_EDOM -lxml.etree.ErrorTypes.ERR_NO_MEMORY lxml.etree.ErrorTypes-class.html#ERR_NO_MEMORY -lxml.etree.ErrorTypes.RNGP_GROUP_ATTR_CONFLICT lxml.etree.ErrorTypes-class.html#RNGP_GROUP_ATTR_CONFLICT -lxml.etree.ErrorTypes.FTP_EPSV_ANSWER lxml.etree.ErrorTypes-class.html#FTP_EPSV_ANSWER -lxml.etree.ErrorTypes.IO_ENOTTY lxml.etree.ErrorTypes-class.html#IO_ENOTTY -lxml.etree.ErrorTypes.SCHEMAP_COS_ST_RESTRICTS_2_3_1_1 lxml.etree.ErrorTypes-class.html#SCHEMAP_COS_ST_RESTRICTS_2_3_1_1 -lxml.etree.ErrorTypes.SCHEMAP_COS_ST_RESTRICTS_2_3_1_2 lxml.etree.ErrorTypes-class.html#SCHEMAP_COS_ST_RESTRICTS_2_3_1_2 -lxml.etree.ErrorTypes.IO_EFAULT lxml.etree.ErrorTypes-class.html#IO_EFAULT -lxml.etree.ErrorTypes.SCHEMAP_COS_CT_EXTENDS_1_1 lxml.etree.ErrorTypes-class.html#SCHEMAP_COS_CT_EXTENDS_1_1 -lxml.etree.ErrorTypes.SCHEMAV_ELEMCONT lxml.etree.ErrorTypes-class.html#SCHEMAV_ELEMCONT -lxml.etree.ErrorTypes.IO_ECHILD lxml.etree.ErrorTypes-class.html#IO_ECHILD -lxml.etree.ErrorTypes.ERR_VALUE_REQUIRED lxml.etree.ErrorTypes-class.html#ERR_VALUE_REQUIRED -lxml.etree.ErrorTypes.SCHEMAP_COS_VALID_DEFAULT_2_2_1 lxml.etree.ErrorTypes-class.html#SCHEMAP_COS_VALID_DEFAULT_2_2_1 -lxml.etree.ErrorTypes.ERR_PCDATA_REQUIRED lxml.etree.ErrorTypes-class.html#ERR_PCDATA_REQUIRED -lxml.etree.ErrorTypes.RNGP_PAT_START_TEXT lxml.etree.ErrorTypes-class.html#RNGP_PAT_START_TEXT -lxml.etree.ErrorTypes.SCHEMAP_COS_ST_RESTRICTS_1_3_1 lxml.etree.ErrorTypes-class.html#SCHEMAP_COS_ST_RESTRICTS_1_3_1 -lxml.etree.ErrorTypes.SCHEMAP_COS_ST_RESTRICTS_1_3_2 lxml.etree.ErrorTypes-class.html#SCHEMAP_COS_ST_RESTRICTS_1_3_2 -lxml.etree.ErrorTypes.RNGP_INTERLEAVE_CREATE_FAILED lxml.etree.ErrorTypes-class.html#RNGP_INTERLEAVE_CREATE_FAILED -lxml.etree.ErrorTypes.CHECK_WRONG_NAME lxml.etree.ErrorTypes-class.html#CHECK_WRONG_NAME -lxml.etree.ErrorTypes.XPATH_INVALID_CHAR_ERROR lxml.etree.ErrorTypes-class.html#XPATH_INVALID_CHAR_ERROR -lxml.etree.ErrorTypes.DTD_UNKNOWN_ID lxml.etree.ErrorTypes-class.html#DTD_UNKNOWN_ID -lxml.etree.ErrorTypes.ERR_INVALID_HEX_CHARREF lxml.etree.ErrorTypes-class.html#ERR_INVALID_HEX_CHARREF -lxml.etree.ErrorTypes.SCHEMAV_CVC_MAXLENGTH_VALID lxml.etree.ErrorTypes-class.html#SCHEMAV_CVC_MAXLENGTH_VALID -lxml.etree.ErrorTypes.ERR_ENTITY_CHAR_ERROR lxml.etree.ErrorTypes-class.html#ERR_ENTITY_CHAR_ERROR -lxml.etree.ErrorTypes.DTD_ID_SUBSET lxml.etree.ErrorTypes-class.html#DTD_ID_SUBSET -lxml.etree.ErrorTypes.IO_LOAD_ERROR lxml.etree.ErrorTypes-class.html#IO_LOAD_ERROR -lxml.etree.ErrorTypes.ERR_INVALID_ENCODING lxml.etree.ErrorTypes-class.html#ERR_INVALID_ENCODING -lxml.etree.ErrorTypes.SCHEMAP_COS_ALL_LIMITED lxml.etree.ErrorTypes-class.html#SCHEMAP_COS_ALL_LIMITED -lxml.etree.ErrorTypes.IO_EIO lxml.etree.ErrorTypes-class.html#IO_EIO -lxml.etree.ErrorTypes.RNGP_DEFINE_NAME_MISSING lxml.etree.ErrorTypes-class.html#RNGP_DEFINE_NAME_MISSING -lxml.etree.ErrorTypes.IO_ENOTDIR lxml.etree.ErrorTypes-class.html#IO_ENOTDIR -lxml.etree.ErrorTypes.XINCLUDE_TEXT_FRAGMENT lxml.etree.ErrorTypes-class.html#XINCLUDE_TEXT_FRAGMENT -lxml.etree.ErrorTypes.SCHEMAP_MISSING_SIMPLETYPE_CHILD lxml.etree.ErrorTypes-class.html#SCHEMAP_MISSING_SIMPLETYPE_CHILD -lxml.etree.ErrorTypes.DTD_NOT_PCDATA lxml.etree.ErrorTypes-class.html#DTD_NOT_PCDATA -lxml.etree.ErrorTypes.ERR_INVALID_URI lxml.etree.ErrorTypes-class.html#ERR_INVALID_URI -lxml.etree.ErrorTypes.SCHEMAV_VALUE lxml.etree.ErrorTypes-class.html#SCHEMAV_VALUE -lxml.etree.ErrorTypes.XPATH_INVALID_PREDICATE_ERROR lxml.etree.ErrorTypes-class.html#XPATH_INVALID_PREDICATE_ERROR -lxml.etree.ErrorTypes.IO_ENOEXEC lxml.etree.ErrorTypes-class.html#IO_ENOEXEC -lxml.etree.ErrorTypes.RNGP_GRAMMAR_NO_START lxml.etree.ErrorTypes-class.html#RNGP_GRAMMAR_NO_START -lxml.etree.ErrorTypes.ERR_XMLDECL_NOT_FINISHED lxml.etree.ErrorTypes-class.html#ERR_XMLDECL_NOT_FINISHED -lxml.etree.ErrorTypes.RNGP_REF_NO_DEF lxml.etree.ErrorTypes-class.html#RNGP_REF_NO_DEF -lxml.etree.ErrorTypes.RNGP_NEED_COMBINE lxml.etree.ErrorTypes-class.html#RNGP_NEED_COMBINE -lxml.etree.ErrorTypes.ERR_STANDALONE_VALUE lxml.etree.ErrorTypes-class.html#ERR_STANDALONE_VALUE -lxml.etree.ErrorTypes.SCHEMAP_INVALID_ATTR_NAME lxml.etree.ErrorTypes-class.html#SCHEMAP_INVALID_ATTR_NAME -lxml.etree.ErrorTypes.SCHEMAP_CT_PROPS_CORRECT_4 lxml.etree.ErrorTypes-class.html#SCHEMAP_CT_PROPS_CORRECT_4 -lxml.etree.ErrorTypes.IO_ENOSYS lxml.etree.ErrorTypes-class.html#IO_ENOSYS -lxml.etree.ErrorTypes.SCHEMAP_ELEMFORMDEFAULT_VALUE lxml.etree.ErrorTypes-class.html#SCHEMAP_ELEMFORMDEFAULT_VALUE -lxml.etree.ErrorTypes.ERR_STRING_NOT_CLOSED lxml.etree.ErrorTypes-class.html#ERR_STRING_NOT_CLOSED -lxml.etree.ErrorTypes.SCHEMAP_CT_PROPS_CORRECT_2 lxml.etree.ErrorTypes-class.html#SCHEMAP_CT_PROPS_CORRECT_2 -lxml.etree.ErrorTypes.SCHEMAP_CT_PROPS_CORRECT_3 lxml.etree.ErrorTypes-class.html#SCHEMAP_CT_PROPS_CORRECT_3 -lxml.etree.ErrorTypes.SCHEMAV_CVC_AU lxml.etree.ErrorTypes-class.html#SCHEMAV_CVC_AU -lxml.etree.ErrorTypes.RNGP_FORBIDDEN_ATTRIBUTE lxml.etree.ErrorTypes-class.html#RNGP_FORBIDDEN_ATTRIBUTE -lxml.etree.ErrorTypes.ERR_PI_NOT_FINISHED lxml.etree.ErrorTypes-class.html#ERR_PI_NOT_FINISHED -lxml.etree.ErrorTypes.XPATH_EXPR_ERROR lxml.etree.ErrorTypes-class.html#XPATH_EXPR_ERROR -lxml.etree.ErrorTypes.RNGP_NSNAME_NO_NS lxml.etree.ErrorTypes-class.html#RNGP_NSNAME_NO_NS -lxml.etree.ErrorTypes.NS_ERR_EMPTY lxml.etree.ErrorTypes-class.html#NS_ERR_EMPTY -lxml.etree.ErrorTypes.ERR_HYPHEN_IN_COMMENT lxml.etree.ErrorTypes-class.html#ERR_HYPHEN_IN_COMMENT -lxml.etree.ErrorTypes.XPATH_NUMBER_ERROR lxml.etree.ErrorTypes-class.html#XPATH_NUMBER_ERROR -lxml.etree.ErrorTypes.RNGP_PARENTREF_NOT_EMPTY lxml.etree.ErrorTypes-class.html#RNGP_PARENTREF_NOT_EMPTY -lxml.etree.ErrorTypes.ERR_PI_NOT_STARTED lxml.etree.ErrorTypes-class.html#ERR_PI_NOT_STARTED -lxml.etree.ErrorTypes.RNGP_TYPE_MISSING lxml.etree.ErrorTypes-class.html#RNGP_TYPE_MISSING -lxml.etree.ErrorTypes.IO_EPERM lxml.etree.ErrorTypes-class.html#IO_EPERM -lxml.etree.ErrorTypes.ERR_COMMENT_NOT_FINISHED lxml.etree.ErrorTypes-class.html#ERR_COMMENT_NOT_FINISHED -lxml.etree.ErrorTypes.DTD_CONTENT_ERROR lxml.etree.ErrorTypes-class.html#DTD_CONTENT_ERROR -lxml.etree.ErrorTypes.DTD_NOTATION_VALUE lxml.etree.ErrorTypes-class.html#DTD_NOTATION_VALUE -lxml.etree.ErrorTypes.RNGP_URI_NOT_ABSOLUTE lxml.etree.ErrorTypes-class.html#RNGP_URI_NOT_ABSOLUTE -lxml.etree.ErrorTypes.SCHEMAP_SRC_IMPORT_3_1 lxml.etree.ErrorTypes-class.html#SCHEMAP_SRC_IMPORT_3_1 -lxml.etree.ErrorTypes.XPATH_VARIABLE_REF_ERROR lxml.etree.ErrorTypes-class.html#XPATH_VARIABLE_REF_ERROR -lxml.etree.ErrorTypes.SCHEMAP_SRC_IMPORT_3_2 lxml.etree.ErrorTypes-class.html#SCHEMAP_SRC_IMPORT_3_2 -lxml.etree.ErrorTypes.RNGP_INTERLEAVE_EMPTY lxml.etree.ErrorTypes-class.html#RNGP_INTERLEAVE_EMPTY -lxml.etree.ErrorTypes.C14N_UNKNOW_NODE lxml.etree.ErrorTypes-class.html#C14N_UNKNOW_NODE -lxml.etree.ErrorTypes.SCHEMAP_INVALID_MAXOCCURS lxml.etree.ErrorTypes-class.html#SCHEMAP_INVALID_MAXOCCURS -lxml.etree.ErrorTypes.SCHEMAV_NOTTOPLEVEL lxml.etree.ErrorTypes-class.html#SCHEMAV_NOTTOPLEVEL -lxml.etree.ErrorTypes.SCHEMAP_WILDCARD_INVALID_NS_MEMBER lxml.etree.ErrorTypes-class.html#SCHEMAP_WILDCARD_INVALID_NS_MEMBER -lxml.etree.ErrorTypes.SCHEMAP_UNKNOWN_LIST_CHILD lxml.etree.ErrorTypes-class.html#SCHEMAP_UNKNOWN_LIST_CHILD -lxml.etree.ErrorTypes.WAR_LANG_VALUE lxml.etree.ErrorTypes-class.html#WAR_LANG_VALUE -lxml.etree.ErrorTypes.SCHEMAP_DERIVATION_OK_RESTRICTION_4_1 lxml.etree.ErrorTypes-class.html#SCHEMAP_DERIVATION_OK_RESTRICTION_4_1 -lxml.etree.ErrorTypes.SCHEMAP_DERIVATION_OK_RESTRICTION_4_2 lxml.etree.ErrorTypes-class.html#SCHEMAP_DERIVATION_OK_RESTRICTION_4_2 -lxml.etree.ErrorTypes.SCHEMAP_DERIVATION_OK_RESTRICTION_4_3 lxml.etree.ErrorTypes-class.html#SCHEMAP_DERIVATION_OK_RESTRICTION_4_3 -lxml.etree.ErrorTypes.SCHEMAP_UNKNOWN_PREFIX lxml.etree.ErrorTypes-class.html#SCHEMAP_UNKNOWN_PREFIX -lxml.etree.ErrorTypes.ERR_STRING_NOT_STARTED lxml.etree.ErrorTypes-class.html#ERR_STRING_NOT_STARTED -lxml.etree.ErrorTypes.SCHEMAP_RECURSIVE lxml.etree.ErrorTypes-class.html#SCHEMAP_RECURSIVE -lxml.etree.ErrorTypes.CHECK_ENTITY_TYPE lxml.etree.ErrorTypes-class.html#CHECK_ENTITY_TYPE -lxml.etree.ErrorTypes.RNGP_EMPTY_CONSTRUCT lxml.etree.ErrorTypes-class.html#RNGP_EMPTY_CONSTRUCT -lxml.etree.ErrorTypes.RNGP_CHOICE_CONTENT lxml.etree.ErrorTypes-class.html#RNGP_CHOICE_CONTENT -lxml.etree.ErrorTypes.XINCLUDE_RECURSION lxml.etree.ErrorTypes-class.html#XINCLUDE_RECURSION -lxml.etree.ErrorTypes.SCHEMAP_UNKNOWN_INCLUDE_CHILD lxml.etree.ErrorTypes-class.html#SCHEMAP_UNKNOWN_INCLUDE_CHILD -lxml.etree.ErrorTypes.ERR_ENTITY_NOT_FINISHED lxml.etree.ErrorTypes-class.html#ERR_ENTITY_NOT_FINISHED -lxml.etree.ErrorTypes.IO_ENAMETOOLONG lxml.etree.ErrorTypes-class.html#IO_ENAMETOOLONG -lxml.etree.ErrorTypes.DTD_EMPTY_NOTATION lxml.etree.ErrorTypes-class.html#DTD_EMPTY_NOTATION -lxml.etree.ErrorTypes.ERR_EXT_SUBSET_NOT_FINISHED lxml.etree.ErrorTypes-class.html#ERR_EXT_SUBSET_NOT_FINISHED -lxml.etree.ErrorTypes.SCHEMAP_REGEXP_INVALID lxml.etree.ErrorTypes-class.html#SCHEMAP_REGEXP_INVALID -lxml.etree.ErrorTypes.SCHEMAV_CVC_MINEXCLUSIVE_VALID lxml.etree.ErrorTypes-class.html#SCHEMAV_CVC_MINEXCLUSIVE_VALID -lxml.etree.ErrorTypes.RNGP_PREFIX_UNDEFINED lxml.etree.ErrorTypes-class.html#RNGP_PREFIX_UNDEFINED -lxml.etree.ErrorTypes.DTD_CONTENT_MODEL lxml.etree.ErrorTypes-class.html#DTD_CONTENT_MODEL -lxml.etree.ErrorTypes.ERR_ENTITY_PROCESSING lxml.etree.ErrorTypes-class.html#ERR_ENTITY_PROCESSING -lxml.etree.ErrorTypes.RNGP_PAT_DATA_EXCEPT_TEXT lxml.etree.ErrorTypes-class.html#RNGP_PAT_DATA_EXCEPT_TEXT -lxml.etree.ErrorTypes.SCHEMAP_UNKNOWN_PROCESSCONTENT_CHILD lxml.etree.ErrorTypes-class.html#SCHEMAP_UNKNOWN_PROCESSCONTENT_CHILD -lxml.etree.ErrorTypes.SCHEMAP_SRC_ATTRIBUTE_4 lxml.etree.ErrorTypes-class.html#SCHEMAP_SRC_ATTRIBUTE_4 -lxml.etree.ErrorTypes.SCHEMAP_SRC_ATTRIBUTE_2 lxml.etree.ErrorTypes-class.html#SCHEMAP_SRC_ATTRIBUTE_2 -lxml.etree.ErrorTypes.SCHEMAP_SRC_ATTRIBUTE_1 lxml.etree.ErrorTypes-class.html#SCHEMAP_SRC_ATTRIBUTE_1 -lxml.etree.ErrorTypes.SCHEMAP_INCLUDE_SCHEMA_NO_URI lxml.etree.ErrorTypes-class.html#SCHEMAP_INCLUDE_SCHEMA_NO_URI -lxml.etree.ErrorTypes.CHECK_X lxml.etree.ErrorTypes-class.html#CHECK_X -lxml.etree.ErrorTypes.SCHEMAP_COS_CT_EXTENDS_1_2 lxml.etree.ErrorTypes-class.html#SCHEMAP_COS_CT_EXTENDS_1_2 -lxml.etree.ErrorTypes.SCHEMAP_COS_CT_EXTENDS_1_3 lxml.etree.ErrorTypes-class.html#SCHEMAP_COS_CT_EXTENDS_1_3 -lxml.etree.ErrorTypes.SCHEMAV_CVC_ELT_3_1 lxml.etree.ErrorTypes-class.html#SCHEMAV_CVC_ELT_3_1 -lxml.etree.ErrorTypes.DTD_CONTENT_NOT_DETERMINIST lxml.etree.ErrorTypes-class.html#DTD_CONTENT_NOT_DETERMINIST -lxml.etree.ErrorTypes.SCHEMAV_NOROLLBACK lxml.etree.ErrorTypes-class.html#SCHEMAV_NOROLLBACK -lxml.etree.ErrorTypes.ERR_DOCUMENT_END lxml.etree.ErrorTypes-class.html#ERR_DOCUMENT_END -lxml.etree.ErrorTypes.ERR_ENTITYREF_IN_EPILOG lxml.etree.ErrorTypes-class.html#ERR_ENTITYREF_IN_EPILOG -lxml.etree.ErrorTypes.XINCLUDE_INVALID_CHAR lxml.etree.ErrorTypes-class.html#XINCLUDE_INVALID_CHAR -lxml.etree.ErrorTypes.SCHEMAP_UNKNOWN_FACET_CHILD lxml.etree.ErrorTypes-class.html#SCHEMAP_UNKNOWN_FACET_CHILD -lxml.etree.ErrorTypes.RNGP_DEFINE_EMPTY lxml.etree.ErrorTypes-class.html#RNGP_DEFINE_EMPTY -lxml.etree.ErrorTypes.RNGP_PAT_ATTR_ELEM lxml.etree.ErrorTypes-class.html#RNGP_PAT_ATTR_ELEM -lxml.etree.ErrorTypes.SCHEMAP_INVALID_ATTR_INLINE_COMBINATION lxml.etree.ErrorTypes-class.html#SCHEMAP_INVALID_ATTR_INLINE_COMBINATION -lxml.etree.ErrorTypes.RNGP_PAT_START_INTERLEAVE lxml.etree.ErrorTypes-class.html#RNGP_PAT_START_INTERLEAVE -lxml.etree.ErrorTypes.I18N_EXCESS_HANDLER lxml.etree.ErrorTypes-class.html#I18N_EXCESS_HANDLER -lxml.etree.ErrorTypes.IO_ENETUNREACH lxml.etree.ErrorTypes-class.html#IO_ENETUNREACH -lxml.etree.ErrorTypes.RNGP_INVALID_VALUE lxml.etree.ErrorTypes-class.html#RNGP_INVALID_VALUE -lxml.etree.ErrorTypes.IO_NO_INPUT lxml.etree.ErrorTypes-class.html#IO_NO_INPUT -lxml.etree.ErrorTypes.RNGP_PAT_START_LIST lxml.etree.ErrorTypes-class.html#RNGP_PAT_START_LIST -lxml.etree.ErrorTypes.SCHEMAP_P_PROPS_CORRECT_1 lxml.etree.ErrorTypes-class.html#SCHEMAP_P_PROPS_CORRECT_1 -lxml.etree.ErrorTypes.ERR_ATTRIBUTE_NOT_STARTED lxml.etree.ErrorTypes-class.html#ERR_ATTRIBUTE_NOT_STARTED -lxml.etree.ErrorTypes.CHECK_NOT_ATTR lxml.etree.ErrorTypes-class.html#CHECK_NOT_ATTR -lxml.etree.ErrorTypes.CHECK_NOT_ENTITY_DECL lxml.etree.ErrorTypes-class.html#CHECK_NOT_ENTITY_DECL -lxml.etree.ErrorTypes.ERR_ENTITYREF_IN_PROLOG lxml.etree.ErrorTypes-class.html#ERR_ENTITYREF_IN_PROLOG -lxml.etree.ErrorTypes.ERR_PEREF_NO_NAME lxml.etree.ErrorTypes-class.html#ERR_PEREF_NO_NAME -lxml.etree.ErrorTypes.RNGP_FOREIGN_ELEMENT lxml.etree.ErrorTypes-class.html#RNGP_FOREIGN_ELEMENT -lxml.etree.ErrorTypes.SCHEMAP_DERIVATION_OK_RESTRICTION_2_2 lxml.etree.ErrorTypes-class.html#SCHEMAP_DERIVATION_OK_RESTRICTION_2_2 -lxml.etree.ErrorTypes.CHECK_NOT_ATTR_DECL lxml.etree.ErrorTypes-class.html#CHECK_NOT_ATTR_DECL -lxml.etree.ErrorTypes.SCHEMAP_UNKNOWN_FACET_TYPE lxml.etree.ErrorTypes-class.html#SCHEMAP_UNKNOWN_FACET_TYPE -lxml.etree.ErrorTypes.SCHEMAP_SRC_IMPORT_2 lxml.etree.ErrorTypes-class.html#SCHEMAP_SRC_IMPORT_2 -lxml.etree.ErrorTypes.SCHEMAP_COS_ST_RESTRICTS_2_3_2_2 lxml.etree.ErrorTypes-class.html#SCHEMAP_COS_ST_RESTRICTS_2_3_2_2 -lxml.etree.ErrorTypes.SCHEMAP_COS_ST_RESTRICTS_2_3_2_3 lxml.etree.ErrorTypes-class.html#SCHEMAP_COS_ST_RESTRICTS_2_3_2_3 -lxml.etree.ErrorTypes.XINCLUDE_HREF_URI lxml.etree.ErrorTypes-class.html#XINCLUDE_HREF_URI -lxml.etree.ErrorTypes.SCHEMAP_COS_ST_RESTRICTS_2_3_2_1 lxml.etree.ErrorTypes-class.html#SCHEMAP_COS_ST_RESTRICTS_2_3_2_1 -lxml.etree.ErrorTypes.ERR_SEPARATOR_REQUIRED lxml.etree.ErrorTypes-class.html#ERR_SEPARATOR_REQUIRED -lxml.etree.ErrorTypes.SCHEMAP_COS_ST_RESTRICTS_2_3_2_4 lxml.etree.ErrorTypes-class.html#SCHEMAP_COS_ST_RESTRICTS_2_3_2_4 -lxml.etree.ErrorTypes.FTP_PASV_ANSWER lxml.etree.ErrorTypes-class.html#FTP_PASV_ANSWER -lxml.etree.ErrorTypes.SAVE_NO_DOCTYPE lxml.etree.ErrorTypes-class.html#SAVE_NO_DOCTYPE -lxml.etree.ErrorTypes.DTD_NO_PREFIX lxml.etree.ErrorTypes-class.html#DTD_NO_PREFIX -lxml.etree.ErrorTypes.ERR_MIXED_NOT_STARTED lxml.etree.ErrorTypes-class.html#ERR_MIXED_NOT_STARTED -lxml.etree.ErrorTypes.ERR_ENTITYREF_SEMICOL_MISSING lxml.etree.ErrorTypes-class.html#ERR_ENTITYREF_SEMICOL_MISSING -lxml.etree.ErrorTypes.ERR_CONDSEC_NOT_FINISHED lxml.etree.ErrorTypes-class.html#ERR_CONDSEC_NOT_FINISHED -lxml.etree.ErrorTypes.RNGP_EMPTY lxml.etree.ErrorTypes-class.html#RNGP_EMPTY -lxml.etree.ErrorTypes.RNGP_PARENTREF_NO_PARENT lxml.etree.ErrorTypes-class.html#RNGP_PARENTREF_NO_PARENT -lxml.etree.ErrorTypes.RNGP_PAT_DATA_EXCEPT_ELEM lxml.etree.ErrorTypes-class.html#RNGP_PAT_DATA_EXCEPT_ELEM -lxml.etree.ErrorTypes.WAR_SPACE_VALUE lxml.etree.ErrorTypes-class.html#WAR_SPACE_VALUE -lxml.etree.ErrorTypes.ERR_MIXED_NOT_FINISHED lxml.etree.ErrorTypes-class.html#ERR_MIXED_NOT_FINISHED -lxml.etree.ErrorTypes.SCHEMAP_WARN_ATTR_POINTLESS_PROH lxml.etree.ErrorTypes-class.html#SCHEMAP_WARN_ATTR_POINTLESS_PROH -lxml.etree.ErrorTypes.RNGP_START_CONTENT lxml.etree.ErrorTypes-class.html#RNGP_START_CONTENT -lxml.etree.ErrorTypes.RNGP_DEF_CHOICE_AND_INTERLEAVE lxml.etree.ErrorTypes-class.html#RNGP_DEF_CHOICE_AND_INTERLEAVE -lxml.etree.ErrorTypes.SCHEMAV_CVC_MAXINCLUSIVE_VALID lxml.etree.ErrorTypes-class.html#SCHEMAV_CVC_MAXINCLUSIVE_VALID -lxml.etree.ErrorTypes.CATALOG_MISSING_ATTR lxml.etree.ErrorTypes-class.html#CATALOG_MISSING_ATTR -lxml.etree.ErrorTypes.SCHEMAV_CONSTRUCT lxml.etree.ErrorTypes-class.html#SCHEMAV_CONSTRUCT -lxml.etree.ErrorTypes.ERR_ATTRIBUTE_REDEFINED lxml.etree.ErrorTypes-class.html#ERR_ATTRIBUTE_REDEFINED -lxml.etree.ErrorTypes.SCHEMAP_UNKNOWN_REF lxml.etree.ErrorTypes-class.html#SCHEMAP_UNKNOWN_REF -lxml.etree.ErrorTypes.SCHEMAV_CVC_MAXEXCLUSIVE_VALID lxml.etree.ErrorTypes-class.html#SCHEMAV_CVC_MAXEXCLUSIVE_VALID -lxml.etree.ErrorTypes.RNGP_ANYNAME_ATTR_ANCESTOR lxml.etree.ErrorTypes-class.html#RNGP_ANYNAME_ATTR_ANCESTOR -lxml.etree.ErrorTypes.DTD_DIFFERENT_PREFIX lxml.etree.ErrorTypes-class.html#DTD_DIFFERENT_PREFIX -lxml.etree.ErrorTypes.RNGP_EXTERNAL_REF_FAILURE lxml.etree.ErrorTypes-class.html#RNGP_EXTERNAL_REF_FAILURE -lxml.etree.ErrorTypes.CATALOG_PREFER_VALUE lxml.etree.ErrorTypes-class.html#CATALOG_PREFER_VALUE -lxml.etree.ErrorTypes.XPTR_RESOURCE_ERROR lxml.etree.ErrorTypes-class.html#XPTR_RESOURCE_ERROR -lxml.etree.ErrorTypes.DTD_ATTRIBUTE_REDEFINED lxml.etree.ErrorTypes-class.html#DTD_ATTRIBUTE_REDEFINED -lxml.etree.ErrorTypes.XPATH_MEMORY_ERROR lxml.etree.ErrorTypes-class.html#XPATH_MEMORY_ERROR -lxml.etree.ErrorTypes.IO_EBADMSG lxml.etree.ErrorTypes-class.html#IO_EBADMSG -lxml.etree.ErrorTypes.IO_ENCODER lxml.etree.ErrorTypes-class.html#IO_ENCODER -lxml.etree.ErrorTypes.RNGP_ELEM_TEXT_CONFLICT lxml.etree.ErrorTypes-class.html#RNGP_ELEM_TEXT_CONFLICT -lxml.etree.ErrorTypes.ERR_INVALID_CHARREF lxml.etree.ErrorTypes-class.html#ERR_INVALID_CHARREF -lxml.etree.ErrorTypes.SCHEMAP_ST_PROPS_CORRECT_1 lxml.etree.ErrorTypes-class.html#SCHEMAP_ST_PROPS_CORRECT_1 -lxml.etree.ErrorTypes.SCHEMAP_ST_PROPS_CORRECT_2 lxml.etree.ErrorTypes-class.html#SCHEMAP_ST_PROPS_CORRECT_2 -lxml.etree.ErrorTypes.ERR_ENTITYREF_IN_DTD lxml.etree.ErrorTypes-class.html#ERR_ENTITYREF_IN_DTD -lxml.etree.ErrorTypes.SCHEMAP_S4S_ATTR_INVALID_VALUE lxml.etree.ErrorTypes-class.html#SCHEMAP_S4S_ATTR_INVALID_VALUE -lxml.etree.ErrorTypes.RNGP_INVALID_URI lxml.etree.ErrorTypes-class.html#RNGP_INVALID_URI -lxml.etree.ErrorTypes.RNGP_XMLNS_NAME lxml.etree.ErrorTypes-class.html#RNGP_XMLNS_NAME -lxml.etree.ErrorTypes.IO_ESPIPE lxml.etree.ErrorTypes-class.html#IO_ESPIPE -lxml.etree.ErrorTypes.CHECK_FOUND_ENTITY lxml.etree.ErrorTypes-class.html#CHECK_FOUND_ENTITY -lxml.etree.ErrorTypes.SCHEMAP_UNKNOWN_COMPLEXCONTENT_CHILD lxml.etree.ErrorTypes-class.html#SCHEMAP_UNKNOWN_COMPLEXCONTENT_CHILD -lxml.etree.ErrorTypes.RNGP_GRAMMAR_EMPTY lxml.etree.ErrorTypes-class.html#RNGP_GRAMMAR_EMPTY -lxml.etree.ErrorTypes.RNGP_REF_CREATE_FAILED lxml.etree.ErrorTypes-class.html#RNGP_REF_CREATE_FAILED -lxml.etree.ErrorTypes.SCHEMAP_DERIVATION_OK_RESTRICTION_2_1_1 lxml.etree.ErrorTypes-class.html#SCHEMAP_DERIVATION_OK_RESTRICTION_2_1_1 -lxml.etree.ErrorTypes.SCHEMAP_DERIVATION_OK_RESTRICTION_2_1_2 lxml.etree.ErrorTypes-class.html#SCHEMAP_DERIVATION_OK_RESTRICTION_2_1_2 -lxml.etree.ErrorTypes.SCHEMAP_DERIVATION_OK_RESTRICTION_2_1_3 lxml.etree.ErrorTypes-class.html#SCHEMAP_DERIVATION_OK_RESTRICTION_2_1_3 -lxml.etree.ErrorTypes.ERR_CDATA_NOT_FINISHED lxml.etree.ErrorTypes-class.html#ERR_CDATA_NOT_FINISHED -lxml.etree.ErrorTypes.ERR_LTSLASH_REQUIRED lxml.etree.ErrorTypes-class.html#ERR_LTSLASH_REQUIRED -lxml.etree.ErrorTypes.SCHEMAV_NOTDETERMINIST lxml.etree.ErrorTypes-class.html#SCHEMAV_NOTDETERMINIST -lxml.etree.ErrorTypes.IO_FLUSH lxml.etree.ErrorTypes-class.html#IO_FLUSH -lxml.etree.ErrorTypes.ERR_CHARREF_AT_EOF lxml.etree.ErrorTypes-class.html#ERR_CHARREF_AT_EOF -lxml.etree.ErrorTypes.HTML_STRUCURE_ERROR lxml.etree.ErrorTypes-class.html#HTML_STRUCURE_ERROR -lxml.etree.ErrorTypes.IO_EBADF lxml.etree.ErrorTypes-class.html#IO_EBADF -lxml.etree.ErrorTypes.SCHEMAP_ATTR_NONAME_NOREF lxml.etree.ErrorTypes-class.html#SCHEMAP_ATTR_NONAME_NOREF -lxml.etree.ErrorTypes.SCHEMAP_FAILED_BUILD_IMPORT lxml.etree.ErrorTypes-class.html#SCHEMAP_FAILED_BUILD_IMPORT -lxml.etree.ErrorTypes.CHECK_WRONG_PARENT lxml.etree.ErrorTypes-class.html#CHECK_WRONG_PARENT -lxml.etree.ErrorTypes.DTD_NOTATION_REDEFINED lxml.etree.ErrorTypes-class.html#DTD_NOTATION_REDEFINED -lxml.etree.ErrorTypes.ERR_ATTLIST_NOT_STARTED lxml.etree.ErrorTypes-class.html#ERR_ATTLIST_NOT_STARTED -lxml.etree.ErrorTypes.XPATH_UNCLOSED_ERROR lxml.etree.ErrorTypes-class.html#XPATH_UNCLOSED_ERROR -lxml.etree.ErrorTypes.SCHEMAV_CVC_ELT_2 lxml.etree.ErrorTypes-class.html#SCHEMAV_CVC_ELT_2 -lxml.etree.ErrorTypes.RNGP_PAT_NSNAME_EXCEPT_NSNAME lxml.etree.ErrorTypes-class.html#RNGP_PAT_NSNAME_EXCEPT_NSNAME -lxml.etree.ErrorTypes.SCHEMAV_CVC_ELT_1 lxml.etree.ErrorTypes-class.html#SCHEMAV_CVC_ELT_1 -lxml.etree.ErrorTypes.SCHEMAV_CVC_ELT_6 lxml.etree.ErrorTypes-class.html#SCHEMAV_CVC_ELT_6 -lxml.etree.ErrorTypes.SCHEMAV_CVC_ELT_7 lxml.etree.ErrorTypes-class.html#SCHEMAV_CVC_ELT_7 -lxml.etree.ErrorTypes.SCHEMAV_CVC_ELT_5_2_2_2_1 lxml.etree.ErrorTypes-class.html#SCHEMAV_CVC_ELT_5_2_2_2_1 -lxml.etree.ErrorTypes.SCHEMAP_SRC_IMPORT_2_1 lxml.etree.ErrorTypes-class.html#SCHEMAP_SRC_IMPORT_2_1 -lxml.etree.ErrorTypes.SCHEMAP_SRC_IMPORT_2_2 lxml.etree.ErrorTypes-class.html#SCHEMAP_SRC_IMPORT_2_2 -lxml.etree.ErrorTypes.SCHEMAV_CVC_ELT_5_2_2_2_2 lxml.etree.ErrorTypes-class.html#SCHEMAV_CVC_ELT_5_2_2_2_2 -lxml.etree.ErrorTypes.RNGP_ELEMENT_CONTENT lxml.etree.ErrorTypes-class.html#RNGP_ELEMENT_CONTENT -lxml.etree.ErrorTypes.SCHEMAP_UNKNOWN_ATTR_CHILD lxml.etree.ErrorTypes-class.html#SCHEMAP_UNKNOWN_ATTR_CHILD -lxml.etree.ErrorTypes.ERR_CONDSEC_INVALID_KEYWORD lxml.etree.ErrorTypes-class.html#ERR_CONDSEC_INVALID_KEYWORD -lxml.etree.ErrorTypes.RNGP_START_EMPTY lxml.etree.ErrorTypes-class.html#RNGP_START_EMPTY -lxml.etree.ErrorTypes.IO_EAGAIN lxml.etree.ErrorTypes-class.html#IO_EAGAIN -lxml.etree.ErrorTypes.SCHEMAV_CVC_MININCLUSIVE_VALID lxml.etree.ErrorTypes-class.html#SCHEMAV_CVC_MININCLUSIVE_VALID -lxml.etree.ErrorTypes.SCHEMAV_ELEMENT_CONTENT lxml.etree.ErrorTypes-class.html#SCHEMAV_ELEMENT_CONTENT -lxml.etree.ErrorTypes.XINCLUDE_FRAGMENT_ID lxml.etree.ErrorTypes-class.html#XINCLUDE_FRAGMENT_ID -lxml.etree.ErrorTypes.SCHEMAP_COS_ST_RESTRICTS_2_3_2_5 lxml.etree.ErrorTypes-class.html#SCHEMAP_COS_ST_RESTRICTS_2_3_2_5 -lxml.etree.ErrorTypes.I18N_NO_NAME lxml.etree.ErrorTypes-class.html#I18N_NO_NAME -lxml.etree.ErrorTypes.SCHEMAP_IMPORT_SCHEMA_NOT_URI lxml.etree.ErrorTypes-class.html#SCHEMAP_IMPORT_SCHEMA_NOT_URI -lxml.etree.ErrorTypes.NS_ERR_QNAME lxml.etree.ErrorTypes-class.html#NS_ERR_QNAME -lxml.etree.ErrorTypes.SCHEMAP_UNION_NOT_EXPRESSIBLE lxml.etree.ErrorTypes-class.html#SCHEMAP_UNION_NOT_EXPRESSIBLE -lxml.etree.ErrorTypes.SCHEMAP_SRC_CT_1 lxml.etree.ErrorTypes-class.html#SCHEMAP_SRC_CT_1 -lxml.etree.ErrorTypes.RNGP_PAT_LIST_REF lxml.etree.ErrorTypes-class.html#RNGP_PAT_LIST_REF -lxml.etree.ErrorTypes.SCHEMAP_IMPORT_REDEFINE_NSNAME lxml.etree.ErrorTypes-class.html#SCHEMAP_IMPORT_REDEFINE_NSNAME -lxml.etree.ErrorTypes.SCHEMAV_ATTRINVALID lxml.etree.ErrorTypes-class.html#SCHEMAV_ATTRINVALID -lxml.etree.ErrorTypes.RNGP_PAT_DATA_EXCEPT_ATTR lxml.etree.ErrorTypes-class.html#RNGP_PAT_DATA_EXCEPT_ATTR -lxml.etree.ErrorTypes.IO_ESRCH lxml.etree.ErrorTypes-class.html#IO_ESRCH -lxml.etree.ErrorTypes.DTD_UNKNOWN_ELEM lxml.etree.ErrorTypes-class.html#DTD_UNKNOWN_ELEM -lxml.etree.ErrorTypes.XINCLUDE_DEPRECATED_NS lxml.etree.ErrorTypes-class.html#XINCLUDE_DEPRECATED_NS -lxml.etree.ErrorTypes.ERR_CHARREF_IN_EPILOG lxml.etree.ErrorTypes-class.html#ERR_CHARREF_IN_EPILOG -lxml.etree.ErrorTypes.RNGP_UNKNOWN_TYPE_LIB lxml.etree.ErrorTypes-class.html#RNGP_UNKNOWN_TYPE_LIB -lxml.etree.ErrorTypes.ERR_NMTOKEN_REQUIRED lxml.etree.ErrorTypes-class.html#ERR_NMTOKEN_REQUIRED -lxml.etree.ErrorTypes.DTD_NOT_EMPTY lxml.etree.ErrorTypes-class.html#DTD_NOT_EMPTY -lxml.etree.ErrorTypes.SCHEMAP_COS_ST_RESTRICTS_2_1 lxml.etree.ErrorTypes-class.html#SCHEMAP_COS_ST_RESTRICTS_2_1 -lxml.etree.ErrorTypes.ERR_PEREF_IN_PROLOG lxml.etree.ErrorTypes-class.html#ERR_PEREF_IN_PROLOG -lxml.etree.ErrorTypes.SCHEMAP_NOT_DETERMINISTIC lxml.etree.ErrorTypes-class.html#SCHEMAP_NOT_DETERMINISTIC -lxml.etree.ErrorTypes.SCHEMAP_E_PROPS_CORRECT_6 lxml.etree.ErrorTypes-class.html#SCHEMAP_E_PROPS_CORRECT_6 -lxml.etree.ErrorTypes.SCHEMAP_E_PROPS_CORRECT_5 lxml.etree.ErrorTypes-class.html#SCHEMAP_E_PROPS_CORRECT_5 -lxml.etree.ErrorTypes.SCHEMAP_E_PROPS_CORRECT_4 lxml.etree.ErrorTypes-class.html#SCHEMAP_E_PROPS_CORRECT_4 -lxml.etree.ErrorTypes.SCHEMAP_E_PROPS_CORRECT_3 lxml.etree.ErrorTypes-class.html#SCHEMAP_E_PROPS_CORRECT_3 -lxml.etree.ErrorTypes.SCHEMAP_E_PROPS_CORRECT_2 lxml.etree.ErrorTypes-class.html#SCHEMAP_E_PROPS_CORRECT_2 -lxml.etree.ErrorTypes.IO_EROFS lxml.etree.ErrorTypes-class.html#IO_EROFS -lxml.etree.ErrorTypes.RNGP_PAT_DATA_EXCEPT_ONEMORE lxml.etree.ErrorTypes-class.html#RNGP_PAT_DATA_EXCEPT_ONEMORE -lxml.etree.ErrorTypes.SCHEMAP_IMPORT_NAMESPACE_NOT_URI lxml.etree.ErrorTypes-class.html#SCHEMAP_IMPORT_NAMESPACE_NOT_URI -lxml.etree.ErrorTypes.SCHEMAP_FAILED_PARSE lxml.etree.ErrorTypes-class.html#SCHEMAP_FAILED_PARSE -lxml.etree.ErrorTypes.XPTR_SYNTAX_ERROR lxml.etree.ErrorTypes-class.html#XPTR_SYNTAX_ERROR -lxml.etree.ErrorTypes.MODULE_CLOSE lxml.etree.ErrorTypes-class.html#MODULE_CLOSE -lxml.etree.ErrorTypes.CHECK_NO_PARENT lxml.etree.ErrorTypes-class.html#CHECK_NO_PARENT -lxml.etree.ErrorTypes.SCHEMAP_REDEFINED_GROUP lxml.etree.ErrorTypes-class.html#SCHEMAP_REDEFINED_GROUP -lxml.etree.ErrorTypes.IO_EEXIST lxml.etree.ErrorTypes-class.html#IO_EEXIST -lxml.etree.ErrorTypes.REGEXP_COMPILE_ERROR lxml.etree.ErrorTypes-class.html#REGEXP_COMPILE_ERROR -lxml.etree.ErrorTypes.CATALOG_RECURSION lxml.etree.ErrorTypes-class.html#CATALOG_RECURSION -lxml.etree.ErrorTypes.WAR_CATALOG_PI lxml.etree.ErrorTypes-class.html#WAR_CATALOG_PI -lxml.etree.ErrorTypes.ERR_ELEMCONTENT_NOT_FINISHED lxml.etree.ErrorTypes-class.html#ERR_ELEMCONTENT_NOT_FINISHED -lxml.etree.ErrorTypes.ERR_LT_REQUIRED lxml.etree.ErrorTypes-class.html#ERR_LT_REQUIRED -lxml.etree.ErrorTypes.RNGP_PARSE_ERROR lxml.etree.ErrorTypes-class.html#RNGP_PARSE_ERROR -lxml.etree.ErrorTypes.RNGP_HREF_ERROR lxml.etree.ErrorTypes-class.html#RNGP_HREF_ERROR -lxml.etree.ErrorTypes.RNGP_START_MISSING lxml.etree.ErrorTypes-class.html#RNGP_START_MISSING -lxml.etree.ErrorTypes.ERR_EXT_ENTITY_STANDALONE lxml.etree.ErrorTypes-class.html#ERR_EXT_ENTITY_STANDALONE -lxml.etree.ErrorTypes.ERR_ENTITY_IS_PARAMETER lxml.etree.ErrorTypes-class.html#ERR_ENTITY_IS_PARAMETER -lxml.etree.ErrorTypes.RNGP_URI_FRAGMENT lxml.etree.ErrorTypes-class.html#RNGP_URI_FRAGMENT -lxml.etree.ErrorTypes.SCHEMAV_CVC_ELT_5_1_2 lxml.etree.ErrorTypes-class.html#SCHEMAV_CVC_ELT_5_1_2 -lxml.etree.ErrorTypes.ERR_XMLDECL_NOT_STARTED lxml.etree.ErrorTypes-class.html#ERR_XMLDECL_NOT_STARTED -lxml.etree.ErrorTypes.XINCLUDE_NO_HREF lxml.etree.ErrorTypes-class.html#XINCLUDE_NO_HREF -lxml.etree.ErrorTypes.SCHEMAV_CVC_ELT_5_1_1 lxml.etree.ErrorTypes-class.html#SCHEMAV_CVC_ELT_5_1_1 -lxml.etree.ErrorTypes.CHECK_FOUND_ATTRIBUTE lxml.etree.ErrorTypes-class.html#CHECK_FOUND_ATTRIBUTE -lxml.etree.ErrorTypes.SCHEMAP_SIMPLETYPE_NONAME lxml.etree.ErrorTypes-class.html#SCHEMAP_SIMPLETYPE_NONAME -lxml.etree.ErrorTypes.SCHEMAP_SRC_INCLUDE lxml.etree.ErrorTypes-class.html#SCHEMAP_SRC_INCLUDE -lxml.etree.ErrorTypes.RNGP_INTERLEAVE_ADD lxml.etree.ErrorTypes-class.html#RNGP_INTERLEAVE_ADD -lxml.etree.ErrorTypes.CHECK_NO_HREF lxml.etree.ErrorTypes-class.html#CHECK_NO_HREF -lxml.etree.ErrorTypes.RNGP_TYPE_VALUE lxml.etree.ErrorTypes-class.html#RNGP_TYPE_VALUE -lxml.etree.ErrorTypes.SCHEMAP_EXTENSION_NO_BASE lxml.etree.ErrorTypes-class.html#SCHEMAP_EXTENSION_NO_BASE -lxml.etree.ErrorTypes.RNGP_PAT_ANYNAME_EXCEPT_ANYNAME lxml.etree.ErrorTypes-class.html#RNGP_PAT_ANYNAME_EXCEPT_ANYNAME -lxml.etree.ErrorTypes.SCHEMAP_REDEFINED_TYPE lxml.etree.ErrorTypes-class.html#SCHEMAP_REDEFINED_TYPE -lxml.etree.ErrorTypes.ERR_ENTITYREF_AT_EOF lxml.etree.ErrorTypes-class.html#ERR_ENTITYREF_AT_EOF -lxml.etree.ErrorTypes.C14N_CREATE_CTXT lxml.etree.ErrorTypes-class.html#C14N_CREATE_CTXT -lxml.etree.ErrorTypes.SCHEMAP_COS_ST_RESTRICTS_3_3_2_3 lxml.etree.ErrorTypes-class.html#SCHEMAP_COS_ST_RESTRICTS_3_3_2_3 -lxml.etree.ErrorTypes.SCHEMAP_COS_ST_RESTRICTS_3_3_2_2 lxml.etree.ErrorTypes-class.html#SCHEMAP_COS_ST_RESTRICTS_3_3_2_2 -lxml.etree.ErrorTypes.RNGP_PAT_START_ONEMORE lxml.etree.ErrorTypes-class.html#RNGP_PAT_START_ONEMORE -lxml.etree.ErrorTypes.ERR_ENTITY_BOUNDARY lxml.etree.ErrorTypes-class.html#ERR_ENTITY_BOUNDARY -lxml.etree.ErrorTypes.SCHEMAP_COS_ST_RESTRICTS_3_3_2_5 lxml.etree.ErrorTypes-class.html#SCHEMAP_COS_ST_RESTRICTS_3_3_2_5 -lxml.etree.ErrorTypes.SCHEMAP_COS_ST_RESTRICTS_3_3_2_4 lxml.etree.ErrorTypes-class.html#SCHEMAP_COS_ST_RESTRICTS_3_3_2_4 -lxml.etree.ErrorTypes.ERR_UNKNOWN_ENCODING lxml.etree.ErrorTypes-class.html#ERR_UNKNOWN_ENCODING -lxml.etree.ErrorTypes.HTML_UNKNOWN_TAG lxml.etree.ErrorTypes-class.html#HTML_UNKNOWN_TAG -lxml.etree.ErrorTypes.CHECK_ lxml.etree.ErrorTypes-class.html#CHECK_ -lxml.etree.ErrorTypes.SCHEMAP_INVALID_REF_AND_SUBTYPE lxml.etree.ErrorTypes-class.html#SCHEMAP_INVALID_REF_AND_SUBTYPE -lxml.etree.ErrorTypes.DTD_INVALID_DEFAULT lxml.etree.ErrorTypes-class.html#DTD_INVALID_DEFAULT -lxml.etree.ErrorTypes.C14N_RELATIVE_NAMESPACE lxml.etree.ErrorTypes-class.html#C14N_RELATIVE_NAMESPACE -lxml.etree.ErrorTypes.SCHEMAP_FACET_NO_VALUE lxml.etree.ErrorTypes-class.html#SCHEMAP_FACET_NO_VALUE -lxml.etree.ErrorTypes.CHECK_NO_DOC lxml.etree.ErrorTypes-class.html#CHECK_NO_DOC -lxml.etree.ErrorTypes.IO_EFBIG lxml.etree.ErrorTypes-class.html#IO_EFBIG -lxml.etree.ErrorTypes.SCHEMAP_INVALID_WHITE_SPACE lxml.etree.ErrorTypes-class.html#SCHEMAP_INVALID_WHITE_SPACE -lxml.etree.ErrorTypes.RNGP_NSNAME_ATTR_ANCESTOR lxml.etree.ErrorTypes-class.html#RNGP_NSNAME_ATTR_ANCESTOR -lxml.etree.ErrorTypes.SCHEMAP_S4S_ELEM_NOT_ALLOWED lxml.etree.ErrorTypes-class.html#SCHEMAP_S4S_ELEM_NOT_ALLOWED -lxml.etree.ErrorTypes.RNGP_START_CHOICE_AND_INTERLEAVE lxml.etree.ErrorTypes-class.html#RNGP_START_CHOICE_AND_INTERLEAVE -lxml.etree.ErrorTypes.DTD_UNKNOWN_NOTATION lxml.etree.ErrorTypes-class.html#DTD_UNKNOWN_NOTATION -lxml.etree.ErrorTypes.ERR_NS_DECL_ERROR lxml.etree.ErrorTypes-class.html#ERR_NS_DECL_ERROR -lxml.etree.ErrorTypes.SCHEMAP_UNKNOWN_GROUP_CHILD lxml.etree.ErrorTypes-class.html#SCHEMAP_UNKNOWN_GROUP_CHILD -lxml.etree.ErrorTypes.RNGP_PAT_LIST_LIST lxml.etree.ErrorTypes-class.html#RNGP_PAT_LIST_LIST -lxml.etree.ErrorTypes.CHECK_WRONG_DOC lxml.etree.ErrorTypes-class.html#CHECK_WRONG_DOC -lxml.etree.ErrorTypes.ERR_LITERAL_NOT_FINISHED lxml.etree.ErrorTypes-class.html#ERR_LITERAL_NOT_FINISHED -lxml.etree.ErrorTypes.CHECK_FOUND_CDATA lxml.etree.ErrorTypes-class.html#CHECK_FOUND_CDATA -lxml.etree.ErrorTypes.SAVE_UNKNOWN_ENCODING lxml.etree.ErrorTypes-class.html#SAVE_UNKNOWN_ENCODING -lxml.etree.ErrorTypes.RNGP_GRAMMAR_MISSING lxml.etree.ErrorTypes-class.html#RNGP_GRAMMAR_MISSING -lxml.etree.ErrorTypes.SCHEMAV_NOTSIMPLE lxml.etree.ErrorTypes-class.html#SCHEMAV_NOTSIMPLE -lxml.etree.ErrorTypes.DTD_ID_REDEFINED lxml.etree.ErrorTypes-class.html#DTD_ID_REDEFINED -lxml.etree.ErrorTypes.SCHEMAP_REDEFINED_ATTR lxml.etree.ErrorTypes-class.html#SCHEMAP_REDEFINED_ATTR -lxml.etree.ErrorTypes.RNGP_ERROR_TYPE_LIB lxml.etree.ErrorTypes-class.html#RNGP_ERROR_TYPE_LIB -lxml.etree.ErrorTypes.CHECK_NAME_NOT_NULL lxml.etree.ErrorTypes-class.html#CHECK_NAME_NOT_NULL -lxml.etree.ErrorTypes.IO_UNKNOWN lxml.etree.ErrorTypes-class.html#IO_UNKNOWN -lxml.etree.ErrorTypes.HTTP_URL_SYNTAX lxml.etree.ErrorTypes-class.html#HTTP_URL_SYNTAX -lxml.etree.ErrorTypes.RNGP_NAME_MISSING lxml.etree.ErrorTypes-class.html#RNGP_NAME_MISSING -lxml.etree.ErrorTypes.CHECK_WRONG_NEXT lxml.etree.ErrorTypes-class.html#CHECK_WRONG_NEXT -lxml.etree.ErrorTypes.SCHEMAP_UNKNOWN_ANYATTRIBUTE_CHILD lxml.etree.ErrorTypes-class.html#SCHEMAP_UNKNOWN_ANYATTRIBUTE_CHILD -lxml.etree.ErrorTypes.SCHEMAP_NOATTR_NOREF lxml.etree.ErrorTypes-class.html#SCHEMAP_NOATTR_NOREF -lxml.etree.ErrorTypes.SAVE_NOT_UTF8 lxml.etree.ErrorTypes-class.html#SAVE_NOT_UTF8 -lxml.etree.ErrorTypes.SCHEMAP_COS_ST_RESTRICTS_3_3_2_1 lxml.etree.ErrorTypes-class.html#SCHEMAP_COS_ST_RESTRICTS_3_3_2_1 -lxml.etree.ErrorTypes.CHECK_NOT_UTF8 lxml.etree.ErrorTypes-class.html#CHECK_NOT_UTF8 -lxml.etree.ErrorTypes.DTD_NO_DTD lxml.etree.ErrorTypes-class.html#DTD_NO_DTD -lxml.etree.ErrorTypes.RNGP_PAT_LIST_INTERLEAVE lxml.etree.ErrorTypes-class.html#RNGP_PAT_LIST_INTERLEAVE -lxml.etree.ErrorTypes.ERR_ENTITY_PE_INTERNAL lxml.etree.ErrorTypes-class.html#ERR_ENTITY_PE_INTERNAL -lxml.etree.ErrorTypes.RNGP_INTERLEAVE_NO_CONTENT lxml.etree.ErrorTypes-class.html#RNGP_INTERLEAVE_NO_CONTENT -lxml.etree.ErrorTypes.ERR_CONDSEC_INVALID lxml.etree.ErrorTypes-class.html#ERR_CONDSEC_INVALID -lxml.etree.ErrorTypes.RNGP_ELEM_CONTENT_EMPTY lxml.etree.ErrorTypes-class.html#RNGP_ELEM_CONTENT_EMPTY -lxml.etree.ErrorTypes.SCHEMAP_NOROOT lxml.etree.ErrorTypes-class.html#SCHEMAP_NOROOT -lxml.etree.ErrorTypes.CHECK_UNKNOWN_NODE lxml.etree.ErrorTypes-class.html#CHECK_UNKNOWN_NODE -lxml.etree.ErrorTypes.XINCLUDE_UNKNOWN_ENCODING lxml.etree.ErrorTypes-class.html#XINCLUDE_UNKNOWN_ENCODING -lxml.etree.ErrorTypes.XPATH_INVALID_TYPE lxml.etree.ErrorTypes-class.html#XPATH_INVALID_TYPE -lxml.etree.ErrorTypes.RNGP_PARENTREF_CREATE_FAILED lxml.etree.ErrorTypes-class.html#RNGP_PARENTREF_CREATE_FAILED -lxml.etree.ErrorTypes.CHECK_NO_PREV lxml.etree.ErrorTypes-class.html#CHECK_NO_PREV -lxml.etree.ErrorTypes.XPATH_INVALID_CTXT_SIZE lxml.etree.ErrorTypes-class.html#XPATH_INVALID_CTXT_SIZE -lxml.etree.ErrorTypes.RNGP_DATA_CONTENT lxml.etree.ErrorTypes-class.html#RNGP_DATA_CONTENT -lxml.etree.ErrorTypes.SCHEMAP_S4S_ELEM_MISSING lxml.etree.ErrorTypes-class.html#SCHEMAP_S4S_ELEM_MISSING -lxml.etree.ErrorTypes.SCHEMAP_UNKNOWN_BASE_TYPE lxml.etree.ErrorTypes-class.html#SCHEMAP_UNKNOWN_BASE_TYPE -lxml.etree.ErrorTypes.XINCLUDE_NO_FALLBACK lxml.etree.ErrorTypes-class.html#XINCLUDE_NO_FALLBACK -lxml.etree.ErrorTypes.IO_WRITE lxml.etree.ErrorTypes-class.html#IO_WRITE -lxml.etree.ErrorTypes.SCHEMAP_SRC_RESOLVE lxml.etree.ErrorTypes-class.html#SCHEMAP_SRC_RESOLVE -lxml.etree.ErrorTypes.SCHEMAP_COS_ST_RESTRICTS_3_1 lxml.etree.ErrorTypes-class.html#SCHEMAP_COS_ST_RESTRICTS_3_1 -lxml.etree.ErrorTypes.SCHEMAV_DOCUMENT_ELEMENT_MISSING lxml.etree.ErrorTypes-class.html#SCHEMAV_DOCUMENT_ELEMENT_MISSING -lxml.etree.ErrorTypes.RNGP_PAT_DATA_EXCEPT_REF lxml.etree.ErrorTypes-class.html#RNGP_PAT_DATA_EXCEPT_REF -lxml.etree.ErrorTypes.CHECK_NO_NAME lxml.etree.ErrorTypes-class.html#CHECK_NO_NAME -lxml.etree.ErrorTypes.IO_ENOSPC lxml.etree.ErrorTypes-class.html#IO_ENOSPC -lxml.etree.ErrorTypes.SCHEMAP_AU_PROPS_CORRECT lxml.etree.ErrorTypes-class.html#SCHEMAP_AU_PROPS_CORRECT -lxml.etree.ErrorTypes.TREE_NOT_UTF8 lxml.etree.ErrorTypes-class.html#TREE_NOT_UTF8 -lxml.etree.ErrorTypes.RNGP_PAT_LIST_ELEM lxml.etree.ErrorTypes-class.html#RNGP_PAT_LIST_ELEM -lxml.etree.ErrorTypes.XPATH_EXPRESSION_OK lxml.etree.ErrorTypes-class.html#XPATH_EXPRESSION_OK -lxml.etree.ErrorTypes.XPTR_SUB_RESOURCE_ERROR lxml.etree.ErrorTypes-class.html#XPTR_SUB_RESOURCE_ERROR -lxml.etree.ErrorTypes.SCHEMAP_ELEM_DEFAULT_FIXED lxml.etree.ErrorTypes-class.html#SCHEMAP_ELEM_DEFAULT_FIXED -lxml.etree.ErrorTypes.WAR_ENTITY_REDEFINED lxml.etree.ErrorTypes-class.html#WAR_ENTITY_REDEFINED -lxml.etree.ErrorTypes.DTD_XMLID_VALUE lxml.etree.ErrorTypes-class.html#DTD_XMLID_VALUE -lxml.etree.ErrorTypes.SCHEMAV_CVC_COMPLEX_TYPE_2_2 lxml.etree.ErrorTypes-class.html#SCHEMAV_CVC_COMPLEX_TYPE_2_2 -lxml.etree.ErrorTypes.RNGP_GRAMMAR_CONTENT lxml.etree.ErrorTypes-class.html#RNGP_GRAMMAR_CONTENT -lxml.etree.ErrorTypes.ERR_CHARREF_IN_DTD lxml.etree.ErrorTypes-class.html#ERR_CHARREF_IN_DTD -lxml.etree.ErrorTypes.I18N_NO_HANDLER lxml.etree.ErrorTypes-class.html#I18N_NO_HANDLER -lxml.etree.ErrorTypes.SCHEMAV_CVC_FACET_VALID lxml.etree.ErrorTypes-class.html#SCHEMAV_CVC_FACET_VALID -lxml.etree.ErrorTypes.DTD_MIXED_CORRUPT lxml.etree.ErrorTypes-class.html#DTD_MIXED_CORRUPT -lxml.etree.ErrorTypes.ERR_INVALID_DEC_CHARREF lxml.etree.ErrorTypes-class.html#ERR_INVALID_DEC_CHARREF -lxml.etree.ErrorTypes.SCHEMAV_CVC_TOTALDIGITS_VALID lxml.etree.ErrorTypes-class.html#SCHEMAV_CVC_TOTALDIGITS_VALID -lxml.etree.ErrorTypes.CHECK_NOT_NCNAME lxml.etree.ErrorTypes-class.html#CHECK_NOT_NCNAME -lxml.etree.ErrorTypes.SCHEMAP_INVALID_ENUM lxml.etree.ErrorTypes-class.html#SCHEMAP_INVALID_ENUM -lxml.etree.ErrorTypes.SCHEMAP_UNKNOWN_MEMBER_TYPE lxml.etree.ErrorTypes-class.html#SCHEMAP_UNKNOWN_MEMBER_TYPE -lxml.etree.ErrorTypes.ERR_SPACE_REQUIRED lxml.etree.ErrorTypes-class.html#ERR_SPACE_REQUIRED -lxml.etree.ErrorTypes.SCHEMAP_COMPLEXTYPE_NONAME_NOREF lxml.etree.ErrorTypes-class.html#SCHEMAP_COMPLEXTYPE_NONAME_NOREF -lxml.etree.ErrorTypes.RNGP_PAT_START_EMPTY lxml.etree.ErrorTypes-class.html#RNGP_PAT_START_EMPTY -lxml.etree.ErrorTypes.ERR_DOCUMENT_EMPTY lxml.etree.ErrorTypes-class.html#ERR_DOCUMENT_EMPTY -lxml.etree.ErrorTypes.SCHEMAV_EXTRACONTENT lxml.etree.ErrorTypes-class.html#SCHEMAV_EXTRACONTENT -lxml.etree.ErrorTypes.SAVE_CHAR_INVALID lxml.etree.ErrorTypes-class.html#SAVE_CHAR_INVALID -lxml.etree.ErrorTypes.RNGP_XML_NS lxml.etree.ErrorTypes-class.html#RNGP_XML_NS -lxml.etree.ErrorTypes.SCHEMAP_UNKNOWN_SIMPLECONTENT_CHILD lxml.etree.ErrorTypes-class.html#SCHEMAP_UNKNOWN_SIMPLECONTENT_CHILD -lxml.etree.ErrorTypes.DTD_ATTRIBUTE_DEFAULT lxml.etree.ErrorTypes-class.html#DTD_ATTRIBUTE_DEFAULT -lxml.etree.ErrorTypes.IO_ENOTSUP lxml.etree.ErrorTypes-class.html#IO_ENOTSUP -lxml.etree.ErrorTypes.DTD_UNKNOWN_ATTRIBUTE lxml.etree.ErrorTypes-class.html#DTD_UNKNOWN_ATTRIBUTE -lxml.etree.ErrorTypes.XINCLUDE_INCLUDE_IN_INCLUDE lxml.etree.ErrorTypes-class.html#XINCLUDE_INCLUDE_IN_INCLUDE -lxml.etree.ErrorTypes.XPATH_UNFINISHED_LITERAL_ERROR lxml.etree.ErrorTypes-class.html#XPATH_UNFINISHED_LITERAL_ERROR -lxml.etree.ErrorTypes.SCHEMAP_ATTRGRP_NONAME_NOREF lxml.etree.ErrorTypes-class.html#SCHEMAP_ATTRGRP_NONAME_NOREF -lxml.etree.ErrorTypes.SCHEMAV_WRONGELEM lxml.etree.ErrorTypes-class.html#SCHEMAV_WRONGELEM -lxml.etree.ErrorTypes.SCHEMAP_INVALID_MINOCCURS lxml.etree.ErrorTypes-class.html#SCHEMAP_INVALID_MINOCCURS -lxml.etree.ErrorTypes.RNGP_PARENTREF_NAME_INVALID lxml.etree.ErrorTypes-class.html#RNGP_PARENTREF_NAME_INVALID -lxml.etree.ErrorTypes.SCHEMAP_COS_ST_RESTRICTS_1_1 lxml.etree.ErrorTypes-class.html#SCHEMAP_COS_ST_RESTRICTS_1_1 -lxml.etree.ErrorTypes.SCHEMAP_COS_ST_RESTRICTS_1_2 lxml.etree.ErrorTypes-class.html#SCHEMAP_COS_ST_RESTRICTS_1_2 -lxml.etree.ErrorTypes.IO_ENODEV lxml.etree.ErrorTypes-class.html#IO_ENODEV -lxml.etree.ErrorTypes.SCHEMAP_COS_VALID_DEFAULT_2_2_2 lxml.etree.ErrorTypes-class.html#SCHEMAP_COS_VALID_DEFAULT_2_2_2 -lxml.etree.ErrorTypes.IO_EBUSY lxml.etree.ErrorTypes-class.html#IO_EBUSY -lxml.etree.ErrorTypes.C14N_REQUIRES_UTF8 lxml.etree.ErrorTypes-class.html#C14N_REQUIRES_UTF8 -lxml.etree.ErrorTypes.SCHEMAP_SRC_LIST_ITEMTYPE_OR_SIMPLETYPE lxml.etree.ErrorTypes-class.html#SCHEMAP_SRC_LIST_ITEMTYPE_OR_SIMPLETYPE -lxml.etree.ErrorTypes.ERR_URI_REQUIRED lxml.etree.ErrorTypes-class.html#ERR_URI_REQUIRED -lxml.etree.ErrorTypes.IO_EADDRINUSE lxml.etree.ErrorTypes-class.html#IO_EADDRINUSE -lxml.etree.ErrorTypes.SCHEMAV_INTERNAL lxml.etree.ErrorTypes-class.html#SCHEMAV_INTERNAL -lxml.etree.ErrorTypes.RNGP_VALUE_NO_CONTENT lxml.etree.ErrorTypes-class.html#RNGP_VALUE_NO_CONTENT -lxml.etree.ErrorTypes.NS_ERR_UNDEFINED_NAMESPACE lxml.etree.ErrorTypes-class.html#NS_ERR_UNDEFINED_NAMESPACE -lxml.etree.ErrorTypes.SCHEMAP_A_PROPS_CORRECT_2 lxml.etree.ErrorTypes-class.html#SCHEMAP_A_PROPS_CORRECT_2 -lxml.etree.ErrorTypes.CHECK_FOUND_ELEMENT lxml.etree.ErrorTypes-class.html#CHECK_FOUND_ELEMENT -lxml.etree.ErrorTypes.RNGP_ELEM_CONTENT_ERROR lxml.etree.ErrorTypes-class.html#RNGP_ELEM_CONTENT_ERROR -lxml.etree.ErrorTypes.SCHEMAP_RESTRICTION_NONAME_NOREF lxml.etree.ErrorTypes-class.html#SCHEMAP_RESTRICTION_NONAME_NOREF -lxml.etree.ErrorTypes.HTTP_USE_IP lxml.etree.ErrorTypes-class.html#HTTP_USE_IP -lxml.etree.ErrorTypes.SCHEMAP_SRC_ELEMENT_1 lxml.etree.ErrorTypes-class.html#SCHEMAP_SRC_ELEMENT_1 -lxml.etree.ErrorTypes.SCHEMAP_SRC_ELEMENT_3 lxml.etree.ErrorTypes-class.html#SCHEMAP_SRC_ELEMENT_3 -lxml.etree.ErrorTypes.ERR_ATTRIBUTE_NOT_FINISHED lxml.etree.ErrorTypes-class.html#ERR_ATTRIBUTE_NOT_FINISHED -lxml.etree.ErrorTypes.SCHEMAV_CVC_TYPE_3_1_1 lxml.etree.ErrorTypes-class.html#SCHEMAV_CVC_TYPE_3_1_1 -lxml.etree.ErrorTypes.SCHEMAV_CVC_TYPE_3_1_2 lxml.etree.ErrorTypes-class.html#SCHEMAV_CVC_TYPE_3_1_2 -lxml.etree.ErrorTypes.SCHEMATRONV_REPORT lxml.etree.ErrorTypes-class.html#SCHEMATRONV_REPORT -lxml.etree.ErrorTypes.SCHEMAV_MISC lxml.etree.ErrorTypes-class.html#SCHEMAV_MISC -lxml.etree.ErrorTypes.IO_EPIPE lxml.etree.ErrorTypes-class.html#IO_EPIPE -lxml.etree.ErrorTypes.SCHEMAP_SRC_ATTRIBUTE_GROUP_1 lxml.etree.ErrorTypes-class.html#SCHEMAP_SRC_ATTRIBUTE_GROUP_1 -lxml.etree.ErrorTypes.SCHEMAP_SRC_ATTRIBUTE_GROUP_3 lxml.etree.ErrorTypes-class.html#SCHEMAP_SRC_ATTRIBUTE_GROUP_3 -lxml.etree.ErrorTypes.SCHEMAP_SRC_ATTRIBUTE_GROUP_2 lxml.etree.ErrorTypes-class.html#SCHEMAP_SRC_ATTRIBUTE_GROUP_2 -lxml.etree.ErrorTypes.IO_EAFNOSUPPORT lxml.etree.ErrorTypes-class.html#IO_EAFNOSUPPORT -lxml.etree.ErrorTypes.SCHEMAP_WARN_SKIP_SCHEMA lxml.etree.ErrorTypes-class.html#SCHEMAP_WARN_SKIP_SCHEMA -lxml.etree.ErrorTypes.SCHEMAP_A_PROPS_CORRECT_3 lxml.etree.ErrorTypes-class.html#SCHEMAP_A_PROPS_CORRECT_3 -lxml.etree.ErrorTypes.CHECK_FOUND_DOCTYPE lxml.etree.ErrorTypes-class.html#CHECK_FOUND_DOCTYPE -lxml.etree.ErrorTypes.SCHEMAP_UNKNOWN_SIMPLETYPE_CHILD lxml.etree.ErrorTypes-class.html#SCHEMAP_UNKNOWN_SIMPLETYPE_CHILD -lxml.etree.ErrorTypes.TREE_UNTERMINATED_ENTITY lxml.etree.ErrorTypes-class.html#TREE_UNTERMINATED_ENTITY -lxml.etree.ErrorTypes.SCHEMAV_CVC_COMPLEX_TYPE_1 lxml.etree.ErrorTypes-class.html#SCHEMAV_CVC_COMPLEX_TYPE_1 -lxml.etree.ErrorTypes.WAR_UNDECLARED_ENTITY lxml.etree.ErrorTypes-class.html#WAR_UNDECLARED_ENTITY -lxml.etree.ErrorTypes.SCHEMAP_UNKNOWN_COMPLEXTYPE_CHILD lxml.etree.ErrorTypes-class.html#SCHEMAP_UNKNOWN_COMPLEXTYPE_CHILD -lxml.etree.ErrorTypes.SCHEMAV_CVC_COMPLEX_TYPE_4 lxml.etree.ErrorTypes-class.html#SCHEMAV_CVC_COMPLEX_TYPE_4 -lxml.etree.ErrorTypes.RNGP_UNKNOWN_CONSTRUCT lxml.etree.ErrorTypes-class.html#RNGP_UNKNOWN_CONSTRUCT -lxml.etree.ErrorTypes.SCHEMAP_WARN_ATTR_REDECL_PROH lxml.etree.ErrorTypes-class.html#SCHEMAP_WARN_ATTR_REDECL_PROH -lxml.etree.ErrorTypes.ERR_ENTITY_IS_EXTERNAL lxml.etree.ErrorTypes-class.html#ERR_ENTITY_IS_EXTERNAL -lxml.etree.ErrorTypes.SCHEMAP_COS_ST_RESTRICTS_3_3_1_2 lxml.etree.ErrorTypes-class.html#SCHEMAP_COS_ST_RESTRICTS_3_3_1_2 -lxml.etree.ErrorTypes.RNGP_INVALID_DEFINE_NAME lxml.etree.ErrorTypes-class.html#RNGP_INVALID_DEFINE_NAME -lxml.etree.ErrorTypes.SCHEMAP_PREFIX_UNDEFINED lxml.etree.ErrorTypes-class.html#SCHEMAP_PREFIX_UNDEFINED -lxml.etree.ErrorTypes.RNGP_PAT_DATA_EXCEPT_EMPTY lxml.etree.ErrorTypes-class.html#RNGP_PAT_DATA_EXCEPT_EMPTY -lxml.etree.ErrorTypes.SCHEMAV_INVALIDELEM lxml.etree.ErrorTypes-class.html#SCHEMAV_INVALIDELEM -lxml.etree.ErrorTypes.SCHEMAP_UNKNOWN_IMPORT_CHILD lxml.etree.ErrorTypes-class.html#SCHEMAP_UNKNOWN_IMPORT_CHILD -lxml.etree.ErrorTypes.RNGP_EXTERNALREF_EMTPY lxml.etree.ErrorTypes-class.html#RNGP_EXTERNALREF_EMTPY -lxml.etree.ErrorTypes.SCHEMAP_INTERSECTION_NOT_EXPRESSIBLE lxml.etree.ErrorTypes-class.html#SCHEMAP_INTERSECTION_NOT_EXPRESSIBLE -lxml.etree.ErrorTypes.IO_EALREADY lxml.etree.ErrorTypes-class.html#IO_EALREADY -lxml.etree.ErrorTypes.WAR_NS_URI lxml.etree.ErrorTypes-class.html#WAR_NS_URI -lxml.etree.ErrorTypes.SCHEMAP_REF_AND_CONTENT lxml.etree.ErrorTypes-class.html#SCHEMAP_REF_AND_CONTENT -lxml.etree.ErrorTypes.ERR_UNDECLARED_ENTITY lxml.etree.ErrorTypes-class.html#ERR_UNDECLARED_ENTITY -lxml.etree.ErrorTypes.IO_NETWORK_ATTEMPT lxml.etree.ErrorTypes-class.html#IO_NETWORK_ATTEMPT -lxml.etree.ErrorTypes.ERR_INVALID_CHAR lxml.etree.ErrorTypes-class.html#ERR_INVALID_CHAR -lxml.etree.ErrorTypes.SCHEMAV_CVC_ELT_5_2_1 lxml.etree.ErrorTypes-class.html#SCHEMAV_CVC_ELT_5_2_1 -lxml.etree.ErrorTypes.SCHEMAP_GROUP_NONAME_NOREF lxml.etree.ErrorTypes-class.html#SCHEMAP_GROUP_NONAME_NOREF -lxml.etree.ErrorTypes.ERR_LITERAL_NOT_STARTED lxml.etree.ErrorTypes-class.html#ERR_LITERAL_NOT_STARTED -lxml.etree.ErrorTypes.SCHEMAP_CT_PROPS_CORRECT_5 lxml.etree.ErrorTypes-class.html#SCHEMAP_CT_PROPS_CORRECT_5 -lxml.etree.ErrorTypes.SCHEMAP_REDEFINED_ELEMENT lxml.etree.ErrorTypes-class.html#SCHEMAP_REDEFINED_ELEMENT -lxml.etree.ErrorTypes.SCHEMAP_CVC_SIMPLE_TYPE lxml.etree.ErrorTypes-class.html#SCHEMAP_CVC_SIMPLE_TYPE -lxml.etree.ErrorTypes.ERR_UNKNOWN_VERSION lxml.etree.ErrorTypes-class.html#ERR_UNKNOWN_VERSION -lxml.etree.ErrorTypes.SCHEMAP_NOT_SCHEMA lxml.etree.ErrorTypes-class.html#SCHEMAP_NOT_SCHEMA -lxml.etree.ErrorTypes.RNGP_UNKNOWN_COMBINE lxml.etree.ErrorTypes-class.html#RNGP_UNKNOWN_COMBINE -lxml.etree.ErrorTypes.SCHEMAP_SRC_ELEMENT_2_1 lxml.etree.ErrorTypes-class.html#SCHEMAP_SRC_ELEMENT_2_1 -lxml.etree.ErrorTypes.CHECK_NOT_DTD lxml.etree.ErrorTypes-class.html#CHECK_NOT_DTD -lxml.etree.ErrorTypes.CHECK_NO_NEXT lxml.etree.ErrorTypes-class.html#CHECK_NO_NEXT -lxml.etree.ErrorTypes.ERR_NOT_WELL_BALANCED lxml.etree.ErrorTypes-class.html#ERR_NOT_WELL_BALANCED -lxml.etree.ErrorTypes.RNGP_REF_CYCLE lxml.etree.ErrorTypes-class.html#RNGP_REF_CYCLE -lxml.etree.ErrorTypes.SCHEMAP_CT_PROPS_CORRECT_1 lxml.etree.ErrorTypes-class.html#SCHEMAP_CT_PROPS_CORRECT_1 -lxml.etree.ErrorTypes.SCHEMAV_FACET lxml.etree.ErrorTypes-class.html#SCHEMAV_FACET -lxml.etree.ErrorTypes.ERR_ENCODING_NAME lxml.etree.ErrorTypes-class.html#ERR_ENCODING_NAME -lxml.etree.ErrorTypes.SCHEMAV_NOROOT lxml.etree.ErrorTypes-class.html#SCHEMAV_NOROOT -lxml.etree.ErrorTypes.DTD_XMLID_TYPE lxml.etree.ErrorTypes-class.html#DTD_XMLID_TYPE -lxml.etree.ErrorTypes.C14N_CREATE_STACK lxml.etree.ErrorTypes-class.html#C14N_CREATE_STACK -lxml.etree.ErrorTypes.SCHEMAV_CVC_TYPE_2 lxml.etree.ErrorTypes-class.html#SCHEMAV_CVC_TYPE_2 -lxml.etree.ErrorTypes.SCHEMAP_UNKNOWN_SEQUENCE_CHILD lxml.etree.ErrorTypes-class.html#SCHEMAP_UNKNOWN_SEQUENCE_CHILD -lxml.etree.ErrorTypes.SCHEMAV_CVC_TYPE_1 lxml.etree.ErrorTypes-class.html#SCHEMAV_CVC_TYPE_1 -lxml.etree.ErrorTypes.IO_ENXIO lxml.etree.ErrorTypes-class.html#IO_ENXIO -lxml.etree.ErrorTypes.SCHEMAV_CVC_PATTERN_VALID lxml.etree.ErrorTypes-class.html#SCHEMAV_CVC_PATTERN_VALID -lxml.etree.ErrorTypes.ERR_ATTRIBUTE_WITHOUT_VALUE lxml.etree.ErrorTypes-class.html#ERR_ATTRIBUTE_WITHOUT_VALUE -lxml.etree.ErrorTypes.SCHEMAP_INCLUDE_SCHEMA_NOT_URI lxml.etree.ErrorTypes-class.html#SCHEMAP_INCLUDE_SCHEMA_NOT_URI -lxml.etree.ErrorTypes.SCHEMAP_REDEFINED_ATTRGROUP lxml.etree.ErrorTypes-class.html#SCHEMAP_REDEFINED_ATTRGROUP -lxml.etree.ErrorTypes.SCHEMAV_INVALIDATTR lxml.etree.ErrorTypes-class.html#SCHEMAV_INVALIDATTR -lxml.etree.ErrorTypes.ERR_OK lxml.etree.ErrorTypes-class.html#ERR_OK -lxml.etree.ErrorTypes.ERR_EQUAL_REQUIRED lxml.etree.ErrorTypes-class.html#ERR_EQUAL_REQUIRED -lxml.etree.ErrorTypes.NS_ERR_XML_NAMESPACE lxml.etree.ErrorTypes-class.html#NS_ERR_XML_NAMESPACE -lxml.etree.ErrorTypes.ERR_EXTRA_CONTENT lxml.etree.ErrorTypes-class.html#ERR_EXTRA_CONTENT -lxml.etree.ErrorTypes.DTD_MULTIPLE_ID lxml.etree.ErrorTypes-class.html#DTD_MULTIPLE_ID -lxml.etree.ErrorTypes.IO_ECONNREFUSED lxml.etree.ErrorTypes-class.html#IO_ECONNREFUSED -lxml.etree.ErrorTypes.XPTR_UNKNOWN_SCHEME lxml.etree.ErrorTypes-class.html#XPTR_UNKNOWN_SCHEME -lxml.etree.ErrorTypes.SCHEMAV_CVC_COMPLEX_TYPE_5_2 lxml.etree.ErrorTypes-class.html#SCHEMAV_CVC_COMPLEX_TYPE_5_2 -lxml.etree.ErrorTypes.SCHEMAV_CVC_COMPLEX_TYPE_5_1 lxml.etree.ErrorTypes-class.html#SCHEMAV_CVC_COMPLEX_TYPE_5_1 -lxml.etree.ErrorTypes.RNGP_PAT_ONEMORE_INTERLEAVE_ATTR lxml.etree.ErrorTypes-class.html#RNGP_PAT_ONEMORE_INTERLEAVE_ATTR -lxml.etree.ErrorTypes.XINCLUDE_ENTITY_DEF_MISMATCH lxml.etree.ErrorTypes-class.html#XINCLUDE_ENTITY_DEF_MISMATCH -lxml.etree.ErrorTypes.SCHEMAP_COS_ST_RESTRICTS_3_3_1 lxml.etree.ErrorTypes-class.html#SCHEMAP_COS_ST_RESTRICTS_3_3_1 -lxml.etree.ErrorTypes.SCHEMAP_MG_PROPS_CORRECT_1 lxml.etree.ErrorTypes-class.html#SCHEMAP_MG_PROPS_CORRECT_1 -lxml.etree.ErrorTypes.SCHEMAP_SRC_ATTRIBUTE_3_2 lxml.etree.ErrorTypes-class.html#SCHEMAP_SRC_ATTRIBUTE_3_2 -lxml.etree.ErrorTypes.SCHEMAP_SRC_ATTRIBUTE_3_1 lxml.etree.ErrorTypes-class.html#SCHEMAP_SRC_ATTRIBUTE_3_1 -lxml.etree.ErrorTypes.SCHEMAP_MG_PROPS_CORRECT_2 lxml.etree.ErrorTypes-class.html#SCHEMAP_MG_PROPS_CORRECT_2 -lxml.etree.ErrorTypes.RNGP_PAT_START_VALUE lxml.etree.ErrorTypes-class.html#RNGP_PAT_START_VALUE -lxml.etree.ErrorTypes.DTD_ROOT_NAME lxml.etree.ErrorTypes-class.html#DTD_ROOT_NAME -lxml.etree.ErrorTypes.IO_EISDIR lxml.etree.ErrorTypes-class.html#IO_EISDIR -lxml.etree.ErrorTypes.IO_EINPROGRESS lxml.etree.ErrorTypes-class.html#IO_EINPROGRESS -lxml.etree.ErrorTypes.IO_EDEADLK lxml.etree.ErrorTypes-class.html#IO_EDEADLK -lxml.etree.ErrorTypes.SCHEMAP_COS_ST_DERIVED_OK_2_2 lxml.etree.ErrorTypes-class.html#SCHEMAP_COS_ST_DERIVED_OK_2_2 -lxml.etree.ErrorTypes.SCHEMAV_CVC_ELT_5_2_2_1 lxml.etree.ErrorTypes-class.html#SCHEMAV_CVC_ELT_5_2_2_1 -lxml.etree.ErrorTypes.SCHEMAP_P_PROPS_CORRECT_2_2 lxml.etree.ErrorTypes-class.html#SCHEMAP_P_PROPS_CORRECT_2_2 -lxml.etree.ErrorTypes.SCHEMAP_INVALID_FACET lxml.etree.ErrorTypes-class.html#SCHEMAP_INVALID_FACET -lxml.etree.ErrorTypes.SCHEMAP_P_PROPS_CORRECT_2_1 lxml.etree.ErrorTypes-class.html#SCHEMAP_P_PROPS_CORRECT_2_1 -lxml.etree.ErrorTypes.XINCLUDE_BUILD_FAILED lxml.etree.ErrorTypes-class.html#XINCLUDE_BUILD_FAILED -lxml.etree.ErrorTypes.ERR_PEREF_AT_EOF lxml.etree.ErrorTypes-class.html#ERR_PEREF_AT_EOF -lxml.etree.ErrorTypes.IO_ENOLCK lxml.etree.ErrorTypes-class.html#IO_ENOLCK -lxml.etree.ErrorTypes.DTD_MISSING_ATTRIBUTE lxml.etree.ErrorTypes-class.html#DTD_MISSING_ATTRIBUTE -lxml.etree.ErrorTypes.SCHEMAV_CVC_COMPLEX_TYPE_3_1 lxml.etree.ErrorTypes-class.html#SCHEMAV_CVC_COMPLEX_TYPE_3_1 -lxml.etree.ErrorTypes.CHECK_FOUND_ENTITYREF lxml.etree.ErrorTypes-class.html#CHECK_FOUND_ENTITYREF -lxml.etree.ErrorTypes.RNGP_PARAM_FORBIDDEN lxml.etree.ErrorTypes-class.html#RNGP_PARAM_FORBIDDEN -lxml.etree.ErrorTypes.DTD_ELEM_NAMESPACE lxml.etree.ErrorTypes-class.html#DTD_ELEM_NAMESPACE -lxml.etree.ErrorTypes.SCHEMAP_FAILED_LOAD lxml.etree.ErrorTypes-class.html#SCHEMAP_FAILED_LOAD -lxml.etree.ErrorTypes.SCHEMAP_SRC_SIMPLE_TYPE_4 lxml.etree.ErrorTypes-class.html#SCHEMAP_SRC_SIMPLE_TYPE_4 -lxml.etree.ErrorTypes.DTD_ID_FIXED lxml.etree.ErrorTypes-class.html#DTD_ID_FIXED -lxml.etree.ErrorTypes.SCHEMAP_SRC_SIMPLE_TYPE_1 lxml.etree.ErrorTypes-class.html#SCHEMAP_SRC_SIMPLE_TYPE_1 -lxml.etree.ErrorTypes.SCHEMAP_SRC_SIMPLE_TYPE_2 lxml.etree.ErrorTypes-class.html#SCHEMAP_SRC_SIMPLE_TYPE_2 -lxml.etree.ErrorTypes.SCHEMAP_SRC_SIMPLE_TYPE_3 lxml.etree.ErrorTypes-class.html#SCHEMAP_SRC_SIMPLE_TYPE_3 -lxml.etree.ErrorTypes.SCHEMAV_CVC_COMPLEX_TYPE_3_2_1 lxml.etree.ErrorTypes-class.html#SCHEMAV_CVC_COMPLEX_TYPE_3_2_1 -lxml.etree.ErrorTypes.XINCLUDE_PARSE_VALUE lxml.etree.ErrorTypes-class.html#XINCLUDE_PARSE_VALUE -lxml.etree.ErrorTypes.RNGP_INCLUDE_FAILURE lxml.etree.ErrorTypes-class.html#RNGP_INCLUDE_FAILURE -lxml.etree.ErrorTypes.CHECK_NO_DICT lxml.etree.ErrorTypes-class.html#CHECK_NO_DICT -lxml.etree.ErrorTypes.CHECK_NOT_ELEM_DECL lxml.etree.ErrorTypes-class.html#CHECK_NOT_ELEM_DECL -lxml.etree.ErrorTypes.XPTR_CHILDSEQ_START lxml.etree.ErrorTypes-class.html#XPTR_CHILDSEQ_START -lxml.etree.ErrorTypes.RNGP_ATTRIBUTE_EMPTY lxml.etree.ErrorTypes-class.html#RNGP_ATTRIBUTE_EMPTY -lxml.etree.ErrorTypes.ERR_ENTITYREF_NO_NAME lxml.etree.ErrorTypes-class.html#ERR_ENTITYREF_NO_NAME -lxml.etree.ErrorTypes.RNGP_UNKNOWN_ATTRIBUTE lxml.etree.ErrorTypes-class.html#RNGP_UNKNOWN_ATTRIBUTE -lxml.etree.ErrorTypes.SCHEMAP_COS_VALID_DEFAULT_1 lxml.etree.ErrorTypes-class.html#SCHEMAP_COS_VALID_DEFAULT_1 -lxml.etree.ErrorTypes.DTD_INVALID_CHILD lxml.etree.ErrorTypes-class.html#DTD_INVALID_CHILD -lxml.etree.ErrorTypes.SCHEMAV_CVC_ELT_4_2 lxml.etree.ErrorTypes-class.html#SCHEMAV_CVC_ELT_4_2 -lxml.etree.ErrorTypes.RNGP_EXCEPT_EMPTY lxml.etree.ErrorTypes-class.html#RNGP_EXCEPT_EMPTY -lxml.etree.ErrorTypes.RNGP_PAT_ATTR_ATTR lxml.etree.ErrorTypes-class.html#RNGP_PAT_ATTR_ATTR -lxml.etree.ErrorTypes.ERR_GT_REQUIRED lxml.etree.ErrorTypes-class.html#ERR_GT_REQUIRED -lxml.etree.ErrorTypes.RNGP_ATTR_CONFLICT lxml.etree.ErrorTypes-class.html#RNGP_ATTR_CONFLICT -lxml.etree.ErrorTypes.SCHEMAV_CVC_FRACTIONDIGITS_VALID lxml.etree.ErrorTypes-class.html#SCHEMAV_CVC_FRACTIONDIGITS_VALID -lxml.etree.ErrorTypes.IO_ETIMEDOUT lxml.etree.ErrorTypes-class.html#IO_ETIMEDOUT -lxml.etree.ErrorTypes.SCHEMAP_C_PROPS_CORRECT lxml.etree.ErrorTypes-class.html#SCHEMAP_C_PROPS_CORRECT -lxml.etree.ErrorTypes.I18N_NO_OUTPUT lxml.etree.ErrorTypes-class.html#I18N_NO_OUTPUT -lxml.etree.ErrorTypes.CHECK_NS_ANCESTOR lxml.etree.ErrorTypes-class.html#CHECK_NS_ANCESTOR -lxml.etree.ErrorTypes.SCHEMAP_INVALID_FACET_VALUE lxml.etree.ErrorTypes-class.html#SCHEMAP_INVALID_FACET_VALUE -lxml.etree.ErrorTypes.SCHEMAP_UNKNOWN_ALL_CHILD lxml.etree.ErrorTypes-class.html#SCHEMAP_UNKNOWN_ALL_CHILD -lxml.etree.ErrorTypes.CHECK_FOUND_FRAGMENT lxml.etree.ErrorTypes-class.html#CHECK_FOUND_FRAGMENT -lxml.etree.ErrorTypes.ERR_DOCUMENT_START lxml.etree.ErrorTypes-class.html#ERR_DOCUMENT_START -lxml.etree.ErrorTypes.SCHEMAV_CVC_LENGTH_VALID lxml.etree.ErrorTypes-class.html#SCHEMAV_CVC_LENGTH_VALID -lxml.etree.ErrorTypes.SCHEMAV_CVC_MINLENGTH_VALID lxml.etree.ErrorTypes-class.html#SCHEMAV_CVC_MINLENGTH_VALID -lxml.etree.ErrorTypes.SCHEMAP_COS_VALID_DEFAULT_2_1 lxml.etree.ErrorTypes-class.html#SCHEMAP_COS_VALID_DEFAULT_2_1 -lxml.etree.ErrorTypes.XINCLUDE_FALLBACK_NOT_IN_INCLUDE lxml.etree.ErrorTypes-class.html#XINCLUDE_FALLBACK_NOT_IN_INCLUDE -lxml.etree.ErrorTypes.RNGP_EXTERNALREF_RECURSE lxml.etree.ErrorTypes-class.html#RNGP_EXTERNALREF_RECURSE -lxml.etree.ErrorTypes.ERR_TAG_NAME_MISMATCH lxml.etree.ErrorTypes-class.html#ERR_TAG_NAME_MISMATCH -lxml.etree.ErrorTypes.SCHEMAV_CVC_DATATYPE_VALID_1_2_1 lxml.etree.ErrorTypes-class.html#SCHEMAV_CVC_DATATYPE_VALID_1_2_1 -lxml.etree.ErrorTypes.SCHEMAV_CVC_DATATYPE_VALID_1_2_2 lxml.etree.ErrorTypes-class.html#SCHEMAV_CVC_DATATYPE_VALID_1_2_2 -lxml.etree.ErrorTypes.SCHEMAV_CVC_DATATYPE_VALID_1_2_3 lxml.etree.ErrorTypes-class.html#SCHEMAV_CVC_DATATYPE_VALID_1_2_3 -lxml.etree.ErrorTypes.SCHEMAV_CVC_COMPLEX_TYPE_3_2_2 lxml.etree.ErrorTypes-class.html#SCHEMAV_CVC_COMPLEX_TYPE_3_2_2 -lxml.etree.ErrorTypes.CHECK_FOUND_COMMENT lxml.etree.ErrorTypes-class.html#CHECK_FOUND_COMMENT -lxml.etree.ErrorTypes.SCHEMAP_SRC_RESTRICTION_BASE_OR_SIMPLETYPE lxml.etree.ErrorTypes-class.html#SCHEMAP_SRC_RESTRICTION_BASE_OR_SIMPLETYPE -lxml.etree.ErrorTypes.SCHEMAP_NOTYPE_NOREF lxml.etree.ErrorTypes-class.html#SCHEMAP_NOTYPE_NOREF -lxml.etree.ErrorTypes.SCHEMAP_UNKNOWN_SCHEMAS_CHILD lxml.etree.ErrorTypes-class.html#SCHEMAP_UNKNOWN_SCHEMAS_CHILD -lxml.etree.ErrorTypes.RNGP_ATTRIBUTE_CONTENT lxml.etree.ErrorTypes-class.html#RNGP_ATTRIBUTE_CONTENT -lxml.etree.ErrorTypes.DTD_UNKNOWN_ENTITY lxml.etree.ErrorTypes-class.html#DTD_UNKNOWN_ENTITY -lxml.etree.ErrorTypes.XPATH_UNDEF_PREFIX_ERROR lxml.etree.ErrorTypes-class.html#XPATH_UNDEF_PREFIX_ERROR -lxml.etree.ErrorTypes.NS_ERR_ATTRIBUTE_REDEFINED lxml.etree.ErrorTypes-class.html#NS_ERR_ATTRIBUTE_REDEFINED -lxml.etree.ErrorTypes.ERR_CONDSEC_NOT_STARTED lxml.etree.ErrorTypes-class.html#ERR_CONDSEC_NOT_STARTED -lxml.etree.ErrorTypes.CHECK_FOUND_PI lxml.etree.ErrorTypes-class.html#CHECK_FOUND_PI -lxml.etree.ErrorTypes.DTD_DUP_TOKEN lxml.etree.ErrorTypes-class.html#DTD_DUP_TOKEN -lxml.etree.ErrorTypes.DTD_ATTRIBUTE_VALUE lxml.etree.ErrorTypes-class.html#DTD_ATTRIBUTE_VALUE -lxml.etree.ErrorTypes.XPATH_INVALID_ARITY lxml.etree.ErrorTypes-class.html#XPATH_INVALID_ARITY -lxml.etree.ErrorTypes.SCHEMAP_UNKNOWN_EXTENSION_CHILD lxml.etree.ErrorTypes-class.html#SCHEMAP_UNKNOWN_EXTENSION_CHILD -lxml.etree.ErrorTypes.SCHEMAP_REF_AND_SUBTYPE lxml.etree.ErrorTypes-class.html#SCHEMAP_REF_AND_SUBTYPE -lxml.etree.ErrorTypes.SCHEMAP_SRC_IMPORT lxml.etree.ErrorTypes-class.html#SCHEMAP_SRC_IMPORT -lxml.etree.ErrorTypes.SCHEMAP_NO_XSI lxml.etree.ErrorTypes-class.html#SCHEMAP_NO_XSI -lxml.etree.ErrorTypes.SCHEMAV_HAVEDEFAULT lxml.etree.ErrorTypes-class.html#SCHEMAV_HAVEDEFAULT -lxml.etree.ErrorTypes.RNGP_PAT_DATA_EXCEPT_LIST lxml.etree.ErrorTypes-class.html#RNGP_PAT_DATA_EXCEPT_LIST -lxml.etree.ErrorTypes.SCHEMAP_WARN_UNLOCATED_SCHEMA lxml.etree.ErrorTypes-class.html#SCHEMAP_WARN_UNLOCATED_SCHEMA -lxml.etree.ErrorTypes.ERR_NOT_STANDALONE lxml.etree.ErrorTypes-class.html#ERR_NOT_STANDALONE -lxml.etree.ErrorTypes.SCHEMAP_INVALID_ATTR_COMBINATION lxml.etree.ErrorTypes-class.html#SCHEMAP_INVALID_ATTR_COMBINATION -lxml.etree.ErrorTypes.SCHEMAP_DERIVATION_OK_RESTRICTION_3 lxml.etree.ErrorTypes-class.html#SCHEMAP_DERIVATION_OK_RESTRICTION_3 -lxml.etree.ErrorTypes.SCHEMAP_DERIVATION_OK_RESTRICTION_1 lxml.etree.ErrorTypes-class.html#SCHEMAP_DERIVATION_OK_RESTRICTION_1 -lxml.etree.ErrorTypes.SCHEMAP_UNKNOWN_UNION_CHILD lxml.etree.ErrorTypes-class.html#SCHEMAP_UNKNOWN_UNION_CHILD -lxml.etree.ErrorTypes.XINCLUDE_FALLBACKS_IN_INCLUDE lxml.etree.ErrorTypes-class.html#XINCLUDE_FALLBACKS_IN_INCLUDE -lxml.etree.ErrorTypes.IO_BUFFER_FULL lxml.etree.ErrorTypes-class.html#IO_BUFFER_FULL -lxml.etree.ErrorTypes.TREE_INVALID_DEC lxml.etree.ErrorTypes-class.html#TREE_INVALID_DEC -lxml.etree.ErrorTypes.DTD_STANDALONE_DEFAULTED lxml.etree.ErrorTypes-class.html#DTD_STANDALONE_DEFAULTED -lxml.etree.FallbackElementClassLookup lxml.etree.FallbackElementClassLookup-class.html -lxml.etree.FallbackElementClassLookup.__new__ lxml.etree.FallbackElementClassLookup-class.html#__new__ -lxml.etree.FallbackElementClassLookup.fallback lxml.etree.FallbackElementClassLookup-class.html#fallback -lxml.etree.FallbackElementClassLookup.set_fallback lxml.etree.FallbackElementClassLookup-class.html#set_fallback -lxml.etree.FallbackElementClassLookup.__init__ lxml.etree.FallbackElementClassLookup-class.html#__init__ -lxml.etree.HTMLParser lxml.etree.HTMLParser-class.html -lxml.etree._FeedParser.feed lxml.etree._FeedParser-class.html#feed -lxml.etree._BaseParser.set_element_class_lookup lxml.etree._BaseParser-class.html#set_element_class_lookup -lxml.etree._FeedParser.close lxml.etree._FeedParser-class.html#close -lxml.etree.HTMLParser.__init__ lxml.etree.HTMLParser-class.html#__init__ -lxml.etree.HTMLParser.__new__ lxml.etree.HTMLParser-class.html#__new__ -lxml.etree._BaseParser.setElementClassLookup lxml.etree._BaseParser-class.html#setElementClassLookup -lxml.etree._BaseParser.version lxml.etree._BaseParser-class.html#version -lxml.etree._BaseParser.makeelement lxml.etree._BaseParser-class.html#makeelement -lxml.etree._BaseParser.copy lxml.etree._BaseParser-class.html#copy -lxml.etree._BaseParser.resolvers lxml.etree._BaseParser-class.html#resolvers -lxml.etree._BaseParser.target lxml.etree._BaseParser-class.html#target -lxml.etree._BaseParser.error_log lxml.etree._BaseParser-class.html#error_log -lxml.etree._FeedParser.feed_error_log lxml.etree._FeedParser-class.html#feed_error_log -lxml.etree.LxmlError lxml.etree.LxmlError-class.html -lxml.etree.LxmlError.__init__ lxml.etree.LxmlError-class.html#__init__ -lxml.etree.LxmlRegistryError lxml.etree.LxmlRegistryError-class.html -lxml.etree.LxmlError.__init__ lxml.etree.LxmlError-class.html#__init__ -lxml.etree.LxmlSyntaxError lxml.etree.LxmlSyntaxError-class.html -lxml.etree.LxmlError.__init__ lxml.etree.LxmlError-class.html#__init__ -lxml.etree.NamespaceRegistryError lxml.etree.NamespaceRegistryError-class.html -lxml.etree.LxmlError.__init__ lxml.etree.LxmlError-class.html#__init__ -lxml.etree.PIBase lxml.etree.PIBase-class.html -lxml.etree._Element.getprevious lxml.etree._Element-class.html#getprevious -lxml.etree._Element.getparent lxml.etree._Element-class.html#getparent -lxml.etree._Element.sourceline lxml.etree._Element-class.html#sourceline -lxml.etree._Element.iterfind lxml.etree._Element-class.html#iterfind -lxml.etree._Element._init lxml.etree._Element-class.html#_init -lxml.etree._Element.nsmap lxml.etree._Element-class.html#nsmap -lxml.etree._Element.replace lxml.etree._Element-class.html#replace -lxml.etree._Element.prefix lxml.etree._Element-class.html#prefix -lxml.etree._ProcessingInstruction.tag lxml.etree._ProcessingInstruction-class.html#tag -lxml.etree._Element.iter lxml.etree._Element-class.html#iter -lxml.etree._Element.addprevious lxml.etree._Element-class.html#addprevious -lxml.etree._Element.addnext lxml.etree._Element-class.html#addnext -lxml.etree._Element.find lxml.etree._Element-class.html#find -lxml.etree._Element.getnext lxml.etree._Element-class.html#getnext -lxml.etree._Element.index lxml.etree._Element-class.html#index -lxml.etree.PIBase.__new__ lxml.etree.PIBase-class.html#__new__ -lxml.etree._Element.__contains__ lxml.etree._Element-class.html#__contains__ -lxml.etree._Element.findtext lxml.etree._Element-class.html#findtext -lxml.etree._Element.tail lxml.etree._Element-class.html#tail -lxml.etree._Element.getroottree lxml.etree._Element-class.html#getroottree -lxml.etree._Element.iterdescendants lxml.etree._Element-class.html#iterdescendants -lxml.etree._Element.getchildren lxml.etree._Element-class.html#getchildren -lxml.etree.PIBase.__init__ lxml.etree.PIBase-class.html#__init__ -lxml.etree._Element.xpath lxml.etree._Element-class.html#xpath -lxml.etree._ProcessingInstruction.get lxml.etree._ProcessingInstruction-class.html#get -lxml.etree._Element.__deepcopy__ lxml.etree._Element-class.html#__deepcopy__ -lxml.etree._Element.makeelement lxml.etree._Element-class.html#makeelement -lxml.etree._Element.base lxml.etree._Element-class.html#base -lxml.etree._Element.iterchildren lxml.etree._Element-class.html#iterchildren -lxml.etree._Element.iterancestors lxml.etree._Element-class.html#iterancestors -lxml.etree._Element.extend lxml.etree._Element-class.html#extend -lxml.etree._Element.__reversed__ lxml.etree._Element-class.html#__reversed__ -lxml.etree._Element.itersiblings lxml.etree._Element-class.html#itersiblings -lxml.etree._Element.__nonzero__ lxml.etree._Element-class.html#__nonzero__ -lxml.etree._ProcessingInstruction.target lxml.etree._ProcessingInstruction-class.html#target -lxml.etree._Element.clear lxml.etree._Element-class.html#clear -lxml.etree._Element.itertext lxml.etree._Element-class.html#itertext -lxml.etree._Element.findall lxml.etree._Element-class.html#findall -lxml.etree._Element.__iter__ lxml.etree._Element-class.html#__iter__ -lxml.etree._Element.remove lxml.etree._Element-class.html#remove -lxml.etree._ProcessingInstruction.__repr__ lxml.etree._ProcessingInstruction-class.html#__repr__ -lxml.etree._Element.getiterator lxml.etree._Element-class.html#getiterator -lxml.etree._ProcessingInstruction.attrib lxml.etree._ProcessingInstruction-class.html#attrib -lxml.etree._Element.__copy__ lxml.etree._Element-class.html#__copy__ -lxml.etree.ParseError lxml.etree.ParseError-class.html -lxml.etree.ParseError.__init__ lxml.etree.ParseError-class.html#__init__ -lxml.etree.ParserBasedElementClassLookup lxml.etree.ParserBasedElementClassLookup-class.html -lxml.etree.ParserBasedElementClassLookup.__new__ lxml.etree.ParserBasedElementClassLookup-class.html#__new__ -lxml.etree.FallbackElementClassLookup.fallback lxml.etree.FallbackElementClassLookup-class.html#fallback -lxml.etree.FallbackElementClassLookup.set_fallback lxml.etree.FallbackElementClassLookup-class.html#set_fallback -lxml.etree.FallbackElementClassLookup.__init__ lxml.etree.FallbackElementClassLookup-class.html#__init__ -lxml.etree.ParserError lxml.etree.ParserError-class.html -lxml.etree.LxmlError.__init__ lxml.etree.LxmlError-class.html#__init__ -lxml.etree.PyErrorLog lxml.etree.PyErrorLog-class.html -lxml.etree.PyErrorLog.level_map lxml.etree.PyErrorLog-class.html#level_map -lxml.etree.PyErrorLog.__new__ lxml.etree.PyErrorLog-class.html#__new__ -lxml.etree.PyErrorLog.receive lxml.etree.PyErrorLog-class.html#receive -lxml.etree._BaseErrorLog.last_error lxml.etree._BaseErrorLog-class.html#last_error -lxml.etree._BaseErrorLog.__repr__ lxml.etree._BaseErrorLog-class.html#__repr__ -lxml.etree.PyErrorLog.copy lxml.etree.PyErrorLog-class.html#copy -lxml.etree.PyErrorLog.__init__ lxml.etree.PyErrorLog-class.html#__init__ -lxml.etree.PyErrorLog.log lxml.etree.PyErrorLog-class.html#log -lxml.etree.PythonElementClassLookup lxml.etree.PythonElementClassLookup-class.html -lxml.etree.PythonElementClassLookup.__new__ lxml.etree.PythonElementClassLookup-class.html#__new__ -lxml.etree.PythonElementClassLookup.lookup lxml.etree.PythonElementClassLookup-class.html#lookup -lxml.etree.FallbackElementClassLookup.fallback lxml.etree.FallbackElementClassLookup-class.html#fallback -lxml.etree.FallbackElementClassLookup.set_fallback lxml.etree.FallbackElementClassLookup-class.html#set_fallback -lxml.etree.FallbackElementClassLookup.__init__ lxml.etree.FallbackElementClassLookup-class.html#__init__ -lxml.etree.QName lxml.etree.QName-class.html -lxml.etree.QName.text lxml.etree.QName-class.html#text -lxml.etree.QName.__str__ lxml.etree.QName-class.html#__str__ -lxml.etree.QName.localname lxml.etree.QName-class.html#localname -lxml.etree.QName.__lt__ lxml.etree.QName-class.html#__lt__ -lxml.etree.QName.__init__ lxml.etree.QName-class.html#__init__ -lxml.etree.QName.__new__ lxml.etree.QName-class.html#__new__ -lxml.etree.QName.namespace lxml.etree.QName-class.html#namespace -lxml.etree.QName.__ne__ lxml.etree.QName-class.html#__ne__ -lxml.etree.QName.__gt__ lxml.etree.QName-class.html#__gt__ -lxml.etree.QName.__eq__ lxml.etree.QName-class.html#__eq__ -lxml.etree.QName.__le__ lxml.etree.QName-class.html#__le__ -lxml.etree.QName.__hash__ lxml.etree.QName-class.html#__hash__ -lxml.etree.QName.__ge__ lxml.etree.QName-class.html#__ge__ -lxml.etree.RelaxNG lxml.etree.RelaxNG-class.html -lxml.etree.RelaxNG.__new__ lxml.etree.RelaxNG-class.html#__new__ -lxml.etree._Validator._clear_error_log lxml.etree._Validator-class.html#_clear_error_log -lxml.etree._Validator.assertValid lxml.etree._Validator-class.html#assertValid -lxml.etree._Validator._append_log_message lxml.etree._Validator-class.html#_append_log_message -lxml.etree._Validator.error_log lxml.etree._Validator-class.html#error_log -lxml.etree.RelaxNG.__call__ lxml.etree.RelaxNG-class.html#__call__ -lxml.etree._Validator.assert_ lxml.etree._Validator-class.html#assert_ -lxml.etree._Validator.validate lxml.etree._Validator-class.html#validate -lxml.etree.RelaxNG.__init__ lxml.etree.RelaxNG-class.html#__init__ -lxml.etree.RelaxNGError lxml.etree.RelaxNGError-class.html -lxml.etree.LxmlError.__init__ lxml.etree.LxmlError-class.html#__init__ -lxml.etree.RelaxNGErrorTypes lxml.etree.RelaxNGErrorTypes-class.html -lxml.etree.RelaxNGErrorTypes.RELAXNG_ERR_TEXTWRONG lxml.etree.RelaxNGErrorTypes-class.html#RELAXNG_ERR_TEXTWRONG -lxml.etree.RelaxNGErrorTypes.RELAXNG_ERR_EXTRACONTENT lxml.etree.RelaxNGErrorTypes-class.html#RELAXNG_ERR_EXTRACONTENT -lxml.etree.RelaxNGErrorTypes.RELAXNG_ERR_TYPEVAL lxml.etree.RelaxNGErrorTypes-class.html#RELAXNG_ERR_TYPEVAL -lxml.etree.RelaxNGErrorTypes.RELAXNG_ERR_NODEFINE lxml.etree.RelaxNGErrorTypes-class.html#RELAXNG_ERR_NODEFINE -lxml.etree.RelaxNGErrorTypes.RELAXNG_ERR_NOTELEM lxml.etree.RelaxNGErrorTypes-class.html#RELAXNG_ERR_NOTELEM -lxml.etree.RelaxNGErrorTypes.RELAXNG_ERR_VALUE lxml.etree.RelaxNGErrorTypes-class.html#RELAXNG_ERR_VALUE -lxml.etree.RelaxNGErrorTypes.RELAXNG_ERR_TYPECMP lxml.etree.RelaxNGErrorTypes-class.html#RELAXNG_ERR_TYPECMP -lxml.etree.RelaxNGErrorTypes._getName lxml.etree.RelaxNGErrorTypes-class.html#_getName -lxml.etree.RelaxNGErrorTypes.RELAXNG_ERR_LISTELEM lxml.etree.RelaxNGErrorTypes-class.html#RELAXNG_ERR_LISTELEM -lxml.etree.RelaxNGErrorTypes.RELAXNG_ERR_INTERNAL lxml.etree.RelaxNGErrorTypes-class.html#RELAXNG_ERR_INTERNAL -lxml.etree.RelaxNGErrorTypes.RELAXNG_ERR_DATATYPE lxml.etree.RelaxNGErrorTypes-class.html#RELAXNG_ERR_DATATYPE -lxml.etree.RelaxNGErrorTypes.RELAXNG_ERR_DATAELEM lxml.etree.RelaxNGErrorTypes-class.html#RELAXNG_ERR_DATAELEM -lxml.etree.RelaxNGErrorTypes.RELAXNG_ERR_INVALIDATTR lxml.etree.RelaxNGErrorTypes-class.html#RELAXNG_ERR_INVALIDATTR -lxml.etree.RelaxNGErrorTypes.RELAXNG_ERR_ELEMNAME lxml.etree.RelaxNGErrorTypes-class.html#RELAXNG_ERR_ELEMNAME -lxml.etree.RelaxNGErrorTypes.RELAXNG_ERR_DUPID lxml.etree.RelaxNGErrorTypes-class.html#RELAXNG_ERR_DUPID -lxml.etree.RelaxNGErrorTypes.RELAXNG_ERR_ELEMNOTEMPTY lxml.etree.RelaxNGErrorTypes-class.html#RELAXNG_ERR_ELEMNOTEMPTY -lxml.etree.RelaxNGErrorTypes.RELAXNG_ERR_NOELEM lxml.etree.RelaxNGErrorTypes-class.html#RELAXNG_ERR_NOELEM -lxml.etree.RelaxNGErrorTypes.RELAXNG_ERR_TYPE lxml.etree.RelaxNGErrorTypes-class.html#RELAXNG_ERR_TYPE -lxml.etree.RelaxNGErrorTypes.RELAXNG_OK lxml.etree.RelaxNGErrorTypes-class.html#RELAXNG_OK -lxml.etree.RelaxNGErrorTypes.RELAXNG_ERR_ELEMNONS lxml.etree.RelaxNGErrorTypes-class.html#RELAXNG_ERR_ELEMNONS -lxml.etree.RelaxNGErrorTypes.RELAXNG_ERR_CONTENTVALID lxml.etree.RelaxNGErrorTypes-class.html#RELAXNG_ERR_CONTENTVALID -lxml.etree.RelaxNGErrorTypes.RELAXNG_ERR_LIST lxml.etree.RelaxNGErrorTypes-class.html#RELAXNG_ERR_LIST -lxml.etree.RelaxNGErrorTypes._names lxml.etree.RelaxNGErrorTypes-class.html#_names -lxml.etree.RelaxNGErrorTypes.RELAXNG_ERR_EXTRADATA lxml.etree.RelaxNGErrorTypes-class.html#RELAXNG_ERR_EXTRADATA -lxml.etree.RelaxNGErrorTypes.RELAXNG_ERR_MEMORY lxml.etree.RelaxNGErrorTypes-class.html#RELAXNG_ERR_MEMORY -lxml.etree.RelaxNGErrorTypes.RELAXNG_ERR_NOSTATE lxml.etree.RelaxNGErrorTypes-class.html#RELAXNG_ERR_NOSTATE -lxml.etree.RelaxNGErrorTypes.RELAXNG_ERR_ELEMWRONG lxml.etree.RelaxNGErrorTypes-class.html#RELAXNG_ERR_ELEMWRONG -lxml.etree.RelaxNGErrorTypes.RELAXNG_ERR_LISTEXTRA lxml.etree.RelaxNGErrorTypes-class.html#RELAXNG_ERR_LISTEXTRA -lxml.etree.RelaxNGErrorTypes.RELAXNG_ERR_ATTRNONS lxml.etree.RelaxNGErrorTypes-class.html#RELAXNG_ERR_ATTRNONS -lxml.etree.RelaxNGErrorTypes.RELAXNG_ERR_ELEMWRONGNS lxml.etree.RelaxNGErrorTypes-class.html#RELAXNG_ERR_ELEMWRONGNS -lxml.etree.RelaxNGErrorTypes.RELAXNG_ERR_ATTRNAME lxml.etree.RelaxNGErrorTypes-class.html#RELAXNG_ERR_ATTRNAME -lxml.etree.RelaxNGErrorTypes.RELAXNG_ERR_VALELEM lxml.etree.RelaxNGErrorTypes-class.html#RELAXNG_ERR_VALELEM -lxml.etree.RelaxNGErrorTypes.RELAXNG_ERR_INTERNODATA lxml.etree.RelaxNGErrorTypes-class.html#RELAXNG_ERR_INTERNODATA -lxml.etree.RelaxNGErrorTypes.RELAXNG_ERR_NOGRAMMAR lxml.etree.RelaxNGErrorTypes-class.html#RELAXNG_ERR_NOGRAMMAR -lxml.etree.RelaxNGErrorTypes.RELAXNG_ERR_ELEMEXTRANS lxml.etree.RelaxNGErrorTypes-class.html#RELAXNG_ERR_ELEMEXTRANS -lxml.etree.RelaxNGErrorTypes.RELAXNG_ERR_ATTRWRONGNS lxml.etree.RelaxNGErrorTypes-class.html#RELAXNG_ERR_ATTRWRONGNS -lxml.etree.RelaxNGErrorTypes.RELAXNG_ERR_INTEREXTRA lxml.etree.RelaxNGErrorTypes-class.html#RELAXNG_ERR_INTEREXTRA -lxml.etree.RelaxNGErrorTypes.RELAXNG_ERR_ATTREXTRANS lxml.etree.RelaxNGErrorTypes-class.html#RELAXNG_ERR_ATTREXTRANS -lxml.etree.RelaxNGErrorTypes.RELAXNG_ERR_LACKDATA lxml.etree.RelaxNGErrorTypes-class.html#RELAXNG_ERR_LACKDATA -lxml.etree.RelaxNGErrorTypes.RELAXNG_ERR_LISTEMPTY lxml.etree.RelaxNGErrorTypes-class.html#RELAXNG_ERR_LISTEMPTY -lxml.etree.RelaxNGErrorTypes.RELAXNG_ERR_INTERSEQ lxml.etree.RelaxNGErrorTypes-class.html#RELAXNG_ERR_INTERSEQ -lxml.etree.RelaxNGErrorTypes.RELAXNG_ERR_ATTRVALID lxml.etree.RelaxNGErrorTypes-class.html#RELAXNG_ERR_ATTRVALID -lxml.etree.RelaxNGParseError lxml.etree.RelaxNGParseError-class.html -lxml.etree.LxmlError.__init__ lxml.etree.LxmlError-class.html#__init__ -lxml.etree.RelaxNGValidateError lxml.etree.RelaxNGValidateError-class.html -lxml.etree.LxmlError.__init__ lxml.etree.LxmlError-class.html#__init__ -lxml.etree.Resolver lxml.etree.Resolver-class.html -lxml.etree.Resolver.resolve lxml.etree.Resolver-class.html#resolve -lxml.etree.Resolver.resolve_filename lxml.etree.Resolver-class.html#resolve_filename -lxml.etree.Resolver.__new__ lxml.etree.Resolver-class.html#__new__ -lxml.etree.Resolver.resolve_string lxml.etree.Resolver-class.html#resolve_string -lxml.etree.Resolver.resolve_file lxml.etree.Resolver-class.html#resolve_file -lxml.etree.Resolver.resolve_empty lxml.etree.Resolver-class.html#resolve_empty -lxml.etree.Schematron lxml.etree.Schematron-class.html -lxml.etree.Schematron.__new__ lxml.etree.Schematron-class.html#__new__ -lxml.etree._Validator._clear_error_log lxml.etree._Validator-class.html#_clear_error_log -lxml.etree._Validator.assertValid lxml.etree._Validator-class.html#assertValid -lxml.etree._Validator._append_log_message lxml.etree._Validator-class.html#_append_log_message -lxml.etree._Validator.error_log lxml.etree._Validator-class.html#error_log -lxml.etree.Schematron.__call__ lxml.etree.Schematron-class.html#__call__ -lxml.etree._Validator.assert_ lxml.etree._Validator-class.html#assert_ -lxml.etree._Validator.validate lxml.etree._Validator-class.html#validate -lxml.etree.Schematron.__init__ lxml.etree.Schematron-class.html#__init__ -lxml.etree.SchematronError lxml.etree.SchematronError-class.html -lxml.etree.LxmlError.__init__ lxml.etree.LxmlError-class.html#__init__ -lxml.etree.SchematronParseError lxml.etree.SchematronParseError-class.html -lxml.etree.LxmlError.__init__ lxml.etree.LxmlError-class.html#__init__ -lxml.etree.SchematronValidateError lxml.etree.SchematronValidateError-class.html -lxml.etree.LxmlError.__init__ lxml.etree.LxmlError-class.html#__init__ -lxml.etree.SerialisationError lxml.etree.SerialisationError-class.html -lxml.etree.LxmlError.__init__ lxml.etree.LxmlError-class.html#__init__ -lxml.etree.SiblingsIterator lxml.etree.SiblingsIterator-class.html -lxml.etree.SiblingsIterator.__new__ lxml.etree.SiblingsIterator-class.html#__new__ -lxml.etree._ElementMatchIterator.__next__ lxml.etree._ElementMatchIterator-class.html#__next__ -lxml.etree._ElementMatchIterator.next lxml.etree._ElementMatchIterator-class.html#next -lxml.etree._ElementMatchIterator.__iter__ lxml.etree._ElementMatchIterator-class.html#__iter__ -lxml.etree.TreeBuilder lxml.etree.TreeBuilder-class.html -lxml.etree.TreeBuilder.comment lxml.etree.TreeBuilder-class.html#comment -lxml.etree.TreeBuilder.end lxml.etree.TreeBuilder-class.html#end -lxml.etree.TreeBuilder.__new__ lxml.etree.TreeBuilder-class.html#__new__ -lxml.etree.TreeBuilder.start lxml.etree.TreeBuilder-class.html#start -lxml.etree.TreeBuilder.close lxml.etree.TreeBuilder-class.html#close -lxml.etree.TreeBuilder.pi lxml.etree.TreeBuilder-class.html#pi -lxml.etree.TreeBuilder.data lxml.etree.TreeBuilder-class.html#data -lxml.etree.TreeBuilder.__init__ lxml.etree.TreeBuilder-class.html#__init__ -lxml.etree.XInclude lxml.etree.XInclude-class.html -lxml.etree.XInclude.__new__ lxml.etree.XInclude-class.html#__new__ -lxml.etree.XInclude.error_log lxml.etree.XInclude-class.html#error_log -lxml.etree.XInclude.__call__ lxml.etree.XInclude-class.html#__call__ -lxml.etree.XInclude.__init__ lxml.etree.XInclude-class.html#__init__ -lxml.etree.XIncludeError lxml.etree.XIncludeError-class.html -lxml.etree.LxmlError.__init__ lxml.etree.LxmlError-class.html#__init__ -lxml.etree.XMLParser lxml.etree.XMLParser-class.html -lxml.etree._FeedParser.feed lxml.etree._FeedParser-class.html#feed -lxml.etree._BaseParser.set_element_class_lookup lxml.etree._BaseParser-class.html#set_element_class_lookup -lxml.etree._FeedParser.close lxml.etree._FeedParser-class.html#close -lxml.etree.XMLParser.__init__ lxml.etree.XMLParser-class.html#__init__ -lxml.etree.XMLParser.__new__ lxml.etree.XMLParser-class.html#__new__ -lxml.etree._BaseParser.setElementClassLookup lxml.etree._BaseParser-class.html#setElementClassLookup -lxml.etree._BaseParser.version lxml.etree._BaseParser-class.html#version -lxml.etree._BaseParser.makeelement lxml.etree._BaseParser-class.html#makeelement -lxml.etree._BaseParser.copy lxml.etree._BaseParser-class.html#copy -lxml.etree._BaseParser.resolvers lxml.etree._BaseParser-class.html#resolvers -lxml.etree._BaseParser.target lxml.etree._BaseParser-class.html#target -lxml.etree._BaseParser.error_log lxml.etree._BaseParser-class.html#error_log -lxml.etree._FeedParser.feed_error_log lxml.etree._FeedParser-class.html#feed_error_log -lxml.etree.XMLSchema lxml.etree.XMLSchema-class.html -lxml.etree.XMLSchema.__new__ lxml.etree.XMLSchema-class.html#__new__ -lxml.etree._Validator._clear_error_log lxml.etree._Validator-class.html#_clear_error_log -lxml.etree._Validator.assertValid lxml.etree._Validator-class.html#assertValid -lxml.etree._Validator._append_log_message lxml.etree._Validator-class.html#_append_log_message -lxml.etree._Validator.error_log lxml.etree._Validator-class.html#error_log -lxml.etree.XMLSchema.__call__ lxml.etree.XMLSchema-class.html#__call__ -lxml.etree._Validator.assert_ lxml.etree._Validator-class.html#assert_ -lxml.etree._Validator.validate lxml.etree._Validator-class.html#validate -lxml.etree.XMLSchema.__init__ lxml.etree.XMLSchema-class.html#__init__ -lxml.etree.XMLSchemaError lxml.etree.XMLSchemaError-class.html -lxml.etree.LxmlError.__init__ lxml.etree.LxmlError-class.html#__init__ -lxml.etree.XMLSchemaParseError lxml.etree.XMLSchemaParseError-class.html -lxml.etree.LxmlError.__init__ lxml.etree.LxmlError-class.html#__init__ -lxml.etree.XMLSchemaValidateError lxml.etree.XMLSchemaValidateError-class.html -lxml.etree.LxmlError.__init__ lxml.etree.LxmlError-class.html#__init__ -lxml.etree.XMLSyntaxError lxml.etree.XMLSyntaxError-class.html -lxml.etree.ParseError.__init__ lxml.etree.ParseError-class.html#__init__ -lxml.etree.XPath lxml.etree.XPath-class.html -lxml.etree.XPath.__new__ lxml.etree.XPath-class.html#__new__ -lxml.etree._XPathEvaluatorBase.evaluate lxml.etree._XPathEvaluatorBase-class.html#evaluate -lxml.etree._XPathEvaluatorBase.error_log lxml.etree._XPathEvaluatorBase-class.html#error_log -lxml.etree.XPath.__repr__ lxml.etree.XPath-class.html#__repr__ -lxml.etree.XPath.__call__ lxml.etree.XPath-class.html#__call__ -lxml.etree.XPath.path lxml.etree.XPath-class.html#path -lxml.etree.XPath.__init__ lxml.etree.XPath-class.html#__init__ -lxml.etree.XPathDocumentEvaluator lxml.etree.XPathDocumentEvaluator-class.html -lxml.etree.XPathElementEvaluator.register_namespace lxml.etree.XPathElementEvaluator-class.html#register_namespace -lxml.etree.XPathDocumentEvaluator.__new__ lxml.etree.XPathDocumentEvaluator-class.html#__new__ -lxml.etree._XPathEvaluatorBase.evaluate lxml.etree._XPathEvaluatorBase-class.html#evaluate -lxml.etree._XPathEvaluatorBase.error_log lxml.etree._XPathEvaluatorBase-class.html#error_log -lxml.etree.XPathDocumentEvaluator.__call__ lxml.etree.XPathDocumentEvaluator-class.html#__call__ -lxml.etree.XPathElementEvaluator.register_namespaces lxml.etree.XPathElementEvaluator-class.html#register_namespaces -lxml.etree.XPathDocumentEvaluator.__init__ lxml.etree.XPathDocumentEvaluator-class.html#__init__ -lxml.etree.XPathElementEvaluator lxml.etree.XPathElementEvaluator-class.html -lxml.etree.XPathElementEvaluator.register_namespace lxml.etree.XPathElementEvaluator-class.html#register_namespace -lxml.etree.XPathElementEvaluator.__new__ lxml.etree.XPathElementEvaluator-class.html#__new__ -lxml.etree._XPathEvaluatorBase.evaluate lxml.etree._XPathEvaluatorBase-class.html#evaluate -lxml.etree._XPathEvaluatorBase.error_log lxml.etree._XPathEvaluatorBase-class.html#error_log -lxml.etree.XPathElementEvaluator.__call__ lxml.etree.XPathElementEvaluator-class.html#__call__ -lxml.etree.XPathElementEvaluator.register_namespaces lxml.etree.XPathElementEvaluator-class.html#register_namespaces -lxml.etree.XPathElementEvaluator.__init__ lxml.etree.XPathElementEvaluator-class.html#__init__ -lxml.etree.XPathError lxml.etree.XPathError-class.html -lxml.etree.LxmlError.__init__ lxml.etree.LxmlError-class.html#__init__ -lxml.etree.XPathEvalError lxml.etree.XPathEvalError-class.html -lxml.etree.LxmlError.__init__ lxml.etree.LxmlError-class.html#__init__ -lxml.etree.XPathFunctionError lxml.etree.XPathFunctionError-class.html -lxml.etree.LxmlError.__init__ lxml.etree.LxmlError-class.html#__init__ -lxml.etree.XPathResultError lxml.etree.XPathResultError-class.html -lxml.etree.LxmlError.__init__ lxml.etree.LxmlError-class.html#__init__ -lxml.etree.XPathSyntaxError lxml.etree.XPathSyntaxError-class.html -lxml.etree.LxmlError.__init__ lxml.etree.LxmlError-class.html#__init__ -lxml.etree.XSLT lxml.etree.XSLT-class.html -lxml.etree.XSLT.apply lxml.etree.XSLT-class.html#apply -lxml.etree.XSLT.__init__ lxml.etree.XSLT-class.html#__init__ -lxml.etree.XSLT.__new__ lxml.etree.XSLT-class.html#__new__ -lxml.etree.XSLT.set_global_max_depth lxml.etree.XSLT-class.html#set_global_max_depth -lxml.etree.XSLT.__call__ lxml.etree.XSLT-class.html#__call__ -lxml.etree.XSLT.__deepcopy__ lxml.etree.XSLT-class.html#__deepcopy__ -lxml.etree.XSLT.tostring lxml.etree.XSLT-class.html#tostring -lxml.etree.XSLT.strparam lxml.etree.XSLT-class.html#strparam -lxml.etree.XSLT.error_log lxml.etree.XSLT-class.html#error_log -lxml.etree.XSLT.__copy__ lxml.etree.XSLT-class.html#__copy__ -lxml.etree.XSLTAccessControl lxml.etree.XSLTAccessControl-class.html -lxml.etree.XSLTAccessControl.DENY_WRITE lxml.etree.XSLTAccessControl-class.html#DENY_WRITE -lxml.etree.XSLTAccessControl.__new__ lxml.etree.XSLTAccessControl-class.html#__new__ -lxml.etree.XSLTAccessControl.__repr__ lxml.etree.XSLTAccessControl-class.html#__repr__ -lxml.etree.XSLTAccessControl.DENY_ALL lxml.etree.XSLTAccessControl-class.html#DENY_ALL -lxml.etree.XSLTAccessControl.options lxml.etree.XSLTAccessControl-class.html#options -lxml.etree.XSLTAccessControl.__init__ lxml.etree.XSLTAccessControl-class.html#__init__ -lxml.etree.XSLTApplyError lxml.etree.XSLTApplyError-class.html -lxml.etree.LxmlError.__init__ lxml.etree.LxmlError-class.html#__init__ -lxml.etree.XSLTError lxml.etree.XSLTError-class.html -lxml.etree.LxmlError.__init__ lxml.etree.LxmlError-class.html#__init__ -lxml.etree.XSLTExtension lxml.etree.XSLTExtension-class.html -lxml.etree.XSLTExtension.execute lxml.etree.XSLTExtension-class.html#execute -lxml.etree.XSLTExtension.__new__ lxml.etree.XSLTExtension-class.html#__new__ -lxml.etree.XSLTExtension.apply_templates lxml.etree.XSLTExtension-class.html#apply_templates -lxml.etree.XSLTExtension.process_children lxml.etree.XSLTExtension-class.html#process_children -lxml.etree.XSLTExtensionError lxml.etree.XSLTExtensionError-class.html -lxml.etree.LxmlError.__init__ lxml.etree.LxmlError-class.html#__init__ -lxml.etree.XSLTParseError lxml.etree.XSLTParseError-class.html -lxml.etree.LxmlError.__init__ lxml.etree.LxmlError-class.html#__init__ -lxml.etree.XSLTSaveError lxml.etree.XSLTSaveError-class.html -lxml.etree.LxmlError.__init__ lxml.etree.LxmlError-class.html#__init__ -lxml.etree._Attrib lxml.etree._Attrib-class.html -lxml.etree._Attrib.iteritems lxml.etree._Attrib-class.html#iteritems -lxml.etree._Attrib.pop lxml.etree._Attrib-class.html#pop -lxml.etree._Attrib.has_key lxml.etree._Attrib-class.html#has_key -lxml.etree._Attrib.__lt__ lxml.etree._Attrib-class.html#__lt__ -lxml.etree._Attrib.__new__ lxml.etree._Attrib-class.html#__new__ -lxml.etree._Attrib.__contains__ lxml.etree._Attrib-class.html#__contains__ -lxml.etree._Attrib.itervalues lxml.etree._Attrib-class.html#itervalues -lxml.etree._Attrib.__len__ lxml.etree._Attrib-class.html#__len__ -lxml.etree._Attrib.__ne__ lxml.etree._Attrib-class.html#__ne__ -lxml.etree._Attrib.__getitem__ lxml.etree._Attrib-class.html#__getitem__ -lxml.etree._Attrib.get lxml.etree._Attrib-class.html#get -lxml.etree._Attrib.keys lxml.etree._Attrib-class.html#keys -lxml.etree._Attrib.update lxml.etree._Attrib-class.html#update -lxml.etree._Attrib.__iter__ lxml.etree._Attrib-class.html#__iter__ -lxml.etree._Attrib.__gt__ lxml.etree._Attrib-class.html#__gt__ -lxml.etree._Attrib.__eq__ lxml.etree._Attrib-class.html#__eq__ -lxml.etree._Attrib.iterkeys lxml.etree._Attrib-class.html#iterkeys -lxml.etree._Attrib.__delitem__ lxml.etree._Attrib-class.html#__delitem__ -lxml.etree._Attrib.__nonzero__ lxml.etree._Attrib-class.html#__nonzero__ -lxml.etree._Attrib.items lxml.etree._Attrib-class.html#items -lxml.etree._Attrib.clear lxml.etree._Attrib-class.html#clear -lxml.etree._Attrib.__setitem__ lxml.etree._Attrib-class.html#__setitem__ -lxml.etree._Attrib.__le__ lxml.etree._Attrib-class.html#__le__ -lxml.etree._Attrib.values lxml.etree._Attrib-class.html#values -lxml.etree._Attrib.__repr__ lxml.etree._Attrib-class.html#__repr__ -lxml.etree._Attrib.__ge__ lxml.etree._Attrib-class.html#__ge__ -lxml.etree._BaseErrorLog lxml.etree._BaseErrorLog-class.html -lxml.etree._BaseErrorLog.__new__ lxml.etree._BaseErrorLog-class.html#__new__ -lxml.etree._BaseErrorLog.receive lxml.etree._BaseErrorLog-class.html#receive -lxml.etree._BaseErrorLog.last_error lxml.etree._BaseErrorLog-class.html#last_error -lxml.etree._BaseErrorLog.__repr__ lxml.etree._BaseErrorLog-class.html#__repr__ -lxml.etree._BaseErrorLog.copy lxml.etree._BaseErrorLog-class.html#copy -lxml.etree._BaseErrorLog.__init__ lxml.etree._BaseErrorLog-class.html#__init__ -lxml.etree._BaseParser lxml.etree._BaseParser-class.html -lxml.etree._BaseParser.set_element_class_lookup lxml.etree._BaseParser-class.html#set_element_class_lookup -lxml.etree._BaseParser.__init__ lxml.etree._BaseParser-class.html#__init__ -lxml.etree._BaseParser.__new__ lxml.etree._BaseParser-class.html#__new__ -lxml.etree._BaseParser.setElementClassLookup lxml.etree._BaseParser-class.html#setElementClassLookup -lxml.etree._BaseParser.version lxml.etree._BaseParser-class.html#version -lxml.etree._BaseParser.makeelement lxml.etree._BaseParser-class.html#makeelement -lxml.etree._BaseParser.copy lxml.etree._BaseParser-class.html#copy -lxml.etree._BaseParser.resolvers lxml.etree._BaseParser-class.html#resolvers -lxml.etree._BaseParser.target lxml.etree._BaseParser-class.html#target -lxml.etree._BaseParser.error_log lxml.etree._BaseParser-class.html#error_log -lxml.etree._Comment lxml.etree._Comment-class.html -lxml.etree._Element.getprevious lxml.etree._Element-class.html#getprevious -lxml.etree._Element.getparent lxml.etree._Element-class.html#getparent -lxml.etree._Element.sourceline lxml.etree._Element-class.html#sourceline -lxml.etree._Element.iterfind lxml.etree._Element-class.html#iterfind -lxml.etree._Element._init lxml.etree._Element-class.html#_init -lxml.etree._Element.nsmap lxml.etree._Element-class.html#nsmap -lxml.etree._Element.replace lxml.etree._Element-class.html#replace -lxml.etree._Element.prefix lxml.etree._Element-class.html#prefix -lxml.etree._Comment.tag lxml.etree._Comment-class.html#tag -lxml.etree._Element.iter lxml.etree._Element-class.html#iter -lxml.etree._Element.addprevious lxml.etree._Element-class.html#addprevious -lxml.etree._Element.addnext lxml.etree._Element-class.html#addnext -lxml.etree._Element.find lxml.etree._Element-class.html#find -lxml.etree._Element.getnext lxml.etree._Element-class.html#getnext -lxml.etree._Element.index lxml.etree._Element-class.html#index -lxml.etree._Comment.__new__ lxml.etree._Comment-class.html#__new__ -lxml.etree._Element.__contains__ lxml.etree._Element-class.html#__contains__ -lxml.etree._Element.findtext lxml.etree._Element-class.html#findtext -lxml.etree._Element.tail lxml.etree._Element-class.html#tail -lxml.etree._Element.getroottree lxml.etree._Element-class.html#getroottree -lxml.etree._Element.iterdescendants lxml.etree._Element-class.html#iterdescendants -lxml.etree._Element.getchildren lxml.etree._Element-class.html#getchildren -lxml.etree._Element.xpath lxml.etree._Element-class.html#xpath -lxml.etree._Element.__deepcopy__ lxml.etree._Element-class.html#__deepcopy__ -lxml.etree._Element.makeelement lxml.etree._Element-class.html#makeelement -lxml.etree._Element.base lxml.etree._Element-class.html#base -lxml.etree._Element.iterchildren lxml.etree._Element-class.html#iterchildren -lxml.etree._Element.iterancestors lxml.etree._Element-class.html#iterancestors -lxml.etree._Element.extend lxml.etree._Element-class.html#extend -lxml.etree._Element.__reversed__ lxml.etree._Element-class.html#__reversed__ -lxml.etree._Element.itersiblings lxml.etree._Element-class.html#itersiblings -lxml.etree._Element.__nonzero__ lxml.etree._Element-class.html#__nonzero__ -lxml.etree._Element.clear lxml.etree._Element-class.html#clear -lxml.etree._Element.itertext lxml.etree._Element-class.html#itertext -lxml.etree._Element.findall lxml.etree._Element-class.html#findall -lxml.etree._Element.__iter__ lxml.etree._Element-class.html#__iter__ -lxml.etree._Element.remove lxml.etree._Element-class.html#remove -lxml.etree._Comment.__repr__ lxml.etree._Comment-class.html#__repr__ -lxml.etree._Element.getiterator lxml.etree._Element-class.html#getiterator -lxml.etree._Element.__copy__ lxml.etree._Element-class.html#__copy__ -lxml.etree._Document lxml.etree._Document-class.html -lxml.etree._Document.__new__ lxml.etree._Document-class.html#__new__ -lxml.etree._DomainErrorLog lxml.etree._DomainErrorLog-class.html -lxml.etree._ListErrorLog.filter_domains lxml.etree._ListErrorLog-class.html#filter_domains -lxml.etree._BaseErrorLog.last_error lxml.etree._BaseErrorLog-class.html#last_error -lxml.etree._ListErrorLog.filter_from_warnings lxml.etree._ListErrorLog-class.html#filter_from_warnings -lxml.etree._DomainErrorLog.__init__ lxml.etree._DomainErrorLog-class.html#__init__ -lxml.etree._DomainErrorLog.__new__ lxml.etree._DomainErrorLog-class.html#__new__ -lxml.etree._ListErrorLog.__contains__ lxml.etree._ListErrorLog-class.html#__contains__ -lxml.etree._ListErrorLog.filter_from_level lxml.etree._ListErrorLog-class.html#filter_from_level -lxml.etree._ListErrorLog.__len__ lxml.etree._ListErrorLog-class.html#__len__ -lxml.etree._ErrorLog.__exit__ lxml.etree._ErrorLog-class.html#__exit__ -lxml.etree._ListErrorLog.__getitem__ lxml.etree._ListErrorLog-class.html#__getitem__ -lxml.etree._ListErrorLog.filter_levels lxml.etree._ListErrorLog-class.html#filter_levels -lxml.etree._ErrorLog.__iter__ lxml.etree._ErrorLog-class.html#__iter__ -lxml.etree._ErrorLog.copy lxml.etree._ErrorLog-class.html#copy -lxml.etree._ListErrorLog.__nonzero__ lxml.etree._ListErrorLog-class.html#__nonzero__ -lxml.etree._ListErrorLog.filter_from_fatals lxml.etree._ListErrorLog-class.html#filter_from_fatals -lxml.etree._DomainErrorLog.receive lxml.etree._DomainErrorLog-class.html#receive -lxml.etree._ErrorLog.clear lxml.etree._ErrorLog-class.html#clear -lxml.etree._ListErrorLog.filter_from_errors lxml.etree._ListErrorLog-class.html#filter_from_errors -lxml.etree._ListErrorLog.filter_types lxml.etree._ListErrorLog-class.html#filter_types -lxml.etree._ListErrorLog.__repr__ lxml.etree._ListErrorLog-class.html#__repr__ -lxml.etree._Element lxml.etree._Element-class.html -lxml.etree._Element.getprevious lxml.etree._Element-class.html#getprevious -lxml.etree._Element.set lxml.etree._Element-class.html#set -lxml.etree._Element.getparent lxml.etree._Element-class.html#getparent -lxml.etree._Element.sourceline lxml.etree._Element-class.html#sourceline -lxml.etree._Element.text lxml.etree._Element-class.html#text -lxml.etree._Element.iterfind lxml.etree._Element-class.html#iterfind -lxml.etree._Element._init lxml.etree._Element-class.html#_init -lxml.etree._Element.replace lxml.etree._Element-class.html#replace -lxml.etree._Element.prefix lxml.etree._Element-class.html#prefix -lxml.etree._Element.tag lxml.etree._Element-class.html#tag -lxml.etree._Element.remove lxml.etree._Element-class.html#remove -lxml.etree._Element.addnext lxml.etree._Element-class.html#addnext -lxml.etree._Element.addprevious lxml.etree._Element-class.html#addprevious -lxml.etree._Element.find lxml.etree._Element-class.html#find -lxml.etree._Element.append lxml.etree._Element-class.html#append -lxml.etree._Element.getnext lxml.etree._Element-class.html#getnext -lxml.etree._Element.index lxml.etree._Element-class.html#index -lxml.etree._Element.__new__ lxml.etree._Element-class.html#__new__ -lxml.etree._Element.__contains__ lxml.etree._Element-class.html#__contains__ -lxml.etree._Element.findtext lxml.etree._Element-class.html#findtext -lxml.etree._Element.getchildren lxml.etree._Element-class.html#getchildren -lxml.etree._Element.getroottree lxml.etree._Element-class.html#getroottree -lxml.etree._Element.iterdescendants lxml.etree._Element-class.html#iterdescendants -lxml.etree._Element.tail lxml.etree._Element-class.html#tail -lxml.etree._Element.__delitem__ lxml.etree._Element-class.html#__delitem__ -lxml.etree._Element.__len__ lxml.etree._Element-class.html#__len__ -lxml.etree._Element.xpath lxml.etree._Element-class.html#xpath -lxml.etree._Element.__getitem__ lxml.etree._Element-class.html#__getitem__ -lxml.etree._Element.get lxml.etree._Element-class.html#get -lxml.etree._Element.keys lxml.etree._Element-class.html#keys -lxml.etree._Element.__deepcopy__ lxml.etree._Element-class.html#__deepcopy__ -lxml.etree._Element.makeelement lxml.etree._Element-class.html#makeelement -lxml.etree._Element.__iter__ lxml.etree._Element-class.html#__iter__ -lxml.etree._Element.base lxml.etree._Element-class.html#base -lxml.etree._Element.findall lxml.etree._Element-class.html#findall -lxml.etree._Element.iterchildren lxml.etree._Element-class.html#iterchildren -lxml.etree._Element.iterancestors lxml.etree._Element-class.html#iterancestors -lxml.etree._Element.extend lxml.etree._Element-class.html#extend -lxml.etree._Element.insert lxml.etree._Element-class.html#insert -lxml.etree._Element.__reversed__ lxml.etree._Element-class.html#__reversed__ -lxml.etree._Element.itersiblings lxml.etree._Element-class.html#itersiblings -lxml.etree._Element.__nonzero__ lxml.etree._Element-class.html#__nonzero__ -lxml.etree._Element.items lxml.etree._Element-class.html#items -lxml.etree._Element.clear lxml.etree._Element-class.html#clear -lxml.etree._Element.itertext lxml.etree._Element-class.html#itertext -lxml.etree._Element.nsmap lxml.etree._Element-class.html#nsmap -lxml.etree._Element.__setitem__ lxml.etree._Element-class.html#__setitem__ -lxml.etree._Element.iter lxml.etree._Element-class.html#iter -lxml.etree._Element.values lxml.etree._Element-class.html#values -lxml.etree._Element.__repr__ lxml.etree._Element-class.html#__repr__ -lxml.etree._Element.getiterator lxml.etree._Element-class.html#getiterator -lxml.etree._Element.attrib lxml.etree._Element-class.html#attrib -lxml.etree._Element.__copy__ lxml.etree._Element-class.html#__copy__ -lxml.etree._ElementIterator lxml.etree._ElementIterator-class.html -lxml.etree._ElementIterator.__new__ lxml.etree._ElementIterator-class.html#__new__ -lxml.etree._ElementIterator.__next__ lxml.etree._ElementIterator-class.html#__next__ -lxml.etree._ElementIterator.next lxml.etree._ElementIterator-class.html#next -lxml.etree._ElementIterator.__iter__ lxml.etree._ElementIterator-class.html#__iter__ -lxml.etree._ElementMatchIterator lxml.etree._ElementMatchIterator-class.html -lxml.etree._ElementMatchIterator.__new__ lxml.etree._ElementMatchIterator-class.html#__new__ -lxml.etree._ElementMatchIterator.__next__ lxml.etree._ElementMatchIterator-class.html#__next__ -lxml.etree._ElementMatchIterator.next lxml.etree._ElementMatchIterator-class.html#next -lxml.etree._ElementMatchIterator.__iter__ lxml.etree._ElementMatchIterator-class.html#__iter__ -lxml.etree._ElementStringResult lxml.etree._ElementStringResult-class.html -str.upper str-class.html#upper -lxml.etree._ElementStringResult.getparent lxml.etree._ElementStringResult-class.html#getparent -str.__getslice__ str-class.html#__getslice__ -str.startswith str-class.html#startswith -str.lstrip str-class.html#lstrip -str.capitalize str-class.html#capitalize -str.__str__ str-class.html#__str__ -str.__getattribute__ str-class.html#__getattribute__ -str.rpartition str-class.html#rpartition -str.replace str-class.html#replace -str.isdigit str-class.html#isdigit -str.endswith str-class.html#endswith -str.splitlines str-class.html#splitlines -str.expandtabs str-class.html#expandtabs -str.strip str-class.html#strip -str.__rmul__ str-class.html#__rmul__ -str.__lt__ str-class.html#__lt__ -str.ljust str-class.html#ljust -str.__rmod__ str-class.html#__rmod__ -str.index str-class.html#index -str.__getnewargs__ str-class.html#__getnewargs__ -str.__new__ str-class.html#__new__ -str.isalnum str-class.html#isalnum -str.__contains__ str-class.html#__contains__ -str.rindex str-class.html#rindex -str.__eq__ str-class.html#__eq__ -str.__format__ str-class.html#__format__ -str.find str-class.html#find -str.decode str-class.html#decode -str.isalpha str-class.html#isalpha -str.split str-class.html#split -str.rstrip str-class.html#rstrip -str.encode str-class.html#encode -str._formatter_parser str-class.html#_formatter_parser -str.translate str-class.html#translate -str.isspace str-class.html#isspace -str.__len__ str-class.html#__len__ -str.__mul__ str-class.html#__mul__ -str.__ne__ str-class.html#__ne__ -str.__getitem__ str-class.html#__getitem__ -str.format str-class.html#format -str.rjust str-class.html#rjust -str.swapcase str-class.html#swapcase -str.islower str-class.html#islower -str.zfill str-class.html#zfill -str.__add__ str-class.html#__add__ -str.__gt__ str-class.html#__gt__ -str.rsplit str-class.html#rsplit -str.__sizeof__ str-class.html#__sizeof__ -str.count str-class.html#count -str.lower str-class.html#lower -str.join str-class.html#join -str.center str-class.html#center -str.__mod__ str-class.html#__mod__ -str.partition str-class.html#partition -str.rfind str-class.html#rfind -str.istitle str-class.html#istitle -str.__le__ str-class.html#__le__ -str.__repr__ str-class.html#__repr__ -str._formatter_field_name_split str-class.html#_formatter_field_name_split -str.__hash__ str-class.html#__hash__ -str.title str-class.html#title -str.isupper str-class.html#isupper -str.__ge__ str-class.html#__ge__ -lxml.etree._ElementTagMatcher lxml.etree._ElementTagMatcher-class.html -lxml.etree._ElementTagMatcher.__new__ lxml.etree._ElementTagMatcher-class.html#__new__ -lxml.etree._ElementTree lxml.etree._ElementTree-class.html -lxml.etree._ElementTree.getroot lxml.etree._ElementTree-class.html#getroot -lxml.etree._ElementTree.iterfind lxml.etree._ElementTree-class.html#iterfind -lxml.etree._ElementTree.parse lxml.etree._ElementTree-class.html#parse -lxml.etree._ElementTree.relaxng lxml.etree._ElementTree-class.html#relaxng -lxml.etree._ElementTree.find lxml.etree._ElementTree-class.html#find -lxml.etree._ElementTree.__new__ lxml.etree._ElementTree-class.html#__new__ -lxml.etree._ElementTree.findtext lxml.etree._ElementTree-class.html#findtext -lxml.etree._ElementTree.findall lxml.etree._ElementTree-class.html#findall -lxml.etree._ElementTree.write lxml.etree._ElementTree-class.html#write -lxml.etree._ElementTree._setroot lxml.etree._ElementTree-class.html#_setroot -lxml.etree._ElementTree.xpath lxml.etree._ElementTree-class.html#xpath -lxml.etree._ElementTree.parser lxml.etree._ElementTree-class.html#parser -lxml.etree._ElementTree.xslt lxml.etree._ElementTree-class.html#xslt -lxml.etree._ElementTree.__deepcopy__ lxml.etree._ElementTree-class.html#__deepcopy__ -lxml.etree._ElementTree.getpath lxml.etree._ElementTree-class.html#getpath -lxml.etree._ElementTree.write_c14n lxml.etree._ElementTree-class.html#write_c14n -lxml.etree._ElementTree.xmlschema lxml.etree._ElementTree-class.html#xmlschema -lxml.etree._ElementTree.xinclude lxml.etree._ElementTree-class.html#xinclude -lxml.etree._ElementTree.docinfo lxml.etree._ElementTree-class.html#docinfo -lxml.etree._ElementTree.getiterator lxml.etree._ElementTree-class.html#getiterator -lxml.etree._ElementTree.iter lxml.etree._ElementTree-class.html#iter -lxml.etree._ElementTree.__copy__ lxml.etree._ElementTree-class.html#__copy__ -lxml.etree._ElementUnicodeResult lxml.etree._ElementUnicodeResult-class.html -lxml.etree._ElementUnicodeResult.getparent lxml.etree._ElementUnicodeResult-class.html#getparent -lxml.etree._ElementUnicodeResult.is_attribute lxml.etree._ElementUnicodeResult-class.html#is_attribute -lxml.etree._ElementUnicodeResult.__new__ lxml.etree._ElementUnicodeResult-class.html#__new__ -lxml.etree._ElementUnicodeResult.is_text lxml.etree._ElementUnicodeResult-class.html#is_text -lxml.etree._ElementUnicodeResult.attrname lxml.etree._ElementUnicodeResult-class.html#attrname -lxml.etree._ElementUnicodeResult.is_tail lxml.etree._ElementUnicodeResult-class.html#is_tail -lxml.etree._Entity lxml.etree._Entity-class.html -lxml.etree._Element.getprevious lxml.etree._Element-class.html#getprevious -lxml.etree._Element.getparent lxml.etree._Element-class.html#getparent -lxml.etree._Element.sourceline lxml.etree._Element-class.html#sourceline -lxml.etree._Entity.text lxml.etree._Entity-class.html#text -lxml.etree._Element.iterfind lxml.etree._Element-class.html#iterfind -lxml.etree._Element._init lxml.etree._Element-class.html#_init -lxml.etree._Element.nsmap lxml.etree._Element-class.html#nsmap -lxml.etree._Element.replace lxml.etree._Element-class.html#replace -lxml.etree._Element.prefix lxml.etree._Element-class.html#prefix -lxml.etree._Entity.tag lxml.etree._Entity-class.html#tag -lxml.etree._Element.iter lxml.etree._Element-class.html#iter -lxml.etree._Element.addprevious lxml.etree._Element-class.html#addprevious -lxml.etree._Element.addnext lxml.etree._Element-class.html#addnext -lxml.etree._Element.find lxml.etree._Element-class.html#find -lxml.etree._Element.getnext lxml.etree._Element-class.html#getnext -lxml.etree._Element.index lxml.etree._Element-class.html#index -lxml.etree._Entity.__new__ lxml.etree._Entity-class.html#__new__ -lxml.etree._Element.__contains__ lxml.etree._Element-class.html#__contains__ -lxml.etree._Element.findtext lxml.etree._Element-class.html#findtext -lxml.etree._Element.tail lxml.etree._Element-class.html#tail -lxml.etree._Element.getroottree lxml.etree._Element-class.html#getroottree -lxml.etree._Element.iterdescendants lxml.etree._Element-class.html#iterdescendants -lxml.etree._Element.getchildren lxml.etree._Element-class.html#getchildren -lxml.etree._Element.xpath lxml.etree._Element-class.html#xpath -lxml.etree._Element.__deepcopy__ lxml.etree._Element-class.html#__deepcopy__ -lxml.etree._Element.makeelement lxml.etree._Element-class.html#makeelement -lxml.etree._Element.base lxml.etree._Element-class.html#base -lxml.etree._Element.iterchildren lxml.etree._Element-class.html#iterchildren -lxml.etree._Element.iterancestors lxml.etree._Element-class.html#iterancestors -lxml.etree._Element.extend lxml.etree._Element-class.html#extend -lxml.etree._Element.__reversed__ lxml.etree._Element-class.html#__reversed__ -lxml.etree._Element.itersiblings lxml.etree._Element-class.html#itersiblings -lxml.etree._Element.__nonzero__ lxml.etree._Element-class.html#__nonzero__ -lxml.etree._Entity.name lxml.etree._Entity-class.html#name -lxml.etree._Element.clear lxml.etree._Element-class.html#clear -lxml.etree._Element.itertext lxml.etree._Element-class.html#itertext -lxml.etree._Element.findall lxml.etree._Element-class.html#findall -lxml.etree._Element.__iter__ lxml.etree._Element-class.html#__iter__ -lxml.etree._Element.remove lxml.etree._Element-class.html#remove -lxml.etree._Entity.__repr__ lxml.etree._Entity-class.html#__repr__ -lxml.etree._Element.getiterator lxml.etree._Element-class.html#getiterator -lxml.etree._Element.__copy__ lxml.etree._Element-class.html#__copy__ -lxml.etree._ErrorLog lxml.etree._ErrorLog-class.html -lxml.etree._ListErrorLog.filter_domains lxml.etree._ListErrorLog-class.html#filter_domains -lxml.etree._BaseErrorLog.last_error lxml.etree._BaseErrorLog-class.html#last_error -lxml.etree._ListErrorLog.filter_from_warnings lxml.etree._ListErrorLog-class.html#filter_from_warnings -lxml.etree._ErrorLog.__init__ lxml.etree._ErrorLog-class.html#__init__ -lxml.etree._ErrorLog.__new__ lxml.etree._ErrorLog-class.html#__new__ -lxml.etree._ListErrorLog.__contains__ lxml.etree._ListErrorLog-class.html#__contains__ -lxml.etree._ListErrorLog.filter_from_level lxml.etree._ListErrorLog-class.html#filter_from_level -lxml.etree._ListErrorLog.__len__ lxml.etree._ListErrorLog-class.html#__len__ -lxml.etree._ErrorLog.__exit__ lxml.etree._ErrorLog-class.html#__exit__ -lxml.etree._ListErrorLog.__getitem__ lxml.etree._ListErrorLog-class.html#__getitem__ -lxml.etree._ListErrorLog.filter_levels lxml.etree._ListErrorLog-class.html#filter_levels -lxml.etree._ErrorLog.__iter__ lxml.etree._ErrorLog-class.html#__iter__ -lxml.etree._ErrorLog.copy lxml.etree._ErrorLog-class.html#copy -lxml.etree._ListErrorLog.__nonzero__ lxml.etree._ListErrorLog-class.html#__nonzero__ -lxml.etree._ListErrorLog.filter_from_fatals lxml.etree._ListErrorLog-class.html#filter_from_fatals -lxml.etree._ErrorLog.receive lxml.etree._ErrorLog-class.html#receive -lxml.etree._ErrorLog.clear lxml.etree._ErrorLog-class.html#clear -lxml.etree._ListErrorLog.filter_from_errors lxml.etree._ListErrorLog-class.html#filter_from_errors -lxml.etree._ListErrorLog.filter_types lxml.etree._ListErrorLog-class.html#filter_types -lxml.etree._ListErrorLog.__repr__ lxml.etree._ListErrorLog-class.html#__repr__ -lxml.etree._FeedParser lxml.etree._FeedParser-class.html -lxml.etree._FeedParser.feed lxml.etree._FeedParser-class.html#feed -lxml.etree._BaseParser.set_element_class_lookup lxml.etree._BaseParser-class.html#set_element_class_lookup -lxml.etree._FeedParser.close lxml.etree._FeedParser-class.html#close -lxml.etree._BaseParser.__init__ lxml.etree._BaseParser-class.html#__init__ -lxml.etree._FeedParser.__new__ lxml.etree._FeedParser-class.html#__new__ -lxml.etree._BaseParser.setElementClassLookup lxml.etree._BaseParser-class.html#setElementClassLookup -lxml.etree._BaseParser.version lxml.etree._BaseParser-class.html#version -lxml.etree._BaseParser.makeelement lxml.etree._BaseParser-class.html#makeelement -lxml.etree._BaseParser.copy lxml.etree._BaseParser-class.html#copy -lxml.etree._BaseParser.resolvers lxml.etree._BaseParser-class.html#resolvers -lxml.etree._BaseParser.target lxml.etree._BaseParser-class.html#target -lxml.etree._BaseParser.error_log lxml.etree._BaseParser-class.html#error_log -lxml.etree._FeedParser.feed_error_log lxml.etree._FeedParser-class.html#feed_error_log -lxml.etree._IDDict lxml.etree._IDDict-class.html -lxml.etree._IDDict.has_key lxml.etree._IDDict-class.html#has_key -lxml.etree._IDDict.__new__ lxml.etree._IDDict-class.html#__new__ -lxml.etree._IDDict.__contains__ lxml.etree._IDDict-class.html#__contains__ -lxml.etree._IDDict.itervalues lxml.etree._IDDict-class.html#itervalues -lxml.etree._IDDict.__len__ lxml.etree._IDDict-class.html#__len__ -lxml.etree._IDDict.__getitem__ lxml.etree._IDDict-class.html#__getitem__ -lxml.etree._IDDict.get lxml.etree._IDDict-class.html#get -lxml.etree._IDDict.keys lxml.etree._IDDict-class.html#keys -lxml.etree._IDDict.__iter__ lxml.etree._IDDict-class.html#__iter__ -lxml.etree._IDDict.iteritems lxml.etree._IDDict-class.html#iteritems -lxml.etree._IDDict.copy lxml.etree._IDDict-class.html#copy -lxml.etree._IDDict.iterkeys lxml.etree._IDDict-class.html#iterkeys -lxml.etree._IDDict.items lxml.etree._IDDict-class.html#items -lxml.etree._IDDict.values lxml.etree._IDDict-class.html#values -lxml.etree._IDDict.__repr__ lxml.etree._IDDict-class.html#__repr__ -lxml.etree._ListErrorLog lxml.etree._ListErrorLog-class.html -lxml.etree._ListErrorLog.filter_domains lxml.etree._ListErrorLog-class.html#filter_domains -lxml.etree._BaseErrorLog.last_error lxml.etree._BaseErrorLog-class.html#last_error -lxml.etree._ListErrorLog.filter_from_warnings lxml.etree._ListErrorLog-class.html#filter_from_warnings -lxml.etree._ListErrorLog.__init__ lxml.etree._ListErrorLog-class.html#__init__ -lxml.etree._ListErrorLog.__new__ lxml.etree._ListErrorLog-class.html#__new__ -lxml.etree._ListErrorLog.__contains__ lxml.etree._ListErrorLog-class.html#__contains__ -lxml.etree._ListErrorLog.filter_from_level lxml.etree._ListErrorLog-class.html#filter_from_level -lxml.etree._ListErrorLog.__len__ lxml.etree._ListErrorLog-class.html#__len__ -lxml.etree._ListErrorLog.__getitem__ lxml.etree._ListErrorLog-class.html#__getitem__ -lxml.etree._ListErrorLog.filter_levels lxml.etree._ListErrorLog-class.html#filter_levels -lxml.etree._ListErrorLog.__iter__ lxml.etree._ListErrorLog-class.html#__iter__ -lxml.etree._ListErrorLog.copy lxml.etree._ListErrorLog-class.html#copy -lxml.etree._ListErrorLog.__nonzero__ lxml.etree._ListErrorLog-class.html#__nonzero__ -lxml.etree._ListErrorLog.filter_from_fatals lxml.etree._ListErrorLog-class.html#filter_from_fatals -lxml.etree._BaseErrorLog.receive lxml.etree._BaseErrorLog-class.html#receive -lxml.etree._ListErrorLog.filter_from_errors lxml.etree._ListErrorLog-class.html#filter_from_errors -lxml.etree._ListErrorLog.filter_types lxml.etree._ListErrorLog-class.html#filter_types -lxml.etree._ListErrorLog.__repr__ lxml.etree._ListErrorLog-class.html#__repr__ -lxml.etree._LogEntry lxml.etree._LogEntry-class.html -lxml.etree._LogEntry.domain lxml.etree._LogEntry-class.html#domain -lxml.etree._LogEntry.message lxml.etree._LogEntry-class.html#message -lxml.etree._LogEntry.level_name lxml.etree._LogEntry-class.html#level_name -lxml.etree._LogEntry.__new__ lxml.etree._LogEntry-class.html#__new__ -lxml.etree._LogEntry.type_name lxml.etree._LogEntry-class.html#type_name -lxml.etree._LogEntry.domain_name lxml.etree._LogEntry-class.html#domain_name -lxml.etree._LogEntry.filename lxml.etree._LogEntry-class.html#filename -lxml.etree._LogEntry.type lxml.etree._LogEntry-class.html#type -lxml.etree._LogEntry.line lxml.etree._LogEntry-class.html#line -lxml.etree._LogEntry.level lxml.etree._LogEntry-class.html#level -lxml.etree._LogEntry.column lxml.etree._LogEntry-class.html#column -lxml.etree._LogEntry.__repr__ lxml.etree._LogEntry-class.html#__repr__ -lxml.etree._ProcessingInstruction lxml.etree._ProcessingInstruction-class.html -lxml.etree._Element.getprevious lxml.etree._Element-class.html#getprevious -lxml.etree._Element.getparent lxml.etree._Element-class.html#getparent -lxml.etree._Element.sourceline lxml.etree._Element-class.html#sourceline -lxml.etree._Element.iterfind lxml.etree._Element-class.html#iterfind -lxml.etree._Element._init lxml.etree._Element-class.html#_init -lxml.etree._Element.nsmap lxml.etree._Element-class.html#nsmap -lxml.etree._Element.replace lxml.etree._Element-class.html#replace -lxml.etree._Element.prefix lxml.etree._Element-class.html#prefix -lxml.etree._ProcessingInstruction.tag lxml.etree._ProcessingInstruction-class.html#tag -lxml.etree._Element.iter lxml.etree._Element-class.html#iter -lxml.etree._Element.addprevious lxml.etree._Element-class.html#addprevious -lxml.etree._Element.addnext lxml.etree._Element-class.html#addnext -lxml.etree._Element.find lxml.etree._Element-class.html#find -lxml.etree._Element.getnext lxml.etree._Element-class.html#getnext -lxml.etree._Element.index lxml.etree._Element-class.html#index -lxml.etree._ProcessingInstruction.__new__ lxml.etree._ProcessingInstruction-class.html#__new__ -lxml.etree._Element.__contains__ lxml.etree._Element-class.html#__contains__ -lxml.etree._Element.findtext lxml.etree._Element-class.html#findtext -lxml.etree._Element.tail lxml.etree._Element-class.html#tail -lxml.etree._Element.getroottree lxml.etree._Element-class.html#getroottree -lxml.etree._Element.iterdescendants lxml.etree._Element-class.html#iterdescendants -lxml.etree._Element.getchildren lxml.etree._Element-class.html#getchildren -lxml.etree._Element.xpath lxml.etree._Element-class.html#xpath -lxml.etree._ProcessingInstruction.get lxml.etree._ProcessingInstruction-class.html#get -lxml.etree._Element.__deepcopy__ lxml.etree._Element-class.html#__deepcopy__ -lxml.etree._Element.makeelement lxml.etree._Element-class.html#makeelement -lxml.etree._Element.base lxml.etree._Element-class.html#base -lxml.etree._Element.iterchildren lxml.etree._Element-class.html#iterchildren -lxml.etree._Element.iterancestors lxml.etree._Element-class.html#iterancestors -lxml.etree._Element.extend lxml.etree._Element-class.html#extend -lxml.etree._Element.__reversed__ lxml.etree._Element-class.html#__reversed__ -lxml.etree._Element.itersiblings lxml.etree._Element-class.html#itersiblings -lxml.etree._Element.__nonzero__ lxml.etree._Element-class.html#__nonzero__ -lxml.etree._ProcessingInstruction.target lxml.etree._ProcessingInstruction-class.html#target -lxml.etree._Element.clear lxml.etree._Element-class.html#clear -lxml.etree._Element.itertext lxml.etree._Element-class.html#itertext -lxml.etree._Element.findall lxml.etree._Element-class.html#findall -lxml.etree._Element.__iter__ lxml.etree._Element-class.html#__iter__ -lxml.etree._Element.remove lxml.etree._Element-class.html#remove -lxml.etree._ProcessingInstruction.__repr__ lxml.etree._ProcessingInstruction-class.html#__repr__ -lxml.etree._Element.getiterator lxml.etree._Element-class.html#getiterator -lxml.etree._ProcessingInstruction.attrib lxml.etree._ProcessingInstruction-class.html#attrib -lxml.etree._Element.__copy__ lxml.etree._Element-class.html#__copy__ -lxml.etree._RotatingErrorLog lxml.etree._RotatingErrorLog-class.html -lxml.etree._ListErrorLog.filter_domains lxml.etree._ListErrorLog-class.html#filter_domains -lxml.etree._BaseErrorLog.last_error lxml.etree._BaseErrorLog-class.html#last_error -lxml.etree._ListErrorLog.filter_from_warnings lxml.etree._ListErrorLog-class.html#filter_from_warnings -lxml.etree._RotatingErrorLog.__init__ lxml.etree._RotatingErrorLog-class.html#__init__ -lxml.etree._RotatingErrorLog.__new__ lxml.etree._RotatingErrorLog-class.html#__new__ -lxml.etree._ListErrorLog.__contains__ lxml.etree._ListErrorLog-class.html#__contains__ -lxml.etree._ListErrorLog.filter_from_level lxml.etree._ListErrorLog-class.html#filter_from_level -lxml.etree._ListErrorLog.__len__ lxml.etree._ListErrorLog-class.html#__len__ -lxml.etree._ErrorLog.__exit__ lxml.etree._ErrorLog-class.html#__exit__ -lxml.etree._ListErrorLog.__getitem__ lxml.etree._ListErrorLog-class.html#__getitem__ -lxml.etree._ListErrorLog.filter_levels lxml.etree._ListErrorLog-class.html#filter_levels -lxml.etree._ErrorLog.__iter__ lxml.etree._ErrorLog-class.html#__iter__ -lxml.etree._ErrorLog.copy lxml.etree._ErrorLog-class.html#copy -lxml.etree._ListErrorLog.__nonzero__ lxml.etree._ListErrorLog-class.html#__nonzero__ -lxml.etree._ListErrorLog.filter_from_fatals lxml.etree._ListErrorLog-class.html#filter_from_fatals -lxml.etree._RotatingErrorLog.receive lxml.etree._RotatingErrorLog-class.html#receive -lxml.etree._ErrorLog.clear lxml.etree._ErrorLog-class.html#clear -lxml.etree._ListErrorLog.filter_from_errors lxml.etree._ListErrorLog-class.html#filter_from_errors -lxml.etree._ListErrorLog.filter_types lxml.etree._ListErrorLog-class.html#filter_types -lxml.etree._ListErrorLog.__repr__ lxml.etree._ListErrorLog-class.html#__repr__ -lxml.etree._SaxParserTarget lxml.etree._SaxParserTarget-class.html -lxml.etree._SaxParserTarget.__new__ lxml.etree._SaxParserTarget-class.html#__new__ -lxml.etree._TargetParserResult lxml.etree._TargetParserResult-class.html -lxml.etree._TargetParserResult.__init__ lxml.etree._TargetParserResult-class.html#__init__ -lxml.etree._Validator lxml.etree._Validator-class.html -lxml.etree._Validator.__new__ lxml.etree._Validator-class.html#__new__ -lxml.etree._Validator._clear_error_log lxml.etree._Validator-class.html#_clear_error_log -lxml.etree._Validator.assertValid lxml.etree._Validator-class.html#assertValid -lxml.etree._Validator._append_log_message lxml.etree._Validator-class.html#_append_log_message -lxml.etree._Validator.error_log lxml.etree._Validator-class.html#error_log -lxml.etree._Validator.assert_ lxml.etree._Validator-class.html#assert_ -lxml.etree._Validator.validate lxml.etree._Validator-class.html#validate -lxml.etree._XPathEvaluatorBase lxml.etree._XPathEvaluatorBase-class.html -lxml.etree._XPathEvaluatorBase.__new__ lxml.etree._XPathEvaluatorBase-class.html#__new__ -lxml.etree._XPathEvaluatorBase.evaluate lxml.etree._XPathEvaluatorBase-class.html#evaluate -lxml.etree._XPathEvaluatorBase.error_log lxml.etree._XPathEvaluatorBase-class.html#error_log -lxml.etree._XPathEvaluatorBase.__init__ lxml.etree._XPathEvaluatorBase-class.html#__init__ -lxml.etree._XSLTProcessingInstruction lxml.etree._XSLTProcessingInstruction-class.html -lxml.etree._Element.getprevious lxml.etree._Element-class.html#getprevious -lxml.etree._XSLTProcessingInstruction.set lxml.etree._XSLTProcessingInstruction-class.html#set -lxml.etree._Element.getparent lxml.etree._Element-class.html#getparent -lxml.etree._Element.sourceline lxml.etree._Element-class.html#sourceline -lxml.etree._Element.iterfind lxml.etree._Element-class.html#iterfind -lxml.etree._Element._init lxml.etree._Element-class.html#_init -lxml.etree._Element.nsmap lxml.etree._Element-class.html#nsmap -lxml.etree._Element.replace lxml.etree._Element-class.html#replace -lxml.etree._Element.prefix lxml.etree._Element-class.html#prefix -lxml.etree._ProcessingInstruction.tag lxml.etree._ProcessingInstruction-class.html#tag -lxml.etree._Element.iter lxml.etree._Element-class.html#iter -lxml.etree._Element.addprevious lxml.etree._Element-class.html#addprevious -lxml.etree._Element.addnext lxml.etree._Element-class.html#addnext -lxml.etree._Element.find lxml.etree._Element-class.html#find -lxml.etree._Element.getnext lxml.etree._Element-class.html#getnext -lxml.etree._Element.index lxml.etree._Element-class.html#index -lxml.etree._XSLTProcessingInstruction.__new__ lxml.etree._XSLTProcessingInstruction-class.html#__new__ -lxml.etree._Element.__contains__ lxml.etree._Element-class.html#__contains__ -lxml.etree._Element.findtext lxml.etree._Element-class.html#findtext -lxml.etree._Element.tail lxml.etree._Element-class.html#tail -lxml.etree._Element.getroottree lxml.etree._Element-class.html#getroottree -lxml.etree._Element.iterdescendants lxml.etree._Element-class.html#iterdescendants -lxml.etree._Element.getchildren lxml.etree._Element-class.html#getchildren -lxml.etree.PIBase.__init__ lxml.etree.PIBase-class.html#__init__ -lxml.etree._Element.xpath lxml.etree._Element-class.html#xpath -lxml.etree._ProcessingInstruction.get lxml.etree._ProcessingInstruction-class.html#get -lxml.etree._Element.__deepcopy__ lxml.etree._Element-class.html#__deepcopy__ -lxml.etree._Element.makeelement lxml.etree._Element-class.html#makeelement -lxml.etree._Element.base lxml.etree._Element-class.html#base -lxml.etree._Element.iterchildren lxml.etree._Element-class.html#iterchildren -lxml.etree._Element.iterancestors lxml.etree._Element-class.html#iterancestors -lxml.etree._Element.extend lxml.etree._Element-class.html#extend -lxml.etree._Element.__reversed__ lxml.etree._Element-class.html#__reversed__ -lxml.etree._Element.itersiblings lxml.etree._Element-class.html#itersiblings -lxml.etree._Element.__nonzero__ lxml.etree._Element-class.html#__nonzero__ -lxml.etree._ProcessingInstruction.target lxml.etree._ProcessingInstruction-class.html#target -lxml.etree._Element.clear lxml.etree._Element-class.html#clear -lxml.etree._Element.itertext lxml.etree._Element-class.html#itertext -lxml.etree._Element.findall lxml.etree._Element-class.html#findall -lxml.etree._Element.__iter__ lxml.etree._Element-class.html#__iter__ -lxml.etree._Element.remove lxml.etree._Element-class.html#remove -lxml.etree._ProcessingInstruction.__repr__ lxml.etree._ProcessingInstruction-class.html#__repr__ -lxml.etree._XSLTProcessingInstruction.parseXSL lxml.etree._XSLTProcessingInstruction-class.html#parseXSL -lxml.etree._Element.getiterator lxml.etree._Element-class.html#getiterator -lxml.etree._ProcessingInstruction.attrib lxml.etree._ProcessingInstruction-class.html#attrib -lxml.etree._Element.__copy__ lxml.etree._Element-class.html#__copy__ -lxml.etree._XSLTResultTree lxml.etree._XSLTResultTree-class.html -lxml.etree._ElementTree.getroot lxml.etree._ElementTree-class.html#getroot -lxml.etree._XSLTResultTree.__str__ lxml.etree._XSLTResultTree-class.html#__str__ -lxml.etree._ElementTree.parser lxml.etree._ElementTree-class.html#parser -lxml.etree._ElementTree.parse lxml.etree._ElementTree-class.html#parse -lxml.etree._ElementTree.relaxng lxml.etree._ElementTree-class.html#relaxng -lxml.etree._ElementTree.findall lxml.etree._ElementTree-class.html#findall -lxml.etree._XSLTResultTree.__new__ lxml.etree._XSLTResultTree-class.html#__new__ -lxml.etree._ElementTree.findtext lxml.etree._ElementTree-class.html#findtext -lxml.etree._ElementTree.find lxml.etree._ElementTree-class.html#find -lxml.etree._ElementTree.write lxml.etree._ElementTree-class.html#write -lxml.etree._ElementTree._setroot lxml.etree._ElementTree-class.html#_setroot -lxml.etree._ElementTree.xpath lxml.etree._ElementTree-class.html#xpath -lxml.etree._ElementTree.iterfind lxml.etree._ElementTree-class.html#iterfind -lxml.etree._ElementTree.xslt lxml.etree._ElementTree-class.html#xslt -lxml.etree._ElementTree.__deepcopy__ lxml.etree._ElementTree-class.html#__deepcopy__ -lxml.etree._ElementTree.getpath lxml.etree._ElementTree-class.html#getpath -lxml.etree._ElementTree.write_c14n lxml.etree._ElementTree-class.html#write_c14n -lxml.etree._ElementTree.xmlschema lxml.etree._ElementTree-class.html#xmlschema -lxml.etree._ElementTree.xinclude lxml.etree._ElementTree-class.html#xinclude -lxml.etree._ElementTree.docinfo lxml.etree._ElementTree-class.html#docinfo -lxml.etree._XSLTResultTree.__unicode__ lxml.etree._XSLTResultTree-class.html#__unicode__ -lxml.etree._XSLTResultTree.xslt_profile lxml.etree._XSLTResultTree-class.html#xslt_profile -lxml.etree._ElementTree.iter lxml.etree._ElementTree-class.html#iter -lxml.etree._ElementTree.getiterator lxml.etree._ElementTree-class.html#getiterator -lxml.etree._ElementTree.__copy__ lxml.etree._ElementTree-class.html#__copy__ -lxml.etree.iterparse lxml.etree.iterparse-class.html -lxml.etree._BaseParser.set_element_class_lookup lxml.etree._BaseParser-class.html#set_element_class_lookup -lxml.etree.iterparse.__init__ lxml.etree.iterparse-class.html#__init__ -lxml.etree.iterparse.__new__ lxml.etree.iterparse-class.html#__new__ -lxml.etree._BaseParser.setElementClassLookup lxml.etree._BaseParser-class.html#setElementClassLookup -lxml.etree.iterparse.next lxml.etree.iterparse-class.html#next -lxml.etree._BaseParser.version lxml.etree._BaseParser-class.html#version -lxml.etree.iterparse.__next__ lxml.etree.iterparse-class.html#__next__ -lxml.etree._BaseParser.makeelement lxml.etree._BaseParser-class.html#makeelement -lxml.etree.iterparse.__iter__ lxml.etree.iterparse-class.html#__iter__ -lxml.etree.iterparse.copy lxml.etree.iterparse-class.html#copy -lxml.etree._BaseParser.resolvers lxml.etree._BaseParser-class.html#resolvers -lxml.etree._BaseParser.target lxml.etree._BaseParser-class.html#target -lxml.etree.iterparse.error_log lxml.etree.iterparse-class.html#error_log -lxml.etree.iterparse.root lxml.etree.iterparse-class.html#root -lxml.etree.iterwalk lxml.etree.iterwalk-class.html -lxml.etree.iterwalk.__new__ lxml.etree.iterwalk-class.html#__new__ -lxml.etree.iterwalk.__next__ lxml.etree.iterwalk-class.html#__next__ -lxml.etree.iterwalk.next lxml.etree.iterwalk-class.html#next -lxml.etree.iterwalk.__iter__ lxml.etree.iterwalk-class.html#__iter__ -lxml.etree.iterwalk.__init__ lxml.etree.iterwalk-class.html#__init__ -lxml.html.CheckboxGroup lxml.html.CheckboxGroup-class.html -lxml.html.CheckboxGroup._value__del lxml.html.CheckboxGroup-class.html#_value__del -lxml.html.CheckboxGroup.value_options lxml.html.CheckboxGroup-class.html#value_options -lxml.html.CheckboxGroup._value__set lxml.html.CheckboxGroup-class.html#_value__set -lxml.html.CheckboxGroup.value lxml.html.CheckboxGroup-class.html#value -lxml.html.CheckboxGroup.__repr__ lxml.html.CheckboxGroup-class.html#__repr__ -lxml.html.CheckboxGroup._value__get lxml.html.CheckboxGroup-class.html#_value__get -lxml.html.CheckboxValues lxml.html.CheckboxValues-class.html -lxml.html.CheckboxValues.__init__ lxml.html.CheckboxValues-class.html#__init__ -lxml.html.CheckboxValues.add lxml.html.CheckboxValues-class.html#add -lxml.html.CheckboxValues.__iter__ lxml.html.CheckboxValues-class.html#__iter__ -lxml.html.CheckboxValues.remove lxml.html.CheckboxValues-class.html#remove -lxml.html.CheckboxValues.__repr__ lxml.html.CheckboxValues-class.html#__repr__ -lxml.html.FieldsDict lxml.html.FieldsDict-class.html -_abcoll.Sized.__metaclass__ abc.ABCMeta-class.html -lxml.html.FieldsDict._abc_negative_cache lxml.html.FieldsDict-class.html#_abc_negative_cache -lxml.html.FieldsDict.__init__ lxml.html.FieldsDict-class.html#__init__ -lxml.html.FieldsDict.__contains__ lxml.html.FieldsDict-class.html#__contains__ -lxml.html.FieldsDict.__abstractmethods__ lxml.html.FieldsDict-class.html#__abstractmethods__ -lxml.html.FieldsDict.__len__ lxml.html.FieldsDict-class.html#__len__ -lxml.html.FieldsDict.__getitem__ lxml.html.FieldsDict-class.html#__getitem__ -lxml.html.FieldsDict.keys lxml.html.FieldsDict-class.html#keys -lxml.html.FieldsDict.__iter__ lxml.html.FieldsDict-class.html#__iter__ -lxml.html.FieldsDict.__delitem__ lxml.html.FieldsDict-class.html#__delitem__ -lxml.html.FieldsDict.__setitem__ lxml.html.FieldsDict-class.html#__setitem__ -lxml.html.FieldsDict._abc_negative_cache_version lxml.html.FieldsDict-class.html#_abc_negative_cache_version -lxml.html.FieldsDict.__repr__ lxml.html.FieldsDict-class.html#__repr__ -lxml.html.FieldsDict._abc_registry lxml.html.FieldsDict-class.html#_abc_registry -lxml.html.FormElement lxml.html.FormElement-class.html -lxml.etree._Element.sourceline lxml.etree._Element-class.html#sourceline -lxml.etree._Element.text lxml.etree._Element-class.html#text -lxml.etree._Element._init lxml.etree._Element-class.html#_init -lxml.etree._Element.prefix lxml.etree._Element-class.html#prefix -lxml.html.HtmlMixin.drop_tag lxml.html.HtmlMixin-class.html#drop_tag -lxml.etree._Element.find lxml.etree._Element-class.html#find -lxml.html.HtmlMixin.iterlinks lxml.html.HtmlMixin-class.html#iterlinks -lxml.html.HtmlMixin.base_url lxml.html.HtmlMixin-class.html#base_url -lxml.html.FormElement._fields__get lxml.html.FormElement-class.html#_fields__get -lxml.html.FormElement.form_values lxml.html.FormElement-class.html#form_values -lxml.html.FormElement._action__del lxml.html.FormElement-class.html#_action__del -lxml.etree._Element.__delitem__ lxml.etree._Element-class.html#__delitem__ -lxml.html.FormElement._fields__set lxml.html.FormElement-class.html#_fields__set -lxml.etree._Element.__getitem__ lxml.etree._Element-class.html#__getitem__ -lxml.etree._Element.get lxml.etree._Element-class.html#get -lxml.etree._Element.__deepcopy__ lxml.etree._Element-class.html#__deepcopy__ -lxml.html.FormElement._method__set lxml.html.FormElement-class.html#_method__set -lxml.etree._Element.__nonzero__ lxml.etree._Element-class.html#__nonzero__ -lxml.etree._Element.insert lxml.etree._Element-class.html#insert -lxml.etree._Element.__reversed__ lxml.etree._Element-class.html#__reversed__ -lxml.html.HtmlMixin._label__get lxml.html.HtmlMixin-class.html#_label__get -lxml.html.FormElement.fields lxml.html.FormElement-class.html#fields -lxml.etree._Element.iter lxml.etree._Element-class.html#iter -lxml.html.FormElement.method lxml.html.FormElement-class.html#method -lxml.html.HtmlMixin.find_rel_links lxml.html.HtmlMixin-class.html#find_rel_links -lxml.etree._Element.__copy__ lxml.etree._Element-class.html#__copy__ -lxml.etree._Element.set lxml.etree._Element-class.html#set -lxml.etree._Element.remove lxml.etree._Element-class.html#remove -lxml.etree._Element.addnext lxml.etree._Element-class.html#addnext -lxml.etree._Element.append lxml.etree._Element-class.html#append -lxml.etree._Element.index lxml.etree._Element-class.html#index -lxml.etree._Element.__contains__ lxml.etree._Element-class.html#__contains__ -lxml.etree._Element.findtext lxml.etree._Element-class.html#findtext -lxml.html.HtmlMixin.label lxml.html.HtmlMixin-class.html#label -lxml.html.FormElement._action__get lxml.html.FormElement-class.html#_action__get -lxml.etree._Element.getchildren lxml.etree._Element-class.html#getchildren -lxml.html.HtmlMixin.resolve_base_href lxml.html.HtmlMixin-class.html#resolve_base_href -lxml.html.HtmlMixin.body lxml.html.HtmlMixin-class.html#body -lxml.etree._Element.extend lxml.etree._Element-class.html#extend -lxml.etree._Element.__setitem__ lxml.etree._Element-class.html#__setitem__ -lxml.etree._Element.base lxml.etree._Element-class.html#base -lxml.html.HtmlMixin.find_class lxml.html.HtmlMixin-class.html#find_class -lxml.html.HtmlMixin._label__del lxml.html.HtmlMixin-class.html#_label__del -lxml.etree._Element.items lxml.etree._Element-class.html#items -lxml.html.FormElement._name lxml.html.FormElement-class.html#_name -lxml.html.HtmlMixin.cssselect lxml.html.HtmlMixin-class.html#cssselect -lxml.etree._Element.__repr__ lxml.etree._Element-class.html#__repr__ -lxml.html.FormElement.action lxml.html.FormElement-class.html#action -lxml.etree._Element.attrib lxml.etree._Element-class.html#attrib -lxml.etree._Element.getprevious lxml.etree._Element-class.html#getprevious -lxml.etree._Element.getparent lxml.etree._Element-class.html#getparent -lxml.html.HtmlMixin.drop_tree lxml.html.HtmlMixin-class.html#drop_tree -lxml.etree._Element.replace lxml.etree._Element-class.html#replace -lxml.etree._Element.getnext lxml.etree._Element-class.html#getnext -lxml.html.HtmlMixin.forms lxml.html.HtmlMixin-class.html#forms -lxml.html.HtmlMixin.text_content lxml.html.HtmlMixin-class.html#text_content -lxml.etree._Element.iterancestors lxml.etree._Element-class.html#iterancestors -lxml.etree._Element.tail lxml.etree._Element-class.html#tail -lxml.etree._Element.__len__ lxml.etree._Element-class.html#__len__ -lxml.html.HtmlMixin.rewrite_links lxml.html.HtmlMixin-class.html#rewrite_links -lxml.etree._Element.xpath lxml.etree._Element-class.html#xpath -lxml.html.HtmlMixin.head lxml.html.HtmlMixin-class.html#head -lxml.etree._Element.__iter__ lxml.etree._Element-class.html#__iter__ -lxml.html.FormElement._method__get lxml.html.FormElement-class.html#_method__get -lxml.etree._Element.itersiblings lxml.etree._Element-class.html#itersiblings -lxml.etree._Element.findall lxml.etree._Element-class.html#findall -lxml.html.FormElement._action__set lxml.html.FormElement-class.html#_action__set -lxml.etree._Element.values lxml.etree._Element-class.html#values -lxml.etree._Element.iterfind lxml.etree._Element-class.html#iterfind -lxml.etree._Element.iterchildren lxml.etree._Element-class.html#iterchildren -lxml.etree._Element.tag lxml.etree._Element-class.html#tag -lxml.etree._Element.addprevious lxml.etree._Element-class.html#addprevious -lxml.etree.ElementBase.__init__ lxml.etree.ElementBase-class.html#__init__ -lxml.html.HtmlMixin.make_links_absolute lxml.html.HtmlMixin-class.html#make_links_absolute -lxml.html.HtmlMixin._label__set lxml.html.HtmlMixin-class.html#_label__set -lxml.html.HtmlMixin.get_element_by_id lxml.html.HtmlMixin-class.html#get_element_by_id -lxml.etree.ElementBase.__new__ lxml.etree.ElementBase-class.html#__new__ -lxml.etree._Element.getroottree lxml.etree._Element-class.html#getroottree -lxml.etree._Element.iterdescendants lxml.etree._Element-class.html#iterdescendants -lxml.html.FormElement.inputs lxml.html.FormElement-class.html#inputs -lxml.etree._Element.keys lxml.etree._Element-class.html#keys -lxml.etree._Element.makeelement lxml.etree._Element-class.html#makeelement -lxml.etree._Element.getiterator lxml.etree._Element-class.html#getiterator -lxml.etree._Element.clear lxml.etree._Element-class.html#clear -lxml.etree._Element.itertext lxml.etree._Element-class.html#itertext -lxml.etree._Element.nsmap lxml.etree._Element-class.html#nsmap -lxml.html.HTMLParser lxml.html.HTMLParser-class.html -lxml.etree._FeedParser.feed lxml.etree._FeedParser-class.html#feed -lxml.etree._BaseParser.set_element_class_lookup lxml.etree._BaseParser-class.html#set_element_class_lookup -lxml.etree._FeedParser.close lxml.etree._FeedParser-class.html#close -lxml.html.HTMLParser.__init__ lxml.html.HTMLParser-class.html#__init__ -lxml.etree.HTMLParser.__new__ lxml.etree.HTMLParser-class.html#__new__ -lxml.etree._BaseParser.setElementClassLookup lxml.etree._BaseParser-class.html#setElementClassLookup -lxml.etree._BaseParser.version lxml.etree._BaseParser-class.html#version -lxml.etree._BaseParser.makeelement lxml.etree._BaseParser-class.html#makeelement -lxml.etree._BaseParser.copy lxml.etree._BaseParser-class.html#copy -lxml.etree._BaseParser.resolvers lxml.etree._BaseParser-class.html#resolvers -lxml.etree._BaseParser.target lxml.etree._BaseParser-class.html#target -lxml.etree._BaseParser.error_log lxml.etree._BaseParser-class.html#error_log -lxml.etree._FeedParser.feed_error_log lxml.etree._FeedParser-class.html#feed_error_log -lxml.html.HtmlComment lxml.html.HtmlComment-class.html -lxml.etree._Element.getprevious lxml.etree._Element-class.html#getprevious -lxml.html.HtmlMixin.body lxml.html.HtmlMixin-class.html#body -lxml.etree._Element.getparent lxml.etree._Element-class.html#getparent -lxml.etree._Element.sourceline lxml.etree._Element-class.html#sourceline -lxml.etree._Element.iterfind lxml.etree._Element-class.html#iterfind -lxml.etree._Element._init lxml.etree._Element-class.html#_init -lxml.etree._Element.nsmap lxml.etree._Element-class.html#nsmap -lxml.etree._Element.replace lxml.etree._Element-class.html#replace -lxml.html.HtmlMixin.iterlinks lxml.html.HtmlMixin-class.html#iterlinks -lxml.etree._Element.prefix lxml.etree._Element-class.html#prefix -lxml.etree._Comment.tag lxml.etree._Comment-class.html#tag -lxml.etree._Element.iter lxml.etree._Element-class.html#iter -lxml.etree._Element.addprevious lxml.etree._Element-class.html#addprevious -lxml.etree._Element.addnext lxml.etree._Element-class.html#addnext -lxml.html.HtmlMixin.drop_tag lxml.html.HtmlMixin-class.html#drop_tag -lxml.html.HtmlMixin.label lxml.html.HtmlMixin-class.html#label -lxml.etree._Element.find lxml.etree._Element-class.html#find -lxml.html.HtmlMixin.make_links_absolute lxml.html.HtmlMixin-class.html#make_links_absolute -lxml.etree._Element.getnext lxml.etree._Element-class.html#getnext -lxml.etree._Element.index lxml.etree._Element-class.html#index -lxml.html.HtmlMixin.text_content lxml.html.HtmlMixin-class.html#text_content -lxml.html.HtmlMixin.get_element_by_id lxml.html.HtmlMixin-class.html#get_element_by_id -lxml.etree.CommentBase.__new__ lxml.etree.CommentBase-class.html#__new__ -lxml.etree._Element.__contains__ lxml.etree._Element-class.html#__contains__ -lxml.html.HtmlMixin.base_url lxml.html.HtmlMixin-class.html#base_url -lxml.html.HtmlMixin.drop_tree lxml.html.HtmlMixin-class.html#drop_tree -lxml.etree._Element.findtext lxml.etree._Element-class.html#findtext -lxml.etree._Element.tail lxml.etree._Element-class.html#tail -lxml.etree._Element.getroottree lxml.etree._Element-class.html#getroottree -lxml.html.HtmlMixin.forms lxml.html.HtmlMixin-class.html#forms -lxml.etree._Element.iterdescendants lxml.etree._Element-class.html#iterdescendants -lxml.etree._Element.getchildren lxml.etree._Element-class.html#getchildren -lxml.etree.CommentBase.__init__ lxml.etree.CommentBase-class.html#__init__ -lxml.html.HtmlMixin.cssselect lxml.html.HtmlMixin-class.html#cssselect -lxml.html.HtmlMixin.resolve_base_href lxml.html.HtmlMixin-class.html#resolve_base_href -lxml.html.HtmlMixin.rewrite_links lxml.html.HtmlMixin-class.html#rewrite_links -lxml.etree._Element.xpath lxml.etree._Element-class.html#xpath -lxml.html.HtmlMixin._label__set lxml.html.HtmlMixin-class.html#_label__set -lxml.html.HtmlMixin.head lxml.html.HtmlMixin-class.html#head -lxml.etree._Element.__deepcopy__ lxml.etree._Element-class.html#__deepcopy__ -lxml.etree._Element.makeelement lxml.etree._Element-class.html#makeelement -lxml.etree._Element.base lxml.etree._Element-class.html#base -lxml.html.HtmlMixin.find_class lxml.html.HtmlMixin-class.html#find_class -lxml.html.HtmlMixin._label__del lxml.html.HtmlMixin-class.html#_label__del -lxml.html.HtmlMixin._label__get lxml.html.HtmlMixin-class.html#_label__get -lxml.etree._Element.iterchildren lxml.etree._Element-class.html#iterchildren -lxml.etree._Element.iterancestors lxml.etree._Element-class.html#iterancestors -lxml.etree._Element.extend lxml.etree._Element-class.html#extend -lxml.etree._Element.__reversed__ lxml.etree._Element-class.html#__reversed__ -lxml.etree._Element.itersiblings lxml.etree._Element-class.html#itersiblings -lxml.etree._Element.__nonzero__ lxml.etree._Element-class.html#__nonzero__ -lxml.etree._Element.clear lxml.etree._Element-class.html#clear -lxml.etree._Element.itertext lxml.etree._Element-class.html#itertext -lxml.etree._Element.findall lxml.etree._Element-class.html#findall -lxml.etree._Element.__iter__ lxml.etree._Element-class.html#__iter__ -lxml.etree._Element.remove lxml.etree._Element-class.html#remove -lxml.etree._Comment.__repr__ lxml.etree._Comment-class.html#__repr__ -lxml.etree._Element.getiterator lxml.etree._Element-class.html#getiterator -lxml.html.HtmlMixin.find_rel_links lxml.html.HtmlMixin-class.html#find_rel_links -lxml.etree._Element.__copy__ lxml.etree._Element-class.html#__copy__ -lxml.html.HtmlElement lxml.html.HtmlElement-class.html -lxml.etree._Element.getprevious lxml.etree._Element-class.html#getprevious -lxml.html.HtmlMixin.body lxml.html.HtmlMixin-class.html#body -lxml.etree._Element.set lxml.etree._Element-class.html#set -lxml.etree._Element.getparent lxml.etree._Element-class.html#getparent -lxml.etree._Element.sourceline lxml.etree._Element-class.html#sourceline -lxml.etree._Element.text lxml.etree._Element-class.html#text -lxml.etree._Element.iterfind lxml.etree._Element-class.html#iterfind -lxml.etree._Element._init lxml.etree._Element-class.html#_init -lxml.etree._Element.nsmap lxml.etree._Element-class.html#nsmap -lxml.etree._Element.replace lxml.etree._Element-class.html#replace -lxml.html.HtmlMixin.iterlinks lxml.html.HtmlMixin-class.html#iterlinks -lxml.etree._Element.prefix lxml.etree._Element-class.html#prefix -lxml.etree._Element.tag lxml.etree._Element-class.html#tag -lxml.etree._Element.iter lxml.etree._Element-class.html#iter -lxml.etree._Element.addnext lxml.etree._Element-class.html#addnext -lxml.etree._Element.addprevious lxml.etree._Element-class.html#addprevious -lxml.html.HtmlMixin.drop_tag lxml.html.HtmlMixin-class.html#drop_tag -lxml.html.HtmlMixin.label lxml.html.HtmlMixin-class.html#label -lxml.etree._Element.find lxml.etree._Element-class.html#find -lxml.etree._Element.append lxml.etree._Element-class.html#append -lxml.html.HtmlMixin.make_links_absolute lxml.html.HtmlMixin-class.html#make_links_absolute -lxml.etree._Element.getnext lxml.etree._Element-class.html#getnext -lxml.etree._Element.index lxml.etree._Element-class.html#index -lxml.html.HtmlMixin.text_content lxml.html.HtmlMixin-class.html#text_content -lxml.html.HtmlMixin.get_element_by_id lxml.html.HtmlMixin-class.html#get_element_by_id -lxml.etree.ElementBase.__new__ lxml.etree.ElementBase-class.html#__new__ -lxml.etree._Element.__contains__ lxml.etree._Element-class.html#__contains__ -lxml.html.HtmlMixin.base_url lxml.html.HtmlMixin-class.html#base_url -lxml.html.HtmlMixin.drop_tree lxml.html.HtmlMixin-class.html#drop_tree -lxml.etree._Element.findtext lxml.etree._Element-class.html#findtext -lxml.etree._Element.tail lxml.etree._Element-class.html#tail -lxml.html.HtmlMixin._label__del lxml.html.HtmlMixin-class.html#_label__del -lxml.etree._Element.getroottree lxml.etree._Element-class.html#getroottree -lxml.html.HtmlMixin.forms lxml.html.HtmlMixin-class.html#forms -lxml.etree._Element.iterdescendants lxml.etree._Element-class.html#iterdescendants -lxml.etree._Element.getchildren lxml.etree._Element-class.html#getchildren -lxml.etree.ElementBase.__init__ lxml.etree.ElementBase-class.html#__init__ -lxml.html.HtmlMixin.cssselect lxml.html.HtmlMixin-class.html#cssselect -lxml.html.HtmlMixin.resolve_base_href lxml.html.HtmlMixin-class.html#resolve_base_href -lxml.etree._Element.__len__ lxml.etree._Element-class.html#__len__ -lxml.html.HtmlMixin.rewrite_links lxml.html.HtmlMixin-class.html#rewrite_links -lxml.etree._Element.xpath lxml.etree._Element-class.html#xpath -lxml.html.HtmlMixin._label__set lxml.html.HtmlMixin-class.html#_label__set -lxml.html.HtmlMixin.head lxml.html.HtmlMixin-class.html#head -lxml.etree._Element.__getitem__ lxml.etree._Element-class.html#__getitem__ -lxml.etree._Element.get lxml.etree._Element-class.html#get -lxml.etree._Element.keys lxml.etree._Element-class.html#keys -lxml.etree._Element.__deepcopy__ lxml.etree._Element-class.html#__deepcopy__ -lxml.etree._Element.makeelement lxml.etree._Element-class.html#makeelement -lxml.etree._Element.__iter__ lxml.etree._Element-class.html#__iter__ -lxml.etree._Element.base lxml.etree._Element-class.html#base -lxml.html.HtmlMixin.find_class lxml.html.HtmlMixin-class.html#find_class -lxml.etree._Element.insert lxml.etree._Element-class.html#insert -lxml.html.HtmlMixin._label__get lxml.html.HtmlMixin-class.html#_label__get -lxml.etree._Element.iterchildren lxml.etree._Element-class.html#iterchildren -lxml.etree._Element.iterancestors lxml.etree._Element-class.html#iterancestors -lxml.etree._Element.extend lxml.etree._Element-class.html#extend -lxml.etree._Element.__delitem__ lxml.etree._Element-class.html#__delitem__ -lxml.etree._Element.__reversed__ lxml.etree._Element-class.html#__reversed__ -lxml.etree._Element.itersiblings lxml.etree._Element-class.html#itersiblings -lxml.etree._Element.__nonzero__ lxml.etree._Element-class.html#__nonzero__ -lxml.etree._Element.items lxml.etree._Element-class.html#items -lxml.etree._Element.clear lxml.etree._Element-class.html#clear -lxml.etree._Element.itertext lxml.etree._Element-class.html#itertext -lxml.etree._Element.findall lxml.etree._Element-class.html#findall -lxml.etree._Element.__setitem__ lxml.etree._Element-class.html#__setitem__ -lxml.etree._Element.remove lxml.etree._Element-class.html#remove -lxml.etree._Element.values lxml.etree._Element-class.html#values -lxml.etree._Element.__repr__ lxml.etree._Element-class.html#__repr__ -lxml.etree._Element.getiterator lxml.etree._Element-class.html#getiterator -lxml.html.HtmlMixin.find_rel_links lxml.html.HtmlMixin-class.html#find_rel_links -lxml.etree._Element.attrib lxml.etree._Element-class.html#attrib -lxml.etree._Element.__copy__ lxml.etree._Element-class.html#__copy__ -lxml.html.HtmlElementClassLookup lxml.html.HtmlElementClassLookup-class.html -lxml.html.HtmlElementClassLookup._default_element_classes lxml.html.HtmlElementClassLookup-class.html#_default_element_classes -lxml.etree.CustomElementClassLookup.__new__ lxml.etree.CustomElementClassLookup-class.html#__new__ -lxml.html.HtmlElementClassLookup.lookup lxml.html.HtmlElementClassLookup-class.html#lookup -lxml.etree.FallbackElementClassLookup.fallback lxml.etree.FallbackElementClassLookup-class.html#fallback -lxml.etree.FallbackElementClassLookup.set_fallback lxml.etree.FallbackElementClassLookup-class.html#set_fallback -lxml.html.HtmlElementClassLookup.__init__ lxml.html.HtmlElementClassLookup-class.html#__init__ -lxml.html.HtmlEntity lxml.html.HtmlEntity-class.html -lxml.etree._Element.getprevious lxml.etree._Element-class.html#getprevious -lxml.html.HtmlMixin.body lxml.html.HtmlMixin-class.html#body -lxml.etree._Element.getparent lxml.etree._Element-class.html#getparent -lxml.etree._Element.sourceline lxml.etree._Element-class.html#sourceline -lxml.etree._Entity.text lxml.etree._Entity-class.html#text -lxml.etree._Element.iterfind lxml.etree._Element-class.html#iterfind -lxml.etree._Element._init lxml.etree._Element-class.html#_init -lxml.etree._Element.nsmap lxml.etree._Element-class.html#nsmap -lxml.etree._Element.replace lxml.etree._Element-class.html#replace -lxml.html.HtmlMixin.iterlinks lxml.html.HtmlMixin-class.html#iterlinks -lxml.etree._Element.prefix lxml.etree._Element-class.html#prefix -lxml.etree._Entity.tag lxml.etree._Entity-class.html#tag -lxml.etree._Element.iter lxml.etree._Element-class.html#iter -lxml.etree._Element.addprevious lxml.etree._Element-class.html#addprevious -lxml.etree._Element.addnext lxml.etree._Element-class.html#addnext -lxml.html.HtmlMixin.drop_tag lxml.html.HtmlMixin-class.html#drop_tag -lxml.html.HtmlMixin.label lxml.html.HtmlMixin-class.html#label -lxml.etree._Element.find lxml.etree._Element-class.html#find -lxml.html.HtmlMixin.make_links_absolute lxml.html.HtmlMixin-class.html#make_links_absolute -lxml.etree._Element.getnext lxml.etree._Element-class.html#getnext -lxml.etree._Element.index lxml.etree._Element-class.html#index -lxml.html.HtmlMixin.text_content lxml.html.HtmlMixin-class.html#text_content -lxml.html.HtmlMixin.get_element_by_id lxml.html.HtmlMixin-class.html#get_element_by_id -lxml.etree.EntityBase.__new__ lxml.etree.EntityBase-class.html#__new__ -lxml.etree._Element.__contains__ lxml.etree._Element-class.html#__contains__ -lxml.html.HtmlMixin.base_url lxml.html.HtmlMixin-class.html#base_url -lxml.html.HtmlMixin.drop_tree lxml.html.HtmlMixin-class.html#drop_tree -lxml.etree._Element.findtext lxml.etree._Element-class.html#findtext -lxml.etree._Element.tail lxml.etree._Element-class.html#tail -lxml.etree._Element.getroottree lxml.etree._Element-class.html#getroottree -lxml.html.HtmlMixin.forms lxml.html.HtmlMixin-class.html#forms -lxml.etree._Element.iterdescendants lxml.etree._Element-class.html#iterdescendants -lxml.etree._Element.getchildren lxml.etree._Element-class.html#getchildren -lxml.etree.EntityBase.__init__ lxml.etree.EntityBase-class.html#__init__ -lxml.html.HtmlMixin.cssselect lxml.html.HtmlMixin-class.html#cssselect -lxml.html.HtmlMixin.resolve_base_href lxml.html.HtmlMixin-class.html#resolve_base_href -lxml.html.HtmlMixin.rewrite_links lxml.html.HtmlMixin-class.html#rewrite_links -lxml.etree._Element.xpath lxml.etree._Element-class.html#xpath -lxml.html.HtmlMixin._label__set lxml.html.HtmlMixin-class.html#_label__set -lxml.html.HtmlMixin.head lxml.html.HtmlMixin-class.html#head -lxml.etree._Element.__deepcopy__ lxml.etree._Element-class.html#__deepcopy__ -lxml.etree._Element.makeelement lxml.etree._Element-class.html#makeelement -lxml.etree._Element.base lxml.etree._Element-class.html#base -lxml.html.HtmlMixin.find_class lxml.html.HtmlMixin-class.html#find_class -lxml.html.HtmlMixin._label__del lxml.html.HtmlMixin-class.html#_label__del -lxml.html.HtmlMixin._label__get lxml.html.HtmlMixin-class.html#_label__get -lxml.etree._Element.iterchildren lxml.etree._Element-class.html#iterchildren -lxml.etree._Element.iterancestors lxml.etree._Element-class.html#iterancestors -lxml.etree._Element.extend lxml.etree._Element-class.html#extend -lxml.etree._Element.__reversed__ lxml.etree._Element-class.html#__reversed__ -lxml.etree._Element.itersiblings lxml.etree._Element-class.html#itersiblings -lxml.etree._Element.__nonzero__ lxml.etree._Element-class.html#__nonzero__ -lxml.etree._Entity.name lxml.etree._Entity-class.html#name -lxml.etree._Element.clear lxml.etree._Element-class.html#clear -lxml.etree._Element.itertext lxml.etree._Element-class.html#itertext -lxml.etree._Element.findall lxml.etree._Element-class.html#findall -lxml.etree._Element.__iter__ lxml.etree._Element-class.html#__iter__ -lxml.etree._Element.remove lxml.etree._Element-class.html#remove -lxml.etree._Entity.__repr__ lxml.etree._Entity-class.html#__repr__ -lxml.etree._Element.getiterator lxml.etree._Element-class.html#getiterator -lxml.html.HtmlMixin.find_rel_links lxml.html.HtmlMixin-class.html#find_rel_links -lxml.etree._Element.__copy__ lxml.etree._Element-class.html#__copy__ -lxml.html.HtmlMixin lxml.html.HtmlMixin-class.html -lxml.html.HtmlMixin.drop_tree lxml.html.HtmlMixin-class.html#drop_tree -lxml.html.HtmlMixin.drop_tag lxml.html.HtmlMixin-class.html#drop_tag -lxml.html.HtmlMixin.make_links_absolute lxml.html.HtmlMixin-class.html#make_links_absolute -lxml.html.HtmlMixin._label__set lxml.html.HtmlMixin-class.html#_label__set -lxml.html.HtmlMixin.text_content lxml.html.HtmlMixin-class.html#text_content -lxml.html.HtmlMixin.get_element_by_id lxml.html.HtmlMixin-class.html#get_element_by_id -lxml.html.HtmlMixin.iterlinks lxml.html.HtmlMixin-class.html#iterlinks -lxml.html.HtmlMixin.base_url lxml.html.HtmlMixin-class.html#base_url -lxml.html.HtmlMixin.label lxml.html.HtmlMixin-class.html#label -lxml.html.HtmlMixin.forms lxml.html.HtmlMixin-class.html#forms -lxml.html.HtmlMixin.resolve_base_href lxml.html.HtmlMixin-class.html#resolve_base_href -lxml.html.HtmlMixin.rewrite_links lxml.html.HtmlMixin-class.html#rewrite_links -lxml.html.HtmlMixin.body lxml.html.HtmlMixin-class.html#body -lxml.html.HtmlMixin.head lxml.html.HtmlMixin-class.html#head -lxml.html.HtmlMixin.find_class lxml.html.HtmlMixin-class.html#find_class -lxml.html.HtmlMixin._label__del lxml.html.HtmlMixin-class.html#_label__del -lxml.html.HtmlMixin._label__get lxml.html.HtmlMixin-class.html#_label__get -lxml.html.HtmlMixin.cssselect lxml.html.HtmlMixin-class.html#cssselect -lxml.html.HtmlMixin.find_rel_links lxml.html.HtmlMixin-class.html#find_rel_links -lxml.html.HtmlProcessingInstruction lxml.html.HtmlProcessingInstruction-class.html -lxml.etree._Element.getprevious lxml.etree._Element-class.html#getprevious -lxml.html.HtmlMixin.body lxml.html.HtmlMixin-class.html#body -lxml.etree._Element.getparent lxml.etree._Element-class.html#getparent -lxml.etree._Element.sourceline lxml.etree._Element-class.html#sourceline -lxml.etree._Element.iterfind lxml.etree._Element-class.html#iterfind -lxml.etree._Element._init lxml.etree._Element-class.html#_init -lxml.etree._Element.nsmap lxml.etree._Element-class.html#nsmap -lxml.etree._Element.replace lxml.etree._Element-class.html#replace -lxml.html.HtmlMixin.iterlinks lxml.html.HtmlMixin-class.html#iterlinks -lxml.etree._Element.prefix lxml.etree._Element-class.html#prefix -lxml.etree._ProcessingInstruction.tag lxml.etree._ProcessingInstruction-class.html#tag -lxml.etree._Element.iter lxml.etree._Element-class.html#iter -lxml.etree._Element.addprevious lxml.etree._Element-class.html#addprevious -lxml.etree._Element.addnext lxml.etree._Element-class.html#addnext -lxml.html.HtmlMixin.drop_tag lxml.html.HtmlMixin-class.html#drop_tag -lxml.html.HtmlMixin.label lxml.html.HtmlMixin-class.html#label -lxml.etree._Element.find lxml.etree._Element-class.html#find -lxml.html.HtmlMixin.make_links_absolute lxml.html.HtmlMixin-class.html#make_links_absolute -lxml.etree._Element.getnext lxml.etree._Element-class.html#getnext -lxml.etree._Element.index lxml.etree._Element-class.html#index -lxml.html.HtmlMixin.text_content lxml.html.HtmlMixin-class.html#text_content -lxml.html.HtmlMixin.get_element_by_id lxml.html.HtmlMixin-class.html#get_element_by_id -lxml.etree.PIBase.__new__ lxml.etree.PIBase-class.html#__new__ -lxml.etree._Element.__contains__ lxml.etree._Element-class.html#__contains__ -lxml.html.HtmlMixin.base_url lxml.html.HtmlMixin-class.html#base_url -lxml.html.HtmlMixin.drop_tree lxml.html.HtmlMixin-class.html#drop_tree -lxml.etree._Element.findtext lxml.etree._Element-class.html#findtext -lxml.etree._Element.tail lxml.etree._Element-class.html#tail -lxml.etree._Element.getroottree lxml.etree._Element-class.html#getroottree -lxml.html.HtmlMixin.forms lxml.html.HtmlMixin-class.html#forms -lxml.etree._Element.iterdescendants lxml.etree._Element-class.html#iterdescendants -lxml.etree._Element.getchildren lxml.etree._Element-class.html#getchildren -lxml.etree.PIBase.__init__ lxml.etree.PIBase-class.html#__init__ -lxml.html.HtmlMixin.cssselect lxml.html.HtmlMixin-class.html#cssselect -lxml.html.HtmlMixin.resolve_base_href lxml.html.HtmlMixin-class.html#resolve_base_href -lxml.html.HtmlMixin.rewrite_links lxml.html.HtmlMixin-class.html#rewrite_links -lxml.etree._Element.xpath lxml.etree._Element-class.html#xpath -lxml.html.HtmlMixin._label__set lxml.html.HtmlMixin-class.html#_label__set -lxml.html.HtmlMixin.head lxml.html.HtmlMixin-class.html#head -lxml.etree._ProcessingInstruction.get lxml.etree._ProcessingInstruction-class.html#get -lxml.etree._Element.__deepcopy__ lxml.etree._Element-class.html#__deepcopy__ -lxml.etree._Element.makeelement lxml.etree._Element-class.html#makeelement -lxml.etree._Element.base lxml.etree._Element-class.html#base -lxml.html.HtmlMixin.find_class lxml.html.HtmlMixin-class.html#find_class -lxml.html.HtmlMixin._label__del lxml.html.HtmlMixin-class.html#_label__del -lxml.html.HtmlMixin._label__get lxml.html.HtmlMixin-class.html#_label__get -lxml.etree._Element.iterchildren lxml.etree._Element-class.html#iterchildren -lxml.etree._Element.iterancestors lxml.etree._Element-class.html#iterancestors -lxml.etree._Element.extend lxml.etree._Element-class.html#extend -lxml.etree._Element.__reversed__ lxml.etree._Element-class.html#__reversed__ -lxml.etree._Element.itersiblings lxml.etree._Element-class.html#itersiblings -lxml.etree._Element.__nonzero__ lxml.etree._Element-class.html#__nonzero__ -lxml.etree._ProcessingInstruction.target lxml.etree._ProcessingInstruction-class.html#target -lxml.etree._Element.clear lxml.etree._Element-class.html#clear -lxml.etree._Element.itertext lxml.etree._Element-class.html#itertext -lxml.etree._Element.findall lxml.etree._Element-class.html#findall -lxml.etree._Element.__iter__ lxml.etree._Element-class.html#__iter__ -lxml.etree._Element.remove lxml.etree._Element-class.html#remove -lxml.etree._ProcessingInstruction.__repr__ lxml.etree._ProcessingInstruction-class.html#__repr__ -lxml.etree._Element.getiterator lxml.etree._Element-class.html#getiterator -lxml.html.HtmlMixin.find_rel_links lxml.html.HtmlMixin-class.html#find_rel_links -lxml.etree._ProcessingInstruction.attrib lxml.etree._ProcessingInstruction-class.html#attrib -lxml.etree._Element.__copy__ lxml.etree._Element-class.html#__copy__ -lxml.html.InputElement lxml.html.InputElement-class.html -lxml.etree._Element.sourceline lxml.etree._Element-class.html#sourceline -lxml.etree._Element.text lxml.etree._Element-class.html#text -lxml.etree._Element._init lxml.etree._Element-class.html#_init -lxml.etree._Element.prefix lxml.etree._Element-class.html#prefix -lxml.html.InputMixin._name__del lxml.html.InputMixin-class.html#_name__del -lxml.html.HtmlMixin.drop_tag lxml.html.HtmlMixin-class.html#drop_tag -lxml.html.HtmlMixin.label lxml.html.HtmlMixin-class.html#label -lxml.etree._Element.find lxml.etree._Element-class.html#find -lxml.html.HtmlMixin.iterlinks lxml.html.HtmlMixin-class.html#iterlinks -lxml.html.HtmlMixin.base_url lxml.html.HtmlMixin-class.html#base_url -lxml.html.InputMixin._name__set lxml.html.InputMixin-class.html#_name__set -lxml.html.HtmlMixin.forms lxml.html.HtmlMixin-class.html#forms -lxml.etree._Element.tail lxml.etree._Element-class.html#tail -lxml.etree._Element.__getitem__ lxml.etree._Element-class.html#__getitem__ -lxml.etree._Element.get lxml.etree._Element-class.html#get -lxml.etree._Element.__deepcopy__ lxml.etree._Element-class.html#__deepcopy__ -lxml.etree._Element.insert lxml.etree._Element-class.html#insert -lxml.etree._Element.__nonzero__ lxml.etree._Element-class.html#__nonzero__ -lxml.etree._Element.__delitem__ lxml.etree._Element-class.html#__delitem__ -lxml.etree._Element.__reversed__ lxml.etree._Element-class.html#__reversed__ -lxml.html.HtmlMixin._label__get lxml.html.HtmlMixin-class.html#_label__get -lxml.html.InputMixin.name lxml.html.InputMixin-class.html#name -lxml.html.InputMixin._name__get lxml.html.InputMixin-class.html#_name__get -lxml.html.InputElement._type__set lxml.html.InputElement-class.html#_type__set -lxml.etree._Element.remove lxml.etree._Element-class.html#remove -lxml.html.HtmlMixin.find_rel_links lxml.html.HtmlMixin-class.html#find_rel_links -lxml.etree._Element.__copy__ lxml.etree._Element-class.html#__copy__ -lxml.etree._Element.set lxml.etree._Element-class.html#set -lxml.etree._Element.iter lxml.etree._Element-class.html#iter -lxml.etree._Element.addnext lxml.etree._Element-class.html#addnext -lxml.etree._Element.append lxml.etree._Element-class.html#append -lxml.etree._Element.index lxml.etree._Element-class.html#index -lxml.etree._Element.__contains__ lxml.etree._Element-class.html#__contains__ -lxml.etree._Element.findtext lxml.etree._Element-class.html#findtext -lxml.etree._Element.findall lxml.etree._Element-class.html#findall -lxml.etree._Element.getchildren lxml.etree._Element-class.html#getchildren -lxml.html.HtmlMixin.resolve_base_href lxml.html.HtmlMixin-class.html#resolve_base_href -lxml.html.HtmlMixin.body lxml.html.HtmlMixin-class.html#body -lxml.etree._Element.extend lxml.etree._Element-class.html#extend -lxml.etree._Element.__setitem__ lxml.etree._Element-class.html#__setitem__ -lxml.etree._Element.base lxml.etree._Element-class.html#base -lxml.html.HtmlMixin.find_class lxml.html.HtmlMixin-class.html#find_class -lxml.html.HtmlMixin._label__del lxml.html.HtmlMixin-class.html#_label__del -lxml.etree._Element.iterancestors lxml.etree._Element-class.html#iterancestors -lxml.etree._Element.items lxml.etree._Element-class.html#items -lxml.html.HtmlMixin.cssselect lxml.html.HtmlMixin-class.html#cssselect -lxml.html.InputMixin.__repr__ lxml.html.InputMixin-class.html#__repr__ -lxml.etree._Element.attrib lxml.etree._Element-class.html#attrib -lxml.etree._Element.getprevious lxml.etree._Element-class.html#getprevious -lxml.etree._Element.getparent lxml.etree._Element-class.html#getparent -lxml.html.HtmlMixin.drop_tree lxml.html.HtmlMixin-class.html#drop_tree -lxml.etree._Element.replace lxml.etree._Element-class.html#replace -lxml.etree._Element.getnext lxml.etree._Element-class.html#getnext -lxml.html.HtmlMixin.text_content lxml.html.HtmlMixin-class.html#text_content -lxml.html.InputElement.checked lxml.html.InputElement-class.html#checked -lxml.html.InputElement._type__get lxml.html.InputElement-class.html#_type__get -lxml.html.InputElement.type lxml.html.InputElement-class.html#type -lxml.etree._Element.__len__ lxml.etree._Element-class.html#__len__ -lxml.html.HtmlMixin.rewrite_links lxml.html.HtmlMixin-class.html#rewrite_links -lxml.etree._Element.xpath lxml.etree._Element-class.html#xpath -lxml.html.HtmlMixin.head lxml.html.HtmlMixin-class.html#head -lxml.etree._Element.__iter__ lxml.etree._Element-class.html#__iter__ -lxml.html.InputElement.checkable lxml.html.InputElement-class.html#checkable -lxml.etree._Element.itersiblings lxml.etree._Element-class.html#itersiblings -lxml.html.InputElement.value lxml.html.InputElement-class.html#value -lxml.etree._Element.values lxml.etree._Element-class.html#values -lxml.etree._Element.iterfind lxml.etree._Element-class.html#iterfind -lxml.etree._Element.iterchildren lxml.etree._Element-class.html#iterchildren -lxml.etree._Element.tag lxml.etree._Element-class.html#tag -lxml.html.InputElement._value__del lxml.html.InputElement-class.html#_value__del -lxml.etree._Element.addprevious lxml.etree._Element-class.html#addprevious -lxml.etree.ElementBase.__init__ lxml.etree.ElementBase-class.html#__init__ -lxml.html.HtmlMixin.make_links_absolute lxml.html.HtmlMixin-class.html#make_links_absolute -lxml.html.HtmlMixin._label__set lxml.html.HtmlMixin-class.html#_label__set -lxml.html.HtmlMixin.get_element_by_id lxml.html.HtmlMixin-class.html#get_element_by_id -lxml.etree.ElementBase.__new__ lxml.etree.ElementBase-class.html#__new__ -lxml.etree._Element.getroottree lxml.etree._Element-class.html#getroottree -lxml.etree._Element.iterdescendants lxml.etree._Element-class.html#iterdescendants -lxml.etree._Element.keys lxml.etree._Element-class.html#keys -lxml.etree._Element.makeelement lxml.etree._Element-class.html#makeelement -lxml.html.InputElement._value__set lxml.html.InputElement-class.html#_value__set -lxml.html.InputElement._checked__set lxml.html.InputElement-class.html#_checked__set -lxml.etree._Element.getiterator lxml.etree._Element-class.html#getiterator -lxml.etree._Element.clear lxml.etree._Element-class.html#clear -lxml.etree._Element.itertext lxml.etree._Element-class.html#itertext -lxml.etree._Element.nsmap lxml.etree._Element-class.html#nsmap -lxml.html.InputElement._value__get lxml.html.InputElement-class.html#_value__get -lxml.html.InputElement._checked__get lxml.html.InputElement-class.html#_checked__get -lxml.html.InputGetter lxml.html.InputGetter-class.html -lxml.html.InputGetter.__getitem__ lxml.html.InputGetter-class.html#__getitem__ -lxml.html.InputGetter.__contains__ lxml.html.InputGetter-class.html#__contains__ -lxml.html.InputGetter.keys lxml.html.InputGetter-class.html#keys -lxml.html.InputGetter.__iter__ lxml.html.InputGetter-class.html#__iter__ -lxml.html.InputGetter.__repr__ lxml.html.InputGetter-class.html#__repr__ -lxml.html.InputGetter._all_xpath lxml.html.InputGetter-class.html#_all_xpath -lxml.html.InputGetter.__init__ lxml.html.InputGetter-class.html#__init__ -lxml.html.InputGetter._name_xpath lxml.html.InputGetter-class.html#_name_xpath -lxml.html.InputMixin lxml.html.InputMixin-class.html -lxml.html.InputMixin.name lxml.html.InputMixin-class.html#name -lxml.html.InputMixin._name__get lxml.html.InputMixin-class.html#_name__get -lxml.html.InputMixin._name__set lxml.html.InputMixin-class.html#_name__set -lxml.html.InputMixin.__repr__ lxml.html.InputMixin-class.html#__repr__ -lxml.html.InputMixin._name__del lxml.html.InputMixin-class.html#_name__del -lxml.html.LabelElement lxml.html.LabelElement-class.html -lxml.etree._Element.sourceline lxml.etree._Element-class.html#sourceline -lxml.etree._Element.text lxml.etree._Element-class.html#text -lxml.etree._Element._init lxml.etree._Element-class.html#_init -lxml.etree._Element.prefix lxml.etree._Element-class.html#prefix -lxml.html.HtmlMixin.drop_tag lxml.html.HtmlMixin-class.html#drop_tag -lxml.etree._Element.find lxml.etree._Element-class.html#find -lxml.html.HtmlMixin.iterlinks lxml.html.HtmlMixin-class.html#iterlinks -lxml.html.HtmlMixin.forms lxml.html.HtmlMixin-class.html#forms -lxml.etree._Element.tail lxml.etree._Element-class.html#tail -lxml.etree._Element.__getitem__ lxml.etree._Element-class.html#__getitem__ -lxml.etree._Element.get lxml.etree._Element-class.html#get -lxml.etree._Element.__deepcopy__ lxml.etree._Element-class.html#__deepcopy__ -lxml.etree._Element.insert lxml.etree._Element-class.html#insert -lxml.etree._Element.__nonzero__ lxml.etree._Element-class.html#__nonzero__ -lxml.etree._Element.__delitem__ lxml.etree._Element-class.html#__delitem__ -lxml.etree._Element.__reversed__ lxml.etree._Element-class.html#__reversed__ -lxml.html.HtmlMixin._label__get lxml.html.HtmlMixin-class.html#_label__get -lxml.etree._Element.iter lxml.etree._Element-class.html#iter -lxml.html.HtmlMixin.find_rel_links lxml.html.HtmlMixin-class.html#find_rel_links -lxml.etree._Element.__copy__ lxml.etree._Element-class.html#__copy__ -lxml.etree._Element.set lxml.etree._Element-class.html#set -lxml.etree._Element.remove lxml.etree._Element-class.html#remove -lxml.etree._Element.addnext lxml.etree._Element-class.html#addnext -lxml.etree._Element.append lxml.etree._Element-class.html#append -lxml.etree._Element.index lxml.etree._Element-class.html#index -lxml.etree._Element.__contains__ lxml.etree._Element-class.html#__contains__ -lxml.etree._Element.findtext lxml.etree._Element-class.html#findtext -lxml.html.HtmlMixin.label lxml.html.HtmlMixin-class.html#label -lxml.etree._Element.getchildren lxml.etree._Element-class.html#getchildren -lxml.html.HtmlMixin.resolve_base_href lxml.html.HtmlMixin-class.html#resolve_base_href -lxml.html.HtmlMixin.body lxml.html.HtmlMixin-class.html#body -lxml.etree._Element.extend lxml.etree._Element-class.html#extend -lxml.etree._Element.__setitem__ lxml.etree._Element-class.html#__setitem__ -lxml.etree._Element.base lxml.etree._Element-class.html#base -lxml.html.HtmlMixin.find_class lxml.html.HtmlMixin-class.html#find_class -lxml.html.HtmlMixin._label__del lxml.html.HtmlMixin-class.html#_label__del -lxml.etree._Element.items lxml.etree._Element-class.html#items -lxml.html.LabelElement._for_element__get lxml.html.LabelElement-class.html#_for_element__get -lxml.html.HtmlMixin.cssselect lxml.html.HtmlMixin-class.html#cssselect -lxml.etree._Element.__repr__ lxml.etree._Element-class.html#__repr__ -lxml.etree._Element.attrib lxml.etree._Element-class.html#attrib -lxml.etree._Element.getprevious lxml.etree._Element-class.html#getprevious -lxml.etree._Element.getparent lxml.etree._Element-class.html#getparent -lxml.html.HtmlMixin.drop_tree lxml.html.HtmlMixin-class.html#drop_tree -lxml.html.HtmlMixin.base_url lxml.html.HtmlMixin-class.html#base_url -lxml.etree._Element.replace lxml.etree._Element-class.html#replace -lxml.etree._Element.getnext lxml.etree._Element-class.html#getnext -lxml.html.HtmlMixin.text_content lxml.html.HtmlMixin-class.html#text_content -lxml.etree._Element.iterancestors lxml.etree._Element-class.html#iterancestors -lxml.etree._Element.__len__ lxml.etree._Element-class.html#__len__ -lxml.html.HtmlMixin.rewrite_links lxml.html.HtmlMixin-class.html#rewrite_links -lxml.etree._Element.xpath lxml.etree._Element-class.html#xpath -lxml.html.HtmlMixin.head lxml.html.HtmlMixin-class.html#head -lxml.etree._Element.__iter__ lxml.etree._Element-class.html#__iter__ -lxml.html.LabelElement.for_element lxml.html.LabelElement-class.html#for_element -lxml.etree._Element.itersiblings lxml.etree._Element-class.html#itersiblings -lxml.etree._Element.findall lxml.etree._Element-class.html#findall -lxml.html.LabelElement._for_element__del lxml.html.LabelElement-class.html#_for_element__del -lxml.etree._Element.values lxml.etree._Element-class.html#values -lxml.etree._Element.iterfind lxml.etree._Element-class.html#iterfind -lxml.etree._Element.iterchildren lxml.etree._Element-class.html#iterchildren -lxml.etree._Element.tag lxml.etree._Element-class.html#tag -lxml.etree._Element.addprevious lxml.etree._Element-class.html#addprevious -lxml.etree.ElementBase.__init__ lxml.etree.ElementBase-class.html#__init__ -lxml.html.HtmlMixin.make_links_absolute lxml.html.HtmlMixin-class.html#make_links_absolute -lxml.html.HtmlMixin._label__set lxml.html.HtmlMixin-class.html#_label__set -lxml.html.HtmlMixin.get_element_by_id lxml.html.HtmlMixin-class.html#get_element_by_id -lxml.etree.ElementBase.__new__ lxml.etree.ElementBase-class.html#__new__ -lxml.etree._Element.getroottree lxml.etree._Element-class.html#getroottree -lxml.html.LabelElement._for_element__set lxml.html.LabelElement-class.html#_for_element__set -lxml.etree._Element.iterdescendants lxml.etree._Element-class.html#iterdescendants -lxml.etree._Element.keys lxml.etree._Element-class.html#keys -lxml.etree._Element.makeelement lxml.etree._Element-class.html#makeelement -lxml.etree._Element.getiterator lxml.etree._Element-class.html#getiterator -lxml.etree._Element.clear lxml.etree._Element-class.html#clear -lxml.etree._Element.itertext lxml.etree._Element-class.html#itertext -lxml.etree._Element.nsmap lxml.etree._Element-class.html#nsmap -lxml.html.MultipleSelectOptions lxml.html.MultipleSelectOptions-class.html -lxml.html.MultipleSelectOptions.__init__ lxml.html.MultipleSelectOptions-class.html#__init__ -lxml.html.MultipleSelectOptions.add lxml.html.MultipleSelectOptions-class.html#add -lxml.html.MultipleSelectOptions.__iter__ lxml.html.MultipleSelectOptions-class.html#__iter__ -lxml.html.MultipleSelectOptions.remove lxml.html.MultipleSelectOptions-class.html#remove -lxml.html.MultipleSelectOptions.__repr__ lxml.html.MultipleSelectOptions-class.html#__repr__ -lxml.html.MultipleSelectOptions.options lxml.html.MultipleSelectOptions-class.html#options -lxml.html.RadioGroup lxml.html.RadioGroup-class.html -lxml.html.RadioGroup._value__del lxml.html.RadioGroup-class.html#_value__del -lxml.html.RadioGroup.value_options lxml.html.RadioGroup-class.html#value_options -lxml.html.RadioGroup._value__set lxml.html.RadioGroup-class.html#_value__set -lxml.html.RadioGroup.value lxml.html.RadioGroup-class.html#value -lxml.html.RadioGroup.__repr__ lxml.html.RadioGroup-class.html#__repr__ -lxml.html.RadioGroup._value__get lxml.html.RadioGroup-class.html#_value__get -lxml.html.SelectElement lxml.html.SelectElement-class.html -lxml.etree._Element.sourceline lxml.etree._Element-class.html#sourceline -lxml.etree._Element.text lxml.etree._Element-class.html#text -lxml.etree._Element._init lxml.etree._Element-class.html#_init -lxml.etree._Element.prefix lxml.etree._Element-class.html#prefix -lxml.html.InputMixin._name__del lxml.html.InputMixin-class.html#_name__del -lxml.html.HtmlMixin.drop_tag lxml.html.HtmlMixin-class.html#drop_tag -lxml.etree._Element.find lxml.etree._Element-class.html#find -lxml.html.HtmlMixin.iterlinks lxml.html.HtmlMixin-class.html#iterlinks -lxml.html.HtmlMixin.base_url lxml.html.HtmlMixin-class.html#base_url -lxml.html.InputMixin._name__set lxml.html.InputMixin-class.html#_name__set -lxml.html.HtmlMixin.forms lxml.html.HtmlMixin-class.html#forms -lxml.etree._Element.tail lxml.etree._Element-class.html#tail -lxml.etree._Element.__delitem__ lxml.etree._Element-class.html#__delitem__ -lxml.etree._Element.__getitem__ lxml.etree._Element-class.html#__getitem__ -lxml.etree._Element.get lxml.etree._Element-class.html#get -lxml.etree._Element.__deepcopy__ lxml.etree._Element-class.html#__deepcopy__ -lxml.etree._Element.__nonzero__ lxml.etree._Element-class.html#__nonzero__ -lxml.etree._Element.insert lxml.etree._Element-class.html#insert -lxml.etree._Element.__reversed__ lxml.etree._Element-class.html#__reversed__ -lxml.html.HtmlMixin._label__get lxml.html.HtmlMixin-class.html#_label__get -lxml.html.InputMixin.name lxml.html.InputMixin-class.html#name -lxml.html.InputMixin._name__get lxml.html.InputMixin-class.html#_name__get -lxml.etree._Element.remove lxml.etree._Element-class.html#remove -lxml.html.HtmlMixin.find_rel_links lxml.html.HtmlMixin-class.html#find_rel_links -lxml.etree._Element.__copy__ lxml.etree._Element-class.html#__copy__ -lxml.etree._Element.set lxml.etree._Element-class.html#set -lxml.etree._Element.iter lxml.etree._Element-class.html#iter -lxml.etree._Element.addnext lxml.etree._Element-class.html#addnext -lxml.etree._Element.append lxml.etree._Element-class.html#append -lxml.etree._Element.index lxml.etree._Element-class.html#index -lxml.etree._Element.__contains__ lxml.etree._Element-class.html#__contains__ -lxml.etree._Element.findtext lxml.etree._Element-class.html#findtext -lxml.html.HtmlMixin.label lxml.html.HtmlMixin-class.html#label -lxml.etree._Element.getchildren lxml.etree._Element-class.html#getchildren -lxml.html.HtmlMixin.resolve_base_href lxml.html.HtmlMixin-class.html#resolve_base_href -lxml.html.HtmlMixin.body lxml.html.HtmlMixin-class.html#body -lxml.etree._Element.extend lxml.etree._Element-class.html#extend -lxml.etree._Element.__setitem__ lxml.etree._Element-class.html#__setitem__ -lxml.etree._Element.base lxml.etree._Element-class.html#base -lxml.html.HtmlMixin.find_class lxml.html.HtmlMixin-class.html#find_class -lxml.html.HtmlMixin._label__del lxml.html.HtmlMixin-class.html#_label__del -lxml.etree._Element.items lxml.etree._Element-class.html#items -lxml.html.HtmlMixin.cssselect lxml.html.HtmlMixin-class.html#cssselect -lxml.html.InputMixin.__repr__ lxml.html.InputMixin-class.html#__repr__ -lxml.etree._Element.attrib lxml.etree._Element-class.html#attrib -lxml.etree._Element.getprevious lxml.etree._Element-class.html#getprevious -lxml.etree._Element.getparent lxml.etree._Element-class.html#getparent -lxml.html.HtmlMixin.drop_tree lxml.html.HtmlMixin-class.html#drop_tree -lxml.etree._Element.replace lxml.etree._Element-class.html#replace -lxml.html.SelectElement._multiple__set lxml.html.SelectElement-class.html#_multiple__set -lxml.etree._Element.getnext lxml.etree._Element-class.html#getnext -lxml.html.HtmlMixin.text_content lxml.html.HtmlMixin-class.html#text_content -lxml.etree._Element.iterancestors lxml.etree._Element-class.html#iterancestors -lxml.etree._Element.__len__ lxml.etree._Element-class.html#__len__ -lxml.html.HtmlMixin.rewrite_links lxml.html.HtmlMixin-class.html#rewrite_links -lxml.etree._Element.xpath lxml.etree._Element-class.html#xpath -lxml.html.SelectElement.value_options lxml.html.SelectElement-class.html#value_options -lxml.html.HtmlMixin.head lxml.html.HtmlMixin-class.html#head -lxml.etree._Element.__iter__ lxml.etree._Element-class.html#__iter__ -lxml.etree._Element.itersiblings lxml.etree._Element-class.html#itersiblings -lxml.etree._Element.findall lxml.etree._Element-class.html#findall -lxml.html.SelectElement.value lxml.html.SelectElement-class.html#value -lxml.etree._Element.values lxml.etree._Element-class.html#values -lxml.etree._Element.iterfind lxml.etree._Element-class.html#iterfind -lxml.etree._Element.iterchildren lxml.etree._Element-class.html#iterchildren -lxml.etree._Element.tag lxml.etree._Element-class.html#tag -lxml.html.SelectElement._value__del lxml.html.SelectElement-class.html#_value__del -lxml.etree._Element.addprevious lxml.etree._Element-class.html#addprevious -lxml.etree.ElementBase.__init__ lxml.etree.ElementBase-class.html#__init__ -lxml.html.HtmlMixin.make_links_absolute lxml.html.HtmlMixin-class.html#make_links_absolute -lxml.html.HtmlMixin._label__set lxml.html.HtmlMixin-class.html#_label__set -lxml.html.HtmlMixin.get_element_by_id lxml.html.HtmlMixin-class.html#get_element_by_id -lxml.etree.ElementBase.__new__ lxml.etree.ElementBase-class.html#__new__ -lxml.etree._Element.getroottree lxml.etree._Element-class.html#getroottree -lxml.etree._Element.iterdescendants lxml.etree._Element-class.html#iterdescendants -lxml.html.SelectElement.multiple lxml.html.SelectElement-class.html#multiple -lxml.etree._Element.keys lxml.etree._Element-class.html#keys -lxml.etree._Element.makeelement lxml.etree._Element-class.html#makeelement -lxml.html.SelectElement._value__set lxml.html.SelectElement-class.html#_value__set -lxml.etree._Element.getiterator lxml.etree._Element-class.html#getiterator -lxml.etree._Element.clear lxml.etree._Element-class.html#clear -lxml.etree._Element.itertext lxml.etree._Element-class.html#itertext -lxml.etree._Element.nsmap lxml.etree._Element-class.html#nsmap -lxml.html.SelectElement._multiple__get lxml.html.SelectElement-class.html#_multiple__get -lxml.html.SelectElement._value__get lxml.html.SelectElement-class.html#_value__get -lxml.html.TextareaElement lxml.html.TextareaElement-class.html -lxml.etree._Element.sourceline lxml.etree._Element-class.html#sourceline -lxml.etree._Element.text lxml.etree._Element-class.html#text -lxml.etree._Element._init lxml.etree._Element-class.html#_init -lxml.etree._Element.prefix lxml.etree._Element-class.html#prefix -lxml.html.InputMixin._name__del lxml.html.InputMixin-class.html#_name__del -lxml.html.HtmlMixin.drop_tag lxml.html.HtmlMixin-class.html#drop_tag -lxml.etree._Element.find lxml.etree._Element-class.html#find -lxml.html.HtmlMixin.iterlinks lxml.html.HtmlMixin-class.html#iterlinks -lxml.html.HtmlMixin.base_url lxml.html.HtmlMixin-class.html#base_url -lxml.html.InputMixin._name__set lxml.html.InputMixin-class.html#_name__set -lxml.html.HtmlMixin.forms lxml.html.HtmlMixin-class.html#forms -lxml.etree._Element.tail lxml.etree._Element-class.html#tail -lxml.etree._Element.__delitem__ lxml.etree._Element-class.html#__delitem__ -lxml.etree._Element.__getitem__ lxml.etree._Element-class.html#__getitem__ -lxml.etree._Element.get lxml.etree._Element-class.html#get -lxml.etree._Element.__deepcopy__ lxml.etree._Element-class.html#__deepcopy__ -lxml.etree._Element.__nonzero__ lxml.etree._Element-class.html#__nonzero__ -lxml.etree._Element.insert lxml.etree._Element-class.html#insert -lxml.etree._Element.__reversed__ lxml.etree._Element-class.html#__reversed__ -lxml.html.HtmlMixin._label__get lxml.html.HtmlMixin-class.html#_label__get -lxml.html.InputMixin.name lxml.html.InputMixin-class.html#name -lxml.html.InputMixin._name__get lxml.html.InputMixin-class.html#_name__get -lxml.etree._Element.iter lxml.etree._Element-class.html#iter -lxml.html.HtmlMixin.find_rel_links lxml.html.HtmlMixin-class.html#find_rel_links -lxml.etree._Element.__copy__ lxml.etree._Element-class.html#__copy__ -lxml.etree._Element.set lxml.etree._Element-class.html#set -lxml.etree._Element.remove lxml.etree._Element-class.html#remove -lxml.etree._Element.addnext lxml.etree._Element-class.html#addnext -lxml.etree._Element.append lxml.etree._Element-class.html#append -lxml.etree._Element.index lxml.etree._Element-class.html#index -lxml.etree._Element.__contains__ lxml.etree._Element-class.html#__contains__ -lxml.etree._Element.findtext lxml.etree._Element-class.html#findtext -lxml.html.HtmlMixin.label lxml.html.HtmlMixin-class.html#label -lxml.etree._Element.getchildren lxml.etree._Element-class.html#getchildren -lxml.html.HtmlMixin.resolve_base_href lxml.html.HtmlMixin-class.html#resolve_base_href -lxml.html.HtmlMixin.body lxml.html.HtmlMixin-class.html#body -lxml.etree._Element.extend lxml.etree._Element-class.html#extend -lxml.etree._Element.__setitem__ lxml.etree._Element-class.html#__setitem__ -lxml.etree._Element.base lxml.etree._Element-class.html#base -lxml.html.HtmlMixin.find_class lxml.html.HtmlMixin-class.html#find_class -lxml.html.HtmlMixin._label__del lxml.html.HtmlMixin-class.html#_label__del -lxml.etree._Element.items lxml.etree._Element-class.html#items -lxml.html.HtmlMixin.cssselect lxml.html.HtmlMixin-class.html#cssselect -lxml.html.InputMixin.__repr__ lxml.html.InputMixin-class.html#__repr__ -lxml.etree._Element.attrib lxml.etree._Element-class.html#attrib -lxml.etree._Element.getprevious lxml.etree._Element-class.html#getprevious -lxml.etree._Element.getparent lxml.etree._Element-class.html#getparent -lxml.html.HtmlMixin.drop_tree lxml.html.HtmlMixin-class.html#drop_tree -lxml.etree._Element.replace lxml.etree._Element-class.html#replace -lxml.etree._Element.getnext lxml.etree._Element-class.html#getnext -lxml.html.HtmlMixin.text_content lxml.html.HtmlMixin-class.html#text_content -lxml.etree._Element.iterancestors lxml.etree._Element-class.html#iterancestors -lxml.etree._Element.__len__ lxml.etree._Element-class.html#__len__ -lxml.html.HtmlMixin.rewrite_links lxml.html.HtmlMixin-class.html#rewrite_links -lxml.etree._Element.xpath lxml.etree._Element-class.html#xpath -lxml.html.HtmlMixin.head lxml.html.HtmlMixin-class.html#head -lxml.etree._Element.__iter__ lxml.etree._Element-class.html#__iter__ -lxml.etree._Element.itersiblings lxml.etree._Element-class.html#itersiblings -lxml.etree._Element.findall lxml.etree._Element-class.html#findall -lxml.html.TextareaElement.value lxml.html.TextareaElement-class.html#value -lxml.etree._Element.values lxml.etree._Element-class.html#values -lxml.etree._Element.iterfind lxml.etree._Element-class.html#iterfind -lxml.etree._Element.iterchildren lxml.etree._Element-class.html#iterchildren -lxml.etree._Element.tag lxml.etree._Element-class.html#tag -lxml.html.TextareaElement._value__del lxml.html.TextareaElement-class.html#_value__del -lxml.etree._Element.addprevious lxml.etree._Element-class.html#addprevious -lxml.etree.ElementBase.__init__ lxml.etree.ElementBase-class.html#__init__ -lxml.html.HtmlMixin.make_links_absolute lxml.html.HtmlMixin-class.html#make_links_absolute -lxml.html.HtmlMixin._label__set lxml.html.HtmlMixin-class.html#_label__set -lxml.html.HtmlMixin.get_element_by_id lxml.html.HtmlMixin-class.html#get_element_by_id -lxml.etree.ElementBase.__new__ lxml.etree.ElementBase-class.html#__new__ -lxml.etree._Element.getroottree lxml.etree._Element-class.html#getroottree -lxml.etree._Element.iterdescendants lxml.etree._Element-class.html#iterdescendants -lxml.etree._Element.keys lxml.etree._Element-class.html#keys -lxml.etree._Element.makeelement lxml.etree._Element-class.html#makeelement -lxml.html.TextareaElement._value__set lxml.html.TextareaElement-class.html#_value__set -lxml.etree._Element.getiterator lxml.etree._Element-class.html#getiterator -lxml.etree._Element.clear lxml.etree._Element-class.html#clear -lxml.etree._Element.itertext lxml.etree._Element-class.html#itertext -lxml.etree._Element.nsmap lxml.etree._Element-class.html#nsmap -lxml.html.TextareaElement._value__get lxml.html.TextareaElement-class.html#_value__get -lxml.html.XHTMLParser lxml.html.XHTMLParser-class.html -lxml.etree._FeedParser.feed lxml.etree._FeedParser-class.html#feed -lxml.etree._BaseParser.set_element_class_lookup lxml.etree._BaseParser-class.html#set_element_class_lookup -lxml.etree._FeedParser.close lxml.etree._FeedParser-class.html#close -lxml.html.XHTMLParser.__init__ lxml.html.XHTMLParser-class.html#__init__ -lxml.etree.XMLParser.__new__ lxml.etree.XMLParser-class.html#__new__ -lxml.etree._BaseParser.setElementClassLookup lxml.etree._BaseParser-class.html#setElementClassLookup -lxml.etree._BaseParser.version lxml.etree._BaseParser-class.html#version -lxml.etree._BaseParser.makeelement lxml.etree._BaseParser-class.html#makeelement -lxml.etree._BaseParser.copy lxml.etree._BaseParser-class.html#copy -lxml.etree._BaseParser.resolvers lxml.etree._BaseParser-class.html#resolvers -lxml.etree._BaseParser.target lxml.etree._BaseParser-class.html#target -lxml.etree._BaseParser.error_log lxml.etree._BaseParser-class.html#error_log -lxml.etree._FeedParser.feed_error_log lxml.etree._FeedParser-class.html#feed_error_log -lxml.html._MethodFunc lxml.html._MethodFunc-class.html -lxml.html._MethodFunc.__call__ lxml.html._MethodFunc-class.html#__call__ -lxml.html._MethodFunc.__init__ lxml.html._MethodFunc-class.html#__init__ -lxml.html.clean.Cleaner lxml.html.clean.Cleaner-class.html -lxml.html.clean.Cleaner.annoying_tags lxml.html.clean.Cleaner-class.html#annoying_tags -lxml.html.clean.Cleaner.links lxml.html.clean.Cleaner-class.html#links -lxml.html.clean.Cleaner.allow_embedded_url lxml.html.clean.Cleaner-class.html#allow_embedded_url -lxml.html.clean.Cleaner.remove_unknown_tags lxml.html.clean.Cleaner-class.html#remove_unknown_tags -lxml.html.clean.Cleaner.clean_html lxml.html.clean.Cleaner-class.html#clean_html -lxml.html.clean.Cleaner.kill_tags lxml.html.clean.Cleaner-class.html#kill_tags -lxml.html.clean.Cleaner.meta lxml.html.clean.Cleaner-class.html#meta -lxml.html.clean.Cleaner.page_structure lxml.html.clean.Cleaner-class.html#page_structure -lxml.html.clean.Cleaner.frames lxml.html.clean.Cleaner-class.html#frames -lxml.html.clean.Cleaner.allow_follow lxml.html.clean.Cleaner-class.html#allow_follow -lxml.html.clean.Cleaner.__init__ lxml.html.clean.Cleaner-class.html#__init__ -lxml.html.clean.Cleaner.style lxml.html.clean.Cleaner-class.html#style -lxml.html.clean.Cleaner.allow_tags lxml.html.clean.Cleaner-class.html#allow_tags -lxml.html.clean.Cleaner._remove_javascript_link lxml.html.clean.Cleaner-class.html#_remove_javascript_link -lxml.html.clean.Cleaner.comments lxml.html.clean.Cleaner-class.html#comments -lxml.html.clean.Cleaner.forms lxml.html.clean.Cleaner-class.html#forms -lxml.html.clean.Cleaner._substitute_comments lxml.html.clean.Cleaner-class.html#_substitute_comments -lxml.html.clean.Cleaner.kill_conditional_comments lxml.html.clean.Cleaner-class.html#kill_conditional_comments -lxml.html.clean.Cleaner.host_whitelist lxml.html.clean.Cleaner-class.html#host_whitelist -lxml.html.clean.Cleaner.whitelist_tags lxml.html.clean.Cleaner-class.html#whitelist_tags -lxml.html.clean.Cleaner.__call__ lxml.html.clean.Cleaner-class.html#__call__ -lxml.html.clean.Cleaner.remove_tags lxml.html.clean.Cleaner-class.html#remove_tags -lxml.html.clean.Cleaner._kill_elements lxml.html.clean.Cleaner-class.html#_kill_elements -lxml.html.clean.Cleaner._has_sneaky_javascript lxml.html.clean.Cleaner-class.html#_has_sneaky_javascript -lxml.html.clean.Cleaner.processing_instructions lxml.html.clean.Cleaner-class.html#processing_instructions -lxml.html.clean.Cleaner.javascript lxml.html.clean.Cleaner-class.html#javascript -lxml.html.clean.Cleaner.add_nofollow lxml.html.clean.Cleaner-class.html#add_nofollow -lxml.html.clean.Cleaner.allow_element lxml.html.clean.Cleaner-class.html#allow_element -lxml.html.clean.Cleaner.scripts lxml.html.clean.Cleaner-class.html#scripts -lxml.html.clean.Cleaner._tag_link_attrs lxml.html.clean.Cleaner-class.html#_tag_link_attrs -lxml.html.clean.Cleaner.safe_attrs_only lxml.html.clean.Cleaner-class.html#safe_attrs_only -lxml.html.clean.Cleaner.embedded lxml.html.clean.Cleaner-class.html#embedded -lxml.html.diff.DEL_END lxml.html.diff.DEL_END-class.html -lxml.html.diff.DEL_START lxml.html.diff.DEL_START-class.html -lxml.html.diff.InsensitiveSequenceMatcher lxml.html.diff.InsensitiveSequenceMatcher-class.html -lxml.html.diff.InsensitiveSequenceMatcher.get_matching_blocks lxml.html.diff.InsensitiveSequenceMatcher-class.html#get_matching_blocks -lxml.html.diff.InsensitiveSequenceMatcher.threshold lxml.html.diff.InsensitiveSequenceMatcher-class.html#threshold -lxml.html.diff.NoDeletes lxml.html.diff.NoDeletes-class.html -lxml.html.diff.href_token lxml.html.diff.href_token-class.html -lxml.html.diff.href_token.hide_when_equal lxml.html.diff.href_token-class.html#hide_when_equal -lxml.html.diff.token.__new__ lxml.html.diff.token-class.html#__new__ -lxml.html.diff.href_token.html lxml.html.diff.href_token-class.html#html -lxml.html.diff.token.__repr__ lxml.html.diff.token-class.html#__repr__ -lxml.html.diff.tag_token lxml.html.diff.tag_token-class.html -lxml.html.diff.token.hide_when_equal lxml.html.diff.token-class.html#hide_when_equal -lxml.html.diff.tag_token.__new__ lxml.html.diff.tag_token-class.html#__new__ -lxml.html.diff.tag_token.html lxml.html.diff.tag_token-class.html#html -lxml.html.diff.tag_token.__repr__ lxml.html.diff.tag_token-class.html#__repr__ -lxml.html.diff.token lxml.html.diff.token-class.html -lxml.html.diff.token.hide_when_equal lxml.html.diff.token-class.html#hide_when_equal -lxml.html.diff.token.__new__ lxml.html.diff.token-class.html#__new__ -lxml.html.diff.token.html lxml.html.diff.token-class.html#html -lxml.html.diff.token.__repr__ lxml.html.diff.token-class.html#__repr__ -lxml.html.formfill.DefaultErrorCreator lxml.html.formfill.DefaultErrorCreator-class.html -lxml.html.formfill.DefaultErrorCreator.error_container_tag lxml.html.formfill.DefaultErrorCreator-class.html#error_container_tag -lxml.html.formfill.DefaultErrorCreator.default_message lxml.html.formfill.DefaultErrorCreator-class.html#default_message -lxml.html.formfill.DefaultErrorCreator.insert_before lxml.html.formfill.DefaultErrorCreator-class.html#insert_before -lxml.html.formfill.DefaultErrorCreator.error_message_class lxml.html.formfill.DefaultErrorCreator-class.html#error_message_class -lxml.html.formfill.DefaultErrorCreator.__call__ lxml.html.formfill.DefaultErrorCreator-class.html#__call__ -lxml.html.formfill.DefaultErrorCreator.block_inside lxml.html.formfill.DefaultErrorCreator-class.html#block_inside -lxml.html.formfill.DefaultErrorCreator.error_block_class lxml.html.formfill.DefaultErrorCreator-class.html#error_block_class -lxml.html.formfill.DefaultErrorCreator.__init__ lxml.html.formfill.DefaultErrorCreator-class.html#__init__ -lxml.html.formfill.FormNotFound lxml.html.formfill.FormNotFound-class.html -lxml.html.html5parser.HTMLParser lxml.html.html5parser.HTMLParser-class.html -lxml.html.html5parser.HTMLParser.__init__ lxml.html.html5parser.HTMLParser-class.html#__init__ -lxml.html.html5parser.XHTMLParser lxml.html.html5parser.XHTMLParser-class.html -lxml.html.html5parser.XHTMLParser.__init__ lxml.html.html5parser.XHTMLParser-class.html#__init__ -lxml.isoschematron.Schematron lxml.isoschematron.Schematron-class.html -lxml.isoschematron.Schematron._extract_rng lxml.isoschematron.Schematron-class.html#_extract_rng -lxml.etree._Validator._append_log_message lxml.etree._Validator-class.html#_append_log_message -lxml.isoschematron.Schematron.validation_report lxml.isoschematron.Schematron-class.html#validation_report -lxml.isoschematron.Schematron.validator_xslt lxml.isoschematron.Schematron-class.html#validator_xslt -lxml.isoschematron.Schematron._expand lxml.isoschematron.Schematron-class.html#_expand -lxml.etree._Validator.assert_ lxml.etree._Validator-class.html#assert_ -lxml.isoschematron.Schematron.__init__ lxml.isoschematron.Schematron-class.html#__init__ -lxml.etree._Validator.__new__ lxml.etree._Validator-class.html#__new__ -lxml.etree._Validator._clear_error_log lxml.etree._Validator-class.html#_clear_error_log -lxml.isoschematron.Schematron._extract lxml.isoschematron.Schematron-class.html#_extract -lxml.isoschematron.Schematron.__call__ lxml.isoschematron.Schematron-class.html#__call__ -lxml.isoschematron.Schematron._compile lxml.isoschematron.Schematron-class.html#_compile -lxml.isoschematron.Schematron.schematron lxml.isoschematron.Schematron-class.html#schematron -lxml.isoschematron.Schematron._validation_errors lxml.isoschematron.Schematron-class.html#_validation_errors -lxml.isoschematron.Schematron._include lxml.isoschematron.Schematron-class.html#_include -lxml.etree._Validator.validate lxml.etree._Validator-class.html#validate -lxml.isoschematron.Schematron._level lxml.isoschematron.Schematron-class.html#_level -lxml.isoschematron.Schematron._domain lxml.isoschematron.Schematron-class.html#_domain -lxml.etree._Validator.assertValid lxml.etree._Validator-class.html#assertValid -lxml.isoschematron.Schematron._error_type lxml.isoschematron.Schematron-class.html#_error_type -lxml.etree._Validator.error_log lxml.etree._Validator-class.html#error_log -lxml.isoschematron.Schematron._extract_xsd lxml.isoschematron.Schematron-class.html#_extract_xsd -lxml.objectify.BoolElement lxml.objectify.BoolElement-class.html -lxml.objectify.NumberElement.__int__ lxml.objectify.NumberElement-class.html#__int__ -lxml.objectify.NumberElement.__ror__ lxml.objectify.NumberElement-class.html#__ror__ -lxml.objectify.ObjectifiedElement.addattr lxml.objectify.ObjectifiedElement-class.html#addattr -lxml.etree._Element.sourceline lxml.etree._Element-class.html#sourceline -lxml.objectify.ObjectifiedElement.text lxml.objectify.ObjectifiedElement-class.html#text -lxml.objectify.BoolElement.__str__ lxml.objectify.BoolElement-class.html#__str__ -lxml.objectify.BoolElement._init lxml.objectify.BoolElement-class.html#_init -lxml.etree._Element.prefix lxml.etree._Element-class.html#prefix -lxml.objectify.NumberElement.__rdiv__ lxml.objectify.NumberElement-class.html#__rdiv__ -lxml.objectify.NumberElement.__rmul__ lxml.objectify.NumberElement-class.html#__rmul__ -lxml.objectify.BoolElement.__lt__ lxml.objectify.BoolElement-class.html#__lt__ -lxml.etree._Element.find lxml.etree._Element-class.html#find -lxml.objectify.NumberElement.__rshift__ lxml.objectify.NumberElement-class.html#__rshift__ -lxml.etree._Element.iterdescendants lxml.etree._Element-class.html#iterdescendants -lxml.etree._Element.tail lxml.etree._Element-class.html#tail -lxml.objectify.ObjectifiedElement.__getitem__ lxml.objectify.ObjectifiedElement-class.html#__getitem__ -lxml.etree._Element.get lxml.etree._Element-class.html#get -lxml.etree._Element.__deepcopy__ lxml.etree._Element-class.html#__deepcopy__ -lxml.objectify.NumberElement.__pow__ lxml.objectify.NumberElement-class.html#__pow__ -lxml.objectify.BoolElement.__gt__ lxml.objectify.BoolElement-class.html#__gt__ -lxml.objectify.NumberElement.__oct__ lxml.objectify.NumberElement-class.html#__oct__ -lxml.objectify.NumberElement.__rxor__ lxml.objectify.NumberElement-class.html#__rxor__ -lxml.objectify.ObjectifiedElement.__delitem__ lxml.objectify.ObjectifiedElement-class.html#__delitem__ -lxml.etree._Element.__reversed__ lxml.etree._Element-class.html#__reversed__ -lxml.objectify.BoolElement.__nonzero__ lxml.objectify.BoolElement-class.html#__nonzero__ -lxml.etree._Element.remove lxml.etree._Element-class.html#remove -lxml.objectify.ObjectifiedElement.descendantpaths lxml.objectify.ObjectifiedElement-class.html#descendantpaths -lxml.objectify.NumberElement.__long__ lxml.objectify.NumberElement-class.html#__long__ -lxml.etree._Element.__copy__ lxml.etree._Element-class.html#__copy__ -lxml.etree._Element.set lxml.etree._Element-class.html#set -lxml.objectify.NumberElement.__truediv__ lxml.objectify.NumberElement-class.html#__truediv__ -lxml.etree._Element.iter lxml.etree._Element-class.html#iter -lxml.etree._Element.addnext lxml.etree._Element-class.html#addnext -lxml.objectify.NumberElement.__rmod__ lxml.objectify.NumberElement-class.html#__rmod__ -lxml.etree._Element.append lxml.etree._Element-class.html#append -lxml.objectify.NumberElement.__rand__ lxml.objectify.NumberElement-class.html#__rand__ -lxml.objectify.ObjectifiedElement.__setattr__ lxml.objectify.ObjectifiedElement-class.html#__setattr__ -lxml.etree._Element.__contains__ lxml.etree._Element-class.html#__contains__ -lxml.objectify.ObjectifiedDataElement._setText lxml.objectify.ObjectifiedDataElement-class.html#_setText -lxml.objectify.ObjectifiedElement.__getattr__ lxml.objectify.ObjectifiedElement-class.html#__getattr__ -lxml.etree._Element.findall lxml.etree._Element-class.html#findall -lxml.objectify.ObjectifiedElement.getchildren lxml.objectify.ObjectifiedElement-class.html#getchildren -lxml.objectify.BoolElement.__le__ lxml.objectify.BoolElement-class.html#__le__ -lxml.objectify.NumberElement.__float__ lxml.objectify.NumberElement-class.html#__float__ -lxml.objectify.BoolElement.__ne__ lxml.objectify.BoolElement-class.html#__ne__ -lxml.etree._Element.findtext lxml.etree._Element-class.html#findtext -lxml.etree._Element.extend lxml.etree._Element-class.html#extend -lxml.objectify.ObjectifiedElement.__setitem__ lxml.objectify.ObjectifiedElement-class.html#__setitem__ -lxml.etree._Element.base lxml.etree._Element-class.html#base -lxml.objectify.NumberElement.__hex__ lxml.objectify.NumberElement-class.html#__hex__ -lxml.etree._Element.items lxml.etree._Element-class.html#items -lxml.etree._Element.insert lxml.etree._Element-class.html#insert -lxml.objectify.NumberElement.__xor__ lxml.objectify.NumberElement-class.html#__xor__ -lxml.objectify.ObjectifiedElement.__delattr__ lxml.objectify.ObjectifiedElement-class.html#__delattr__ -lxml.objectify.NumberElement.__mul__ lxml.objectify.NumberElement-class.html#__mul__ -lxml.etree._Element.attrib lxml.etree._Element-class.html#attrib -lxml.objectify.NumberElement.__rlshift__ lxml.objectify.NumberElement-class.html#__rlshift__ -lxml.etree._Element.getprevious lxml.etree._Element-class.html#getprevious -lxml.etree._Element.getparent lxml.etree._Element-class.html#getparent -lxml.etree._Element.replace lxml.etree._Element-class.html#replace -lxml.objectify.NumberElement.__rsub__ lxml.objectify.NumberElement-class.html#__rsub__ -lxml.objectify.NumberElement.__and__ lxml.objectify.NumberElement-class.html#__and__ -lxml.objectify.NumberElement.__complex__ lxml.objectify.NumberElement-class.html#__complex__ -lxml.etree._Element.getnext lxml.etree._Element-class.html#getnext -lxml.etree._Element.iterancestors lxml.etree._Element-class.html#iterancestors -lxml.objectify.NumberElement.__abs__ lxml.objectify.NumberElement-class.html#__abs__ -lxml.objectify.ObjectifiedElement.__len__ lxml.objectify.ObjectifiedElement-class.html#__len__ -lxml.etree._Element.xpath lxml.etree._Element-class.html#xpath -lxml.objectify.NumberElement.__invert__ lxml.objectify.NumberElement-class.html#__invert__ -lxml.objectify.ObjectifiedElement.__reduce__ lxml.objectify.ObjectifiedElement-class.html#__reduce__ -lxml.objectify.ObjectifiedElement.__iter__ lxml.objectify.ObjectifiedElement-class.html#__iter__ -lxml.objectify.ObjectifiedElement.countchildren lxml.objectify.ObjectifiedElement-class.html#countchildren -lxml.objectify.NumberElement.__lshift__ lxml.objectify.NumberElement-class.html#__lshift__ -lxml.etree._Element.iterchildren lxml.etree._Element-class.html#iterchildren -lxml.objectify.BoolElement.__eq__ lxml.objectify.BoolElement-class.html#__eq__ -lxml.etree._Element.itersiblings lxml.etree._Element-class.html#itersiblings -lxml.objectify.NumberElement.__mod__ lxml.objectify.NumberElement-class.html#__mod__ -lxml.etree._Element.tag lxml.etree._Element-class.html#tag -lxml.etree._Element.values lxml.etree._Element-class.html#values -lxml.objectify.BoolElement.__hash__ lxml.objectify.BoolElement-class.html#__hash__ -lxml.objectify.NumberElement.__sub__ lxml.objectify.NumberElement-class.html#__sub__ -lxml.objectify.BoolElement.__ge__ lxml.objectify.BoolElement-class.html#__ge__ -lxml.objectify.NumberElement.__rtruediv__ lxml.objectify.NumberElement-class.html#__rtruediv__ -lxml.etree._Element.iterfind lxml.etree._Element-class.html#iterfind -lxml.objectify.ObjectifiedElement.__getattribute__ lxml.objectify.ObjectifiedElement-class.html#__getattribute__ -lxml.objectify.NumberElement.__radd__ lxml.objectify.NumberElement-class.html#__radd__ -lxml.objectify.NumberElement.__rrshift__ lxml.objectify.NumberElement-class.html#__rrshift__ -lxml.etree._Element.addprevious lxml.etree._Element-class.html#addprevious -lxml.etree.ElementBase.__init__ lxml.etree.ElementBase-class.html#__init__ -lxml.objectify.BoolElement.__new__ lxml.objectify.BoolElement-class.html#__new__ -lxml.objectify.NumberElement._setValueParser lxml.objectify.NumberElement-class.html#_setValueParser -lxml.etree._Element.getroottree lxml.etree._Element-class.html#getroottree -lxml.objectify.NumberElement.__pos__ lxml.objectify.NumberElement-class.html#__pos__ -lxml.objectify.NumberElement.__rpow__ lxml.objectify.NumberElement-class.html#__rpow__ -lxml.objectify.BoolElement.pyval lxml.objectify.BoolElement-class.html#pyval -lxml.objectify.BoolElement.__repr__ lxml.objectify.BoolElement-class.html#__repr__ -lxml.etree._Element.index lxml.etree._Element-class.html#index -lxml.etree._Element.keys lxml.etree._Element-class.html#keys -lxml.etree._Element.makeelement lxml.etree._Element-class.html#makeelement -lxml.objectify.NumberElement.__or__ lxml.objectify.NumberElement-class.html#__or__ -lxml.objectify.NumberElement.__add__ lxml.objectify.NumberElement-class.html#__add__ -lxml.etree._Element.getiterator lxml.etree._Element-class.html#getiterator -lxml.etree._Element.clear lxml.etree._Element-class.html#clear -lxml.etree._Element.itertext lxml.etree._Element-class.html#itertext -lxml.etree._Element.nsmap lxml.etree._Element-class.html#nsmap -lxml.objectify.NumberElement.__div__ lxml.objectify.NumberElement-class.html#__div__ -lxml.objectify.NumberElement.__neg__ lxml.objectify.NumberElement-class.html#__neg__ -lxml.objectify.ElementMaker lxml.objectify.ElementMaker-class.html -lxml.objectify.ElementMaker.__new__ lxml.objectify.ElementMaker-class.html#__new__ -lxml.objectify.ElementMaker.__getattribute__ lxml.objectify.ElementMaker-class.html#__getattribute__ -lxml.objectify.ElementMaker.__getattr__ lxml.objectify.ElementMaker-class.html#__getattr__ -lxml.objectify.ElementMaker.__init__ lxml.objectify.ElementMaker-class.html#__init__ -lxml.objectify.FloatElement lxml.objectify.FloatElement-class.html -lxml.objectify.NumberElement.__int__ lxml.objectify.NumberElement-class.html#__int__ -lxml.objectify.NumberElement.__ror__ lxml.objectify.NumberElement-class.html#__ror__ -lxml.objectify.ObjectifiedElement.addattr lxml.objectify.ObjectifiedElement-class.html#addattr -lxml.etree._Element.sourceline lxml.etree._Element-class.html#sourceline -lxml.objectify.ObjectifiedElement.text lxml.objectify.ObjectifiedElement-class.html#text -lxml.objectify.NumberElement.__str__ lxml.objectify.NumberElement-class.html#__str__ -lxml.objectify.FloatElement._init lxml.objectify.FloatElement-class.html#_init -lxml.etree._Element.prefix lxml.etree._Element-class.html#prefix -lxml.objectify.NumberElement.__rdiv__ lxml.objectify.NumberElement-class.html#__rdiv__ -lxml.objectify.NumberElement.__rmul__ lxml.objectify.NumberElement-class.html#__rmul__ -lxml.objectify.NumberElement.__lt__ lxml.objectify.NumberElement-class.html#__lt__ -lxml.etree._Element.find lxml.etree._Element-class.html#find -lxml.objectify.NumberElement.__rshift__ lxml.objectify.NumberElement-class.html#__rshift__ -lxml.etree._Element.iterdescendants lxml.etree._Element-class.html#iterdescendants -lxml.etree._Element.tail lxml.etree._Element-class.html#tail -lxml.objectify.ObjectifiedElement.__getitem__ lxml.objectify.ObjectifiedElement-class.html#__getitem__ -lxml.etree._Element.get lxml.etree._Element-class.html#get -lxml.etree._Element.__deepcopy__ lxml.etree._Element-class.html#__deepcopy__ -lxml.objectify.NumberElement.__pow__ lxml.objectify.NumberElement-class.html#__pow__ -lxml.objectify.NumberElement.__gt__ lxml.objectify.NumberElement-class.html#__gt__ -lxml.objectify.NumberElement.__oct__ lxml.objectify.NumberElement-class.html#__oct__ -lxml.objectify.NumberElement.__rxor__ lxml.objectify.NumberElement-class.html#__rxor__ -lxml.objectify.ObjectifiedElement.__delitem__ lxml.objectify.ObjectifiedElement-class.html#__delitem__ -lxml.etree._Element.__reversed__ lxml.etree._Element-class.html#__reversed__ -lxml.objectify.NumberElement.__nonzero__ lxml.objectify.NumberElement-class.html#__nonzero__ -lxml.etree._Element.remove lxml.etree._Element-class.html#remove -lxml.objectify.ObjectifiedElement.descendantpaths lxml.objectify.ObjectifiedElement-class.html#descendantpaths -lxml.objectify.NumberElement.__long__ lxml.objectify.NumberElement-class.html#__long__ -lxml.etree._Element.__copy__ lxml.etree._Element-class.html#__copy__ -lxml.etree._Element.set lxml.etree._Element-class.html#set -lxml.objectify.NumberElement.__truediv__ lxml.objectify.NumberElement-class.html#__truediv__ -lxml.etree._Element.iter lxml.etree._Element-class.html#iter -lxml.etree._Element.addnext lxml.etree._Element-class.html#addnext -lxml.objectify.NumberElement.__rmod__ lxml.objectify.NumberElement-class.html#__rmod__ -lxml.etree._Element.append lxml.etree._Element-class.html#append -lxml.objectify.NumberElement.__rand__ lxml.objectify.NumberElement-class.html#__rand__ -lxml.objectify.ObjectifiedElement.__setattr__ lxml.objectify.ObjectifiedElement-class.html#__setattr__ -lxml.etree._Element.__contains__ lxml.etree._Element-class.html#__contains__ -lxml.objectify.ObjectifiedDataElement._setText lxml.objectify.ObjectifiedDataElement-class.html#_setText -lxml.objectify.ObjectifiedElement.__getattr__ lxml.objectify.ObjectifiedElement-class.html#__getattr__ -lxml.etree._Element.findall lxml.etree._Element-class.html#findall -lxml.objectify.ObjectifiedElement.getchildren lxml.objectify.ObjectifiedElement-class.html#getchildren -lxml.objectify.NumberElement.__le__ lxml.objectify.NumberElement-class.html#__le__ -lxml.objectify.NumberElement.__complex__ lxml.objectify.NumberElement-class.html#__complex__ -lxml.objectify.NumberElement.__ne__ lxml.objectify.NumberElement-class.html#__ne__ -lxml.etree._Element.findtext lxml.etree._Element-class.html#findtext -lxml.etree._Element.extend lxml.etree._Element-class.html#extend -lxml.objectify.ObjectifiedElement.__setitem__ lxml.objectify.ObjectifiedElement-class.html#__setitem__ -lxml.etree._Element.base lxml.etree._Element-class.html#base -lxml.objectify.NumberElement.__hex__ lxml.objectify.NumberElement-class.html#__hex__ -lxml.etree._Element.items lxml.etree._Element-class.html#items -lxml.etree._Element.insert lxml.etree._Element-class.html#insert -lxml.objectify.NumberElement.__xor__ lxml.objectify.NumberElement-class.html#__xor__ -lxml.objectify.ObjectifiedElement.__delattr__ lxml.objectify.ObjectifiedElement-class.html#__delattr__ -lxml.objectify.NumberElement.__mul__ lxml.objectify.NumberElement-class.html#__mul__ -lxml.etree._Element.attrib lxml.etree._Element-class.html#attrib -lxml.objectify.NumberElement.__rlshift__ lxml.objectify.NumberElement-class.html#__rlshift__ -lxml.etree._Element.getprevious lxml.etree._Element-class.html#getprevious -lxml.etree._Element.getparent lxml.etree._Element-class.html#getparent -lxml.etree._Element.replace lxml.etree._Element-class.html#replace -lxml.objectify.NumberElement.__rsub__ lxml.objectify.NumberElement-class.html#__rsub__ -lxml.objectify.NumberElement.__and__ lxml.objectify.NumberElement-class.html#__and__ -lxml.objectify.NumberElement.__float__ lxml.objectify.NumberElement-class.html#__float__ -lxml.etree._Element.getnext lxml.etree._Element-class.html#getnext -lxml.etree._Element.iterancestors lxml.etree._Element-class.html#iterancestors -lxml.objectify.NumberElement.__abs__ lxml.objectify.NumberElement-class.html#__abs__ -lxml.objectify.ObjectifiedElement.__len__ lxml.objectify.ObjectifiedElement-class.html#__len__ -lxml.etree._Element.xpath lxml.etree._Element-class.html#xpath -lxml.objectify.NumberElement.__invert__ lxml.objectify.NumberElement-class.html#__invert__ -lxml.objectify.ObjectifiedElement.__reduce__ lxml.objectify.ObjectifiedElement-class.html#__reduce__ -lxml.objectify.ObjectifiedElement.__iter__ lxml.objectify.ObjectifiedElement-class.html#__iter__ -lxml.objectify.ObjectifiedElement.countchildren lxml.objectify.ObjectifiedElement-class.html#countchildren -lxml.objectify.NumberElement.__lshift__ lxml.objectify.NumberElement-class.html#__lshift__ -lxml.etree._Element.iterchildren lxml.etree._Element-class.html#iterchildren -lxml.objectify.NumberElement.__eq__ lxml.objectify.NumberElement-class.html#__eq__ -lxml.etree._Element.itersiblings lxml.etree._Element-class.html#itersiblings -lxml.objectify.NumberElement.__mod__ lxml.objectify.NumberElement-class.html#__mod__ -lxml.etree._Element.tag lxml.etree._Element-class.html#tag -lxml.etree._Element.values lxml.etree._Element-class.html#values -lxml.objectify.NumberElement.__hash__ lxml.objectify.NumberElement-class.html#__hash__ -lxml.objectify.NumberElement.__sub__ lxml.objectify.NumberElement-class.html#__sub__ -lxml.objectify.NumberElement.__ge__ lxml.objectify.NumberElement-class.html#__ge__ -lxml.objectify.NumberElement.__rtruediv__ lxml.objectify.NumberElement-class.html#__rtruediv__ -lxml.etree._Element.iterfind lxml.etree._Element-class.html#iterfind -lxml.objectify.ObjectifiedElement.__getattribute__ lxml.objectify.ObjectifiedElement-class.html#__getattribute__ -lxml.objectify.NumberElement.__radd__ lxml.objectify.NumberElement-class.html#__radd__ -lxml.objectify.NumberElement.__rrshift__ lxml.objectify.NumberElement-class.html#__rrshift__ -lxml.etree._Element.addprevious lxml.etree._Element-class.html#addprevious -lxml.etree.ElementBase.__init__ lxml.etree.ElementBase-class.html#__init__ -lxml.objectify.FloatElement.__new__ lxml.objectify.FloatElement-class.html#__new__ -lxml.objectify.NumberElement._setValueParser lxml.objectify.NumberElement-class.html#_setValueParser -lxml.etree._Element.getroottree lxml.etree._Element-class.html#getroottree -lxml.objectify.NumberElement.__pos__ lxml.objectify.NumberElement-class.html#__pos__ -lxml.objectify.NumberElement.__rpow__ lxml.objectify.NumberElement-class.html#__rpow__ -lxml.objectify.NumberElement.pyval lxml.objectify.NumberElement-class.html#pyval -lxml.objectify.NumberElement.__repr__ lxml.objectify.NumberElement-class.html#__repr__ -lxml.etree._Element.index lxml.etree._Element-class.html#index -lxml.etree._Element.keys lxml.etree._Element-class.html#keys -lxml.etree._Element.makeelement lxml.etree._Element-class.html#makeelement -lxml.objectify.NumberElement.__or__ lxml.objectify.NumberElement-class.html#__or__ -lxml.objectify.NumberElement.__add__ lxml.objectify.NumberElement-class.html#__add__ -lxml.etree._Element.getiterator lxml.etree._Element-class.html#getiterator -lxml.etree._Element.clear lxml.etree._Element-class.html#clear -lxml.etree._Element.itertext lxml.etree._Element-class.html#itertext -lxml.etree._Element.nsmap lxml.etree._Element-class.html#nsmap -lxml.objectify.NumberElement.__div__ lxml.objectify.NumberElement-class.html#__div__ -lxml.objectify.NumberElement.__neg__ lxml.objectify.NumberElement-class.html#__neg__ -lxml.objectify.IntElement lxml.objectify.IntElement-class.html -lxml.objectify.NumberElement.__int__ lxml.objectify.NumberElement-class.html#__int__ -lxml.objectify.NumberElement.__ror__ lxml.objectify.NumberElement-class.html#__ror__ -lxml.objectify.ObjectifiedElement.addattr lxml.objectify.ObjectifiedElement-class.html#addattr -lxml.etree._Element.sourceline lxml.etree._Element-class.html#sourceline -lxml.objectify.ObjectifiedElement.text lxml.objectify.ObjectifiedElement-class.html#text -lxml.objectify.NumberElement.__str__ lxml.objectify.NumberElement-class.html#__str__ -lxml.objectify.IntElement._init lxml.objectify.IntElement-class.html#_init -lxml.etree._Element.prefix lxml.etree._Element-class.html#prefix -lxml.objectify.NumberElement.__rdiv__ lxml.objectify.NumberElement-class.html#__rdiv__ -lxml.objectify.NumberElement.__rmul__ lxml.objectify.NumberElement-class.html#__rmul__ -lxml.objectify.NumberElement.__lt__ lxml.objectify.NumberElement-class.html#__lt__ -lxml.etree._Element.find lxml.etree._Element-class.html#find -lxml.objectify.NumberElement.__rshift__ lxml.objectify.NumberElement-class.html#__rshift__ -lxml.etree._Element.iterdescendants lxml.etree._Element-class.html#iterdescendants -lxml.etree._Element.tail lxml.etree._Element-class.html#tail -lxml.objectify.ObjectifiedElement.__getitem__ lxml.objectify.ObjectifiedElement-class.html#__getitem__ -lxml.etree._Element.get lxml.etree._Element-class.html#get -lxml.etree._Element.__deepcopy__ lxml.etree._Element-class.html#__deepcopy__ -lxml.objectify.NumberElement.__pow__ lxml.objectify.NumberElement-class.html#__pow__ -lxml.objectify.NumberElement.__gt__ lxml.objectify.NumberElement-class.html#__gt__ -lxml.objectify.NumberElement.__oct__ lxml.objectify.NumberElement-class.html#__oct__ -lxml.objectify.NumberElement.__rxor__ lxml.objectify.NumberElement-class.html#__rxor__ -lxml.objectify.ObjectifiedElement.__delitem__ lxml.objectify.ObjectifiedElement-class.html#__delitem__ -lxml.etree._Element.__reversed__ lxml.etree._Element-class.html#__reversed__ -lxml.objectify.NumberElement.__nonzero__ lxml.objectify.NumberElement-class.html#__nonzero__ -lxml.etree._Element.remove lxml.etree._Element-class.html#remove -lxml.objectify.ObjectifiedElement.descendantpaths lxml.objectify.ObjectifiedElement-class.html#descendantpaths -lxml.objectify.NumberElement.__long__ lxml.objectify.NumberElement-class.html#__long__ -lxml.etree._Element.__copy__ lxml.etree._Element-class.html#__copy__ -lxml.etree._Element.set lxml.etree._Element-class.html#set -lxml.objectify.NumberElement.__truediv__ lxml.objectify.NumberElement-class.html#__truediv__ -lxml.etree._Element.iter lxml.etree._Element-class.html#iter -lxml.etree._Element.addnext lxml.etree._Element-class.html#addnext -lxml.objectify.NumberElement.__rmod__ lxml.objectify.NumberElement-class.html#__rmod__ -lxml.etree._Element.append lxml.etree._Element-class.html#append -lxml.objectify.NumberElement.__rand__ lxml.objectify.NumberElement-class.html#__rand__ -lxml.objectify.ObjectifiedElement.__setattr__ lxml.objectify.ObjectifiedElement-class.html#__setattr__ -lxml.etree._Element.__contains__ lxml.etree._Element-class.html#__contains__ -lxml.objectify.ObjectifiedDataElement._setText lxml.objectify.ObjectifiedDataElement-class.html#_setText -lxml.objectify.ObjectifiedElement.__getattr__ lxml.objectify.ObjectifiedElement-class.html#__getattr__ -lxml.etree._Element.findall lxml.etree._Element-class.html#findall -lxml.objectify.ObjectifiedElement.getchildren lxml.objectify.ObjectifiedElement-class.html#getchildren -lxml.objectify.NumberElement.__le__ lxml.objectify.NumberElement-class.html#__le__ -lxml.objectify.NumberElement.__complex__ lxml.objectify.NumberElement-class.html#__complex__ -lxml.objectify.NumberElement.__ne__ lxml.objectify.NumberElement-class.html#__ne__ -lxml.etree._Element.findtext lxml.etree._Element-class.html#findtext -lxml.etree._Element.extend lxml.etree._Element-class.html#extend -lxml.objectify.ObjectifiedElement.__setitem__ lxml.objectify.ObjectifiedElement-class.html#__setitem__ -lxml.etree._Element.base lxml.etree._Element-class.html#base -lxml.objectify.NumberElement.__hex__ lxml.objectify.NumberElement-class.html#__hex__ -lxml.etree._Element.items lxml.etree._Element-class.html#items -lxml.etree._Element.insert lxml.etree._Element-class.html#insert -lxml.objectify.NumberElement.__xor__ lxml.objectify.NumberElement-class.html#__xor__ -lxml.objectify.ObjectifiedElement.__delattr__ lxml.objectify.ObjectifiedElement-class.html#__delattr__ -lxml.objectify.NumberElement.__mul__ lxml.objectify.NumberElement-class.html#__mul__ -lxml.etree._Element.attrib lxml.etree._Element-class.html#attrib -lxml.objectify.NumberElement.__rlshift__ lxml.objectify.NumberElement-class.html#__rlshift__ -lxml.etree._Element.getprevious lxml.etree._Element-class.html#getprevious -lxml.etree._Element.getparent lxml.etree._Element-class.html#getparent -lxml.etree._Element.replace lxml.etree._Element-class.html#replace -lxml.objectify.NumberElement.__rsub__ lxml.objectify.NumberElement-class.html#__rsub__ -lxml.objectify.NumberElement.__and__ lxml.objectify.NumberElement-class.html#__and__ -lxml.objectify.NumberElement.__float__ lxml.objectify.NumberElement-class.html#__float__ -lxml.etree._Element.getnext lxml.etree._Element-class.html#getnext -lxml.etree._Element.iterancestors lxml.etree._Element-class.html#iterancestors -lxml.objectify.NumberElement.__abs__ lxml.objectify.NumberElement-class.html#__abs__ -lxml.objectify.ObjectifiedElement.__len__ lxml.objectify.ObjectifiedElement-class.html#__len__ -lxml.etree._Element.xpath lxml.etree._Element-class.html#xpath -lxml.objectify.NumberElement.__invert__ lxml.objectify.NumberElement-class.html#__invert__ -lxml.objectify.ObjectifiedElement.__reduce__ lxml.objectify.ObjectifiedElement-class.html#__reduce__ -lxml.objectify.ObjectifiedElement.__iter__ lxml.objectify.ObjectifiedElement-class.html#__iter__ -lxml.objectify.ObjectifiedElement.countchildren lxml.objectify.ObjectifiedElement-class.html#countchildren -lxml.objectify.NumberElement.__lshift__ lxml.objectify.NumberElement-class.html#__lshift__ -lxml.etree._Element.iterchildren lxml.etree._Element-class.html#iterchildren -lxml.objectify.NumberElement.__eq__ lxml.objectify.NumberElement-class.html#__eq__ -lxml.etree._Element.itersiblings lxml.etree._Element-class.html#itersiblings -lxml.objectify.NumberElement.__mod__ lxml.objectify.NumberElement-class.html#__mod__ -lxml.etree._Element.tag lxml.etree._Element-class.html#tag -lxml.etree._Element.values lxml.etree._Element-class.html#values -lxml.objectify.NumberElement.__hash__ lxml.objectify.NumberElement-class.html#__hash__ -lxml.objectify.NumberElement.__sub__ lxml.objectify.NumberElement-class.html#__sub__ -lxml.objectify.NumberElement.__ge__ lxml.objectify.NumberElement-class.html#__ge__ -lxml.objectify.NumberElement.__rtruediv__ lxml.objectify.NumberElement-class.html#__rtruediv__ -lxml.etree._Element.iterfind lxml.etree._Element-class.html#iterfind -lxml.objectify.ObjectifiedElement.__getattribute__ lxml.objectify.ObjectifiedElement-class.html#__getattribute__ -lxml.objectify.NumberElement.__radd__ lxml.objectify.NumberElement-class.html#__radd__ -lxml.objectify.NumberElement.__rrshift__ lxml.objectify.NumberElement-class.html#__rrshift__ -lxml.etree._Element.addprevious lxml.etree._Element-class.html#addprevious -lxml.etree.ElementBase.__init__ lxml.etree.ElementBase-class.html#__init__ -lxml.objectify.IntElement.__new__ lxml.objectify.IntElement-class.html#__new__ -lxml.objectify.NumberElement._setValueParser lxml.objectify.NumberElement-class.html#_setValueParser -lxml.etree._Element.getroottree lxml.etree._Element-class.html#getroottree -lxml.objectify.NumberElement.__pos__ lxml.objectify.NumberElement-class.html#__pos__ -lxml.objectify.NumberElement.__rpow__ lxml.objectify.NumberElement-class.html#__rpow__ -lxml.objectify.NumberElement.pyval lxml.objectify.NumberElement-class.html#pyval -lxml.objectify.NumberElement.__repr__ lxml.objectify.NumberElement-class.html#__repr__ -lxml.etree._Element.index lxml.etree._Element-class.html#index -lxml.etree._Element.keys lxml.etree._Element-class.html#keys -lxml.etree._Element.makeelement lxml.etree._Element-class.html#makeelement -lxml.objectify.NumberElement.__or__ lxml.objectify.NumberElement-class.html#__or__ -lxml.objectify.NumberElement.__add__ lxml.objectify.NumberElement-class.html#__add__ -lxml.etree._Element.getiterator lxml.etree._Element-class.html#getiterator -lxml.etree._Element.clear lxml.etree._Element-class.html#clear -lxml.etree._Element.itertext lxml.etree._Element-class.html#itertext -lxml.etree._Element.nsmap lxml.etree._Element-class.html#nsmap -lxml.objectify.NumberElement.__div__ lxml.objectify.NumberElement-class.html#__div__ -lxml.objectify.NumberElement.__neg__ lxml.objectify.NumberElement-class.html#__neg__ -lxml.objectify.LongElement lxml.objectify.LongElement-class.html -lxml.objectify.NumberElement.__int__ lxml.objectify.NumberElement-class.html#__int__ -lxml.objectify.NumberElement.__ror__ lxml.objectify.NumberElement-class.html#__ror__ -lxml.objectify.ObjectifiedElement.addattr lxml.objectify.ObjectifiedElement-class.html#addattr -lxml.etree._Element.sourceline lxml.etree._Element-class.html#sourceline -lxml.objectify.ObjectifiedElement.text lxml.objectify.ObjectifiedElement-class.html#text -lxml.objectify.NumberElement.__str__ lxml.objectify.NumberElement-class.html#__str__ -lxml.objectify.LongElement._init lxml.objectify.LongElement-class.html#_init -lxml.etree._Element.prefix lxml.etree._Element-class.html#prefix -lxml.objectify.NumberElement.__rdiv__ lxml.objectify.NumberElement-class.html#__rdiv__ -lxml.objectify.NumberElement.__rmul__ lxml.objectify.NumberElement-class.html#__rmul__ -lxml.objectify.NumberElement.__lt__ lxml.objectify.NumberElement-class.html#__lt__ -lxml.etree._Element.find lxml.etree._Element-class.html#find -lxml.objectify.NumberElement.__rshift__ lxml.objectify.NumberElement-class.html#__rshift__ -lxml.etree._Element.iterdescendants lxml.etree._Element-class.html#iterdescendants -lxml.etree._Element.tail lxml.etree._Element-class.html#tail -lxml.objectify.ObjectifiedElement.__getitem__ lxml.objectify.ObjectifiedElement-class.html#__getitem__ -lxml.etree._Element.get lxml.etree._Element-class.html#get -lxml.etree._Element.__deepcopy__ lxml.etree._Element-class.html#__deepcopy__ -lxml.objectify.NumberElement.__pow__ lxml.objectify.NumberElement-class.html#__pow__ -lxml.objectify.NumberElement.__gt__ lxml.objectify.NumberElement-class.html#__gt__ -lxml.objectify.NumberElement.__oct__ lxml.objectify.NumberElement-class.html#__oct__ -lxml.objectify.NumberElement.__rxor__ lxml.objectify.NumberElement-class.html#__rxor__ -lxml.objectify.ObjectifiedElement.__delitem__ lxml.objectify.ObjectifiedElement-class.html#__delitem__ -lxml.etree._Element.__reversed__ lxml.etree._Element-class.html#__reversed__ -lxml.objectify.NumberElement.__nonzero__ lxml.objectify.NumberElement-class.html#__nonzero__ -lxml.etree._Element.remove lxml.etree._Element-class.html#remove -lxml.objectify.ObjectifiedElement.descendantpaths lxml.objectify.ObjectifiedElement-class.html#descendantpaths -lxml.objectify.NumberElement.__long__ lxml.objectify.NumberElement-class.html#__long__ -lxml.etree._Element.__copy__ lxml.etree._Element-class.html#__copy__ -lxml.etree._Element.set lxml.etree._Element-class.html#set -lxml.objectify.NumberElement.__truediv__ lxml.objectify.NumberElement-class.html#__truediv__ -lxml.etree._Element.iter lxml.etree._Element-class.html#iter -lxml.etree._Element.addnext lxml.etree._Element-class.html#addnext -lxml.objectify.NumberElement.__rmod__ lxml.objectify.NumberElement-class.html#__rmod__ -lxml.etree._Element.append lxml.etree._Element-class.html#append -lxml.objectify.NumberElement.__rand__ lxml.objectify.NumberElement-class.html#__rand__ -lxml.objectify.ObjectifiedElement.__setattr__ lxml.objectify.ObjectifiedElement-class.html#__setattr__ -lxml.etree._Element.__contains__ lxml.etree._Element-class.html#__contains__ -lxml.objectify.ObjectifiedDataElement._setText lxml.objectify.ObjectifiedDataElement-class.html#_setText -lxml.objectify.ObjectifiedElement.__getattr__ lxml.objectify.ObjectifiedElement-class.html#__getattr__ -lxml.etree._Element.findall lxml.etree._Element-class.html#findall -lxml.objectify.ObjectifiedElement.getchildren lxml.objectify.ObjectifiedElement-class.html#getchildren -lxml.objectify.NumberElement.__le__ lxml.objectify.NumberElement-class.html#__le__ -lxml.objectify.NumberElement.__complex__ lxml.objectify.NumberElement-class.html#__complex__ -lxml.objectify.NumberElement.__ne__ lxml.objectify.NumberElement-class.html#__ne__ -lxml.etree._Element.findtext lxml.etree._Element-class.html#findtext -lxml.etree._Element.extend lxml.etree._Element-class.html#extend -lxml.objectify.ObjectifiedElement.__setitem__ lxml.objectify.ObjectifiedElement-class.html#__setitem__ -lxml.etree._Element.base lxml.etree._Element-class.html#base -lxml.objectify.NumberElement.__hex__ lxml.objectify.NumberElement-class.html#__hex__ -lxml.etree._Element.items lxml.etree._Element-class.html#items -lxml.etree._Element.insert lxml.etree._Element-class.html#insert -lxml.objectify.NumberElement.__xor__ lxml.objectify.NumberElement-class.html#__xor__ -lxml.objectify.ObjectifiedElement.__delattr__ lxml.objectify.ObjectifiedElement-class.html#__delattr__ -lxml.objectify.NumberElement.__mul__ lxml.objectify.NumberElement-class.html#__mul__ -lxml.etree._Element.attrib lxml.etree._Element-class.html#attrib -lxml.objectify.NumberElement.__rlshift__ lxml.objectify.NumberElement-class.html#__rlshift__ -lxml.etree._Element.getprevious lxml.etree._Element-class.html#getprevious -lxml.etree._Element.getparent lxml.etree._Element-class.html#getparent -lxml.etree._Element.replace lxml.etree._Element-class.html#replace -lxml.objectify.NumberElement.__rsub__ lxml.objectify.NumberElement-class.html#__rsub__ -lxml.objectify.NumberElement.__and__ lxml.objectify.NumberElement-class.html#__and__ -lxml.objectify.NumberElement.__float__ lxml.objectify.NumberElement-class.html#__float__ -lxml.etree._Element.getnext lxml.etree._Element-class.html#getnext -lxml.etree._Element.iterancestors lxml.etree._Element-class.html#iterancestors -lxml.objectify.NumberElement.__abs__ lxml.objectify.NumberElement-class.html#__abs__ -lxml.objectify.ObjectifiedElement.__len__ lxml.objectify.ObjectifiedElement-class.html#__len__ -lxml.etree._Element.xpath lxml.etree._Element-class.html#xpath -lxml.objectify.NumberElement.__invert__ lxml.objectify.NumberElement-class.html#__invert__ -lxml.objectify.ObjectifiedElement.__reduce__ lxml.objectify.ObjectifiedElement-class.html#__reduce__ -lxml.objectify.ObjectifiedElement.__iter__ lxml.objectify.ObjectifiedElement-class.html#__iter__ -lxml.objectify.ObjectifiedElement.countchildren lxml.objectify.ObjectifiedElement-class.html#countchildren -lxml.objectify.NumberElement.__lshift__ lxml.objectify.NumberElement-class.html#__lshift__ -lxml.etree._Element.iterchildren lxml.etree._Element-class.html#iterchildren -lxml.objectify.NumberElement.__eq__ lxml.objectify.NumberElement-class.html#__eq__ -lxml.etree._Element.itersiblings lxml.etree._Element-class.html#itersiblings -lxml.objectify.NumberElement.__mod__ lxml.objectify.NumberElement-class.html#__mod__ -lxml.etree._Element.tag lxml.etree._Element-class.html#tag -lxml.etree._Element.values lxml.etree._Element-class.html#values -lxml.objectify.NumberElement.__hash__ lxml.objectify.NumberElement-class.html#__hash__ -lxml.objectify.NumberElement.__sub__ lxml.objectify.NumberElement-class.html#__sub__ -lxml.objectify.NumberElement.__ge__ lxml.objectify.NumberElement-class.html#__ge__ -lxml.objectify.NumberElement.__rtruediv__ lxml.objectify.NumberElement-class.html#__rtruediv__ -lxml.etree._Element.iterfind lxml.etree._Element-class.html#iterfind -lxml.objectify.ObjectifiedElement.__getattribute__ lxml.objectify.ObjectifiedElement-class.html#__getattribute__ -lxml.objectify.NumberElement.__radd__ lxml.objectify.NumberElement-class.html#__radd__ -lxml.objectify.NumberElement.__rrshift__ lxml.objectify.NumberElement-class.html#__rrshift__ -lxml.etree._Element.addprevious lxml.etree._Element-class.html#addprevious -lxml.etree.ElementBase.__init__ lxml.etree.ElementBase-class.html#__init__ -lxml.objectify.LongElement.__new__ lxml.objectify.LongElement-class.html#__new__ -lxml.objectify.NumberElement._setValueParser lxml.objectify.NumberElement-class.html#_setValueParser -lxml.etree._Element.getroottree lxml.etree._Element-class.html#getroottree -lxml.objectify.NumberElement.__pos__ lxml.objectify.NumberElement-class.html#__pos__ -lxml.objectify.NumberElement.__rpow__ lxml.objectify.NumberElement-class.html#__rpow__ -lxml.objectify.NumberElement.pyval lxml.objectify.NumberElement-class.html#pyval -lxml.objectify.NumberElement.__repr__ lxml.objectify.NumberElement-class.html#__repr__ -lxml.etree._Element.index lxml.etree._Element-class.html#index -lxml.etree._Element.keys lxml.etree._Element-class.html#keys -lxml.etree._Element.makeelement lxml.etree._Element-class.html#makeelement -lxml.objectify.NumberElement.__or__ lxml.objectify.NumberElement-class.html#__or__ -lxml.objectify.NumberElement.__add__ lxml.objectify.NumberElement-class.html#__add__ -lxml.etree._Element.getiterator lxml.etree._Element-class.html#getiterator -lxml.etree._Element.clear lxml.etree._Element-class.html#clear -lxml.etree._Element.itertext lxml.etree._Element-class.html#itertext -lxml.etree._Element.nsmap lxml.etree._Element-class.html#nsmap -lxml.objectify.NumberElement.__div__ lxml.objectify.NumberElement-class.html#__div__ -lxml.objectify.NumberElement.__neg__ lxml.objectify.NumberElement-class.html#__neg__ -lxml.objectify.NoneElement lxml.objectify.NoneElement-class.html -lxml.etree._Element.getprevious lxml.etree._Element-class.html#getprevious -lxml.objectify.ObjectifiedElement.addattr lxml.objectify.ObjectifiedElement-class.html#addattr -lxml.etree._Element.getparent lxml.etree._Element-class.html#getparent -lxml.etree._Element.sourceline lxml.etree._Element-class.html#sourceline -lxml.objectify.ObjectifiedElement.text lxml.objectify.ObjectifiedElement-class.html#text -lxml.objectify.NoneElement.__str__ lxml.objectify.NoneElement-class.html#__str__ -lxml.etree._Element.iterfind lxml.etree._Element-class.html#iterfind -lxml.objectify.ObjectifiedElement.__getattribute__ lxml.objectify.ObjectifiedElement-class.html#__getattribute__ -lxml.etree._Element.nsmap lxml.etree._Element-class.html#nsmap -lxml.etree._Element.replace lxml.etree._Element-class.html#replace -lxml.etree._Element.prefix lxml.etree._Element-class.html#prefix -lxml.etree._Element.set lxml.etree._Element-class.html#set -lxml.etree._Element.iter lxml.etree._Element-class.html#iter -lxml.etree._Element.addprevious lxml.etree._Element-class.html#addprevious -lxml.etree._Element.addnext lxml.etree._Element-class.html#addnext -lxml.objectify.NoneElement.__lt__ lxml.objectify.NoneElement-class.html#__lt__ -lxml.etree._Element.find lxml.etree._Element-class.html#find -lxml.etree.ElementBase.__init__ lxml.etree.ElementBase-class.html#__init__ -lxml.etree._Element.getnext lxml.etree._Element-class.html#getnext -lxml.etree._Element.index lxml.etree._Element-class.html#index -lxml.objectify.ObjectifiedElement.__setattr__ lxml.objectify.ObjectifiedElement-class.html#__setattr__ -lxml.objectify.NoneElement.__new__ lxml.objectify.NoneElement-class.html#__new__ -lxml.etree._Element.__contains__ lxml.etree._Element-class.html#__contains__ -lxml.etree._Element._init lxml.etree._Element-class.html#_init -lxml.objectify.ObjectifiedDataElement._setText lxml.objectify.ObjectifiedDataElement-class.html#_setText -lxml.etree._Element.tail lxml.etree._Element-class.html#tail -lxml.objectify.ObjectifiedElement.__getattr__ lxml.objectify.ObjectifiedElement-class.html#__getattr__ -lxml.etree._Element.getroottree lxml.etree._Element-class.html#getroottree -lxml.etree._Element.iterdescendants lxml.etree._Element-class.html#iterdescendants -lxml.objectify.ObjectifiedElement.getchildren lxml.objectify.ObjectifiedElement-class.html#getchildren -lxml.etree._Element.append lxml.etree._Element-class.html#append -lxml.etree._Element.__deepcopy__ lxml.etree._Element-class.html#__deepcopy__ -lxml.etree._Element.values lxml.etree._Element-class.html#values -lxml.objectify.NoneElement.pyval lxml.objectify.NoneElement-class.html#pyval -lxml.objectify.ObjectifiedElement.__len__ lxml.objectify.ObjectifiedElement-class.html#__len__ -lxml.etree._Element.xpath lxml.etree._Element-class.html#xpath -lxml.objectify.NoneElement.__ne__ lxml.objectify.NoneElement-class.html#__ne__ -lxml.etree._Element.findtext lxml.etree._Element-class.html#findtext -lxml.objectify.ObjectifiedElement.__getitem__ lxml.objectify.ObjectifiedElement-class.html#__getitem__ -lxml.etree._Element.get lxml.etree._Element-class.html#get -lxml.etree._Element.keys lxml.etree._Element-class.html#keys -lxml.objectify.ObjectifiedElement.__reduce__ lxml.objectify.ObjectifiedElement-class.html#__reduce__ -lxml.etree._Element.makeelement lxml.etree._Element-class.html#makeelement -lxml.objectify.ObjectifiedElement.__iter__ lxml.objectify.ObjectifiedElement-class.html#__iter__ -lxml.etree._Element.base lxml.etree._Element-class.html#base -lxml.objectify.ObjectifiedElement.countchildren lxml.objectify.ObjectifiedElement-class.html#countchildren -lxml.objectify.NoneElement.__gt__ lxml.objectify.NoneElement-class.html#__gt__ -lxml.etree._Element.iterchildren lxml.etree._Element-class.html#iterchildren -lxml.objectify.NoneElement.__eq__ lxml.objectify.NoneElement-class.html#__eq__ -lxml.etree._Element.iterancestors lxml.etree._Element-class.html#iterancestors -lxml.etree._Element.extend lxml.etree._Element-class.html#extend -lxml.objectify.ObjectifiedElement.__delitem__ lxml.objectify.ObjectifiedElement-class.html#__delitem__ -lxml.etree._Element.__reversed__ lxml.etree._Element-class.html#__reversed__ -lxml.etree._Element.itersiblings lxml.etree._Element-class.html#itersiblings -lxml.objectify.NoneElement.__nonzero__ lxml.objectify.NoneElement-class.html#__nonzero__ -lxml.etree._Element.items lxml.etree._Element-class.html#items -lxml.etree._Element.clear lxml.etree._Element-class.html#clear -lxml.etree._Element.insert lxml.etree._Element-class.html#insert -lxml.etree._Element.findall lxml.etree._Element-class.html#findall -lxml.objectify.ObjectifiedElement.__setitem__ lxml.objectify.ObjectifiedElement-class.html#__setitem__ -lxml.etree._Element.remove lxml.etree._Element-class.html#remove -lxml.objectify.ObjectifiedElement.__delattr__ lxml.objectify.ObjectifiedElement-class.html#__delattr__ -lxml.objectify.NoneElement.__le__ lxml.objectify.NoneElement-class.html#__le__ -lxml.objectify.ObjectifiedElement.descendantpaths lxml.objectify.ObjectifiedElement-class.html#descendantpaths -lxml.objectify.NoneElement.__repr__ lxml.objectify.NoneElement-class.html#__repr__ -lxml.etree._Element.getiterator lxml.etree._Element-class.html#getiterator -lxml.objectify.NoneElement.__hash__ lxml.objectify.NoneElement-class.html#__hash__ -lxml.etree._Element.tag lxml.etree._Element-class.html#tag -lxml.etree._Element.attrib lxml.etree._Element-class.html#attrib -lxml.etree._Element.__copy__ lxml.etree._Element-class.html#__copy__ -lxml.etree._Element.itertext lxml.etree._Element-class.html#itertext -lxml.objectify.NoneElement.__ge__ lxml.objectify.NoneElement-class.html#__ge__ -lxml.objectify.NumberElement lxml.objectify.NumberElement-class.html -lxml.objectify.NumberElement.__int__ lxml.objectify.NumberElement-class.html#__int__ -lxml.objectify.NumberElement.__ror__ lxml.objectify.NumberElement-class.html#__ror__ -lxml.objectify.ObjectifiedElement.addattr lxml.objectify.ObjectifiedElement-class.html#addattr -lxml.etree._Element.sourceline lxml.etree._Element-class.html#sourceline -lxml.objectify.ObjectifiedElement.text lxml.objectify.ObjectifiedElement-class.html#text -lxml.objectify.NumberElement.__str__ lxml.objectify.NumberElement-class.html#__str__ -lxml.etree._Element._init lxml.etree._Element-class.html#_init -lxml.etree._Element.prefix lxml.etree._Element-class.html#prefix -lxml.objectify.NumberElement.__rdiv__ lxml.objectify.NumberElement-class.html#__rdiv__ -lxml.objectify.NumberElement.__rmul__ lxml.objectify.NumberElement-class.html#__rmul__ -lxml.objectify.NumberElement.__lt__ lxml.objectify.NumberElement-class.html#__lt__ -lxml.etree._Element.find lxml.etree._Element-class.html#find -lxml.objectify.NumberElement.__rshift__ lxml.objectify.NumberElement-class.html#__rshift__ -lxml.etree._Element.iterdescendants lxml.etree._Element-class.html#iterdescendants -lxml.etree._Element.tail lxml.etree._Element-class.html#tail -lxml.objectify.ObjectifiedElement.__getitem__ lxml.objectify.ObjectifiedElement-class.html#__getitem__ -lxml.etree._Element.get lxml.etree._Element-class.html#get -lxml.etree._Element.__deepcopy__ lxml.etree._Element-class.html#__deepcopy__ -lxml.objectify.NumberElement.__pow__ lxml.objectify.NumberElement-class.html#__pow__ -lxml.objectify.NumberElement.__gt__ lxml.objectify.NumberElement-class.html#__gt__ -lxml.objectify.NumberElement.__oct__ lxml.objectify.NumberElement-class.html#__oct__ -lxml.objectify.NumberElement.__rxor__ lxml.objectify.NumberElement-class.html#__rxor__ -lxml.objectify.ObjectifiedElement.__delitem__ lxml.objectify.ObjectifiedElement-class.html#__delitem__ -lxml.etree._Element.__reversed__ lxml.etree._Element-class.html#__reversed__ -lxml.objectify.NumberElement.__nonzero__ lxml.objectify.NumberElement-class.html#__nonzero__ -lxml.etree._Element.remove lxml.etree._Element-class.html#remove -lxml.objectify.ObjectifiedElement.descendantpaths lxml.objectify.ObjectifiedElement-class.html#descendantpaths -lxml.objectify.NumberElement.__long__ lxml.objectify.NumberElement-class.html#__long__ -lxml.etree._Element.__copy__ lxml.etree._Element-class.html#__copy__ -lxml.etree._Element.set lxml.etree._Element-class.html#set -lxml.objectify.NumberElement.__truediv__ lxml.objectify.NumberElement-class.html#__truediv__ -lxml.etree._Element.iter lxml.etree._Element-class.html#iter -lxml.etree._Element.addnext lxml.etree._Element-class.html#addnext -lxml.objectify.NumberElement.__rmod__ lxml.objectify.NumberElement-class.html#__rmod__ -lxml.etree._Element.append lxml.etree._Element-class.html#append -lxml.objectify.NumberElement.__rand__ lxml.objectify.NumberElement-class.html#__rand__ -lxml.objectify.ObjectifiedElement.__setattr__ lxml.objectify.ObjectifiedElement-class.html#__setattr__ -lxml.etree._Element.__contains__ lxml.etree._Element-class.html#__contains__ -lxml.objectify.ObjectifiedDataElement._setText lxml.objectify.ObjectifiedDataElement-class.html#_setText -lxml.objectify.ObjectifiedElement.__getattr__ lxml.objectify.ObjectifiedElement-class.html#__getattr__ -lxml.etree._Element.findall lxml.etree._Element-class.html#findall -lxml.objectify.ObjectifiedElement.getchildren lxml.objectify.ObjectifiedElement-class.html#getchildren -lxml.objectify.NumberElement.__le__ lxml.objectify.NumberElement-class.html#__le__ -lxml.objectify.NumberElement.__complex__ lxml.objectify.NumberElement-class.html#__complex__ -lxml.objectify.NumberElement.__ne__ lxml.objectify.NumberElement-class.html#__ne__ -lxml.etree._Element.findtext lxml.etree._Element-class.html#findtext -lxml.etree._Element.extend lxml.etree._Element-class.html#extend -lxml.objectify.ObjectifiedElement.__setitem__ lxml.objectify.ObjectifiedElement-class.html#__setitem__ -lxml.etree._Element.base lxml.etree._Element-class.html#base -lxml.objectify.NumberElement.__hex__ lxml.objectify.NumberElement-class.html#__hex__ -lxml.etree._Element.items lxml.etree._Element-class.html#items -lxml.etree._Element.insert lxml.etree._Element-class.html#insert -lxml.objectify.NumberElement.__xor__ lxml.objectify.NumberElement-class.html#__xor__ -lxml.objectify.ObjectifiedElement.__delattr__ lxml.objectify.ObjectifiedElement-class.html#__delattr__ -lxml.objectify.NumberElement.__repr__ lxml.objectify.NumberElement-class.html#__repr__ -lxml.etree._Element.attrib lxml.etree._Element-class.html#attrib -lxml.objectify.NumberElement.__rpow__ lxml.objectify.NumberElement-class.html#__rpow__ -lxml.etree._Element.getprevious lxml.etree._Element-class.html#getprevious -lxml.etree._Element.getparent lxml.etree._Element-class.html#getparent -lxml.etree._Element.replace lxml.etree._Element-class.html#replace -lxml.objectify.NumberElement.__rsub__ lxml.objectify.NumberElement-class.html#__rsub__ -lxml.objectify.NumberElement.__and__ lxml.objectify.NumberElement-class.html#__and__ -lxml.objectify.NumberElement.__float__ lxml.objectify.NumberElement-class.html#__float__ -lxml.etree._Element.getnext lxml.etree._Element-class.html#getnext -lxml.etree._Element.iterancestors lxml.etree._Element-class.html#iterancestors -lxml.objectify.NumberElement.__abs__ lxml.objectify.NumberElement-class.html#__abs__ -lxml.objectify.ObjectifiedElement.__len__ lxml.objectify.ObjectifiedElement-class.html#__len__ -lxml.etree._Element.xpath lxml.etree._Element-class.html#xpath -lxml.objectify.NumberElement.__invert__ lxml.objectify.NumberElement-class.html#__invert__ -lxml.objectify.ObjectifiedElement.__reduce__ lxml.objectify.ObjectifiedElement-class.html#__reduce__ -lxml.objectify.ObjectifiedElement.__iter__ lxml.objectify.ObjectifiedElement-class.html#__iter__ -lxml.objectify.ObjectifiedElement.countchildren lxml.objectify.ObjectifiedElement-class.html#countchildren -lxml.objectify.NumberElement.__lshift__ lxml.objectify.NumberElement-class.html#__lshift__ -lxml.etree._Element.iterchildren lxml.etree._Element-class.html#iterchildren -lxml.objectify.NumberElement.__eq__ lxml.objectify.NumberElement-class.html#__eq__ -lxml.etree._Element.itersiblings lxml.etree._Element-class.html#itersiblings -lxml.objectify.NumberElement.__mod__ lxml.objectify.NumberElement-class.html#__mod__ -lxml.etree._Element.tag lxml.etree._Element-class.html#tag -lxml.etree._Element.values lxml.etree._Element-class.html#values -lxml.objectify.NumberElement.__hash__ lxml.objectify.NumberElement-class.html#__hash__ -lxml.objectify.NumberElement.__sub__ lxml.objectify.NumberElement-class.html#__sub__ -lxml.objectify.NumberElement.__ge__ lxml.objectify.NumberElement-class.html#__ge__ -lxml.objectify.NumberElement.__rtruediv__ lxml.objectify.NumberElement-class.html#__rtruediv__ -lxml.etree._Element.iterfind lxml.etree._Element-class.html#iterfind -lxml.objectify.ObjectifiedElement.__getattribute__ lxml.objectify.ObjectifiedElement-class.html#__getattribute__ -lxml.objectify.NumberElement.__radd__ lxml.objectify.NumberElement-class.html#__radd__ -lxml.objectify.NumberElement.__rrshift__ lxml.objectify.NumberElement-class.html#__rrshift__ -lxml.etree._Element.addprevious lxml.etree._Element-class.html#addprevious -lxml.etree.ElementBase.__init__ lxml.etree.ElementBase-class.html#__init__ -lxml.objectify.NumberElement.__new__ lxml.objectify.NumberElement-class.html#__new__ -lxml.objectify.NumberElement._setValueParser lxml.objectify.NumberElement-class.html#_setValueParser -lxml.etree._Element.getroottree lxml.etree._Element-class.html#getroottree -lxml.objectify.NumberElement.__pos__ lxml.objectify.NumberElement-class.html#__pos__ -lxml.objectify.NumberElement.__or__ lxml.objectify.NumberElement-class.html#__or__ -lxml.objectify.NumberElement.pyval lxml.objectify.NumberElement-class.html#pyval -lxml.objectify.NumberElement.__mul__ lxml.objectify.NumberElement-class.html#__mul__ -lxml.etree._Element.index lxml.etree._Element-class.html#index -lxml.etree._Element.keys lxml.etree._Element-class.html#keys -lxml.etree._Element.makeelement lxml.etree._Element-class.html#makeelement -lxml.objectify.NumberElement.__rlshift__ lxml.objectify.NumberElement-class.html#__rlshift__ -lxml.objectify.NumberElement.__add__ lxml.objectify.NumberElement-class.html#__add__ -lxml.etree._Element.getiterator lxml.etree._Element-class.html#getiterator -lxml.etree._Element.clear lxml.etree._Element-class.html#clear -lxml.etree._Element.itertext lxml.etree._Element-class.html#itertext -lxml.etree._Element.nsmap lxml.etree._Element-class.html#nsmap -lxml.objectify.NumberElement.__div__ lxml.objectify.NumberElement-class.html#__div__ -lxml.objectify.NumberElement.__neg__ lxml.objectify.NumberElement-class.html#__neg__ -lxml.objectify.ObjectPath lxml.objectify.ObjectPath-class.html -lxml.objectify.ObjectPath.addattr lxml.objectify.ObjectPath-class.html#addattr -lxml.objectify.ObjectPath.__new__ lxml.objectify.ObjectPath-class.html#__new__ -lxml.objectify.ObjectPath.setattr lxml.objectify.ObjectPath-class.html#setattr -lxml.objectify.ObjectPath.__str__ lxml.objectify.ObjectPath-class.html#__str__ -lxml.objectify.ObjectPath.hasattr lxml.objectify.ObjectPath-class.html#hasattr -lxml.objectify.ObjectPath.__call__ lxml.objectify.ObjectPath-class.html#__call__ -lxml.objectify.ObjectPath.find lxml.objectify.ObjectPath-class.html#find -lxml.objectify.ObjectPath.__init__ lxml.objectify.ObjectPath-class.html#__init__ -lxml.objectify.ObjectifiedDataElement lxml.objectify.ObjectifiedDataElement-class.html -lxml.etree._Element.getprevious lxml.etree._Element-class.html#getprevious -lxml.objectify.ObjectifiedElement.addattr lxml.objectify.ObjectifiedElement-class.html#addattr -lxml.etree._Element.getparent lxml.etree._Element-class.html#getparent -lxml.etree._Element.sourceline lxml.etree._Element-class.html#sourceline -lxml.objectify.ObjectifiedElement.text lxml.objectify.ObjectifiedElement-class.html#text -lxml.objectify.ObjectifiedDataElement.__str__ lxml.objectify.ObjectifiedDataElement-class.html#__str__ -lxml.etree._Element.iterfind lxml.etree._Element-class.html#iterfind -lxml.objectify.ObjectifiedElement.__getattribute__ lxml.objectify.ObjectifiedElement-class.html#__getattribute__ -lxml.etree._Element.nsmap lxml.etree._Element-class.html#nsmap -lxml.etree._Element.replace lxml.etree._Element-class.html#replace -lxml.etree._Element.prefix lxml.etree._Element-class.html#prefix -lxml.etree._Element.set lxml.etree._Element-class.html#set -lxml.etree._Element.iter lxml.etree._Element-class.html#iter -lxml.etree._Element.addprevious lxml.etree._Element-class.html#addprevious -lxml.etree._Element.addnext lxml.etree._Element-class.html#addnext -lxml.etree._Element.find lxml.etree._Element-class.html#find -lxml.etree.ElementBase.__init__ lxml.etree.ElementBase-class.html#__init__ -lxml.etree._Element.getnext lxml.etree._Element-class.html#getnext -lxml.etree._Element.index lxml.etree._Element-class.html#index -lxml.objectify.ObjectifiedElement.__setattr__ lxml.objectify.ObjectifiedElement-class.html#__setattr__ -lxml.objectify.ObjectifiedDataElement.__new__ lxml.objectify.ObjectifiedDataElement-class.html#__new__ -lxml.etree._Element.__contains__ lxml.etree._Element-class.html#__contains__ -lxml.etree._Element._init lxml.etree._Element-class.html#_init -lxml.objectify.ObjectifiedDataElement._setText lxml.objectify.ObjectifiedDataElement-class.html#_setText -lxml.etree._Element.tail lxml.etree._Element-class.html#tail -lxml.objectify.ObjectifiedElement.__getattr__ lxml.objectify.ObjectifiedElement-class.html#__getattr__ -lxml.etree._Element.getroottree lxml.etree._Element-class.html#getroottree -lxml.etree._Element.iterdescendants lxml.etree._Element-class.html#iterdescendants -lxml.objectify.ObjectifiedElement.getchildren lxml.objectify.ObjectifiedElement-class.html#getchildren -lxml.etree._Element.append lxml.etree._Element-class.html#append -lxml.etree._Element.__deepcopy__ lxml.etree._Element-class.html#__deepcopy__ -lxml.etree._Element.values lxml.etree._Element-class.html#values -lxml.objectify.ObjectifiedDataElement.pyval lxml.objectify.ObjectifiedDataElement-class.html#pyval -lxml.objectify.ObjectifiedElement.__len__ lxml.objectify.ObjectifiedElement-class.html#__len__ -lxml.etree._Element.xpath lxml.etree._Element-class.html#xpath -lxml.etree._Element.findtext lxml.etree._Element-class.html#findtext -lxml.objectify.ObjectifiedElement.__getitem__ lxml.objectify.ObjectifiedElement-class.html#__getitem__ -lxml.etree._Element.get lxml.etree._Element-class.html#get -lxml.etree._Element.keys lxml.etree._Element-class.html#keys -lxml.objectify.ObjectifiedElement.__reduce__ lxml.objectify.ObjectifiedElement-class.html#__reduce__ -lxml.etree._Element.makeelement lxml.etree._Element-class.html#makeelement -lxml.objectify.ObjectifiedElement.__setitem__ lxml.objectify.ObjectifiedElement-class.html#__setitem__ -lxml.etree._Element.base lxml.etree._Element-class.html#base -lxml.objectify.ObjectifiedElement.countchildren lxml.objectify.ObjectifiedElement-class.html#countchildren -lxml.etree._Element.insert lxml.etree._Element-class.html#insert -lxml.etree._Element.iterchildren lxml.etree._Element-class.html#iterchildren -lxml.etree._Element.iterancestors lxml.etree._Element-class.html#iterancestors -lxml.etree._Element.extend lxml.etree._Element-class.html#extend -lxml.objectify.ObjectifiedElement.__delitem__ lxml.objectify.ObjectifiedElement-class.html#__delitem__ -lxml.etree._Element.__reversed__ lxml.etree._Element-class.html#__reversed__ -lxml.etree._Element.itersiblings lxml.etree._Element-class.html#itersiblings -lxml.etree._Element.__nonzero__ lxml.etree._Element-class.html#__nonzero__ -lxml.etree._Element.items lxml.etree._Element-class.html#items -lxml.etree._Element.clear lxml.etree._Element-class.html#clear -lxml.etree._Element.itertext lxml.etree._Element-class.html#itertext -lxml.etree._Element.findall lxml.etree._Element-class.html#findall -lxml.objectify.ObjectifiedElement.__iter__ lxml.objectify.ObjectifiedElement-class.html#__iter__ -lxml.etree._Element.remove lxml.etree._Element-class.html#remove -lxml.objectify.ObjectifiedElement.__delattr__ lxml.objectify.ObjectifiedElement-class.html#__delattr__ -lxml.etree._Element.tag lxml.etree._Element-class.html#tag -lxml.objectify.ObjectifiedElement.descendantpaths lxml.objectify.ObjectifiedElement-class.html#descendantpaths -lxml.objectify.ObjectifiedDataElement.__repr__ lxml.objectify.ObjectifiedDataElement-class.html#__repr__ -lxml.etree._Element.getiterator lxml.etree._Element-class.html#getiterator -lxml.etree._Element.attrib lxml.etree._Element-class.html#attrib -lxml.etree._Element.__copy__ lxml.etree._Element-class.html#__copy__ -lxml.objectify.ObjectifiedElement lxml.objectify.ObjectifiedElement-class.html -lxml.etree._Element.getprevious lxml.etree._Element-class.html#getprevious -lxml.objectify.ObjectifiedElement.addattr lxml.objectify.ObjectifiedElement-class.html#addattr -lxml.etree._Element.getparent lxml.etree._Element-class.html#getparent -lxml.etree._Element.sourceline lxml.etree._Element-class.html#sourceline -lxml.objectify.ObjectifiedElement.text lxml.objectify.ObjectifiedElement-class.html#text -lxml.objectify.ObjectifiedElement.__str__ lxml.objectify.ObjectifiedElement-class.html#__str__ -lxml.etree._Element.iterfind lxml.etree._Element-class.html#iterfind -lxml.objectify.ObjectifiedElement.__getattribute__ lxml.objectify.ObjectifiedElement-class.html#__getattribute__ -lxml.etree._Element.nsmap lxml.etree._Element-class.html#nsmap -lxml.etree._Element.replace lxml.etree._Element-class.html#replace -lxml.etree._Element.prefix lxml.etree._Element-class.html#prefix -lxml.etree._Element.set lxml.etree._Element-class.html#set -lxml.etree._Element.iter lxml.etree._Element-class.html#iter -lxml.etree._Element.addprevious lxml.etree._Element-class.html#addprevious -lxml.etree._Element.addnext lxml.etree._Element-class.html#addnext -lxml.etree._Element.find lxml.etree._Element-class.html#find -lxml.etree.ElementBase.__init__ lxml.etree.ElementBase-class.html#__init__ -lxml.etree._Element.getnext lxml.etree._Element-class.html#getnext -lxml.etree._Element.index lxml.etree._Element-class.html#index -lxml.objectify.ObjectifiedElement.__setattr__ lxml.objectify.ObjectifiedElement-class.html#__setattr__ -lxml.objectify.ObjectifiedElement.__new__ lxml.objectify.ObjectifiedElement-class.html#__new__ -lxml.etree._Element.__contains__ lxml.etree._Element-class.html#__contains__ -lxml.etree._Element._init lxml.etree._Element-class.html#_init -lxml.etree._Element.findtext lxml.etree._Element-class.html#findtext -lxml.etree._Element.tail lxml.etree._Element-class.html#tail -lxml.objectify.ObjectifiedElement.__getattr__ lxml.objectify.ObjectifiedElement-class.html#__getattr__ -lxml.etree._Element.getroottree lxml.etree._Element-class.html#getroottree -lxml.etree._Element.iterdescendants lxml.etree._Element-class.html#iterdescendants -lxml.objectify.ObjectifiedElement.getchildren lxml.objectify.ObjectifiedElement-class.html#getchildren -lxml.etree._Element.append lxml.etree._Element-class.html#append -lxml.etree._Element.__deepcopy__ lxml.etree._Element-class.html#__deepcopy__ -lxml.etree._Element.values lxml.etree._Element-class.html#values -lxml.objectify.ObjectifiedElement.__len__ lxml.objectify.ObjectifiedElement-class.html#__len__ -lxml.etree._Element.xpath lxml.etree._Element-class.html#xpath -lxml.objectify.ObjectifiedElement.__getitem__ lxml.objectify.ObjectifiedElement-class.html#__getitem__ -lxml.etree._Element.get lxml.etree._Element-class.html#get -lxml.etree._Element.keys lxml.etree._Element-class.html#keys -lxml.objectify.ObjectifiedElement.__reduce__ lxml.objectify.ObjectifiedElement-class.html#__reduce__ -lxml.etree._Element.makeelement lxml.etree._Element-class.html#makeelement -lxml.objectify.ObjectifiedElement.__iter__ lxml.objectify.ObjectifiedElement-class.html#__iter__ -lxml.etree._Element.base lxml.etree._Element-class.html#base -lxml.objectify.ObjectifiedElement.countchildren lxml.objectify.ObjectifiedElement-class.html#countchildren -lxml.etree._Element.insert lxml.etree._Element-class.html#insert -lxml.etree._Element.iterchildren lxml.etree._Element-class.html#iterchildren -lxml.etree._Element.iterancestors lxml.etree._Element-class.html#iterancestors -lxml.etree._Element.extend lxml.etree._Element-class.html#extend -lxml.objectify.ObjectifiedElement.__delitem__ lxml.objectify.ObjectifiedElement-class.html#__delitem__ -lxml.etree._Element.__reversed__ lxml.etree._Element-class.html#__reversed__ -lxml.etree._Element.itersiblings lxml.etree._Element-class.html#itersiblings -lxml.etree._Element.__nonzero__ lxml.etree._Element-class.html#__nonzero__ -lxml.etree._Element.items lxml.etree._Element-class.html#items -lxml.etree._Element.clear lxml.etree._Element-class.html#clear -lxml.etree._Element.itertext lxml.etree._Element-class.html#itertext -lxml.etree._Element.findall lxml.etree._Element-class.html#findall -lxml.objectify.ObjectifiedElement.__setitem__ lxml.objectify.ObjectifiedElement-class.html#__setitem__ -lxml.etree._Element.remove lxml.etree._Element-class.html#remove -lxml.objectify.ObjectifiedElement.__delattr__ lxml.objectify.ObjectifiedElement-class.html#__delattr__ -lxml.etree._Element.tag lxml.etree._Element-class.html#tag -lxml.objectify.ObjectifiedElement.descendantpaths lxml.objectify.ObjectifiedElement-class.html#descendantpaths -lxml.etree._Element.__repr__ lxml.etree._Element-class.html#__repr__ -lxml.etree._Element.getiterator lxml.etree._Element-class.html#getiterator -lxml.etree._Element.attrib lxml.etree._Element-class.html#attrib -lxml.etree._Element.__copy__ lxml.etree._Element-class.html#__copy__ -lxml.objectify.ObjectifyElementClassLookup lxml.objectify.ObjectifyElementClassLookup-class.html -lxml.objectify.ObjectifyElementClassLookup.__new__ lxml.objectify.ObjectifyElementClassLookup-class.html#__new__ -lxml.objectify.ObjectifyElementClassLookup.__init__ lxml.objectify.ObjectifyElementClassLookup-class.html#__init__ -lxml.objectify.PyType lxml.objectify.PyType-class.html -lxml.objectify.PyType.stringify lxml.objectify.PyType-class.html#stringify -lxml.objectify.PyType.__new__ lxml.objectify.PyType-class.html#__new__ -lxml.objectify.PyType.xmlSchemaTypes lxml.objectify.PyType-class.html#xmlSchemaTypes -lxml.objectify.PyType.unregister lxml.objectify.PyType-class.html#unregister -lxml.objectify.PyType.register lxml.objectify.PyType-class.html#register -lxml.objectify.PyType.__repr__ lxml.objectify.PyType-class.html#__repr__ -lxml.objectify.PyType.type_check lxml.objectify.PyType-class.html#type_check -lxml.objectify.PyType.__init__ lxml.objectify.PyType-class.html#__init__ -lxml.objectify.PyType.name lxml.objectify.PyType-class.html#name -lxml.objectify.StringElement lxml.objectify.StringElement-class.html -lxml.objectify.StringElement.__int__ lxml.objectify.StringElement-class.html#__int__ -lxml.objectify.ObjectifiedElement.addattr lxml.objectify.ObjectifiedElement-class.html#addattr -lxml.etree._Element.sourceline lxml.etree._Element-class.html#sourceline -lxml.objectify.ObjectifiedElement.text lxml.objectify.ObjectifiedElement-class.html#text -lxml.objectify.ObjectifiedDataElement.__str__ lxml.objectify.ObjectifiedDataElement-class.html#__str__ -lxml.etree._Element._init lxml.etree._Element-class.html#_init -lxml.etree._Element.prefix lxml.etree._Element-class.html#prefix -lxml.objectify.StringElement.__rmul__ lxml.objectify.StringElement-class.html#__rmul__ -lxml.objectify.StringElement.__lt__ lxml.objectify.StringElement-class.html#__lt__ -lxml.etree._Element.find lxml.etree._Element-class.html#find -lxml.etree._Element.tail lxml.etree._Element-class.html#tail -lxml.objectify.ObjectifiedElement.__getitem__ lxml.objectify.ObjectifiedElement-class.html#__getitem__ -lxml.etree._Element.get lxml.etree._Element-class.html#get -lxml.etree._Element.__deepcopy__ lxml.etree._Element-class.html#__deepcopy__ -lxml.objectify.StringElement.__gt__ lxml.objectify.StringElement-class.html#__gt__ -lxml.objectify.ObjectifiedElement.__delitem__ lxml.objectify.ObjectifiedElement-class.html#__delitem__ -lxml.etree._Element.__reversed__ lxml.etree._Element-class.html#__reversed__ -lxml.objectify.StringElement.__nonzero__ lxml.objectify.StringElement-class.html#__nonzero__ -lxml.etree._Element.iter lxml.etree._Element-class.html#iter -lxml.objectify.ObjectifiedElement.descendantpaths lxml.objectify.ObjectifiedElement-class.html#descendantpaths -lxml.objectify.StringElement.__long__ lxml.objectify.StringElement-class.html#__long__ -lxml.etree._Element.__copy__ lxml.etree._Element-class.html#__copy__ -lxml.etree._Element.set lxml.etree._Element-class.html#set -lxml.etree._Element.remove lxml.etree._Element-class.html#remove -lxml.etree._Element.addnext lxml.etree._Element-class.html#addnext -lxml.objectify.StringElement.__rmod__ lxml.objectify.StringElement-class.html#__rmod__ -lxml.etree._Element.append lxml.etree._Element-class.html#append -lxml.etree._Element.index lxml.etree._Element-class.html#index -lxml.objectify.ObjectifiedElement.__setattr__ lxml.objectify.ObjectifiedElement-class.html#__setattr__ -lxml.etree._Element.__contains__ lxml.etree._Element-class.html#__contains__ -lxml.objectify.ObjectifiedDataElement._setText lxml.objectify.ObjectifiedDataElement-class.html#_setText -lxml.objectify.ObjectifiedElement.__getattr__ lxml.objectify.ObjectifiedElement-class.html#__getattr__ -lxml.etree._Element.findall lxml.etree._Element-class.html#findall -lxml.objectify.ObjectifiedElement.getchildren lxml.objectify.ObjectifiedElement-class.html#getchildren -lxml.objectify.StringElement.__float__ lxml.objectify.StringElement-class.html#__float__ -lxml.objectify.StringElement.__ne__ lxml.objectify.StringElement-class.html#__ne__ -lxml.etree._Element.findtext lxml.etree._Element-class.html#findtext -lxml.etree._Element.extend lxml.etree._Element-class.html#extend -lxml.objectify.ObjectifiedElement.__setitem__ lxml.objectify.ObjectifiedElement-class.html#__setitem__ -lxml.etree._Element.base lxml.etree._Element-class.html#base -lxml.etree._Element.items lxml.etree._Element-class.html#items -lxml.etree._Element.insert lxml.etree._Element-class.html#insert -lxml.objectify.ObjectifiedElement.__delattr__ lxml.objectify.ObjectifiedElement-class.html#__delattr__ -lxml.objectify.StringElement.__mul__ lxml.objectify.StringElement-class.html#__mul__ -lxml.etree._Element.attrib lxml.etree._Element-class.html#attrib -lxml.etree._Element.getprevious lxml.etree._Element-class.html#getprevious -lxml.etree._Element.getparent lxml.etree._Element-class.html#getparent -lxml.etree._Element.replace lxml.etree._Element-class.html#replace -lxml.objectify.StringElement.__complex__ lxml.objectify.StringElement-class.html#__complex__ -lxml.etree._Element.getnext lxml.etree._Element-class.html#getnext -lxml.etree._Element.iterancestors lxml.etree._Element-class.html#iterancestors -lxml.objectify.ObjectifiedElement.__len__ lxml.objectify.ObjectifiedElement-class.html#__len__ -lxml.etree._Element.xpath lxml.etree._Element-class.html#xpath -lxml.objectify.ObjectifiedElement.__reduce__ lxml.objectify.ObjectifiedElement-class.html#__reduce__ -lxml.objectify.ObjectifiedElement.__iter__ lxml.objectify.ObjectifiedElement-class.html#__iter__ -lxml.objectify.ObjectifiedElement.countchildren lxml.objectify.ObjectifiedElement-class.html#countchildren -lxml.etree._Element.iterchildren lxml.etree._Element-class.html#iterchildren -lxml.objectify.StringElement.__eq__ lxml.objectify.StringElement-class.html#__eq__ -lxml.etree._Element.itersiblings lxml.etree._Element-class.html#itersiblings -lxml.objectify.StringElement.__mod__ lxml.objectify.StringElement-class.html#__mod__ -lxml.objectify.StringElement.__le__ lxml.objectify.StringElement-class.html#__le__ -lxml.etree._Element.values lxml.etree._Element-class.html#values -lxml.objectify.StringElement.__hash__ lxml.objectify.StringElement-class.html#__hash__ -lxml.objectify.StringElement.__ge__ lxml.objectify.StringElement-class.html#__ge__ -lxml.etree._Element.iterfind lxml.etree._Element-class.html#iterfind -lxml.objectify.ObjectifiedElement.__getattribute__ lxml.objectify.ObjectifiedElement-class.html#__getattribute__ -lxml.objectify.StringElement.__radd__ lxml.objectify.StringElement-class.html#__radd__ -lxml.etree._Element.tag lxml.etree._Element-class.html#tag -lxml.etree._Element.addprevious lxml.etree._Element-class.html#addprevious -lxml.objectify.StringElement.strlen lxml.objectify.StringElement-class.html#strlen -lxml.etree.ElementBase.__init__ lxml.etree.ElementBase-class.html#__init__ -lxml.objectify.StringElement.__new__ lxml.objectify.StringElement-class.html#__new__ -lxml.etree._Element.getroottree lxml.etree._Element-class.html#getroottree -lxml.etree._Element.iterdescendants lxml.etree._Element-class.html#iterdescendants -lxml.objectify.StringElement.pyval lxml.objectify.StringElement-class.html#pyval -lxml.objectify.StringElement.__repr__ lxml.objectify.StringElement-class.html#__repr__ -lxml.etree._Element.keys lxml.etree._Element-class.html#keys -lxml.etree._Element.makeelement lxml.etree._Element-class.html#makeelement -lxml.objectify.StringElement.__add__ lxml.objectify.StringElement-class.html#__add__ -lxml.etree._Element.getiterator lxml.etree._Element-class.html#getiterator -lxml.etree._Element.clear lxml.etree._Element-class.html#clear -lxml.etree._Element.itertext lxml.etree._Element-class.html#itertext -lxml.etree._Element.nsmap lxml.etree._Element-class.html#nsmap -lxml.objectify._ObjectifyElementMakerCaller lxml.objectify._ObjectifyElementMakerCaller-class.html -lxml.objectify._ObjectifyElementMakerCaller.__new__ lxml.objectify._ObjectifyElementMakerCaller-class.html#__new__ -lxml.objectify._ObjectifyElementMakerCaller.__call__ lxml.objectify._ObjectifyElementMakerCaller-class.html#__call__ -lxml.sax.ElementTreeContentHandler lxml.sax.ElementTreeContentHandler-class.html -lxml.sax.ElementTreeContentHandler.startPrefixMapping lxml.sax.ElementTreeContentHandler-class.html#startPrefixMapping -lxml.sax.ElementTreeContentHandler.endPrefixMapping lxml.sax.ElementTreeContentHandler-class.html#endPrefixMapping -lxml.sax.ElementTreeContentHandler.etree lxml.sax.ElementTreeContentHandler-class.html#etree -lxml.sax.ElementTreeContentHandler.processingInstruction lxml.sax.ElementTreeContentHandler-class.html#processingInstruction -lxml.sax.ElementTreeContentHandler.endElement lxml.sax.ElementTreeContentHandler-class.html#endElement -lxml.sax.ElementTreeContentHandler._get_etree lxml.sax.ElementTreeContentHandler-class.html#_get_etree -lxml.sax.ElementTreeContentHandler.startElement lxml.sax.ElementTreeContentHandler-class.html#startElement -lxml.sax.ElementTreeContentHandler.setDocumentLocator lxml.sax.ElementTreeContentHandler-class.html#setDocumentLocator -lxml.sax.ElementTreeContentHandler.startDocument lxml.sax.ElementTreeContentHandler-class.html#startDocument -lxml.sax.ElementTreeContentHandler.startElementNS lxml.sax.ElementTreeContentHandler-class.html#startElementNS -lxml.sax.ElementTreeContentHandler.characters lxml.sax.ElementTreeContentHandler-class.html#characters -lxml.sax.ElementTreeContentHandler.endDocument lxml.sax.ElementTreeContentHandler-class.html#endDocument -lxml.sax.ElementTreeContentHandler.ignorableWhitespace lxml.sax.ElementTreeContentHandler-class.html#ignorableWhitespace -lxml.sax.ElementTreeContentHandler._buildTag lxml.sax.ElementTreeContentHandler-class.html#_buildTag -lxml.sax.ElementTreeContentHandler.__init__ lxml.sax.ElementTreeContentHandler-class.html#__init__ -lxml.sax.ElementTreeContentHandler.endElementNS lxml.sax.ElementTreeContentHandler-class.html#endElementNS -lxml.sax.ElementTreeProducer lxml.sax.ElementTreeProducer-class.html -lxml.sax.ElementTreeProducer._build_qname lxml.sax.ElementTreeProducer-class.html#_build_qname -lxml.sax.ElementTreeProducer.saxify lxml.sax.ElementTreeProducer-class.html#saxify -lxml.sax.ElementTreeProducer.__init__ lxml.sax.ElementTreeProducer-class.html#__init__ -lxml.sax.ElementTreeProducer._recursive_saxify lxml.sax.ElementTreeProducer-class.html#_recursive_saxify -lxml.sax.SaxError lxml.sax.SaxError-class.html -lxml.etree.LxmlError.__init__ lxml.etree.LxmlError-class.html#__init__ -lxml.tests.common_imports.HelperTestCase lxml.tests.common_imports.HelperTestCase-class.html -lxml.tests.common_imports.HelperTestCase.tearDown lxml.tests.common_imports.HelperTestCase-class.html#tearDown -lxml.tests.common_imports.HelperTestCase._rootstring lxml.tests.common_imports.HelperTestCase-class.html#_rootstring -lxml.tests.common_imports.HelperTestCase.parse lxml.tests.common_imports.HelperTestCase-class.html#parse -unittest.case.TestCase.failureException exceptions.AssertionError-class.html -lxml.tests.common_imports.HelperTestCase.assertFalse lxml.tests.common_imports.HelperTestCase-class.html#assertFalse -lxml.tests.common_imports.LargeFileLike lxml.tests.common_imports.LargeFileLike-class.html -lxml.tests.common_imports.LargeFileLike.read lxml.tests.common_imports.LargeFileLike-class.html#read -lxml.tests.common_imports.LargeFileLike.iterelements lxml.tests.common_imports.LargeFileLike-class.html#iterelements -lxml.tests.common_imports.LargeFileLike.__init__ lxml.tests.common_imports.LargeFileLike-class.html#__init__ -lxml.tests.common_imports.LargeFileLikeUnicode lxml.tests.common_imports.LargeFileLikeUnicode-class.html -lxml.tests.common_imports.LargeFileLike.read lxml.tests.common_imports.LargeFileLike-class.html#read -lxml.tests.common_imports.LargeFileLikeUnicode.iterelements lxml.tests.common_imports.LargeFileLikeUnicode-class.html#iterelements -lxml.tests.common_imports.LargeFileLikeUnicode.__init__ lxml.tests.common_imports.LargeFileLikeUnicode-class.html#__init__ -lxml.tests.common_imports.SillyFileLike lxml.tests.common_imports.SillyFileLike-class.html -lxml.tests.common_imports.SillyFileLike.read lxml.tests.common_imports.SillyFileLike-class.html#read -lxml.tests.common_imports.SillyFileLike.__init__ lxml.tests.common_imports.SillyFileLike-class.html#__init__ -lxml.tests.common_imports.skipif lxml.tests.common_imports.skipif-class.html -lxml.tests.common_imports.skipif.__call__ lxml.tests.common_imports.skipif-class.html#__call__ -lxml.tests.common_imports.skipif.__init__ lxml.tests.common_imports.skipif-class.html#__init__ -lxml.tests.test_builder.BuilderTestCase lxml.tests.test_builder.BuilderTestCase-class.html -lxml.tests.test_builder.BuilderTestCase.etree lxml.etree-module.html -lxml.tests.common_imports.HelperTestCase.tearDown lxml.tests.common_imports.HelperTestCase-class.html#tearDown -lxml.tests.common_imports.HelperTestCase._rootstring lxml.tests.common_imports.HelperTestCase-class.html#_rootstring -lxml.tests.test_builder.BuilderTestCase.test_build_from_xpath_result lxml.tests.test_builder.BuilderTestCase-class.html#test_build_from_xpath_result -lxml.tests.common_imports.HelperTestCase.parse lxml.tests.common_imports.HelperTestCase-class.html#parse -unittest.case.TestCase.failureException exceptions.AssertionError-class.html -lxml.tests.test_builder.BuilderTestCase.test_unknown_type_raises lxml.tests.test_builder.BuilderTestCase-class.html#test_unknown_type_raises -lxml.tests.common_imports.HelperTestCase.assertFalse lxml.tests.common_imports.HelperTestCase-class.html#assertFalse -lxml.tests.test_classlookup.ClassLookupTestCase lxml.tests.test_classlookup.ClassLookupTestCase-class.html -lxml.tests.test_classlookup.ClassLookupTestCase.test_namespace_lookup lxml.tests.test_classlookup.ClassLookupTestCase-class.html#test_namespace_lookup -lxml.tests.test_classlookup.ClassLookupTestCase.test_default_class_lookup lxml.tests.test_classlookup.ClassLookupTestCase-class.html#test_default_class_lookup -lxml.tests.test_classlookup.ClassLookupTestCase.test_custom_lookup lxml.tests.test_classlookup.ClassLookupTestCase-class.html#test_custom_lookup -lxml.tests.test_classlookup.ClassLookupTestCase.etree lxml.etree-module.html -lxml.tests.test_classlookup.ClassLookupTestCase.tearDown lxml.tests.test_classlookup.ClassLookupTestCase-class.html#tearDown -lxml.tests.test_classlookup.ClassLookupTestCase.test_class_lookup_reentry lxml.tests.test_classlookup.ClassLookupTestCase-class.html#test_class_lookup_reentry -lxml.tests.test_classlookup.ClassLookupTestCase.test_lookup_without_fallback lxml.tests.test_classlookup.ClassLookupTestCase-class.html#test_lookup_without_fallback -lxml.tests.test_classlookup.ClassLookupTestCase.test_custom_lookup_ns_fallback lxml.tests.test_classlookup.ClassLookupTestCase-class.html#test_custom_lookup_ns_fallback -lxml.tests.test_classlookup.ClassLookupTestCase.test_attribute_based_lookup lxml.tests.test_classlookup.ClassLookupTestCase-class.html#test_attribute_based_lookup -lxml.tests.test_classlookup.ClassLookupTestCase.test_parser_based_lookup lxml.tests.test_classlookup.ClassLookupTestCase-class.html#test_parser_based_lookup -lxml.tests.common_imports.HelperTestCase._rootstring lxml.tests.common_imports.HelperTestCase-class.html#_rootstring -lxml.tests.common_imports.HelperTestCase.parse lxml.tests.common_imports.HelperTestCase-class.html#parse -unittest.case.TestCase.failureException exceptions.AssertionError-class.html -lxml.tests.common_imports.HelperTestCase.assertFalse lxml.tests.common_imports.HelperTestCase-class.html#assertFalse -lxml.tests.test_css.CSSTestCase lxml.tests.test_css.CSSTestCase-class.html -lxml.tests.common_imports.HelperTestCase.tearDown lxml.tests.common_imports.HelperTestCase-class.html#tearDown -lxml.tests.common_imports.HelperTestCase._rootstring lxml.tests.common_imports.HelperTestCase-class.html#_rootstring -lxml.tests.common_imports.HelperTestCase.parse lxml.tests.common_imports.HelperTestCase-class.html#parse -unittest.case.TestCase.failureException exceptions.AssertionError-class.html -lxml.tests.test_css.CSSTestCase.test_cssselect lxml.tests.test_css.CSSTestCase-class.html#test_cssselect -lxml.tests.common_imports.HelperTestCase.assertFalse lxml.tests.common_imports.HelperTestCase-class.html#assertFalse -lxml.tests.test_dtd.ETreeDtdTestCase lxml.tests.test_dtd.ETreeDtdTestCase-class.html -lxml.tests.test_dtd.ETreeDtdTestCase.test_dtd_parse_invalid lxml.tests.test_dtd.ETreeDtdTestCase-class.html#test_dtd_parse_invalid -lxml.tests.test_dtd.ETreeDtdTestCase.test_dtd_file lxml.tests.test_dtd.ETreeDtdTestCase-class.html#test_dtd_file -lxml.tests.common_imports.HelperTestCase.tearDown lxml.tests.common_imports.HelperTestCase-class.html#tearDown -lxml.tests.test_dtd.ETreeDtdTestCase.test_parse_file_dtd lxml.tests.test_dtd.ETreeDtdTestCase-class.html#test_parse_file_dtd -lxml.tests.test_dtd.ETreeDtdTestCase.test_iterparse_file_dtd lxml.tests.test_dtd.ETreeDtdTestCase-class.html#test_iterparse_file_dtd -lxml.tests.test_dtd.ETreeDtdTestCase.test_dtd_stringio lxml.tests.test_dtd.ETreeDtdTestCase-class.html#test_dtd_stringio -lxml.tests.test_dtd.ETreeDtdTestCase.test_dtd_assertValid lxml.tests.test_dtd.ETreeDtdTestCase-class.html#test_dtd_assertValid -lxml.tests.common_imports.HelperTestCase._rootstring lxml.tests.common_imports.HelperTestCase-class.html#_rootstring -lxml.tests.test_dtd.ETreeDtdTestCase.test_dtd_attrs lxml.tests.test_dtd.ETreeDtdTestCase-class.html#test_dtd_attrs -lxml.tests.test_dtd.ETreeDtdTestCase.test_dtd lxml.tests.test_dtd.ETreeDtdTestCase-class.html#test_dtd -lxml.tests.test_dtd.ETreeDtdTestCase.test_dtd_parse_valid lxml.tests.test_dtd.ETreeDtdTestCase-class.html#test_dtd_parse_valid -lxml.tests.common_imports.HelperTestCase.parse lxml.tests.common_imports.HelperTestCase-class.html#parse -lxml.tests.test_dtd.ETreeDtdTestCase.test_dtd_broken lxml.tests.test_dtd.ETreeDtdTestCase-class.html#test_dtd_broken -unittest.case.TestCase.failureException exceptions.AssertionError-class.html -lxml.tests.test_dtd.ETreeDtdTestCase.test_dtd_internal_invalid lxml.tests.test_dtd.ETreeDtdTestCase-class.html#test_dtd_internal_invalid -lxml.tests.test_dtd.ETreeDtdTestCase.test_dtd_parse_file_not_found lxml.tests.test_dtd.ETreeDtdTestCase-class.html#test_dtd_parse_file_not_found -lxml.tests.test_dtd.ETreeDtdTestCase.test_dtd_parse_valid_relative lxml.tests.test_dtd.ETreeDtdTestCase-class.html#test_dtd_parse_valid_relative -lxml.tests.test_dtd.ETreeDtdTestCase.test_dtd_internal lxml.tests.test_dtd.ETreeDtdTestCase-class.html#test_dtd_internal -lxml.tests.common_imports.HelperTestCase.assertFalse lxml.tests.common_imports.HelperTestCase-class.html#assertFalse -lxml.tests.test_dtd.ETreeDtdTestCase.test_dtd_invalid lxml.tests.test_dtd.ETreeDtdTestCase-class.html#test_dtd_invalid -lxml.tests.test_elementtree.CElementTreeTestCase lxml.tests.test_elementtree.CElementTreeTestCase-class.html -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attribute_update_iter lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attribute_update_iter -lxml.tests.test_elementtree._ETreeTestCaseBase.test_getiterator_filter_pi lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_getiterator_filter_pi -lxml.tests.test_elementtree._ETreeTestCaseBase._writeElement lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#_writeElement -lxml.tests.test_elementtree._ETreeTestCaseBase.test_deepcopy_subelement lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_deepcopy_subelement -lxml.tests.test_elementtree._ETreeTestCaseBase.test_getiterator lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_getiterator -lxml.tests.test_elementtree._ETreeTestCaseBase.test_iterparse_clear lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_iterparse_clear -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attribute_namespace_roundtrip lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attribute_namespace_roundtrip -lxml.tests.test_elementtree._ETreeTestCaseBase.test_iterparse_cdata lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_iterparse_cdata -lxml.tests.test_elementtree._ETreeTestCaseBase.test_elementtree lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_elementtree -lxml.tests.test_elementtree._ETreeTestCaseBase.test_getiterator_empty lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_getiterator_empty -lxml.tests.test_elementtree._ETreeTestCaseBase.test_feed_parser_error_close_empty lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_feed_parser_error_close_empty -lxml.tests.test_elementtree._ETreeTestCaseBase.test_parser_target_attrib lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_parser_target_attrib -lxml.tests.test_elementtree._ETreeTestCaseBase.test_element_with_attributes_keywords lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_element_with_attributes_keywords -lxml.tests.test_elementtree._ETreeTestCaseBase.test_findall_ns lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_findall_ns -lxml.tests.common_imports.HelperTestCase.tearDown lxml.tests.common_imports.HelperTestCase-class.html#tearDown -lxml.tests.test_elementtree._ETreeTestCaseBase.test_parse_with_encoding lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_parse_with_encoding -lxml.tests.test_elementtree._ETreeTestCaseBase.test_setslice_tail lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_setslice_tail -lxml.tests.test_elementtree._ETreeTestCaseBase.test_parse_stringio lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_parse_stringio -lxml.tests.test_elementtree._ETreeTestCaseBase.test_tail lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_tail -lxml.tests.test_elementtree._ETreeTestCaseBase.test_iterparse_getiterator lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_iterparse_getiterator -lxml.tests.test_elementtree._ETreeTestCaseBase.test_write_method_text lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_write_method_text -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attrib_set_clear lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attrib_set_clear -lxml.tests.test_elementtree._ETreeTestCaseBase.test_encoding_tostring lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_encoding_tostring -lxml.tests.test_elementtree._ETreeTestCaseBase.test_itertext_child lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_itertext_child -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attrib_pop_empty_default lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attrib_pop_empty_default -lxml.tests.test_elementtree._ETreeTestCaseBase.test_setitem_indexerror lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_setitem_indexerror -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attribute_namespace_roundtrip_replaced lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attribute_namespace_roundtrip_replaced -lxml.tests.test_elementtree._ETreeTestCaseBase.test_tail1 lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_tail1 -lxml.tests.test_elementtree._ETreeTestCaseBase.test_comment_whitespace lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_comment_whitespace -lxml.tests.test_elementtree._ETreeTestCaseBase.test_crash lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_crash -lxml.tests.test_elementtree._ETreeTestCaseBase.test_parse_encoding_8bit_override lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_parse_encoding_8bit_override -lxml.tests.test_elementtree._ETreeTestCaseBase.test_parse_encoding_8bit_explicit lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_parse_encoding_8bit_explicit -lxml.tests.test_elementtree._ETreeTestCaseBase.test_simple lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_simple -lxml.tests.test_elementtree._ETreeTestCaseBase.test_tostring_element lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_tostring_element -lxml.tests.test_elementtree._ETreeTestCaseBase.test_write_fail lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_write_fail -lxml.tests.test_elementtree._ETreeTestCaseBase.test_encoding_sub_tostring_default_encoding lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_encoding_sub_tostring_default_encoding -lxml.tests.test_elementtree._ETreeTestCaseBase.test_treebuilder lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_treebuilder -lxml.tests.test_elementtree._ETreeTestCaseBase.test_text_escape_tostring lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_text_escape_tostring -lxml.tests.test_elementtree._ETreeTestCaseBase.test_makeelement lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_makeelement -lxml.tests.test_elementtree._ETreeTestCaseBase.test_setslice_single lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_setslice_single -lxml.tests.test_elementtree._ETreeTestCaseBase.test_getslice lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_getslice -lxml.tests.test_elementtree._ETreeTestCaseBase.test_delslice_memory lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_delslice_memory -lxml.tests.test_elementtree._ETreeTestCaseBase.test_deepcopy_append lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_deepcopy_append -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attrib_pop_unknown lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attrib_pop_unknown -lxml.tests.test_elementtree._ETreeTestCaseBase.test_register_namespace lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_register_namespace -lxml.tests.test_elementtree._ETreeTestCaseBase.test_shallowcopy lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_shallowcopy -lxml.tests.test_elementtree._ETreeTestCaseBase.test_feed_parser_unicode lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_feed_parser_unicode -lxml.tests.test_elementtree._ETreeTestCaseBase.test_subelement_reference lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_subelement_reference -lxml.tests.test_elementtree._ETreeTestCaseBase.test_insert_beyond_index lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_insert_beyond_index -lxml.tests.test_elementtree._ETreeTestCaseBase.test_fromstring lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_fromstring -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attribute_update_dict lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attribute_update_dict -unittest.case.TestCase.failureException exceptions.AssertionError-class.html -lxml.tests.test_elementtree._ETreeTestCaseBase.test_element_with_attributes lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_element_with_attributes -lxml.tests.test_elementtree._ETreeTestCaseBase.test_iterparse_start_end lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_iterparse_start_end -lxml.tests.test_elementtree._ETreeTestCaseBase.test_feed_parser_error_close_incomplete lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_feed_parser_error_close_incomplete -lxml.tests.test_elementtree._ETreeTestCaseBase.test_text_other lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_text_other -lxml.tests.test_elementtree._ETreeTestCaseBase.test_setslice_all_replace_reversed lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_setslice_all_replace_reversed -lxml.tests.test_elementtree._ETreeTestCaseBase.test_treebuilder_target lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_treebuilder_target -lxml.tests.test_elementtree._ETreeTestCaseBase.test_qname_attrib lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_qname_attrib -lxml.tests.test_elementtree._ETreeTestCaseBase.test_subelement lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_subelement -lxml.tests.test_elementtree._ETreeTestCaseBase.test_insert lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_insert -lxml.tests.test_elementtree._ETreeTestCaseBase.test_iterparse_large lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_iterparse_large -lxml.tests.test_elementtree._ETreeTestCaseBase.test_delslice lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_delslice -lxml.tests.test_elementtree._ETreeTestCaseBase.test_feed_parser_error_position lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_feed_parser_error_position -lxml.tests.test_elementtree._ETreeTestCaseBase.test_deepcopy_comment lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_deepcopy_comment -lxml.tests.test_elementtree._ETreeTestCaseBase.test_delslice_tail lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_delslice_tail -lxml.tests.test_elementtree._ETreeTestCaseBase.test_ns_decl_tostring_element lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_ns_decl_tostring_element -lxml.tests.test_elementtree._ETreeTestCaseBase.test_subelement_with_attributes lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_subelement_with_attributes -lxml.tests.test_elementtree._ETreeTestCaseBase.test_iteration_reversed lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_iteration_reversed -lxml.tests.test_elementtree._ETreeTestCaseBase.test_setslice_end lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_setslice_end -lxml.tests.test_elementtree._ETreeTestCaseBase.test_iteration lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_iteration -lxml.tests.test_elementtree._ETreeTestCaseBase.test_element_indexing_only_text lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_element_indexing_only_text -lxml.tests.test_elementtree._ETreeTestCaseBase._writeElementFile lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#_writeElementFile -lxml.tests.test_elementtree._ETreeTestCaseBase.test_parse_file_nonexistent lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_parse_file_nonexistent -lxml.tests.test_elementtree._ETreeTestCaseBase.test_iteration_double lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_iteration_double -lxml.tests.test_elementtree._ETreeTestCaseBase.test_insert_negative lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_insert_negative -lxml.tests.test_elementtree.CElementTreeTestCase.etree lxml.tests.test_elementtree.CElementTreeTestCase-class.html#etree -lxml.tests.test_elementtree._ETreeTestCaseBase.test_encoding_8bit_latin1 lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_encoding_8bit_latin1 -lxml.tests.test_elementtree._ETreeTestCaseBase.test_shallowcopy_elementtree lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_shallowcopy_elementtree -lxml.tests.test_elementtree._ETreeTestCaseBase.test_parser_target_tag lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_parser_target_tag -lxml.tests.test_elementtree._ETreeTestCaseBase.test_subelement_with_attributes_ns lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_subelement_with_attributes_ns -lxml.tests.test_elementtree._ETreeTestCaseBase.test_iterparse_attrib_ns lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_iterparse_attrib_ns -lxml.tests.test_elementtree._ETreeTestCaseBase.test_getslice_step lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_getslice_step -lxml.tests.test_elementtree._ETreeTestCaseBase.test_delslice_child_tail lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_delslice_child_tail -lxml.tests.test_elementtree._ETreeTestCaseBase.test_qname_attribute_getset lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_qname_attribute_getset -lxml.tests.test_elementtree._ETreeTestCaseBase.test_iteration_empty lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_iteration_empty -lxml.tests.test_elementtree._ETreeTestCaseBase.test_feed_parser_error_broken lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_feed_parser_error_broken -lxml.tests.test_elementtree._ETreeTestCaseBase.test_deepcopy_tail lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_deepcopy_tail -lxml.tests.test_elementtree._ETreeTestCaseBase.test_clear lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_clear -lxml.tests.test_elementtree._ETreeTestCaseBase.test_encoding lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_encoding -lxml.tests.test_elementtree._ETreeTestCaseBase.test_encoding_8bit_parse_stringio lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_encoding_8bit_parse_stringio -lxml.tests.test_elementtree._ETreeTestCaseBase.test_encoding_utf8_bom lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_encoding_utf8_bom -lxml.tests.test_elementtree._ETreeTestCaseBase._test_wrong_unicode_encoding lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#_test_wrong_unicode_encoding -lxml.tests.test_elementtree._ETreeTestCaseBase.test_set_text_none lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_set_text_none -lxml.tests.test_elementtree._ETreeTestCaseBase.test_itertext lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_itertext -lxml.tests.test_elementtree._ETreeTestCaseBase.test_text_str_subclass lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_text_str_subclass -lxml.tests.test_elementtree._ETreeTestCaseBase.test_getiterator_filter_comment lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_getiterator_filter_comment -lxml.tests.test_elementtree._ETreeTestCaseBase.test_ns_attr lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_ns_attr -lxml.tests.test_elementtree._ETreeTestCaseBase.test_parser_target_property lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_parser_target_property -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attribute_iterator lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attribute_iterator -lxml.tests.test_elementtree._ETreeTestCaseBase.test_comment lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_comment -lxml.tests.test_elementtree._ETreeTestCaseBase.test_ns_tag_parse lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_ns_tag_parse -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attribute_values lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attribute_values -lxml.tests.test_elementtree._ETreeTestCaseBase._check_element_tree lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#_check_element_tree -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attribute_xmlns_move lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attribute_xmlns_move -lxml.tests.test_elementtree._ETreeTestCaseBase.test_delitem_tail lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_delitem_tail -lxml.tests.test_elementtree._ETreeTestCaseBase.test_replace_slice_tail lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_replace_slice_tail -lxml.tests.test_elementtree._ETreeTestCaseBase._rootstring lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#_rootstring -lxml.tests.test_elementtree._ETreeTestCaseBase.test_tail_set_twice lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_tail_set_twice -lxml.tests.test_elementtree._ETreeTestCaseBase.test_iterparse_start lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_iterparse_start -lxml.tests.test_elementtree._ETreeTestCaseBase.test_ElementTree lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_ElementTree -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attribute_str lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attribute_str -lxml.tests.test_elementtree._ETreeTestCaseBase.test_encoding_8bit_xml lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_encoding_8bit_xml -lxml.tests.test_elementtree._ETreeTestCaseBase.test_ns_decl_tostring lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_ns_decl_tostring -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attribute_values_ns lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attribute_values_ns -lxml.tests.test_elementtree._ETreeTestCaseBase.test_setslice_negative2 lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_setslice_negative2 -lxml.tests.test_elementtree._ETreeTestCaseBase.test_tail_append lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_tail_append -lxml.tests.test_elementtree._ETreeTestCaseBase.test_del_attribute_ns_parsed lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_del_attribute_ns_parsed -lxml.tests.test_elementtree._ETreeTestCaseBase._test_del_tail lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#_test_del_tail -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attrib_pop_default lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attrib_pop_default -lxml.tests.test_elementtree._ETreeTestCaseBase.test_write_ElementTreeDoctest lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_write_ElementTreeDoctest -lxml.tests.test_elementtree._ETreeTestCaseBase.test_XMLID lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_XMLID -lxml.tests.test_elementtree._ETreeTestCaseBase.test_ns_access2 lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_ns_access2 -lxml.tests.test_elementtree._ETreeTestCaseBase.test_clear_tail lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_clear_tail -lxml.tests.test_elementtree._ETreeTestCaseBase._check_element lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#_check_element -lxml.tests.test_elementtree._ETreeTestCaseBase.test_weird_dict_interaction lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_weird_dict_interaction -lxml.tests.test_elementtree._ETreeTestCaseBase.test_element lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_element -lxml.tests.test_elementtree._ETreeTestCaseBase.test_setitem lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_setitem -lxml.tests.test_elementtree._ETreeTestCaseBase.test_pi lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_pi -lxml.tests.test_elementtree._ETreeTestCaseBase.test_set_text2 lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_set_text2 -lxml.tests.test_elementtree._ETreeTestCaseBase.test_iteration_crash lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_iteration_crash -lxml.tests.test_elementtree._ETreeTestCaseBase.test_qname lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_qname -lxml.tests.test_elementtree._ETreeTestCaseBase.test_del_attribute_ns lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_del_attribute_ns -lxml.tests.test_elementtree._ETreeTestCaseBase.test_del_setslice lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_del_setslice -lxml.tests.test_elementtree._ETreeTestCaseBase.test_comment_getitem_getslice lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_comment_getitem_getslice -lxml.tests.test_elementtree._ETreeTestCaseBase.test_iteration_subelement lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_iteration_subelement -lxml.tests.test_elementtree._ETreeTestCaseBase.test_encoding_tostring_unknown lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_encoding_tostring_unknown -lxml.tests.test_elementtree._ETreeTestCaseBase.test_element_contains lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_element_contains -lxml.tests.test_elementtree._ETreeTestCaseBase.test_iselement lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_iselement -lxml.tests.test_elementtree._ETreeTestCaseBase.test_set_text lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_set_text -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attribute_update_sequence lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attribute_update_sequence -lxml.tests.test_elementtree._ETreeTestCaseBase.test_qname_attrib_resolve lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_qname_attrib_resolve -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attribute_items_ns lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attribute_items_ns -lxml.tests.test_elementtree._ETreeTestCaseBase.test_parser_target_entity lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_parser_target_entity -lxml.tests.test_elementtree._ETreeTestCaseBase.test_setitem_replace lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_setitem_replace -lxml.tests.test_elementtree._ETreeTestCaseBase.test_fromstringlist lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_fromstringlist -lxml.tests.test_elementtree._ETreeTestCaseBase.test_set_text_empty lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_set_text_empty -lxml.tests.test_elementtree._ETreeTestCaseBase._test_element_boolean lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#_test_element_boolean -lxml.tests.test_elementtree._ETreeTestCaseBase.test_write lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_write -lxml.tests.test_elementtree._ETreeTestCaseBase.test_findall lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_findall -lxml.tests.test_elementtree._ETreeTestCaseBase.test_element_indexing_negative lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_element_indexing_negative -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attribute_keys2 lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attribute_keys2 -lxml.tests.test_elementtree._ETreeTestCaseBase.test_text lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_text -lxml.tests.test_elementtree._ETreeTestCaseBase.test_merge_namespaced_subtree_as_slice lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_merge_namespaced_subtree_as_slice -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attribute_keys lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attribute_keys -lxml.tests.test_elementtree._ETreeTestCaseBase.test_namespaces_after_serialize lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_namespaces_after_serialize -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attrib_pop_invalid_args lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attrib_pop_invalid_args -lxml.tests.test_elementtree._ETreeTestCaseBase.test_ns_move lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_ns_move -lxml.tests.test_elementtree._ETreeTestCaseBase.test_XML lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_XML -lxml.tests.test_elementtree._ETreeTestCaseBase.test_deepcopy_elementtree lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_deepcopy_elementtree -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attribute_contains lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attribute_contains -lxml.tests.test_elementtree._ETreeTestCaseBase.test_getiterator_filter_all lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_getiterator_filter_all -lxml.tests.test_elementtree._ETreeTestCaseBase.test_tail_set_none lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_tail_set_none -lxml.tests.test_elementtree._ETreeTestCaseBase.test_parse_file_object_encoding lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_parse_file_object_encoding -lxml.tests.test_elementtree._ETreeTestCaseBase.test_clear_sub lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_clear_sub -lxml.tests.test_elementtree._ETreeTestCaseBase.test_tag_reset_root_ns lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_tag_reset_root_ns -lxml.tests.test_elementtree._ETreeTestCaseBase.test_delslice_step_negative lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_delslice_step_negative -lxml.tests.test_elementtree._ETreeTestCaseBase.test_parse_error_none lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_parse_error_none -lxml.tests.test_elementtree._ETreeTestCaseBase.test_qname_attribute_resolve_new lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_qname_attribute_resolve_new -lxml.tests.test_elementtree._ETreeTestCaseBase.test_iterparse lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_iterparse -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attribute_set lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attribute_set -lxml.tests.test_elementtree._ETreeTestCaseBase.test_deepcopy lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_deepcopy -lxml.tests.test_elementtree._ETreeTestCaseBase.test_extend lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_extend -lxml.tests.test_elementtree._ETreeTestCaseBase.test_parse_error lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_parse_error -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attrib_pop lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attrib_pop -lxml.tests.test_elementtree._ETreeTestCaseBase.test_encoding_tostring_sub lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_encoding_tostring_sub -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attribute_items2 lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attribute_items2 -lxml.tests.test_elementtree._ETreeTestCaseBase.test_insert_tail lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_insert_tail -lxml.tests.test_elementtree._ETreeTestCaseBase.assertEncodingDeclaration lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#assertEncodingDeclaration -lxml.tests.test_elementtree._ETreeTestCaseBase.test_tail_str_subclass lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_tail_str_subclass -lxml.tests.test_elementtree._ETreeTestCaseBase.test_getiterator_filter_with_text lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_getiterator_filter_with_text -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attributes lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attributes -lxml.tests.test_elementtree._ETreeTestCaseBase.test_encoding_write_default_encoding lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_encoding_write_default_encoding -lxml.tests.test_elementtree._ETreeTestCaseBase.test_delitem lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_delitem -lxml.tests.test_elementtree._ETreeTestCaseBase.test_tostring_element_tail lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_tostring_element_tail -lxml.tests.test_elementtree._ETreeTestCaseBase.test_text_escape_out lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_text_escape_out -lxml.tests.test_elementtree._ETreeTestCaseBase.test_setslice lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_setslice -lxml.tests.test_elementtree._ETreeTestCaseBase.test_element_indexing_with_text2 lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_element_indexing_with_text2 -lxml.tests.test_elementtree._ETreeTestCaseBase.test_parser_version lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_parser_version -lxml.tests.test_elementtree._ETreeTestCaseBase.test_elementtree_parser_target lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_elementtree_parser_target -lxml.tests.test_elementtree._ETreeTestCaseBase.test_iterparse_move_elements lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_iterparse_move_elements -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attrib_ns_clear lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attrib_ns_clear -lxml.tests.test_elementtree._ETreeTestCaseBase.test_elementtree_getiterator lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_elementtree_getiterator -lxml.tests.common_imports.HelperTestCase.parse lxml.tests.common_imports.HelperTestCase-class.html#parse -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attribute_items lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attribute_items -lxml.tests.test_elementtree._ETreeTestCaseBase.test_delslice_negative1 lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_delslice_negative1 -lxml.tests.test_elementtree._ETreeTestCaseBase.test_delslice_negative2 lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_delslice_negative2 -lxml.tests.test_elementtree._ETreeTestCaseBase.test_ns_decl_tostring_root lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_ns_decl_tostring_root -lxml.tests.test_elementtree._ETreeTestCaseBase.test_deepcopy_namespaces lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_deepcopy_namespaces -lxml.tests.test_elementtree._ETreeTestCaseBase._test_getchildren lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#_test_getchildren -lxml.tests.test_elementtree._ETreeTestCaseBase.test_parse_file_encoding lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_parse_file_encoding -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attribute_manipulation lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attribute_manipulation -lxml.tests.test_elementtree._ETreeTestCaseBase.test_text_escape_in lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_text_escape_in -lxml.tests.test_elementtree._ETreeTestCaseBase.test_tostring lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_tostring -lxml.tests.test_elementtree._ETreeTestCaseBase.test_element_indexing_with_text lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_element_indexing_with_text -lxml.tests.test_elementtree._ETreeTestCaseBase.test_tostring_method_html lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_tostring_method_html -lxml.tests.test_elementtree._ETreeTestCaseBase.test_fromstringlist_characters lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_fromstringlist_characters -lxml.tests.test_elementtree._ETreeTestCaseBase.test_parser_target_data lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_parser_target_data -lxml.tests.test_elementtree._ETreeTestCaseBase.test_tag_str_subclass lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_tag_str_subclass -lxml.tests.test_elementtree._ETreeTestCaseBase.test_ns_access lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_ns_access -lxml.tests.test_elementtree._ETreeTestCaseBase.test_parse_cdata lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_parse_cdata -lxml.tests.test_elementtree._ETreeTestCaseBase.required_versions_ET lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#required_versions_ET -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attributes2 lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attributes2 -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attributes3 lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attributes3 -lxml.tests.test_elementtree._ETreeTestCaseBase.test_parser_target_entity_unknown lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_parser_target_entity_unknown -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attrib_clear lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attrib_clear -lxml.tests.test_elementtree._ETreeTestCaseBase.test_setslice_all_empty lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_setslice_all_empty -lxml.tests.test_elementtree._ETreeTestCaseBase.test_iter lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_iter -lxml.tests.test_elementtree._ETreeTestCaseBase.test_remove lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_remove -lxml.tests.test_elementtree._ETreeTestCaseBase.test_feed_parser_bytes lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_feed_parser_bytes -lxml.tests.test_elementtree._ETreeTestCaseBase.test_getslice_negative lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_getslice_negative -lxml.tests.test_elementtree._ETreeTestCaseBase.test_encoding_tostring_default_encoding lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_encoding_tostring_default_encoding -lxml.tests.test_elementtree._ETreeTestCaseBase.test_del_insert lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_del_insert -lxml.tests.test_elementtree._ETreeTestCaseBase.test_text_empty lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_text_empty -lxml.tests.test_elementtree._ETreeTestCaseBase.test_write_method_html lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_write_method_html -lxml.tests.test_elementtree._ETreeTestCaseBase.test_setslice_all_replace lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_setslice_all_replace -lxml.tests.test_elementtree._ETreeTestCaseBase._check_mapping lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#_check_mapping -lxml.tests.test_elementtree._ETreeTestCaseBase.test_delslice_step lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_delslice_step -lxml.tests.test_elementtree._ETreeTestCaseBase.test_setslice_empty lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_setslice_empty -lxml.tests.test_elementtree._ETreeTestCaseBase.test_ns_decl_tostring_default lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_ns_decl_tostring_default -lxml.tests.test_elementtree._ETreeTestCaseBase.test_tag_write lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_tag_write -lxml.tests.test_elementtree._ETreeTestCaseBase.test_iterparse_file lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_iterparse_file -lxml.tests.test_elementtree._ETreeTestCaseBase.test_parse_error_from_file lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_parse_error_from_file -lxml.tests.test_elementtree._ETreeTestCaseBase.test_parse_file_object lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_parse_file_object -lxml.tests.test_elementtree._ETreeTestCaseBase.test_setslice_all lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_setslice_all -lxml.tests.test_elementtree._ETreeTestCaseBase.test_ns_setting lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_ns_setting -lxml.tests.test_elementtree._ETreeTestCaseBase.test_tag_reset_ns lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_tag_reset_ns -lxml.tests.test_elementtree._ETreeTestCaseBase.test_remove_tail lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_remove_tail -lxml.tests.test_elementtree._ETreeTestCaseBase.test_remove_nonexisting lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_remove_nonexisting -lxml.tests.test_elementtree._ETreeTestCaseBase.test_fromstringlist_single lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_fromstringlist_single -lxml.tests.test_elementtree._ETreeTestCaseBase.test_tail_elementtree_root lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_tail_elementtree_root -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attribute_keys_ns lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attribute_keys_ns -lxml.tests.test_elementtree._ETreeTestCaseBase.test_element_with_attributes_ns lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_element_with_attributes_ns -lxml.tests.test_elementtree._ETreeTestCaseBase.test_iteration_text_only lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_iteration_text_only -lxml.tests.test_elementtree._ETreeTestCaseBase.test_qname_attribute_resolve lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_qname_attribute_resolve -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attribute_update_attrib lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attribute_update_attrib -lxml.tests.test_elementtree._ETreeTestCaseBase.test_pi_nonsense lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_pi_nonsense -lxml.tests.test_elementtree._ETreeTestCaseBase.test_elementtree_getiterator_filter lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_elementtree_getiterator_filter -lxml.tests.test_elementtree._ETreeTestCaseBase.required_versions_cET lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#required_versions_cET -lxml.tests.test_elementtree._ETreeTestCaseBase.test_tostring_method_text lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_tostring_method_text -lxml.tests.test_elementtree._ETreeTestCaseBase.test_getslice_text lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_getslice_text -lxml.tests.test_elementtree._ETreeTestCaseBase.test_encoding_tostring_sub_tail lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_encoding_tostring_sub_tail -lxml.tests.test_elementtree._ETreeTestCaseBase.test_getiterator_filter lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_getiterator_filter -lxml.tests.test_elementtree._ETreeTestCaseBase.test_qname_cmp lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_qname_cmp -lxml.tests.test_elementtree._ETreeTestCaseBase.test_setslice_negative lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_setslice_negative -lxml.tests.test_elementtree._ETreeTestCaseBase.test_multiple_elementrees lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_multiple_elementrees -lxml.tests.test_elementtree._ETreeTestCaseBase.test_comment_nonsense lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_comment_nonsense -lxml.tests.test_elementtree._ETreeTestCaseBase.test_iteration_del_child lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_iteration_del_child -lxml.tests.test_elementtree._ETreeTestCaseBase.test_encoding_exact lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_encoding_exact -lxml.tests.test_elementtree._ETreeTestCaseBase.test_del_setitem lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_del_setitem -lxml.tests.test_elementtree._ETreeTestCaseBase.test_remove_ns lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_remove_ns -lxml.tests.test_elementtree._ETreeTestCaseBase.test_delslice_step_negative2 lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_delslice_step_negative2 -lxml.tests.test_elementtree._ETreeTestCaseBase.test_setslice_all_replace_reversed_ns1 lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_setslice_all_replace_reversed_ns1 -lxml.tests.test_elementtree._ETreeTestCaseBase.test_setslice_all_replace_reversed_ns2 lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_setslice_all_replace_reversed_ns2 -lxml.tests.test_elementtree._ETreeTestCaseBase.test_setitem_tail lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_setitem_tail -lxml.tests.test_elementtree._ETreeTestCaseBase.test_processinginstruction lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_processinginstruction -lxml.tests.test_elementtree._ETreeTestCaseBase.assertXML lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#assertXML -lxml.tests.test_elementtree._ETreeTestCaseBase.test_parse_file lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_parse_file -lxml.tests.test_elementtree._ETreeTestCaseBase._check_string lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#_check_string -lxml.tests.test_elementtree._ETreeTestCaseBase.test_getiterator_with_text lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_getiterator_with_text -lxml.tests.test_elementtree._ETreeTestCaseBase.test_setitem2 lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_setitem2 -lxml.tests.test_elementtree._ETreeTestCaseBase.test_comment_text lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_comment_text -lxml.tests.common_imports.HelperTestCase.assertFalse lxml.tests.common_imports.HelperTestCase-class.html#assertFalse -lxml.tests.test_elementtree.ETreeTestCase lxml.tests.test_elementtree.ETreeTestCase-class.html -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attribute_update_iter lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attribute_update_iter -lxml.tests.test_elementtree._ETreeTestCaseBase.test_getiterator_filter_pi lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_getiterator_filter_pi -lxml.tests.test_elementtree._ETreeTestCaseBase._writeElement lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#_writeElement -lxml.tests.test_elementtree._ETreeTestCaseBase.test_deepcopy_subelement lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_deepcopy_subelement -lxml.tests.test_elementtree._ETreeTestCaseBase.test_getiterator lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_getiterator -lxml.tests.test_elementtree._ETreeTestCaseBase.test_iterparse_clear lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_iterparse_clear -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attribute_namespace_roundtrip lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attribute_namespace_roundtrip -lxml.tests.test_elementtree._ETreeTestCaseBase.test_iterparse_cdata lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_iterparse_cdata -lxml.tests.test_elementtree._ETreeTestCaseBase.test_elementtree lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_elementtree -lxml.tests.test_elementtree._ETreeTestCaseBase.test_getiterator_empty lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_getiterator_empty -lxml.tests.test_elementtree._ETreeTestCaseBase.test_feed_parser_error_close_empty lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_feed_parser_error_close_empty -lxml.tests.test_elementtree._ETreeTestCaseBase.test_parser_target_attrib lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_parser_target_attrib -lxml.tests.test_elementtree._ETreeTestCaseBase.test_element_with_attributes_keywords lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_element_with_attributes_keywords -lxml.tests.test_elementtree._ETreeTestCaseBase.test_findall_ns lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_findall_ns -lxml.tests.common_imports.HelperTestCase.tearDown lxml.tests.common_imports.HelperTestCase-class.html#tearDown -lxml.tests.test_elementtree._ETreeTestCaseBase.test_parse_with_encoding lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_parse_with_encoding -lxml.tests.test_elementtree._ETreeTestCaseBase.test_setslice_tail lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_setslice_tail -lxml.tests.test_elementtree._ETreeTestCaseBase.test_parse_stringio lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_parse_stringio -lxml.tests.test_elementtree._ETreeTestCaseBase.test_tail lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_tail -lxml.tests.test_elementtree._ETreeTestCaseBase.test_iterparse_getiterator lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_iterparse_getiterator -lxml.tests.test_elementtree._ETreeTestCaseBase.test_write_method_text lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_write_method_text -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attrib_set_clear lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attrib_set_clear -lxml.tests.test_elementtree._ETreeTestCaseBase.test_encoding_tostring lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_encoding_tostring -lxml.tests.test_elementtree._ETreeTestCaseBase.test_itertext_child lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_itertext_child -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attrib_pop_empty_default lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attrib_pop_empty_default -lxml.tests.test_elementtree._ETreeTestCaseBase.test_setitem_indexerror lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_setitem_indexerror -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attribute_namespace_roundtrip_replaced lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attribute_namespace_roundtrip_replaced -lxml.tests.test_elementtree._ETreeTestCaseBase.test_tail1 lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_tail1 -lxml.tests.test_elementtree._ETreeTestCaseBase.test_comment_whitespace lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_comment_whitespace -lxml.tests.test_elementtree._ETreeTestCaseBase.test_crash lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_crash -lxml.tests.test_elementtree._ETreeTestCaseBase.test_parse_encoding_8bit_override lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_parse_encoding_8bit_override -lxml.tests.test_elementtree._ETreeTestCaseBase.test_parse_encoding_8bit_explicit lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_parse_encoding_8bit_explicit -lxml.tests.test_elementtree._ETreeTestCaseBase.test_simple lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_simple -lxml.tests.test_elementtree._ETreeTestCaseBase.test_tostring_element lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_tostring_element -lxml.tests.test_elementtree._ETreeTestCaseBase.test_write_fail lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_write_fail -lxml.tests.test_elementtree._ETreeTestCaseBase.test_encoding_sub_tostring_default_encoding lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_encoding_sub_tostring_default_encoding -lxml.tests.test_elementtree._ETreeTestCaseBase.test_treebuilder lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_treebuilder -lxml.tests.test_elementtree._ETreeTestCaseBase.test_text_escape_tostring lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_text_escape_tostring -lxml.tests.test_elementtree._ETreeTestCaseBase.test_makeelement lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_makeelement -lxml.tests.test_elementtree._ETreeTestCaseBase.test_setslice_single lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_setslice_single -lxml.tests.test_elementtree._ETreeTestCaseBase.test_getslice lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_getslice -lxml.tests.test_elementtree._ETreeTestCaseBase.test_delslice_memory lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_delslice_memory -lxml.tests.test_elementtree._ETreeTestCaseBase.test_deepcopy_append lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_deepcopy_append -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attrib_pop_unknown lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attrib_pop_unknown -lxml.tests.test_elementtree._ETreeTestCaseBase.test_register_namespace lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_register_namespace -lxml.tests.test_elementtree._ETreeTestCaseBase.test_shallowcopy lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_shallowcopy -lxml.tests.test_elementtree._ETreeTestCaseBase.test_feed_parser_unicode lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_feed_parser_unicode -lxml.tests.test_elementtree._ETreeTestCaseBase.test_subelement_reference lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_subelement_reference -lxml.tests.test_elementtree._ETreeTestCaseBase.test_insert_beyond_index lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_insert_beyond_index -lxml.tests.test_elementtree._ETreeTestCaseBase.test_fromstring lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_fromstring -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attribute_update_dict lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attribute_update_dict -unittest.case.TestCase.failureException exceptions.AssertionError-class.html -lxml.tests.test_elementtree._ETreeTestCaseBase.test_element_with_attributes lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_element_with_attributes -lxml.tests.test_elementtree._ETreeTestCaseBase.test_iterparse_start_end lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_iterparse_start_end -lxml.tests.test_elementtree._ETreeTestCaseBase.test_feed_parser_error_close_incomplete lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_feed_parser_error_close_incomplete -lxml.tests.test_elementtree._ETreeTestCaseBase.test_text_other lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_text_other -lxml.tests.test_elementtree._ETreeTestCaseBase.test_setslice_all_replace_reversed lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_setslice_all_replace_reversed -lxml.tests.test_elementtree._ETreeTestCaseBase.test_treebuilder_target lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_treebuilder_target -lxml.tests.test_elementtree._ETreeTestCaseBase.test_qname_attrib lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_qname_attrib -lxml.tests.test_elementtree._ETreeTestCaseBase.test_subelement lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_subelement -lxml.tests.test_elementtree._ETreeTestCaseBase.test_insert lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_insert -lxml.tests.test_elementtree._ETreeTestCaseBase.test_iterparse_large lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_iterparse_large -lxml.tests.test_elementtree._ETreeTestCaseBase.test_delslice lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_delslice -lxml.tests.test_elementtree._ETreeTestCaseBase.test_feed_parser_error_position lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_feed_parser_error_position -lxml.tests.test_elementtree._ETreeTestCaseBase.test_deepcopy_comment lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_deepcopy_comment -lxml.tests.test_elementtree._ETreeTestCaseBase.test_delslice_tail lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_delslice_tail -lxml.tests.test_elementtree._ETreeTestCaseBase.test_ns_decl_tostring_element lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_ns_decl_tostring_element -lxml.tests.test_elementtree._ETreeTestCaseBase.test_subelement_with_attributes lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_subelement_with_attributes -lxml.tests.test_elementtree._ETreeTestCaseBase.test_iteration_reversed lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_iteration_reversed -lxml.tests.test_elementtree._ETreeTestCaseBase.test_setslice_end lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_setslice_end -lxml.tests.test_elementtree._ETreeTestCaseBase.test_iteration lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_iteration -lxml.tests.test_elementtree._ETreeTestCaseBase.test_element_indexing_only_text lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_element_indexing_only_text -lxml.tests.test_elementtree._ETreeTestCaseBase._writeElementFile lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#_writeElementFile -lxml.tests.test_elementtree._ETreeTestCaseBase.test_parse_file_nonexistent lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_parse_file_nonexistent -lxml.tests.test_elementtree._ETreeTestCaseBase.test_iteration_double lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_iteration_double -lxml.tests.test_elementtree._ETreeTestCaseBase.test_insert_negative lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_insert_negative -lxml.tests.test_elementtree.ETreeTestCase.etree lxml.etree-module.html -lxml.tests.test_elementtree._ETreeTestCaseBase.test_encoding_8bit_latin1 lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_encoding_8bit_latin1 -lxml.tests.test_elementtree._ETreeTestCaseBase.test_shallowcopy_elementtree lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_shallowcopy_elementtree -lxml.tests.test_elementtree._ETreeTestCaseBase.test_parser_target_tag lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_parser_target_tag -lxml.tests.test_elementtree._ETreeTestCaseBase.test_subelement_with_attributes_ns lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_subelement_with_attributes_ns -lxml.tests.test_elementtree._ETreeTestCaseBase.test_iterparse_attrib_ns lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_iterparse_attrib_ns -lxml.tests.test_elementtree._ETreeTestCaseBase.test_getslice_step lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_getslice_step -lxml.tests.test_elementtree._ETreeTestCaseBase.test_delslice_child_tail lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_delslice_child_tail -lxml.tests.test_elementtree._ETreeTestCaseBase.test_qname_attribute_getset lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_qname_attribute_getset -lxml.tests.test_elementtree._ETreeTestCaseBase.test_iteration_empty lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_iteration_empty -lxml.tests.test_elementtree._ETreeTestCaseBase.test_feed_parser_error_broken lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_feed_parser_error_broken -lxml.tests.test_elementtree._ETreeTestCaseBase.test_deepcopy_tail lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_deepcopy_tail -lxml.tests.test_elementtree._ETreeTestCaseBase.test_clear lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_clear -lxml.tests.test_elementtree._ETreeTestCaseBase.test_encoding lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_encoding -lxml.tests.test_elementtree._ETreeTestCaseBase.test_encoding_8bit_parse_stringio lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_encoding_8bit_parse_stringio -lxml.tests.test_elementtree._ETreeTestCaseBase.test_encoding_utf8_bom lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_encoding_utf8_bom -lxml.tests.test_elementtree._ETreeTestCaseBase._test_wrong_unicode_encoding lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#_test_wrong_unicode_encoding -lxml.tests.test_elementtree._ETreeTestCaseBase.test_set_text_none lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_set_text_none -lxml.tests.test_elementtree._ETreeTestCaseBase.test_itertext lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_itertext -lxml.tests.test_elementtree._ETreeTestCaseBase.test_text_str_subclass lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_text_str_subclass -lxml.tests.test_elementtree._ETreeTestCaseBase.test_getiterator_filter_comment lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_getiterator_filter_comment -lxml.tests.test_elementtree._ETreeTestCaseBase.test_ns_attr lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_ns_attr -lxml.tests.test_elementtree._ETreeTestCaseBase.test_parser_target_property lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_parser_target_property -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attribute_iterator lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attribute_iterator -lxml.tests.test_elementtree._ETreeTestCaseBase.test_comment lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_comment -lxml.tests.test_elementtree._ETreeTestCaseBase.test_ns_tag_parse lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_ns_tag_parse -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attribute_values lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attribute_values -lxml.tests.test_elementtree._ETreeTestCaseBase._check_element_tree lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#_check_element_tree -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attribute_xmlns_move lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attribute_xmlns_move -lxml.tests.test_elementtree._ETreeTestCaseBase.test_delitem_tail lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_delitem_tail -lxml.tests.test_elementtree._ETreeTestCaseBase.test_replace_slice_tail lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_replace_slice_tail -lxml.tests.test_elementtree._ETreeTestCaseBase._rootstring lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#_rootstring -lxml.tests.test_elementtree._ETreeTestCaseBase.test_tail_set_twice lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_tail_set_twice -lxml.tests.test_elementtree._ETreeTestCaseBase.test_iterparse_start lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_iterparse_start -lxml.tests.test_elementtree._ETreeTestCaseBase.test_ElementTree lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_ElementTree -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attribute_str lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attribute_str -lxml.tests.test_elementtree._ETreeTestCaseBase.test_encoding_8bit_xml lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_encoding_8bit_xml -lxml.tests.test_elementtree._ETreeTestCaseBase.test_ns_decl_tostring lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_ns_decl_tostring -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attribute_values_ns lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attribute_values_ns -lxml.tests.test_elementtree._ETreeTestCaseBase.test_setslice_negative2 lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_setslice_negative2 -lxml.tests.test_elementtree._ETreeTestCaseBase.test_tail_append lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_tail_append -lxml.tests.test_elementtree._ETreeTestCaseBase.test_del_attribute_ns_parsed lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_del_attribute_ns_parsed -lxml.tests.test_elementtree._ETreeTestCaseBase._test_del_tail lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#_test_del_tail -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attrib_pop_default lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attrib_pop_default -lxml.tests.test_elementtree._ETreeTestCaseBase.test_write_ElementTreeDoctest lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_write_ElementTreeDoctest -lxml.tests.test_elementtree._ETreeTestCaseBase.test_XMLID lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_XMLID -lxml.tests.test_elementtree._ETreeTestCaseBase.test_ns_access2 lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_ns_access2 -lxml.tests.test_elementtree._ETreeTestCaseBase.test_clear_tail lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_clear_tail -lxml.tests.test_elementtree._ETreeTestCaseBase._check_element lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#_check_element -lxml.tests.test_elementtree._ETreeTestCaseBase.test_weird_dict_interaction lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_weird_dict_interaction -lxml.tests.test_elementtree._ETreeTestCaseBase.test_element lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_element -lxml.tests.test_elementtree._ETreeTestCaseBase.test_setitem lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_setitem -lxml.tests.test_elementtree._ETreeTestCaseBase.test_pi lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_pi -lxml.tests.test_elementtree._ETreeTestCaseBase.test_set_text2 lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_set_text2 -lxml.tests.test_elementtree._ETreeTestCaseBase.test_iteration_crash lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_iteration_crash -lxml.tests.test_elementtree._ETreeTestCaseBase.test_qname lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_qname -lxml.tests.test_elementtree._ETreeTestCaseBase.test_del_attribute_ns lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_del_attribute_ns -lxml.tests.test_elementtree._ETreeTestCaseBase.test_del_setslice lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_del_setslice -lxml.tests.test_elementtree._ETreeTestCaseBase.test_comment_getitem_getslice lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_comment_getitem_getslice -lxml.tests.test_elementtree._ETreeTestCaseBase.test_iteration_subelement lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_iteration_subelement -lxml.tests.test_elementtree._ETreeTestCaseBase.test_encoding_tostring_unknown lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_encoding_tostring_unknown -lxml.tests.test_elementtree._ETreeTestCaseBase.test_element_contains lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_element_contains -lxml.tests.test_elementtree._ETreeTestCaseBase.test_iselement lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_iselement -lxml.tests.test_elementtree._ETreeTestCaseBase.test_set_text lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_set_text -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attribute_update_sequence lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attribute_update_sequence -lxml.tests.test_elementtree._ETreeTestCaseBase.test_qname_attrib_resolve lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_qname_attrib_resolve -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attribute_items_ns lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attribute_items_ns -lxml.tests.test_elementtree._ETreeTestCaseBase.test_parser_target_entity lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_parser_target_entity -lxml.tests.test_elementtree._ETreeTestCaseBase.test_setitem_replace lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_setitem_replace -lxml.tests.test_elementtree._ETreeTestCaseBase.test_fromstringlist lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_fromstringlist -lxml.tests.test_elementtree._ETreeTestCaseBase.test_set_text_empty lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_set_text_empty -lxml.tests.test_elementtree._ETreeTestCaseBase._test_element_boolean lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#_test_element_boolean -lxml.tests.test_elementtree._ETreeTestCaseBase.test_write lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_write -lxml.tests.test_elementtree._ETreeTestCaseBase.test_findall lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_findall -lxml.tests.test_elementtree._ETreeTestCaseBase.test_element_indexing_negative lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_element_indexing_negative -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attribute_keys2 lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attribute_keys2 -lxml.tests.test_elementtree._ETreeTestCaseBase.test_text lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_text -lxml.tests.test_elementtree._ETreeTestCaseBase.test_merge_namespaced_subtree_as_slice lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_merge_namespaced_subtree_as_slice -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attribute_keys lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attribute_keys -lxml.tests.test_elementtree._ETreeTestCaseBase.test_namespaces_after_serialize lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_namespaces_after_serialize -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attrib_pop_invalid_args lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attrib_pop_invalid_args -lxml.tests.test_elementtree._ETreeTestCaseBase.test_ns_move lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_ns_move -lxml.tests.test_elementtree._ETreeTestCaseBase.test_XML lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_XML -lxml.tests.test_elementtree._ETreeTestCaseBase.test_deepcopy_elementtree lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_deepcopy_elementtree -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attribute_contains lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attribute_contains -lxml.tests.test_elementtree._ETreeTestCaseBase.test_getiterator_filter_all lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_getiterator_filter_all -lxml.tests.test_elementtree._ETreeTestCaseBase.test_tail_set_none lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_tail_set_none -lxml.tests.test_elementtree._ETreeTestCaseBase.test_parse_file_object_encoding lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_parse_file_object_encoding -lxml.tests.test_elementtree._ETreeTestCaseBase.test_clear_sub lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_clear_sub -lxml.tests.test_elementtree._ETreeTestCaseBase.test_tag_reset_root_ns lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_tag_reset_root_ns -lxml.tests.test_elementtree._ETreeTestCaseBase.test_delslice_step_negative lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_delslice_step_negative -lxml.tests.test_elementtree._ETreeTestCaseBase.test_parse_error_none lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_parse_error_none -lxml.tests.test_elementtree._ETreeTestCaseBase.test_qname_attribute_resolve_new lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_qname_attribute_resolve_new -lxml.tests.test_elementtree._ETreeTestCaseBase.test_iterparse lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_iterparse -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attribute_set lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attribute_set -lxml.tests.test_elementtree._ETreeTestCaseBase.test_deepcopy lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_deepcopy -lxml.tests.test_elementtree._ETreeTestCaseBase.test_extend lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_extend -lxml.tests.test_elementtree._ETreeTestCaseBase.test_parse_error lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_parse_error -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attrib_pop lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attrib_pop -lxml.tests.test_elementtree._ETreeTestCaseBase.test_encoding_tostring_sub lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_encoding_tostring_sub -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attribute_items2 lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attribute_items2 -lxml.tests.test_elementtree._ETreeTestCaseBase.test_insert_tail lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_insert_tail -lxml.tests.test_elementtree._ETreeTestCaseBase.assertEncodingDeclaration lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#assertEncodingDeclaration -lxml.tests.test_elementtree._ETreeTestCaseBase.test_tail_str_subclass lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_tail_str_subclass -lxml.tests.test_elementtree._ETreeTestCaseBase.test_getiterator_filter_with_text lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_getiterator_filter_with_text -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attributes lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attributes -lxml.tests.test_elementtree._ETreeTestCaseBase.test_encoding_write_default_encoding lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_encoding_write_default_encoding -lxml.tests.test_elementtree._ETreeTestCaseBase.test_delitem lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_delitem -lxml.tests.test_elementtree._ETreeTestCaseBase.test_tostring_element_tail lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_tostring_element_tail -lxml.tests.test_elementtree._ETreeTestCaseBase.test_text_escape_out lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_text_escape_out -lxml.tests.test_elementtree._ETreeTestCaseBase.test_setslice lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_setslice -lxml.tests.test_elementtree._ETreeTestCaseBase.test_element_indexing_with_text2 lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_element_indexing_with_text2 -lxml.tests.test_elementtree._ETreeTestCaseBase.test_parser_version lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_parser_version -lxml.tests.test_elementtree._ETreeTestCaseBase.test_elementtree_parser_target lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_elementtree_parser_target -lxml.tests.test_elementtree._ETreeTestCaseBase.test_iterparse_move_elements lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_iterparse_move_elements -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attrib_ns_clear lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attrib_ns_clear -lxml.tests.test_elementtree._ETreeTestCaseBase.test_elementtree_getiterator lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_elementtree_getiterator -lxml.tests.common_imports.HelperTestCase.parse lxml.tests.common_imports.HelperTestCase-class.html#parse -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attribute_items lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attribute_items -lxml.tests.test_elementtree._ETreeTestCaseBase.test_delslice_negative1 lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_delslice_negative1 -lxml.tests.test_elementtree._ETreeTestCaseBase.test_delslice_negative2 lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_delslice_negative2 -lxml.tests.test_elementtree._ETreeTestCaseBase.test_ns_decl_tostring_root lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_ns_decl_tostring_root -lxml.tests.test_elementtree._ETreeTestCaseBase.test_deepcopy_namespaces lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_deepcopy_namespaces -lxml.tests.test_elementtree._ETreeTestCaseBase._test_getchildren lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#_test_getchildren -lxml.tests.test_elementtree._ETreeTestCaseBase.test_parse_file_encoding lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_parse_file_encoding -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attribute_manipulation lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attribute_manipulation -lxml.tests.test_elementtree._ETreeTestCaseBase.test_text_escape_in lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_text_escape_in -lxml.tests.test_elementtree._ETreeTestCaseBase.test_tostring lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_tostring -lxml.tests.test_elementtree._ETreeTestCaseBase.test_element_indexing_with_text lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_element_indexing_with_text -lxml.tests.test_elementtree._ETreeTestCaseBase.test_tostring_method_html lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_tostring_method_html -lxml.tests.test_elementtree._ETreeTestCaseBase.test_fromstringlist_characters lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_fromstringlist_characters -lxml.tests.test_elementtree._ETreeTestCaseBase.test_parser_target_data lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_parser_target_data -lxml.tests.test_elementtree._ETreeTestCaseBase.test_tag_str_subclass lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_tag_str_subclass -lxml.tests.test_elementtree._ETreeTestCaseBase.test_ns_access lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_ns_access -lxml.tests.test_elementtree._ETreeTestCaseBase.test_parse_cdata lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_parse_cdata -lxml.tests.test_elementtree._ETreeTestCaseBase.required_versions_ET lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#required_versions_ET -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attributes2 lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attributes2 -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attributes3 lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attributes3 -lxml.tests.test_elementtree._ETreeTestCaseBase.test_parser_target_entity_unknown lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_parser_target_entity_unknown -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attrib_clear lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attrib_clear -lxml.tests.test_elementtree._ETreeTestCaseBase.test_setslice_all_empty lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_setslice_all_empty -lxml.tests.test_elementtree._ETreeTestCaseBase.test_iter lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_iter -lxml.tests.test_elementtree._ETreeTestCaseBase.test_remove lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_remove -lxml.tests.test_elementtree._ETreeTestCaseBase.test_feed_parser_bytes lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_feed_parser_bytes -lxml.tests.test_elementtree._ETreeTestCaseBase.test_getslice_negative lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_getslice_negative -lxml.tests.test_elementtree._ETreeTestCaseBase.test_encoding_tostring_default_encoding lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_encoding_tostring_default_encoding -lxml.tests.test_elementtree._ETreeTestCaseBase.test_del_insert lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_del_insert -lxml.tests.test_elementtree._ETreeTestCaseBase.test_text_empty lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_text_empty -lxml.tests.test_elementtree._ETreeTestCaseBase.test_write_method_html lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_write_method_html -lxml.tests.test_elementtree._ETreeTestCaseBase.test_setslice_all_replace lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_setslice_all_replace -lxml.tests.test_elementtree._ETreeTestCaseBase._check_mapping lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#_check_mapping -lxml.tests.test_elementtree._ETreeTestCaseBase.test_delslice_step lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_delslice_step -lxml.tests.test_elementtree._ETreeTestCaseBase.test_setslice_empty lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_setslice_empty -lxml.tests.test_elementtree._ETreeTestCaseBase.test_ns_decl_tostring_default lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_ns_decl_tostring_default -lxml.tests.test_elementtree._ETreeTestCaseBase.test_tag_write lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_tag_write -lxml.tests.test_elementtree._ETreeTestCaseBase.test_iterparse_file lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_iterparse_file -lxml.tests.test_elementtree._ETreeTestCaseBase.test_parse_error_from_file lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_parse_error_from_file -lxml.tests.test_elementtree._ETreeTestCaseBase.test_parse_file_object lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_parse_file_object -lxml.tests.test_elementtree._ETreeTestCaseBase.test_setslice_all lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_setslice_all -lxml.tests.test_elementtree._ETreeTestCaseBase.test_ns_setting lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_ns_setting -lxml.tests.test_elementtree._ETreeTestCaseBase.test_tag_reset_ns lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_tag_reset_ns -lxml.tests.test_elementtree._ETreeTestCaseBase.test_remove_tail lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_remove_tail -lxml.tests.test_elementtree._ETreeTestCaseBase.test_remove_nonexisting lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_remove_nonexisting -lxml.tests.test_elementtree._ETreeTestCaseBase.test_fromstringlist_single lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_fromstringlist_single -lxml.tests.test_elementtree._ETreeTestCaseBase.test_tail_elementtree_root lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_tail_elementtree_root -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attribute_keys_ns lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attribute_keys_ns -lxml.tests.test_elementtree._ETreeTestCaseBase.test_element_with_attributes_ns lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_element_with_attributes_ns -lxml.tests.test_elementtree._ETreeTestCaseBase.test_iteration_text_only lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_iteration_text_only -lxml.tests.test_elementtree._ETreeTestCaseBase.test_qname_attribute_resolve lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_qname_attribute_resolve -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attribute_update_attrib lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attribute_update_attrib -lxml.tests.test_elementtree._ETreeTestCaseBase.test_pi_nonsense lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_pi_nonsense -lxml.tests.test_elementtree._ETreeTestCaseBase.test_elementtree_getiterator_filter lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_elementtree_getiterator_filter -lxml.tests.test_elementtree._ETreeTestCaseBase.required_versions_cET lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#required_versions_cET -lxml.tests.test_elementtree._ETreeTestCaseBase.test_tostring_method_text lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_tostring_method_text -lxml.tests.test_elementtree._ETreeTestCaseBase.test_getslice_text lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_getslice_text -lxml.tests.test_elementtree._ETreeTestCaseBase.test_encoding_tostring_sub_tail lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_encoding_tostring_sub_tail -lxml.tests.test_elementtree._ETreeTestCaseBase.test_getiterator_filter lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_getiterator_filter -lxml.tests.test_elementtree._ETreeTestCaseBase.test_qname_cmp lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_qname_cmp -lxml.tests.test_elementtree._ETreeTestCaseBase.test_setslice_negative lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_setslice_negative -lxml.tests.test_elementtree._ETreeTestCaseBase.test_multiple_elementrees lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_multiple_elementrees -lxml.tests.test_elementtree._ETreeTestCaseBase.test_comment_nonsense lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_comment_nonsense -lxml.tests.test_elementtree._ETreeTestCaseBase.test_iteration_del_child lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_iteration_del_child -lxml.tests.test_elementtree._ETreeTestCaseBase.test_encoding_exact lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_encoding_exact -lxml.tests.test_elementtree._ETreeTestCaseBase.test_del_setitem lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_del_setitem -lxml.tests.test_elementtree._ETreeTestCaseBase.test_remove_ns lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_remove_ns -lxml.tests.test_elementtree._ETreeTestCaseBase.test_delslice_step_negative2 lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_delslice_step_negative2 -lxml.tests.test_elementtree._ETreeTestCaseBase.test_setslice_all_replace_reversed_ns1 lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_setslice_all_replace_reversed_ns1 -lxml.tests.test_elementtree._ETreeTestCaseBase.test_setslice_all_replace_reversed_ns2 lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_setslice_all_replace_reversed_ns2 -lxml.tests.test_elementtree._ETreeTestCaseBase.test_setitem_tail lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_setitem_tail -lxml.tests.test_elementtree._ETreeTestCaseBase.test_processinginstruction lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_processinginstruction -lxml.tests.test_elementtree._ETreeTestCaseBase.assertXML lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#assertXML -lxml.tests.test_elementtree._ETreeTestCaseBase.test_parse_file lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_parse_file -lxml.tests.test_elementtree._ETreeTestCaseBase._check_string lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#_check_string -lxml.tests.test_elementtree._ETreeTestCaseBase.test_getiterator_with_text lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_getiterator_with_text -lxml.tests.test_elementtree._ETreeTestCaseBase.test_setitem2 lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_setitem2 -lxml.tests.test_elementtree._ETreeTestCaseBase.test_comment_text lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_comment_text -lxml.tests.common_imports.HelperTestCase.assertFalse lxml.tests.common_imports.HelperTestCase-class.html#assertFalse -lxml.tests.test_elementtree.ElementTreeTestCase lxml.tests.test_elementtree.ElementTreeTestCase-class.html -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attribute_update_iter lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attribute_update_iter -lxml.tests.test_elementtree._ETreeTestCaseBase.test_getiterator_filter_pi lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_getiterator_filter_pi -lxml.tests.test_elementtree._ETreeTestCaseBase._writeElement lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#_writeElement -lxml.tests.test_elementtree._ETreeTestCaseBase.test_deepcopy_subelement lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_deepcopy_subelement -lxml.tests.test_elementtree._ETreeTestCaseBase.test_getiterator lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_getiterator -lxml.tests.test_elementtree._ETreeTestCaseBase.test_iterparse_clear lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_iterparse_clear -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attribute_namespace_roundtrip lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attribute_namespace_roundtrip -lxml.tests.test_elementtree._ETreeTestCaseBase.test_iterparse_cdata lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_iterparse_cdata -lxml.tests.test_elementtree._ETreeTestCaseBase.test_elementtree lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_elementtree -lxml.tests.test_elementtree._ETreeTestCaseBase.test_getiterator_empty lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_getiterator_empty -lxml.tests.test_elementtree._ETreeTestCaseBase.test_feed_parser_error_close_empty lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_feed_parser_error_close_empty -lxml.tests.test_elementtree._ETreeTestCaseBase.test_parser_target_attrib lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_parser_target_attrib -lxml.tests.test_elementtree._ETreeTestCaseBase.test_element_with_attributes_keywords lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_element_with_attributes_keywords -lxml.tests.test_elementtree._ETreeTestCaseBase.test_findall_ns lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_findall_ns -lxml.tests.common_imports.HelperTestCase.tearDown lxml.tests.common_imports.HelperTestCase-class.html#tearDown -lxml.tests.test_elementtree._ETreeTestCaseBase.test_parse_with_encoding lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_parse_with_encoding -lxml.tests.test_elementtree._ETreeTestCaseBase.test_setslice_tail lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_setslice_tail -lxml.tests.test_elementtree._ETreeTestCaseBase.test_parse_stringio lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_parse_stringio -lxml.tests.test_elementtree._ETreeTestCaseBase.test_tail lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_tail -lxml.tests.test_elementtree._ETreeTestCaseBase.test_iterparse_getiterator lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_iterparse_getiterator -lxml.tests.test_elementtree._ETreeTestCaseBase.test_write_method_text lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_write_method_text -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attrib_set_clear lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attrib_set_clear -lxml.tests.test_elementtree._ETreeTestCaseBase.test_encoding_tostring lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_encoding_tostring -lxml.tests.test_elementtree._ETreeTestCaseBase.test_itertext_child lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_itertext_child -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attrib_pop_empty_default lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attrib_pop_empty_default -lxml.tests.test_elementtree._ETreeTestCaseBase.test_setitem_indexerror lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_setitem_indexerror -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attribute_namespace_roundtrip_replaced lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attribute_namespace_roundtrip_replaced -lxml.tests.test_elementtree._ETreeTestCaseBase.test_tail1 lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_tail1 -lxml.tests.test_elementtree._ETreeTestCaseBase.test_comment_whitespace lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_comment_whitespace -lxml.tests.test_elementtree._ETreeTestCaseBase.test_crash lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_crash -lxml.tests.test_elementtree._ETreeTestCaseBase.test_parse_encoding_8bit_override lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_parse_encoding_8bit_override -lxml.tests.test_elementtree._ETreeTestCaseBase.test_parse_encoding_8bit_explicit lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_parse_encoding_8bit_explicit -lxml.tests.test_elementtree._ETreeTestCaseBase.test_simple lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_simple -lxml.tests.test_elementtree._ETreeTestCaseBase.test_tostring_element lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_tostring_element -lxml.tests.test_elementtree._ETreeTestCaseBase.test_write_fail lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_write_fail -lxml.tests.test_elementtree._ETreeTestCaseBase.test_encoding_sub_tostring_default_encoding lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_encoding_sub_tostring_default_encoding -lxml.tests.test_elementtree._ETreeTestCaseBase.test_treebuilder lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_treebuilder -lxml.tests.test_elementtree._ETreeTestCaseBase.test_text_escape_tostring lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_text_escape_tostring -lxml.tests.test_elementtree._ETreeTestCaseBase.test_makeelement lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_makeelement -lxml.tests.test_elementtree._ETreeTestCaseBase.test_setslice_single lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_setslice_single -lxml.tests.test_elementtree._ETreeTestCaseBase.test_getslice lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_getslice -lxml.tests.test_elementtree._ETreeTestCaseBase.test_delslice_memory lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_delslice_memory -lxml.tests.test_elementtree._ETreeTestCaseBase.test_deepcopy_append lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_deepcopy_append -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attrib_pop_unknown lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attrib_pop_unknown -lxml.tests.test_elementtree._ETreeTestCaseBase.test_register_namespace lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_register_namespace -lxml.tests.test_elementtree._ETreeTestCaseBase.test_shallowcopy lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_shallowcopy -lxml.tests.test_elementtree._ETreeTestCaseBase.test_feed_parser_unicode lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_feed_parser_unicode -lxml.tests.test_elementtree._ETreeTestCaseBase.test_subelement_reference lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_subelement_reference -lxml.tests.test_elementtree._ETreeTestCaseBase.test_insert_beyond_index lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_insert_beyond_index -lxml.tests.test_elementtree._ETreeTestCaseBase.test_fromstring lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_fromstring -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attribute_update_dict lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attribute_update_dict -unittest.case.TestCase.failureException exceptions.AssertionError-class.html -lxml.tests.test_elementtree._ETreeTestCaseBase.test_element_with_attributes lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_element_with_attributes -lxml.tests.test_elementtree._ETreeTestCaseBase.test_iterparse_start_end lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_iterparse_start_end -lxml.tests.test_elementtree._ETreeTestCaseBase.test_feed_parser_error_close_incomplete lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_feed_parser_error_close_incomplete -lxml.tests.test_elementtree._ETreeTestCaseBase.test_text_other lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_text_other -lxml.tests.test_elementtree._ETreeTestCaseBase.test_setslice_all_replace_reversed lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_setslice_all_replace_reversed -lxml.tests.test_elementtree._ETreeTestCaseBase.test_treebuilder_target lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_treebuilder_target -lxml.tests.test_elementtree._ETreeTestCaseBase.test_qname_attrib lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_qname_attrib -lxml.tests.test_elementtree._ETreeTestCaseBase.test_subelement lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_subelement -lxml.tests.test_elementtree._ETreeTestCaseBase.test_insert lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_insert -lxml.tests.test_elementtree._ETreeTestCaseBase.test_iterparse_large lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_iterparse_large -lxml.tests.test_elementtree._ETreeTestCaseBase.test_delslice lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_delslice -lxml.tests.test_elementtree._ETreeTestCaseBase.test_feed_parser_error_position lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_feed_parser_error_position -lxml.tests.test_elementtree._ETreeTestCaseBase.test_deepcopy_comment lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_deepcopy_comment -lxml.tests.test_elementtree._ETreeTestCaseBase.test_delslice_tail lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_delslice_tail -lxml.tests.test_elementtree._ETreeTestCaseBase.test_ns_decl_tostring_element lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_ns_decl_tostring_element -lxml.tests.test_elementtree._ETreeTestCaseBase.test_subelement_with_attributes lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_subelement_with_attributes -lxml.tests.test_elementtree._ETreeTestCaseBase.test_iteration_reversed lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_iteration_reversed -lxml.tests.test_elementtree._ETreeTestCaseBase.test_setslice_end lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_setslice_end -lxml.tests.test_elementtree._ETreeTestCaseBase.test_iteration lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_iteration -lxml.tests.test_elementtree._ETreeTestCaseBase.test_element_indexing_only_text lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_element_indexing_only_text -lxml.tests.test_elementtree._ETreeTestCaseBase._writeElementFile lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#_writeElementFile -lxml.tests.test_elementtree._ETreeTestCaseBase.test_parse_file_nonexistent lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_parse_file_nonexistent -lxml.tests.test_elementtree._ETreeTestCaseBase.test_iteration_double lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_iteration_double -lxml.tests.test_elementtree._ETreeTestCaseBase.test_insert_negative lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_insert_negative -lxml.tests.test_elementtree.ElementTreeTestCase.etree xml.etree.ElementTree-module.html -lxml.tests.test_elementtree._ETreeTestCaseBase.test_encoding_8bit_latin1 lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_encoding_8bit_latin1 -lxml.tests.test_elementtree._ETreeTestCaseBase.test_shallowcopy_elementtree lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_shallowcopy_elementtree -lxml.tests.test_elementtree._ETreeTestCaseBase.test_parser_target_tag lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_parser_target_tag -lxml.tests.test_elementtree._ETreeTestCaseBase.test_subelement_with_attributes_ns lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_subelement_with_attributes_ns -lxml.tests.test_elementtree._ETreeTestCaseBase.test_iterparse_attrib_ns lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_iterparse_attrib_ns -lxml.tests.test_elementtree._ETreeTestCaseBase.test_getslice_step lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_getslice_step -lxml.tests.test_elementtree._ETreeTestCaseBase.test_delslice_child_tail lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_delslice_child_tail -lxml.tests.test_elementtree._ETreeTestCaseBase.test_qname_attribute_getset lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_qname_attribute_getset -lxml.tests.test_elementtree._ETreeTestCaseBase.test_iteration_empty lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_iteration_empty -lxml.tests.test_elementtree._ETreeTestCaseBase.test_feed_parser_error_broken lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_feed_parser_error_broken -lxml.tests.test_elementtree._ETreeTestCaseBase.test_deepcopy_tail lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_deepcopy_tail -lxml.tests.test_elementtree._ETreeTestCaseBase.test_clear lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_clear -lxml.tests.test_elementtree._ETreeTestCaseBase.test_encoding lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_encoding -lxml.tests.test_elementtree._ETreeTestCaseBase.test_encoding_8bit_parse_stringio lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_encoding_8bit_parse_stringio -lxml.tests.test_elementtree._ETreeTestCaseBase.test_encoding_utf8_bom lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_encoding_utf8_bom -lxml.tests.test_elementtree._ETreeTestCaseBase._test_wrong_unicode_encoding lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#_test_wrong_unicode_encoding -lxml.tests.test_elementtree._ETreeTestCaseBase.test_set_text_none lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_set_text_none -lxml.tests.test_elementtree._ETreeTestCaseBase.test_itertext lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_itertext -lxml.tests.test_elementtree._ETreeTestCaseBase.test_text_str_subclass lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_text_str_subclass -lxml.tests.test_elementtree._ETreeTestCaseBase.test_getiterator_filter_comment lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_getiterator_filter_comment -lxml.tests.test_elementtree._ETreeTestCaseBase.test_ns_attr lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_ns_attr -lxml.tests.test_elementtree._ETreeTestCaseBase.test_parser_target_property lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_parser_target_property -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attribute_iterator lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attribute_iterator -lxml.tests.test_elementtree._ETreeTestCaseBase.test_comment lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_comment -lxml.tests.test_elementtree._ETreeTestCaseBase.test_ns_tag_parse lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_ns_tag_parse -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attribute_values lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attribute_values -lxml.tests.test_elementtree._ETreeTestCaseBase._check_element_tree lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#_check_element_tree -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attribute_xmlns_move lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attribute_xmlns_move -lxml.tests.test_elementtree._ETreeTestCaseBase.test_delitem_tail lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_delitem_tail -lxml.tests.test_elementtree._ETreeTestCaseBase.test_replace_slice_tail lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_replace_slice_tail -lxml.tests.test_elementtree._ETreeTestCaseBase._rootstring lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#_rootstring -lxml.tests.test_elementtree._ETreeTestCaseBase.test_tail_set_twice lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_tail_set_twice -lxml.tests.test_elementtree._ETreeTestCaseBase.test_iterparse_start lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_iterparse_start -lxml.tests.test_elementtree._ETreeTestCaseBase.test_ElementTree lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_ElementTree -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attribute_str lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attribute_str -lxml.tests.test_elementtree._ETreeTestCaseBase.test_encoding_8bit_xml lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_encoding_8bit_xml -lxml.tests.test_elementtree._ETreeTestCaseBase.test_ns_decl_tostring lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_ns_decl_tostring -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attribute_values_ns lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attribute_values_ns -lxml.tests.test_elementtree._ETreeTestCaseBase.test_setslice_negative2 lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_setslice_negative2 -lxml.tests.test_elementtree._ETreeTestCaseBase.test_tail_append lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_tail_append -lxml.tests.test_elementtree._ETreeTestCaseBase.test_del_attribute_ns_parsed lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_del_attribute_ns_parsed -lxml.tests.test_elementtree._ETreeTestCaseBase._test_del_tail lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#_test_del_tail -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attrib_pop_default lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attrib_pop_default -lxml.tests.test_elementtree._ETreeTestCaseBase.test_write_ElementTreeDoctest lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_write_ElementTreeDoctest -lxml.tests.test_elementtree._ETreeTestCaseBase.test_XMLID lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_XMLID -lxml.tests.test_elementtree._ETreeTestCaseBase.test_ns_access2 lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_ns_access2 -lxml.tests.test_elementtree._ETreeTestCaseBase.test_clear_tail lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_clear_tail -lxml.tests.test_elementtree._ETreeTestCaseBase._check_element lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#_check_element -lxml.tests.test_elementtree._ETreeTestCaseBase.test_weird_dict_interaction lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_weird_dict_interaction -lxml.tests.test_elementtree._ETreeTestCaseBase.test_element lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_element -lxml.tests.test_elementtree._ETreeTestCaseBase.test_setitem lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_setitem -lxml.tests.test_elementtree._ETreeTestCaseBase.test_pi lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_pi -lxml.tests.test_elementtree._ETreeTestCaseBase.test_set_text2 lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_set_text2 -lxml.tests.test_elementtree._ETreeTestCaseBase.test_iteration_crash lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_iteration_crash -lxml.tests.test_elementtree._ETreeTestCaseBase.test_qname lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_qname -lxml.tests.test_elementtree._ETreeTestCaseBase.test_del_attribute_ns lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_del_attribute_ns -lxml.tests.test_elementtree._ETreeTestCaseBase.test_del_setslice lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_del_setslice -lxml.tests.test_elementtree._ETreeTestCaseBase.test_comment_getitem_getslice lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_comment_getitem_getslice -lxml.tests.test_elementtree._ETreeTestCaseBase.test_iteration_subelement lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_iteration_subelement -lxml.tests.test_elementtree._ETreeTestCaseBase.test_encoding_tostring_unknown lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_encoding_tostring_unknown -lxml.tests.test_elementtree._ETreeTestCaseBase.test_element_contains lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_element_contains -lxml.tests.test_elementtree._ETreeTestCaseBase.test_iselement lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_iselement -lxml.tests.test_elementtree._ETreeTestCaseBase.test_set_text lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_set_text -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attribute_update_sequence lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attribute_update_sequence -lxml.tests.test_elementtree._ETreeTestCaseBase.test_qname_attrib_resolve lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_qname_attrib_resolve -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attribute_items_ns lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attribute_items_ns -lxml.tests.test_elementtree._ETreeTestCaseBase.test_parser_target_entity lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_parser_target_entity -lxml.tests.test_elementtree._ETreeTestCaseBase.test_setitem_replace lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_setitem_replace -lxml.tests.test_elementtree._ETreeTestCaseBase.test_fromstringlist lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_fromstringlist -lxml.tests.test_elementtree._ETreeTestCaseBase.test_set_text_empty lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_set_text_empty -lxml.tests.test_elementtree._ETreeTestCaseBase._test_element_boolean lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#_test_element_boolean -lxml.tests.test_elementtree._ETreeTestCaseBase.test_write lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_write -lxml.tests.test_elementtree._ETreeTestCaseBase.test_findall lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_findall -lxml.tests.test_elementtree._ETreeTestCaseBase.test_element_indexing_negative lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_element_indexing_negative -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attribute_keys2 lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attribute_keys2 -lxml.tests.test_elementtree._ETreeTestCaseBase.test_text lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_text -lxml.tests.test_elementtree._ETreeTestCaseBase.test_merge_namespaced_subtree_as_slice lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_merge_namespaced_subtree_as_slice -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attribute_keys lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attribute_keys -lxml.tests.test_elementtree._ETreeTestCaseBase.test_namespaces_after_serialize lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_namespaces_after_serialize -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attrib_pop_invalid_args lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attrib_pop_invalid_args -lxml.tests.test_elementtree._ETreeTestCaseBase.test_ns_move lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_ns_move -lxml.tests.test_elementtree._ETreeTestCaseBase.test_XML lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_XML -lxml.tests.test_elementtree._ETreeTestCaseBase.test_deepcopy_elementtree lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_deepcopy_elementtree -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attribute_contains lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attribute_contains -lxml.tests.test_elementtree._ETreeTestCaseBase.test_getiterator_filter_all lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_getiterator_filter_all -lxml.tests.test_elementtree._ETreeTestCaseBase.test_tail_set_none lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_tail_set_none -lxml.tests.test_elementtree._ETreeTestCaseBase.test_parse_file_object_encoding lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_parse_file_object_encoding -lxml.tests.test_elementtree._ETreeTestCaseBase.test_clear_sub lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_clear_sub -lxml.tests.test_elementtree._ETreeTestCaseBase.test_tag_reset_root_ns lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_tag_reset_root_ns -lxml.tests.test_elementtree._ETreeTestCaseBase.test_delslice_step_negative lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_delslice_step_negative -lxml.tests.test_elementtree._ETreeTestCaseBase.test_parse_error_none lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_parse_error_none -lxml.tests.test_elementtree._ETreeTestCaseBase.test_qname_attribute_resolve_new lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_qname_attribute_resolve_new -lxml.tests.test_elementtree._ETreeTestCaseBase.test_iterparse lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_iterparse -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attribute_set lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attribute_set -lxml.tests.test_elementtree._ETreeTestCaseBase.test_deepcopy lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_deepcopy -lxml.tests.test_elementtree._ETreeTestCaseBase.test_extend lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_extend -lxml.tests.test_elementtree._ETreeTestCaseBase.test_parse_error lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_parse_error -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attrib_pop lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attrib_pop -lxml.tests.test_elementtree._ETreeTestCaseBase.test_encoding_tostring_sub lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_encoding_tostring_sub -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attribute_items2 lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attribute_items2 -lxml.tests.test_elementtree._ETreeTestCaseBase.test_insert_tail lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_insert_tail -lxml.tests.test_elementtree._ETreeTestCaseBase.assertEncodingDeclaration lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#assertEncodingDeclaration -lxml.tests.test_elementtree._ETreeTestCaseBase.test_tail_str_subclass lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_tail_str_subclass -lxml.tests.test_elementtree._ETreeTestCaseBase.test_getiterator_filter_with_text lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_getiterator_filter_with_text -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attributes lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attributes -lxml.tests.test_elementtree._ETreeTestCaseBase.test_encoding_write_default_encoding lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_encoding_write_default_encoding -lxml.tests.test_elementtree._ETreeTestCaseBase.test_delitem lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_delitem -lxml.tests.test_elementtree._ETreeTestCaseBase.test_tostring_element_tail lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_tostring_element_tail -lxml.tests.test_elementtree._ETreeTestCaseBase.test_text_escape_out lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_text_escape_out -lxml.tests.test_elementtree._ETreeTestCaseBase.test_setslice lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_setslice -lxml.tests.test_elementtree._ETreeTestCaseBase.test_element_indexing_with_text2 lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_element_indexing_with_text2 -lxml.tests.test_elementtree._ETreeTestCaseBase.test_parser_version lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_parser_version -lxml.tests.test_elementtree._ETreeTestCaseBase.test_elementtree_parser_target lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_elementtree_parser_target -lxml.tests.test_elementtree._ETreeTestCaseBase.test_iterparse_move_elements lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_iterparse_move_elements -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attrib_ns_clear lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attrib_ns_clear -lxml.tests.test_elementtree._ETreeTestCaseBase.test_elementtree_getiterator lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_elementtree_getiterator -lxml.tests.common_imports.HelperTestCase.parse lxml.tests.common_imports.HelperTestCase-class.html#parse -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attribute_items lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attribute_items -lxml.tests.test_elementtree._ETreeTestCaseBase.test_delslice_negative1 lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_delslice_negative1 -lxml.tests.test_elementtree._ETreeTestCaseBase.test_delslice_negative2 lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_delslice_negative2 -lxml.tests.test_elementtree._ETreeTestCaseBase.test_ns_decl_tostring_root lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_ns_decl_tostring_root -lxml.tests.test_elementtree._ETreeTestCaseBase.test_deepcopy_namespaces lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_deepcopy_namespaces -lxml.tests.test_elementtree._ETreeTestCaseBase._test_getchildren lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#_test_getchildren -lxml.tests.test_elementtree._ETreeTestCaseBase.test_parse_file_encoding lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_parse_file_encoding -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attribute_manipulation lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attribute_manipulation -lxml.tests.test_elementtree._ETreeTestCaseBase.test_text_escape_in lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_text_escape_in -lxml.tests.test_elementtree._ETreeTestCaseBase.test_tostring lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_tostring -lxml.tests.test_elementtree._ETreeTestCaseBase.test_element_indexing_with_text lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_element_indexing_with_text -lxml.tests.test_elementtree._ETreeTestCaseBase.test_tostring_method_html lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_tostring_method_html -lxml.tests.test_elementtree._ETreeTestCaseBase.test_fromstringlist_characters lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_fromstringlist_characters -lxml.tests.test_elementtree._ETreeTestCaseBase.test_parser_target_data lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_parser_target_data -lxml.tests.test_elementtree._ETreeTestCaseBase.test_tag_str_subclass lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_tag_str_subclass -lxml.tests.test_elementtree._ETreeTestCaseBase.test_ns_access lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_ns_access -lxml.tests.test_elementtree._ETreeTestCaseBase.test_parse_cdata lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_parse_cdata -lxml.tests.test_elementtree._ETreeTestCaseBase.required_versions_ET lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#required_versions_ET -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attributes2 lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attributes2 -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attributes3 lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attributes3 -lxml.tests.test_elementtree._ETreeTestCaseBase.test_parser_target_entity_unknown lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_parser_target_entity_unknown -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attrib_clear lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attrib_clear -lxml.tests.test_elementtree._ETreeTestCaseBase.test_setslice_all_empty lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_setslice_all_empty -lxml.tests.test_elementtree._ETreeTestCaseBase.test_iter lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_iter -lxml.tests.test_elementtree._ETreeTestCaseBase.test_remove lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_remove -lxml.tests.test_elementtree._ETreeTestCaseBase.test_feed_parser_bytes lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_feed_parser_bytes -lxml.tests.test_elementtree._ETreeTestCaseBase.test_getslice_negative lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_getslice_negative -lxml.tests.test_elementtree._ETreeTestCaseBase.test_encoding_tostring_default_encoding lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_encoding_tostring_default_encoding -lxml.tests.test_elementtree._ETreeTestCaseBase.test_del_insert lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_del_insert -lxml.tests.test_elementtree._ETreeTestCaseBase.test_text_empty lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_text_empty -lxml.tests.test_elementtree._ETreeTestCaseBase.test_write_method_html lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_write_method_html -lxml.tests.test_elementtree._ETreeTestCaseBase.test_setslice_all_replace lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_setslice_all_replace -lxml.tests.test_elementtree._ETreeTestCaseBase._check_mapping lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#_check_mapping -lxml.tests.test_elementtree._ETreeTestCaseBase.test_delslice_step lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_delslice_step -lxml.tests.test_elementtree._ETreeTestCaseBase.test_setslice_empty lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_setslice_empty -lxml.tests.test_elementtree._ETreeTestCaseBase.test_ns_decl_tostring_default lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_ns_decl_tostring_default -lxml.tests.test_elementtree._ETreeTestCaseBase.test_tag_write lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_tag_write -lxml.tests.test_elementtree._ETreeTestCaseBase.test_iterparse_file lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_iterparse_file -lxml.tests.test_elementtree._ETreeTestCaseBase.test_parse_error_from_file lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_parse_error_from_file -lxml.tests.test_elementtree._ETreeTestCaseBase.test_parse_file_object lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_parse_file_object -lxml.tests.test_elementtree._ETreeTestCaseBase.test_setslice_all lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_setslice_all -lxml.tests.test_elementtree._ETreeTestCaseBase.test_ns_setting lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_ns_setting -lxml.tests.test_elementtree._ETreeTestCaseBase.test_tag_reset_ns lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_tag_reset_ns -lxml.tests.test_elementtree._ETreeTestCaseBase.test_remove_tail lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_remove_tail -lxml.tests.test_elementtree._ETreeTestCaseBase.test_remove_nonexisting lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_remove_nonexisting -lxml.tests.test_elementtree._ETreeTestCaseBase.test_fromstringlist_single lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_fromstringlist_single -lxml.tests.test_elementtree._ETreeTestCaseBase.test_tail_elementtree_root lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_tail_elementtree_root -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attribute_keys_ns lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attribute_keys_ns -lxml.tests.test_elementtree._ETreeTestCaseBase.test_element_with_attributes_ns lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_element_with_attributes_ns -lxml.tests.test_elementtree._ETreeTestCaseBase.test_iteration_text_only lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_iteration_text_only -lxml.tests.test_elementtree._ETreeTestCaseBase.test_qname_attribute_resolve lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_qname_attribute_resolve -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attribute_update_attrib lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attribute_update_attrib -lxml.tests.test_elementtree._ETreeTestCaseBase.test_pi_nonsense lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_pi_nonsense -lxml.tests.test_elementtree._ETreeTestCaseBase.test_elementtree_getiterator_filter lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_elementtree_getiterator_filter -lxml.tests.test_elementtree._ETreeTestCaseBase.required_versions_cET lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#required_versions_cET -lxml.tests.test_elementtree._ETreeTestCaseBase.test_tostring_method_text lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_tostring_method_text -lxml.tests.test_elementtree._ETreeTestCaseBase.test_getslice_text lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_getslice_text -lxml.tests.test_elementtree._ETreeTestCaseBase.test_encoding_tostring_sub_tail lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_encoding_tostring_sub_tail -lxml.tests.test_elementtree._ETreeTestCaseBase.test_getiterator_filter lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_getiterator_filter -lxml.tests.test_elementtree._ETreeTestCaseBase.test_qname_cmp lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_qname_cmp -lxml.tests.test_elementtree._ETreeTestCaseBase.test_setslice_negative lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_setslice_negative -lxml.tests.test_elementtree._ETreeTestCaseBase.test_multiple_elementrees lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_multiple_elementrees -lxml.tests.test_elementtree._ETreeTestCaseBase.test_comment_nonsense lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_comment_nonsense -lxml.tests.test_elementtree._ETreeTestCaseBase.test_iteration_del_child lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_iteration_del_child -lxml.tests.test_elementtree._ETreeTestCaseBase.test_encoding_exact lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_encoding_exact -lxml.tests.test_elementtree._ETreeTestCaseBase.test_del_setitem lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_del_setitem -lxml.tests.test_elementtree._ETreeTestCaseBase.test_remove_ns lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_remove_ns -lxml.tests.test_elementtree._ETreeTestCaseBase.test_delslice_step_negative2 lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_delslice_step_negative2 -lxml.tests.test_elementtree._ETreeTestCaseBase.test_setslice_all_replace_reversed_ns1 lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_setslice_all_replace_reversed_ns1 -lxml.tests.test_elementtree._ETreeTestCaseBase.test_setslice_all_replace_reversed_ns2 lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_setslice_all_replace_reversed_ns2 -lxml.tests.test_elementtree._ETreeTestCaseBase.test_setitem_tail lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_setitem_tail -lxml.tests.test_elementtree._ETreeTestCaseBase.test_processinginstruction lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_processinginstruction -lxml.tests.test_elementtree._ETreeTestCaseBase.assertXML lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#assertXML -lxml.tests.test_elementtree._ETreeTestCaseBase.test_parse_file lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_parse_file -lxml.tests.test_elementtree._ETreeTestCaseBase._check_string lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#_check_string -lxml.tests.test_elementtree._ETreeTestCaseBase.test_getiterator_with_text lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_getiterator_with_text -lxml.tests.test_elementtree._ETreeTestCaseBase.test_setitem2 lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_setitem2 -lxml.tests.test_elementtree._ETreeTestCaseBase.test_comment_text lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_comment_text -lxml.tests.common_imports.HelperTestCase.assertFalse lxml.tests.common_imports.HelperTestCase-class.html#assertFalse -lxml.tests.test_elementtree._ETreeTestCaseBase lxml.tests.test_elementtree._ETreeTestCaseBase-class.html -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attribute_update_iter lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attribute_update_iter -lxml.tests.test_elementtree._ETreeTestCaseBase.test_getiterator_filter_pi lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_getiterator_filter_pi -lxml.tests.test_elementtree._ETreeTestCaseBase._writeElement lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#_writeElement -lxml.tests.test_elementtree._ETreeTestCaseBase.test_deepcopy_subelement lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_deepcopy_subelement -lxml.tests.test_elementtree._ETreeTestCaseBase.test_getiterator lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_getiterator -lxml.tests.test_elementtree._ETreeTestCaseBase.test_iterparse_clear lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_iterparse_clear -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attribute_namespace_roundtrip lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attribute_namespace_roundtrip -lxml.tests.test_elementtree._ETreeTestCaseBase.test_iterparse_cdata lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_iterparse_cdata -lxml.tests.test_elementtree._ETreeTestCaseBase.test_elementtree lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_elementtree -lxml.tests.test_elementtree._ETreeTestCaseBase.test_getiterator_empty lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_getiterator_empty -lxml.tests.test_elementtree._ETreeTestCaseBase.test_feed_parser_error_close_empty lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_feed_parser_error_close_empty -lxml.tests.test_elementtree._ETreeTestCaseBase.test_parser_target_attrib lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_parser_target_attrib -lxml.tests.test_elementtree._ETreeTestCaseBase.test_element_with_attributes_keywords lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_element_with_attributes_keywords -lxml.tests.test_elementtree._ETreeTestCaseBase.test_findall_ns lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_findall_ns -lxml.tests.common_imports.HelperTestCase.tearDown lxml.tests.common_imports.HelperTestCase-class.html#tearDown -lxml.tests.test_elementtree._ETreeTestCaseBase.test_parse_with_encoding lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_parse_with_encoding -lxml.tests.test_elementtree._ETreeTestCaseBase.test_setslice_tail lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_setslice_tail -lxml.tests.test_elementtree._ETreeTestCaseBase.test_insert_beyond_index lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_insert_beyond_index -lxml.tests.test_elementtree._ETreeTestCaseBase.test_tail lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_tail -lxml.tests.test_elementtree._ETreeTestCaseBase.test_iterparse_getiterator lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_iterparse_getiterator -lxml.tests.test_elementtree._ETreeTestCaseBase.test_write_method_text lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_write_method_text -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attrib_set_clear lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attrib_set_clear -lxml.tests.test_elementtree._ETreeTestCaseBase.test_encoding_tostring lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_encoding_tostring -lxml.tests.test_elementtree._ETreeTestCaseBase.test_setslice_all lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_setslice_all -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attrib_pop_empty_default lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attrib_pop_empty_default -lxml.tests.test_elementtree._ETreeTestCaseBase.test_setitem_indexerror lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_setitem_indexerror -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attribute_namespace_roundtrip_replaced lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attribute_namespace_roundtrip_replaced -lxml.tests.test_elementtree._ETreeTestCaseBase.test_tail1 lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_tail1 -lxml.tests.test_elementtree._ETreeTestCaseBase.test_comment_whitespace lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_comment_whitespace -lxml.tests.test_elementtree._ETreeTestCaseBase.test_crash lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_crash -lxml.tests.test_elementtree._ETreeTestCaseBase.test_parse_encoding_8bit_override lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_parse_encoding_8bit_override -lxml.tests.test_elementtree._ETreeTestCaseBase.test_parse_encoding_8bit_explicit lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_parse_encoding_8bit_explicit -lxml.tests.test_elementtree._ETreeTestCaseBase.test_simple lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_simple -lxml.tests.test_elementtree._ETreeTestCaseBase.test_tostring_element lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_tostring_element -lxml.tests.test_elementtree._ETreeTestCaseBase.test_write_fail lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_write_fail -lxml.tests.test_elementtree._ETreeTestCaseBase.test_encoding_sub_tostring_default_encoding lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_encoding_sub_tostring_default_encoding -lxml.tests.test_elementtree._ETreeTestCaseBase.test_set_text_none lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_set_text_none -lxml.tests.test_elementtree._ETreeTestCaseBase.test_text_escape_tostring lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_text_escape_tostring -lxml.tests.test_elementtree._ETreeTestCaseBase.test_makeelement lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_makeelement -lxml.tests.test_elementtree._ETreeTestCaseBase.test_setslice_single lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_setslice_single -lxml.tests.test_elementtree._ETreeTestCaseBase.test_getslice lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_getslice -lxml.tests.test_elementtree._ETreeTestCaseBase.test_delslice_memory lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_delslice_memory -lxml.tests.test_elementtree._ETreeTestCaseBase.test_deepcopy_append lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_deepcopy_append -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attrib_pop_unknown lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attrib_pop_unknown -lxml.tests.test_elementtree._ETreeTestCaseBase.test_register_namespace lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_register_namespace -lxml.tests.test_elementtree._ETreeTestCaseBase.test_shallowcopy lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_shallowcopy -lxml.tests.test_elementtree._ETreeTestCaseBase.test_feed_parser_unicode lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_feed_parser_unicode -lxml.tests.test_elementtree._ETreeTestCaseBase.test_subelement_reference lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_subelement_reference -lxml.tests.test_elementtree._ETreeTestCaseBase.test_parse_stringio lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_parse_stringio -lxml.tests.test_elementtree._ETreeTestCaseBase.test_fromstring lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_fromstring -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attribute_update_dict lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attribute_update_dict -unittest.case.TestCase.failureException exceptions.AssertionError-class.html -lxml.tests.test_elementtree._ETreeTestCaseBase.test_element_with_attributes lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_element_with_attributes -lxml.tests.test_elementtree._ETreeTestCaseBase.test_iterparse_start_end lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_iterparse_start_end -lxml.tests.test_elementtree._ETreeTestCaseBase.test_feed_parser_error_close_incomplete lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_feed_parser_error_close_incomplete -lxml.tests.test_elementtree._ETreeTestCaseBase.test_text_other lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_text_other -lxml.tests.test_elementtree._ETreeTestCaseBase.test_setslice_all_replace_reversed lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_setslice_all_replace_reversed -lxml.tests.test_elementtree._ETreeTestCaseBase.test_treebuilder_target lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_treebuilder_target -lxml.tests.test_elementtree._ETreeTestCaseBase.test_qname_attrib lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_qname_attrib -lxml.tests.test_elementtree._ETreeTestCaseBase.test_subelement lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_subelement -lxml.tests.test_elementtree._ETreeTestCaseBase.test_insert lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_insert -lxml.tests.test_elementtree._ETreeTestCaseBase.test_iterparse_large lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_iterparse_large -lxml.tests.test_elementtree._ETreeTestCaseBase.test_delslice lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_delslice -lxml.tests.test_elementtree._ETreeTestCaseBase.test_feed_parser_error_position lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_feed_parser_error_position -lxml.tests.test_elementtree._ETreeTestCaseBase.test_deepcopy_comment lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_deepcopy_comment -lxml.tests.test_elementtree._ETreeTestCaseBase.test_XMLID lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_XMLID -lxml.tests.test_elementtree._ETreeTestCaseBase.test_ns_decl_tostring_element lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_ns_decl_tostring_element -lxml.tests.test_elementtree._ETreeTestCaseBase.test_subelement_with_attributes lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_subelement_with_attributes -lxml.tests.test_elementtree._ETreeTestCaseBase.test_iteration_reversed lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_iteration_reversed -lxml.tests.test_elementtree._ETreeTestCaseBase.test_setslice_end lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_setslice_end -lxml.tests.test_elementtree._ETreeTestCaseBase.test_iteration lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_iteration -lxml.tests.test_elementtree._ETreeTestCaseBase.test_element_indexing_only_text lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_element_indexing_only_text -lxml.tests.test_elementtree._ETreeTestCaseBase._writeElementFile lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#_writeElementFile -lxml.tests.test_elementtree._ETreeTestCaseBase.test_parse_file_nonexistent lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_parse_file_nonexistent -lxml.tests.test_elementtree._ETreeTestCaseBase.test_iteration_double lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_iteration_double -lxml.tests.test_elementtree._ETreeTestCaseBase.test_insert_negative lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_insert_negative -lxml.tests.test_elementtree._ETreeTestCaseBase.etree lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#etree -lxml.tests.test_elementtree._ETreeTestCaseBase.test_encoding_8bit_latin1 lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_encoding_8bit_latin1 -lxml.tests.test_elementtree._ETreeTestCaseBase.test_shallowcopy_elementtree lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_shallowcopy_elementtree -lxml.tests.test_elementtree._ETreeTestCaseBase.test_parser_target_tag lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_parser_target_tag -lxml.tests.test_elementtree._ETreeTestCaseBase.test_subelement_with_attributes_ns lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_subelement_with_attributes_ns -lxml.tests.test_elementtree._ETreeTestCaseBase.test_iterparse_attrib_ns lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_iterparse_attrib_ns -lxml.tests.test_elementtree._ETreeTestCaseBase.test_getslice_step lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_getslice_step -lxml.tests.test_elementtree._ETreeTestCaseBase.test_delslice_child_tail lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_delslice_child_tail -lxml.tests.test_elementtree._ETreeTestCaseBase.test_qname_attribute_getset lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_qname_attribute_getset -lxml.tests.test_elementtree._ETreeTestCaseBase.test_iteration_empty lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_iteration_empty -lxml.tests.test_elementtree._ETreeTestCaseBase.test_feed_parser_error_broken lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_feed_parser_error_broken -lxml.tests.test_elementtree._ETreeTestCaseBase.test_deepcopy_tail lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_deepcopy_tail -lxml.tests.test_elementtree._ETreeTestCaseBase.test_clear lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_clear -lxml.tests.test_elementtree._ETreeTestCaseBase.test_encoding lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_encoding -lxml.tests.test_elementtree._ETreeTestCaseBase.test_encoding_8bit_parse_stringio lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_encoding_8bit_parse_stringio -lxml.tests.test_elementtree._ETreeTestCaseBase.test_encoding_utf8_bom lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_encoding_utf8_bom -lxml.tests.test_elementtree._ETreeTestCaseBase._test_wrong_unicode_encoding lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#_test_wrong_unicode_encoding -lxml.tests.test_elementtree._ETreeTestCaseBase.test_treebuilder lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_treebuilder -lxml.tests.test_elementtree._ETreeTestCaseBase.test_itertext lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_itertext -lxml.tests.test_elementtree._ETreeTestCaseBase.test_text_str_subclass lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_text_str_subclass -lxml.tests.test_elementtree._ETreeTestCaseBase.test_getiterator_filter_comment lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_getiterator_filter_comment -lxml.tests.test_elementtree._ETreeTestCaseBase.test_ns_attr lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_ns_attr -lxml.tests.test_elementtree._ETreeTestCaseBase.test_parser_target_property lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_parser_target_property -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attribute_iterator lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attribute_iterator -lxml.tests.test_elementtree._ETreeTestCaseBase.test_comment lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_comment -lxml.tests.test_elementtree._ETreeTestCaseBase.test_ns_tag_parse lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_ns_tag_parse -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attribute_values lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attribute_values -lxml.tests.test_elementtree._ETreeTestCaseBase._check_element_tree lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#_check_element_tree -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attribute_xmlns_move lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attribute_xmlns_move -lxml.tests.test_elementtree._ETreeTestCaseBase.test_delitem_tail lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_delitem_tail -lxml.tests.test_elementtree._ETreeTestCaseBase.test_replace_slice_tail lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_replace_slice_tail -lxml.tests.test_elementtree._ETreeTestCaseBase._rootstring lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#_rootstring -lxml.tests.test_elementtree._ETreeTestCaseBase.test_tail_set_twice lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_tail_set_twice -lxml.tests.test_elementtree._ETreeTestCaseBase.test_iterparse_start lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_iterparse_start -lxml.tests.test_elementtree._ETreeTestCaseBase.test_ElementTree lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_ElementTree -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attribute_str lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attribute_str -lxml.tests.test_elementtree._ETreeTestCaseBase.test_encoding_8bit_xml lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_encoding_8bit_xml -lxml.tests.test_elementtree._ETreeTestCaseBase.test_elementtree_parser_target lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_elementtree_parser_target -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attribute_values_ns lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attribute_values_ns -lxml.tests.test_elementtree._ETreeTestCaseBase.test_setslice_negative2 lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_setslice_negative2 -lxml.tests.test_elementtree._ETreeTestCaseBase.test_tail_append lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_tail_append -lxml.tests.test_elementtree._ETreeTestCaseBase.test_del_attribute_ns_parsed lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_del_attribute_ns_parsed -lxml.tests.test_elementtree._ETreeTestCaseBase.test_iter lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_iter -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attrib_pop_default lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attrib_pop_default -lxml.tests.test_elementtree._ETreeTestCaseBase.test_write_ElementTreeDoctest lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_write_ElementTreeDoctest -lxml.tests.test_elementtree._ETreeTestCaseBase.test_delslice_tail lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_delslice_tail -lxml.tests.test_elementtree._ETreeTestCaseBase.test_ns_access2 lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_ns_access2 -lxml.tests.test_elementtree._ETreeTestCaseBase.test_clear_tail lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_clear_tail -lxml.tests.test_elementtree._ETreeTestCaseBase._check_element lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#_check_element -lxml.tests.test_elementtree._ETreeTestCaseBase.test_tag_str_subclass lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_tag_str_subclass -lxml.tests.test_elementtree._ETreeTestCaseBase.test_element lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_element -lxml.tests.test_elementtree._ETreeTestCaseBase.test_setitem lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_setitem -lxml.tests.test_elementtree._ETreeTestCaseBase.test_pi lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_pi -lxml.tests.test_elementtree._ETreeTestCaseBase.test_set_text2 lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_set_text2 -lxml.tests.test_elementtree._ETreeTestCaseBase.test_iteration_crash lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_iteration_crash -lxml.tests.test_elementtree._ETreeTestCaseBase.test_getslice_text lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_getslice_text -lxml.tests.test_elementtree._ETreeTestCaseBase.test_del_attribute_ns lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_del_attribute_ns -lxml.tests.test_elementtree._ETreeTestCaseBase.test_del_setslice lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_del_setslice -lxml.tests.test_elementtree._ETreeTestCaseBase.test_comment_getitem_getslice lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_comment_getitem_getslice -lxml.tests.test_elementtree._ETreeTestCaseBase.test_iteration_subelement lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_iteration_subelement -lxml.tests.test_elementtree._ETreeTestCaseBase.test_encoding_tostring_unknown lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_encoding_tostring_unknown -lxml.tests.test_elementtree._ETreeTestCaseBase.test_element_contains lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_element_contains -lxml.tests.test_elementtree._ETreeTestCaseBase.test_iselement lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_iselement -lxml.tests.test_elementtree._ETreeTestCaseBase.test_set_text lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_set_text -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attribute_update_sequence lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attribute_update_sequence -lxml.tests.test_elementtree._ETreeTestCaseBase.test_qname_attrib_resolve lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_qname_attrib_resolve -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attribute_items_ns lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attribute_items_ns -lxml.tests.test_elementtree._ETreeTestCaseBase.test_parser_target_entity lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_parser_target_entity -lxml.tests.test_elementtree._ETreeTestCaseBase.test_setitem_replace lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_setitem_replace -lxml.tests.test_elementtree._ETreeTestCaseBase.test_fromstringlist lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_fromstringlist -lxml.tests.test_elementtree._ETreeTestCaseBase.test_set_text_empty lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_set_text_empty -lxml.tests.test_elementtree._ETreeTestCaseBase._test_element_boolean lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#_test_element_boolean -lxml.tests.test_elementtree._ETreeTestCaseBase.test_write lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_write -lxml.tests.test_elementtree._ETreeTestCaseBase.test_findall lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_findall -lxml.tests.test_elementtree._ETreeTestCaseBase.test_element_indexing_negative lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_element_indexing_negative -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attribute_keys2 lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attribute_keys2 -lxml.tests.test_elementtree._ETreeTestCaseBase.test_text lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_text -lxml.tests.test_elementtree._ETreeTestCaseBase.test_merge_namespaced_subtree_as_slice lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_merge_namespaced_subtree_as_slice -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attribute_keys lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attribute_keys -lxml.tests.test_elementtree._ETreeTestCaseBase.test_namespaces_after_serialize lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_namespaces_after_serialize -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attrib_pop_invalid_args lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attrib_pop_invalid_args -lxml.tests.test_elementtree._ETreeTestCaseBase.test_ns_move lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_ns_move -lxml.tests.test_elementtree._ETreeTestCaseBase.test_XML lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_XML -lxml.tests.test_elementtree._ETreeTestCaseBase.test_deepcopy_elementtree lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_deepcopy_elementtree -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attribute_contains lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attribute_contains -lxml.tests.test_elementtree._ETreeTestCaseBase.test_getiterator_filter_all lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_getiterator_filter_all -lxml.tests.test_elementtree._ETreeTestCaseBase.test_tail_set_none lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_tail_set_none -lxml.tests.test_elementtree._ETreeTestCaseBase.test_parse_file_object_encoding lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_parse_file_object_encoding -lxml.tests.test_elementtree._ETreeTestCaseBase.test_clear_sub lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_clear_sub -lxml.tests.test_elementtree._ETreeTestCaseBase.test_element_indexing_with_text lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_element_indexing_with_text -lxml.tests.test_elementtree._ETreeTestCaseBase.test_delslice_step_negative lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_delslice_step_negative -lxml.tests.test_elementtree._ETreeTestCaseBase.test_parse_error_none lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_parse_error_none -lxml.tests.test_elementtree._ETreeTestCaseBase.test_qname_attribute_resolve_new lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_qname_attribute_resolve_new -lxml.tests.test_elementtree._ETreeTestCaseBase.test_iterparse lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_iterparse -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attribute_set lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attribute_set -lxml.tests.test_elementtree._ETreeTestCaseBase.test_deepcopy lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_deepcopy -lxml.tests.test_elementtree._ETreeTestCaseBase.test_extend lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_extend -lxml.tests.test_elementtree._ETreeTestCaseBase.test_parse_error lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_parse_error -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attrib_pop lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attrib_pop -lxml.tests.test_elementtree._ETreeTestCaseBase.test_encoding_tostring_sub lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_encoding_tostring_sub -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attribute_items2 lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attribute_items2 -lxml.tests.test_elementtree._ETreeTestCaseBase.test_insert_tail lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_insert_tail -lxml.tests.test_elementtree._ETreeTestCaseBase.assertEncodingDeclaration lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#assertEncodingDeclaration -lxml.tests.test_elementtree._ETreeTestCaseBase.test_tail_str_subclass lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_tail_str_subclass -lxml.tests.test_elementtree._ETreeTestCaseBase.test_getiterator_filter_with_text lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_getiterator_filter_with_text -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attributes lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attributes -lxml.tests.test_elementtree._ETreeTestCaseBase.test_encoding_write_default_encoding lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_encoding_write_default_encoding -lxml.tests.test_elementtree._ETreeTestCaseBase.test_delitem lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_delitem -lxml.tests.test_elementtree._ETreeTestCaseBase.test_tostring_element_tail lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_tostring_element_tail -lxml.tests.test_elementtree._ETreeTestCaseBase.test_text_escape_out lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_text_escape_out -lxml.tests.test_elementtree._ETreeTestCaseBase.test_setslice lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_setslice -lxml.tests.test_elementtree._ETreeTestCaseBase.test_element_indexing_with_text2 lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_element_indexing_with_text2 -lxml.tests.test_elementtree._ETreeTestCaseBase.test_parser_version lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_parser_version -lxml.tests.test_elementtree._ETreeTestCaseBase.test_ns_decl_tostring lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_ns_decl_tostring -lxml.tests.test_elementtree._ETreeTestCaseBase.test_iterparse_move_elements lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_iterparse_move_elements -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attrib_ns_clear lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attrib_ns_clear -lxml.tests.test_elementtree._ETreeTestCaseBase.test_elementtree_getiterator lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_elementtree_getiterator -lxml.tests.common_imports.HelperTestCase.parse lxml.tests.common_imports.HelperTestCase-class.html#parse -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attribute_items lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attribute_items -lxml.tests.test_elementtree._ETreeTestCaseBase.test_delslice_negative1 lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_delslice_negative1 -lxml.tests.test_elementtree._ETreeTestCaseBase.test_delslice_negative2 lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_delslice_negative2 -lxml.tests.test_elementtree._ETreeTestCaseBase.test_ns_decl_tostring_root lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_ns_decl_tostring_root -lxml.tests.test_elementtree._ETreeTestCaseBase.test_deepcopy_namespaces lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_deepcopy_namespaces -lxml.tests.test_elementtree._ETreeTestCaseBase._test_getchildren lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#_test_getchildren -lxml.tests.test_elementtree._ETreeTestCaseBase.test_parse_file_encoding lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_parse_file_encoding -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attribute_manipulation lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attribute_manipulation -lxml.tests.test_elementtree._ETreeTestCaseBase.test_text_escape_in lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_text_escape_in -lxml.tests.test_elementtree._ETreeTestCaseBase.test_tostring lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_tostring -lxml.tests.test_elementtree._ETreeTestCaseBase.test_tag_reset_root_ns lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_tag_reset_root_ns -lxml.tests.test_elementtree._ETreeTestCaseBase.test_tostring_method_html lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_tostring_method_html -lxml.tests.test_elementtree._ETreeTestCaseBase.test_fromstringlist_characters lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_fromstringlist_characters -lxml.tests.test_elementtree._ETreeTestCaseBase.test_parser_target_data lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_parser_target_data -lxml.tests.test_elementtree._ETreeTestCaseBase.test_weird_dict_interaction lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_weird_dict_interaction -lxml.tests.test_elementtree._ETreeTestCaseBase.test_ns_access lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_ns_access -lxml.tests.test_elementtree._ETreeTestCaseBase.test_parse_cdata lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_parse_cdata -lxml.tests.test_elementtree._ETreeTestCaseBase.required_versions_ET lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#required_versions_ET -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attributes2 lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attributes2 -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attributes3 lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attributes3 -lxml.tests.test_elementtree._ETreeTestCaseBase.test_parser_target_entity_unknown lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_parser_target_entity_unknown -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attrib_clear lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attrib_clear -lxml.tests.test_elementtree._ETreeTestCaseBase.test_setslice_all_empty lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_setslice_all_empty -lxml.tests.test_elementtree._ETreeTestCaseBase._test_del_tail lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#_test_del_tail -lxml.tests.test_elementtree._ETreeTestCaseBase.test_remove lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_remove -lxml.tests.test_elementtree._ETreeTestCaseBase.test_feed_parser_bytes lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_feed_parser_bytes -lxml.tests.test_elementtree._ETreeTestCaseBase.test_getslice_negative lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_getslice_negative -lxml.tests.test_elementtree._ETreeTestCaseBase.test_encoding_tostring_default_encoding lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_encoding_tostring_default_encoding -lxml.tests.test_elementtree._ETreeTestCaseBase.test_del_insert lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_del_insert -lxml.tests.test_elementtree._ETreeTestCaseBase.test_text_empty lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_text_empty -lxml.tests.test_elementtree._ETreeTestCaseBase.test_write_method_html lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_write_method_html -lxml.tests.test_elementtree._ETreeTestCaseBase.test_setslice_all_replace lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_setslice_all_replace -lxml.tests.test_elementtree._ETreeTestCaseBase._check_mapping lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#_check_mapping -lxml.tests.test_elementtree._ETreeTestCaseBase.test_delslice_step lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_delslice_step -lxml.tests.test_elementtree._ETreeTestCaseBase.test_processinginstruction lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_processinginstruction -lxml.tests.test_elementtree._ETreeTestCaseBase.test_ns_decl_tostring_default lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_ns_decl_tostring_default -lxml.tests.test_elementtree._ETreeTestCaseBase.test_tag_write lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_tag_write -lxml.tests.test_elementtree._ETreeTestCaseBase.test_iterparse_file lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_iterparse_file -lxml.tests.test_elementtree._ETreeTestCaseBase.test_parse_error_from_file lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_parse_error_from_file -lxml.tests.test_elementtree._ETreeTestCaseBase.test_parse_file_object lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_parse_file_object -lxml.tests.test_elementtree._ETreeTestCaseBase.test_itertext_child lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_itertext_child -lxml.tests.test_elementtree._ETreeTestCaseBase.test_ns_setting lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_ns_setting -lxml.tests.test_elementtree._ETreeTestCaseBase.test_tag_reset_ns lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_tag_reset_ns -lxml.tests.test_elementtree._ETreeTestCaseBase.test_remove_tail lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_remove_tail -lxml.tests.test_elementtree._ETreeTestCaseBase.test_remove_nonexisting lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_remove_nonexisting -lxml.tests.test_elementtree._ETreeTestCaseBase.test_fromstringlist_single lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_fromstringlist_single -lxml.tests.test_elementtree._ETreeTestCaseBase.test_tail_elementtree_root lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_tail_elementtree_root -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attribute_keys_ns lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attribute_keys_ns -lxml.tests.test_elementtree._ETreeTestCaseBase.test_element_with_attributes_ns lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_element_with_attributes_ns -lxml.tests.test_elementtree._ETreeTestCaseBase.test_iteration_text_only lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_iteration_text_only -lxml.tests.test_elementtree._ETreeTestCaseBase.test_qname_attribute_resolve lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_qname_attribute_resolve -lxml.tests.test_elementtree._ETreeTestCaseBase.test_attribute_update_attrib lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_attribute_update_attrib -lxml.tests.test_elementtree._ETreeTestCaseBase.test_pi_nonsense lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_pi_nonsense -lxml.tests.test_elementtree._ETreeTestCaseBase.test_elementtree_getiterator_filter lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_elementtree_getiterator_filter -lxml.tests.test_elementtree._ETreeTestCaseBase.required_versions_cET lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#required_versions_cET -lxml.tests.test_elementtree._ETreeTestCaseBase.test_tostring_method_text lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_tostring_method_text -lxml.tests.test_elementtree._ETreeTestCaseBase.test_qname lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_qname -lxml.tests.test_elementtree._ETreeTestCaseBase.test_encoding_tostring_sub_tail lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_encoding_tostring_sub_tail -lxml.tests.test_elementtree._ETreeTestCaseBase.test_getiterator_filter lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_getiterator_filter -lxml.tests.test_elementtree._ETreeTestCaseBase.test_qname_cmp lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_qname_cmp -lxml.tests.test_elementtree._ETreeTestCaseBase.test_setslice_negative lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_setslice_negative -lxml.tests.test_elementtree._ETreeTestCaseBase.test_multiple_elementrees lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_multiple_elementrees -lxml.tests.test_elementtree._ETreeTestCaseBase.test_comment_nonsense lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_comment_nonsense -lxml.tests.test_elementtree._ETreeTestCaseBase.test_iteration_del_child lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_iteration_del_child -lxml.tests.test_elementtree._ETreeTestCaseBase.test_encoding_exact lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_encoding_exact -lxml.tests.test_elementtree._ETreeTestCaseBase.test_del_setitem lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_del_setitem -lxml.tests.test_elementtree._ETreeTestCaseBase.test_remove_ns lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_remove_ns -lxml.tests.test_elementtree._ETreeTestCaseBase.test_delslice_step_negative2 lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_delslice_step_negative2 -lxml.tests.test_elementtree._ETreeTestCaseBase.test_setslice_all_replace_reversed_ns1 lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_setslice_all_replace_reversed_ns1 -lxml.tests.test_elementtree._ETreeTestCaseBase.test_setslice_all_replace_reversed_ns2 lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_setslice_all_replace_reversed_ns2 -lxml.tests.test_elementtree._ETreeTestCaseBase.test_setitem_tail lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_setitem_tail -lxml.tests.test_elementtree._ETreeTestCaseBase.test_setslice_empty lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_setslice_empty -lxml.tests.test_elementtree._ETreeTestCaseBase.assertXML lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#assertXML -lxml.tests.test_elementtree._ETreeTestCaseBase.test_parse_file lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_parse_file -lxml.tests.test_elementtree._ETreeTestCaseBase._check_string lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#_check_string -lxml.tests.test_elementtree._ETreeTestCaseBase.test_getiterator_with_text lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_getiterator_with_text -lxml.tests.test_elementtree._ETreeTestCaseBase.test_setitem2 lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_setitem2 -lxml.tests.test_elementtree._ETreeTestCaseBase.test_comment_text lxml.tests.test_elementtree._ETreeTestCaseBase-class.html#test_comment_text -lxml.tests.common_imports.HelperTestCase.assertFalse lxml.tests.common_imports.HelperTestCase-class.html#assertFalse -lxml.tests.test_errors.ErrorTestCase lxml.tests.test_errors.ErrorTestCase-class.html -lxml.tests.test_errors.ErrorTestCase.etree lxml.etree-module.html -lxml.tests.test_errors.ErrorTestCase.test_empty_parse lxml.tests.test_errors.ErrorTestCase-class.html#test_empty_parse -lxml.tests.common_imports.HelperTestCase.tearDown lxml.tests.common_imports.HelperTestCase-class.html#tearDown -lxml.tests.test_errors.ErrorTestCase.test_bad_element lxml.tests.test_errors.ErrorTestCase-class.html#test_bad_element -lxml.tests.common_imports.HelperTestCase._rootstring lxml.tests.common_imports.HelperTestCase-class.html#_rootstring -lxml.tests.common_imports.HelperTestCase.parse lxml.tests.common_imports.HelperTestCase-class.html#parse -unittest.case.TestCase.failureException exceptions.AssertionError-class.html -lxml.tests.common_imports.HelperTestCase.assertFalse lxml.tests.common_imports.HelperTestCase-class.html#assertFalse -lxml.tests.test_errors.ErrorTestCase.test_element_cyclic_gc_none lxml.tests.test_errors.ErrorTestCase-class.html#test_element_cyclic_gc_none -lxml.tests.test_etree.ETreeC14NTestCase lxml.tests.test_etree.ETreeC14NTestCase-class.html -lxml.tests.test_etree.ETreeC14NTestCase.test_c14n_tostring_inclusive_ns_prefixes lxml.tests.test_etree.ETreeC14NTestCase-class.html#test_c14n_tostring_inclusive_ns_prefixes -lxml.tests.test_etree.ETreeC14NTestCase.test_c14n_gzip lxml.tests.test_etree.ETreeC14NTestCase-class.html#test_c14n_gzip -lxml.tests.test_etree.ETreeC14NTestCase.test_c14n lxml.tests.test_etree.ETreeC14NTestCase-class.html#test_c14n -lxml.tests.test_etree.ETreeC14NTestCase.test_c14n_tostring_with_comments lxml.tests.test_etree.ETreeC14NTestCase-class.html#test_c14n_tostring_with_comments -lxml.tests.test_etree.ETreeC14NTestCase.test_c14n_exclusive lxml.tests.test_etree.ETreeC14NTestCase-class.html#test_c14n_exclusive -lxml.tests.common_imports.HelperTestCase.tearDown lxml.tests.common_imports.HelperTestCase-class.html#tearDown -lxml.tests.test_etree.ETreeC14NTestCase.test_c14n_element_tostring_with_comments lxml.tests.test_etree.ETreeC14NTestCase-class.html#test_c14n_element_tostring_with_comments -lxml.tests.test_etree.ETreeC14NTestCase.test_c14n_with_comments lxml.tests.test_etree.ETreeC14NTestCase-class.html#test_c14n_with_comments -lxml.tests.test_etree.ETreeC14NTestCase.test_c14n_element_tostring_exclusive lxml.tests.test_etree.ETreeC14NTestCase-class.html#test_c14n_element_tostring_exclusive -lxml.tests.common_imports.HelperTestCase._rootstring lxml.tests.common_imports.HelperTestCase-class.html#_rootstring -lxml.tests.test_etree.ETreeC14NTestCase.test_c14n_tostring_exclusive lxml.tests.test_etree.ETreeC14NTestCase-class.html#test_c14n_tostring_exclusive -lxml.tests.common_imports.HelperTestCase.parse lxml.tests.common_imports.HelperTestCase-class.html#parse -unittest.case.TestCase.failureException exceptions.AssertionError-class.html -lxml.tests.test_etree.ETreeC14NTestCase.test_c14n_file lxml.tests.test_etree.ETreeC14NTestCase-class.html#test_c14n_file -lxml.tests.test_etree.ETreeC14NTestCase.test_c14n_file_gzip lxml.tests.test_etree.ETreeC14NTestCase-class.html#test_c14n_file_gzip -lxml.tests.common_imports.HelperTestCase.assertFalse lxml.tests.common_imports.HelperTestCase-class.html#assertFalse -lxml.tests.test_etree.ETreeErrorLogTest lxml.tests.test_etree.ETreeErrorLogTest-class.html -lxml.tests.test_etree.ETreeErrorLogTest.etree lxml.etree-module.html -lxml.tests.common_imports.HelperTestCase.tearDown lxml.tests.common_imports.HelperTestCase-class.html#tearDown -lxml.tests.test_etree.ETreeErrorLogTest._test_python_error_logging lxml.tests.test_etree.ETreeErrorLogTest-class.html#_test_python_error_logging -lxml.tests.common_imports.HelperTestCase._rootstring lxml.tests.common_imports.HelperTestCase-class.html#_rootstring -lxml.tests.test_etree.ETreeErrorLogTest.test_parse_error_logging lxml.tests.test_etree.ETreeErrorLogTest-class.html#test_parse_error_logging -lxml.tests.common_imports.HelperTestCase.parse lxml.tests.common_imports.HelperTestCase-class.html#parse -unittest.case.TestCase.failureException exceptions.AssertionError-class.html -lxml.tests.common_imports.HelperTestCase.assertFalse lxml.tests.common_imports.HelperTestCase-class.html#assertFalse -lxml.tests.test_etree.ETreeOnlyTestCase lxml.tests.test_etree.ETreeOnlyTestCase-class.html -lxml.tests.test_etree.ETreeOnlyTestCase.test_pypy_proxy_collect lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_pypy_proxy_collect -lxml.tests.test_etree.ETreeOnlyTestCase.test_addnext_root lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_addnext_root -lxml.tests.test_etree.ETreeOnlyTestCase.test_dump_none lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_dump_none -lxml.tests.test_etree.ETreeOnlyTestCase.test_unicode_byte_invalid_sequence lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_unicode_byte_invalid_sequence -lxml.tests.test_etree.ETreeOnlyTestCase.test_nsmap_prefix_invalid lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_nsmap_prefix_invalid -lxml.tests.test_etree.ETreeOnlyTestCase._writeElement lxml.tests.test_etree.ETreeOnlyTestCase-class.html#_writeElement -lxml.tests.test_etree.ETreeOnlyTestCase.test_xml_base lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_xml_base -lxml.tests.test_etree.ETreeOnlyTestCase.test_iterchildren_tag lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_iterchildren_tag -lxml.tests.test_etree.ETreeOnlyTestCase.test_namespaces lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_namespaces -lxml.tests.test_etree.ETreeOnlyTestCase.test_namespaces_elementtree lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_namespaces_elementtree -lxml.tests.test_etree.ETreeOnlyTestCase.test_iterwalk_start lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_iterwalk_start -lxml.tests.test_etree.ETreeOnlyTestCase.test_addnext_root_pi lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_addnext_root_pi -lxml.tests.test_etree.ETreeOnlyTestCase.test_parser_target_pi lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_parser_target_pi -lxml.tests.test_etree.ETreeOnlyTestCase.test_qname_space lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_qname_space -lxml.tests.test_etree.ETreeOnlyTestCase.test_addnext_pi lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_addnext_pi -lxml.tests.test_etree.ETreeOnlyTestCase.test_deepcopy_elementtree_pi lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_deepcopy_elementtree_pi -lxml.tests.test_etree.ETreeOnlyTestCase.test_subelement_name_quote lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_subelement_name_quote -lxml.tests.test_etree.ETreeOnlyTestCase.test_iterwalk_start_end lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_iterwalk_start_end -lxml.tests.test_etree.ETreeOnlyTestCase.test_parseid lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_parseid -lxml.tests.test_etree.ETreeOnlyTestCase.test_parse_fileobject_unicode lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_parse_fileobject_unicode -lxml.tests.test_etree.ETreeOnlyTestCase.test_addprevious lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_addprevious -lxml.tests.test_etree.ETreeOnlyTestCase.test_pi_pseudo_attributes_get lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_pi_pseudo_attributes_get -lxml.tests.test_etree.ETreeOnlyTestCase.test_html_base_tag lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_html_base_tag -lxml.tests.test_etree.ETreeOnlyTestCase.test_xml_base_attribute lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_xml_base_attribute -lxml.tests.test_etree.ETreeOnlyTestCase.test_tostring_standalone lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_tostring_standalone -lxml.tests.test_etree.ETreeOnlyTestCase.test_addnext_root_comment lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_addnext_root_comment -lxml.tests.test_etree.ETreeOnlyTestCase.test_getiterator_filter_all_comment_pi lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_getiterator_filter_all_comment_pi -lxml.tests.test_etree.ETreeOnlyTestCase.test_iterparse_remove_comments lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_iterparse_remove_comments -lxml.tests.test_etree.ETreeOnlyTestCase.test_tostring_unicode_element_tail lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_tostring_unicode_element_tail -lxml.tests.test_etree.ETreeOnlyTestCase.etree lxml.etree-module.html -lxml.tests.test_etree.ETreeOnlyTestCase.test_element_name_space lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_element_name_space -lxml.tests.test_etree.ETreeOnlyTestCase.test_iterparse_tag_ns_all lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_iterparse_tag_ns_all -lxml.tests.test_etree.ETreeOnlyTestCase.test_qname_empty lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_qname_empty -lxml.tests.test_etree.ETreeOnlyTestCase.test_replace lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_replace -lxml.tests.test_etree.ETreeOnlyTestCase.test_iterchildren_tag_multiple_reversed lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_iterchildren_tag_multiple_reversed -lxml.tests.test_etree.ETreeOnlyTestCase.test_docinfo_empty lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_docinfo_empty -lxml.tests.test_etree.ETreeOnlyTestCase.test_pi_pseudo_attributes_attrib lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_pi_pseudo_attributes_attrib -lxml.tests.test_etree.ETreeOnlyTestCase.test_getiterator_filter_element lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_getiterator_filter_element -lxml.tests.test_etree.ETreeOnlyTestCase.test_strip_elements_ns lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_strip_elements_ns -lxml.tests.test_etree.ETreeOnlyTestCase.test_strip_tags_and_remove lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_strip_tags_and_remove -lxml.tests.test_etree.ETreeOnlyTestCase.test_append_error lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_append_error -lxml.tests.test_etree.ETreeOnlyTestCase.test_addnext lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_addnext -lxml.tests.test_etree.ETreeOnlyTestCase.test_entity_error lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_entity_error -lxml.tests.test_etree.ETreeOnlyTestCase.test_sourceline_iterparse_start lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_sourceline_iterparse_start -lxml.tests.test_etree.ETreeOnlyTestCase.test_iterwalk_getiterator lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_iterwalk_getiterator -lxml.tests.test_etree.ETreeOnlyTestCase.test_itersiblings_tag_multiple lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_itersiblings_tag_multiple -lxml.tests.test_etree.ETreeOnlyTestCase.test_tostring_unicode_pretty lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_tostring_unicode_pretty -lxml.tests.test_etree.ETreeOnlyTestCase.test_iterdescendants_tag_multiple lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_iterdescendants_tag_multiple -lxml.tests.test_etree.ETreeOnlyTestCase.test_c_api lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_c_api -lxml.tests.test_etree.ETreeOnlyTestCase.test_standalone lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_standalone -lxml.tests.test_etree.ETreeOnlyTestCase.test_iterparse_encoding_8bit_override lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_iterparse_encoding_8bit_override -lxml.tests.test_etree.ETreeOnlyTestCase.test_namespaces_reuse_after_move lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_namespaces_reuse_after_move -lxml.tests.test_etree.ETreeOnlyTestCase.test_qname_text_resolve lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_qname_text_resolve -lxml.tests.test_etree.ETreeOnlyTestCase.test_iterparse_broken lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_iterparse_broken -lxml.tests.test_etree.ETreeOnlyTestCase.test_attribute_has_key lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_attribute_has_key -lxml.tests.test_etree.ETreeOnlyTestCase.test_iterparse_tag_ns_empty lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_iterparse_tag_ns_empty -lxml.tests.test_etree.ETreeOnlyTestCase.test_strip_elements lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_strip_elements -lxml.tests.test_etree.ETreeOnlyTestCase.test_qname_namespace_localname lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_qname_namespace_localname -lxml.tests.test_etree.ETreeOnlyTestCase.test_findall_ns lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_findall_ns -lxml.tests.test_etree.ETreeOnlyTestCase.test_comment_immutable lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_comment_immutable -lxml.tests.test_etree.ETreeOnlyTestCase.test_attribute_set_invalid lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_attribute_set_invalid -lxml.tests.test_etree.ETreeOnlyTestCase.test_subelement_nsmap lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_subelement_nsmap -lxml.tests.test_etree.ETreeOnlyTestCase.test_comment_empty lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_comment_empty -lxml.tests.test_etree.ETreeOnlyTestCase.test_pi_parse lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_pi_parse -lxml.tests.test_etree.ETreeOnlyTestCase.test_XML_set_base_url_docinfo lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_XML_set_base_url_docinfo -lxml.tests.test_etree.ETreeOnlyTestCase.test_setitem_assert lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_setitem_assert -lxml.tests.test_etree.ETreeOnlyTestCase.test_setslice_step_overrun lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_setslice_step_overrun -lxml.tests.test_etree.ETreeOnlyTestCase.test_itersiblings lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_itersiblings -lxml.tests.test_etree.ETreeOnlyTestCase.test_parse_base_url_docinfo lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_parse_base_url_docinfo -lxml.tests.test_etree.ETreeOnlyTestCase.test_replace_new lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_replace_new -lxml.tests.test_etree.ETreeOnlyTestCase.test_resolve_error lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_resolve_error -lxml.tests.test_etree.ETreeOnlyTestCase.test_iterparse_tag lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_iterparse_tag -lxml.tests.test_etree.ETreeOnlyTestCase.test_parser_target_feed_exception lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_parser_target_feed_exception -lxml.tests.test_etree.ETreeOnlyTestCase.test_iterwalk_attrib_ns lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_iterwalk_attrib_ns -lxml.tests.test_etree.ETreeOnlyTestCase.test_sourceline_parse lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_sourceline_parse -lxml.tests.test_etree.ETreeOnlyTestCase.test_iterparse_pis lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_iterparse_pis -lxml.tests.test_etree.ETreeOnlyTestCase.test_getparent lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_getparent -lxml.tests.test_etree.ETreeOnlyTestCase.test_tounicode_element lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_tounicode_element -lxml.tests.test_etree.ETreeOnlyTestCase.test_getiterator_filter_multiple_tuple lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_getiterator_filter_multiple_tuple -lxml.tests.test_etree.ETreeOnlyTestCase.test_doctype_name_only_roundtrip lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_doctype_name_only_roundtrip -lxml.tests.test_etree.ETreeOnlyTestCase.test_unicode_byte_zero lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_unicode_byte_zero -lxml.tests.test_etree.ETreeOnlyTestCase.test_iterwalk_tag lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_iterwalk_tag -lxml.tests.test_etree.ETreeOnlyTestCase.test_namespace_cleanup lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_namespace_cleanup -lxml.tests.test_etree.ETreeOnlyTestCase.test_entity_parse lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_entity_parse -lxml.tests.test_etree.ETreeOnlyTestCase.test_comment_no_proxy_yet lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_comment_no_proxy_yet -lxml.tests.test_etree.ETreeOnlyTestCase.test_qname_element lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_qname_element -lxml.tests.test_etree.ETreeOnlyTestCase.test_html_prefix_nsmap lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_html_prefix_nsmap -lxml.tests.test_etree.ETreeOnlyTestCase.test_tostring_pretty lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_tostring_pretty -lxml.tests.test_etree.ETreeOnlyTestCase.test_resolve_filename_dtd_relative lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_resolve_filename_dtd_relative -lxml.tests.test_etree.ETreeOnlyTestCase.test_resolve_string_dtd lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_resolve_string_dtd -lxml.tests.test_etree.ETreeOnlyTestCase.test_addprevious_root_comment lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_addprevious_root_comment -lxml.tests.test_etree.ETreeOnlyTestCase.test_cdata lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_cdata -lxml.tests.test_etree.ETreeOnlyTestCase.test_elementtree_parser_target_type_error lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_elementtree_parser_target_type_error -lxml.tests.test_etree.ETreeOnlyTestCase.test_resolve_filelike_dtd lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_resolve_filelike_dtd -lxml.tests.test_etree.ETreeOnlyTestCase.test_iterparse_keep_cdata lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_iterparse_keep_cdata -lxml.tests.test_etree.ETreeOnlyTestCase.test_element_names lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_element_names -lxml.tests.test_etree.ETreeOnlyTestCase.test_element_nsmap lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_element_nsmap -lxml.tests.test_etree.ETreeOnlyTestCase.test_resolve_filename_dtd lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_resolve_filename_dtd -lxml.tests.test_etree.ETreeOnlyTestCase.test_tostring_unicode_element lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_tostring_unicode_element -lxml.tests.test_etree.ETreeOnlyTestCase.test_byte_invalid lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_byte_invalid -lxml.tests.test_etree.ETreeOnlyTestCase.test_iterancestors_tag lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_iterancestors_tag -lxml.tests.test_etree.ETreeOnlyTestCase.test_tostring_none lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_tostring_none -lxml.tests.test_etree.ETreeOnlyTestCase.test_version lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_version -lxml.tests.test_etree.ETreeOnlyTestCase.test_addnext_comment lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_addnext_comment -lxml.tests.test_etree.ETreeOnlyTestCase.test_strip_attributes lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_strip_attributes -lxml.tests.test_etree.ETreeOnlyTestCase.test_setslice_step_negative2 lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_setslice_step_negative2 -lxml.tests.test_etree.ETreeOnlyTestCase.test_iterwalk_clear lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_iterwalk_clear -lxml.tests.test_etree.ETreeOnlyTestCase.test_entity_values lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_entity_values -lxml.tests.test_etree.ETreeOnlyTestCase.test_sourceline_iterparse_end lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_sourceline_iterparse_end -lxml.tests.test_etree.ETreeOnlyTestCase.test_iterchildren_tag_reversed lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_iterchildren_tag_reversed -lxml.tests.test_etree.ETreeOnlyTestCase.test_subelement_attribute_invalid lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_subelement_attribute_invalid -lxml.tests.test_etree.ETreeOnlyTestCase.test_namespaces_default_and_attr lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_namespaces_default_and_attr -lxml.tests.test_etree.ETreeOnlyTestCase.test_iterparse_tag_ns lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_iterparse_tag_ns -lxml.tests.test_etree.ETreeOnlyTestCase.test_element_name_colon lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_element_name_colon -lxml.tests.test_etree.ETreeOnlyTestCase.test_namespaces_copy_element lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_namespaces_copy_element -lxml.tests.test_etree.ETreeOnlyTestCase.test_parser_encoding_unknown lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_parser_encoding_unknown -lxml.tests.test_etree.ETreeOnlyTestCase.test_namespaces_default_copy_element lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_namespaces_default_copy_element -lxml.tests.test_etree.ETreeOnlyTestCase.test_strip_tags_ns lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_strip_tags_ns -lxml.tests.test_etree.ETreeOnlyTestCase.test_element_name_empty lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_element_name_empty -lxml.tests.test_etree.ETreeOnlyTestCase.test_attribute_set lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_attribute_set -lxml.tests.test_etree.ETreeOnlyTestCase.test_iterchildren lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_iterchildren -lxml.tests.test_etree.ETreeOnlyTestCase.test_getroottree lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_getroottree -lxml.tests.test_etree.ETreeOnlyTestCase.test_attribute_values lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_attribute_values -lxml.tests.test_etree.ETreeOnlyTestCase.test_addprevious_root_pi lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_addprevious_root_pi -lxml.tests.test_etree.ETreeOnlyTestCase.test_tostring_method_text_unicode lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_tostring_method_text_unicode -lxml.tests.test_etree.ETreeOnlyTestCase.test_parser_target_recover lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_parser_target_recover -lxml.tests.test_etree.ETreeOnlyTestCase.test_cdata_errors lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_cdata_errors -lxml.tests.test_etree.ETreeOnlyTestCase.test_deepcopy_elementtree_dtd lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_deepcopy_elementtree_dtd -lxml.tests.test_etree.ETreeOnlyTestCase.test_strip_tags_pi_comment_all lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_strip_tags_pi_comment_all -lxml.tests.test_etree.ETreeOnlyTestCase.test_tostring_unicode_none lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_tostring_unicode_none -lxml.tests.test_etree.ETreeOnlyTestCase.test_sourceline_element lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_sourceline_element -lxml.tests.common_imports.HelperTestCase.tearDown lxml.tests.common_imports.HelperTestCase-class.html#tearDown -lxml.tests.test_etree.ETreeOnlyTestCase.test_iterparse_tree_comments lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_iterparse_tree_comments -lxml.tests.test_etree.ETreeOnlyTestCase.test_byte_zero lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_byte_zero -lxml.tests.test_etree.ETreeOnlyTestCase.test_parse_stringio_base_url lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_parse_stringio_base_url -lxml.tests.test_etree.ETreeOnlyTestCase.test_cdata_xpath lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_cdata_xpath -lxml.tests.test_etree.ETreeOnlyTestCase.test_addprevious_pi lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_addprevious_pi -lxml.tests.test_etree.ETreeOnlyTestCase.test_elementtree_findall_qname lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_elementtree_findall_qname -lxml.tests.test_etree.ETreeOnlyTestCase.test_iterparse_strip lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_iterparse_strip -lxml.tests.test_etree.ETreeOnlyTestCase.test_XMLDTDID lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_XMLDTDID -lxml.tests.test_etree.ETreeOnlyTestCase.test_getiterator_filter_local_name lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_getiterator_filter_local_name -lxml.tests.test_etree.ETreeOnlyTestCase.test_tostring_method_text_encoding lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_tostring_method_text_encoding -lxml.tests.test_etree.ETreeOnlyTestCase.test_parse_parser_type_error lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_parse_parser_type_error -lxml.tests.test_etree.ETreeOnlyTestCase.test_elementtree_find_qname lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_elementtree_find_qname -lxml.tests.test_etree.ETreeOnlyTestCase.test_encoding_tostring_utf16 lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_encoding_tostring_utf16 -lxml.tests.common_imports.HelperTestCase._rootstring lxml.tests.common_imports.HelperTestCase-class.html#_rootstring -lxml.tests.test_etree.ETreeOnlyTestCase.test_tounicode_pretty lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_tounicode_pretty -lxml.tests.test_etree.ETreeOnlyTestCase.test_parser_target_fromstring_exception lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_parser_target_fromstring_exception -lxml.tests.test_etree.ETreeOnlyTestCase.test_docinfo_system lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_docinfo_system -lxml.tests.test_etree.ETreeOnlyTestCase.test_strip_attributes_ns lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_strip_attributes_ns -lxml.tests.test_etree.ETreeOnlyTestCase.test_parse_remove_pis lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_parse_remove_pis -lxml.tests.test_etree.ETreeOnlyTestCase.test_iterparse_encoding_error lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_iterparse_encoding_error -lxml.tests.test_etree.ETreeOnlyTestCase.test_iterparse_tag_ns_empty_all lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_iterparse_tag_ns_empty_all -lxml.tests.test_etree.ETreeOnlyTestCase.test_docinfo_public lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_docinfo_public -lxml.tests.test_etree.ETreeOnlyTestCase.test_qname_colon lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_qname_colon -lxml.tests.test_etree.ETreeOnlyTestCase.test_parser_target_cdata lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_parser_target_cdata -lxml.tests.test_etree.ETreeOnlyTestCase.test_resolve_empty lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_resolve_empty -lxml.tests.test_etree.ETreeOnlyTestCase.test_strip_tags lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_strip_tags -lxml.tests.test_etree.ETreeOnlyTestCase.test_getnext lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_getnext -lxml.tests.test_etree.ETreeOnlyTestCase.test_subelement_name_empty lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_subelement_name_empty -lxml.tests.test_etree.ETreeOnlyTestCase.test_parser_encoding lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_parser_encoding -lxml.tests.test_etree.ETreeOnlyTestCase.test_namespaces_default lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_namespaces_default -lxml.tests.test_etree.ETreeOnlyTestCase.test_itersiblings_tag lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_itersiblings_tag -lxml.tests.test_etree.ETreeOnlyTestCase.test_cdata_type lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_cdata_type -lxml.tests.test_etree.ETreeOnlyTestCase.test_strip_tags_pi_comment lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_strip_tags_pi_comment -lxml.tests.test_etree.ETreeOnlyTestCase.test_subelement_name_colon lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_subelement_name_colon -lxml.tests.test_etree.ETreeOnlyTestCase.test_setslice_all_empty_reversed lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_setslice_all_empty_reversed -lxml.tests.test_etree.ETreeOnlyTestCase.test_doctype_output_override lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_doctype_output_override -lxml.tests.test_etree.ETreeOnlyTestCase.test_getprevious lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_getprevious -lxml.tests.test_etree.ETreeOnlyTestCase.test_sourceline_XML lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_sourceline_XML -lxml.tests.test_etree.ETreeOnlyTestCase.test_unicode_byte_invalid lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_unicode_byte_invalid -lxml.tests.test_etree.ETreeOnlyTestCase.test_iterwalk lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_iterwalk -lxml.tests.test_etree.ETreeOnlyTestCase.test_iterdescendants_tag lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_iterdescendants_tag -lxml.tests.test_etree.ETreeOnlyTestCase.test_comment_parse_empty lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_comment_parse_empty -lxml.tests.test_etree.ETreeOnlyTestCase.test_tounicode lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_tounicode -lxml.tests.common_imports.HelperTestCase.parse lxml.tests.common_imports.HelperTestCase-class.html#parse -lxml.tests.test_etree.ETreeOnlyTestCase.test_docinfo_name_only lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_docinfo_name_only -lxml.tests.test_etree.ETreeOnlyTestCase.test_XML_base_url_docinfo lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_XML_base_url_docinfo -unittest.case.TestCase.failureException exceptions.AssertionError-class.html -lxml.tests.test_etree.ETreeOnlyTestCase.test_iterparse_comments lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_iterparse_comments -lxml.tests.test_etree.ETreeOnlyTestCase.test_tostring_with_tail lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_tostring_with_tail -lxml.tests.test_etree.ETreeOnlyTestCase.test_prefix_default_ns lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_prefix_default_ns -lxml.tests.test_etree.ETreeOnlyTestCase.test_getiterator_filter_namespace lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_getiterator_filter_namespace -lxml.tests.test_etree.ETreeOnlyTestCase.test_parse_remove_comments lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_parse_remove_comments -lxml.tests.test_etree.ETreeOnlyTestCase.test_entity_append lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_entity_append -lxml.tests.test_etree.ETreeOnlyTestCase.test_findall_syntax_error lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_findall_syntax_error -lxml.tests.test_etree.ETreeOnlyTestCase.test_getiterator_filter_multiple lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_getiterator_filter_multiple -lxml.tests.test_etree.ETreeOnlyTestCase.test_subelement_name_space lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_subelement_name_space -lxml.tests.test_etree.ETreeOnlyTestCase.test_prefix lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_prefix -lxml.tests.test_etree.ETreeOnlyTestCase._checkIDDict lxml.tests.test_etree.ETreeOnlyTestCase-class.html#_checkIDDict -lxml.tests.test_etree.ETreeOnlyTestCase.test_addprevious_comment lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_addprevious_comment -lxml.tests.test_etree.ETreeOnlyTestCase.test_index lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_index -lxml.tests.test_etree.ETreeOnlyTestCase.test_HTML_base_url_docinfo lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_HTML_base_url_docinfo -lxml.tests.test_etree.ETreeOnlyTestCase.test_feed_parser_recover lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_feed_parser_recover -lxml.tests.test_etree.ETreeOnlyTestCase.test_iterchildren_reversed lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_iterchildren_reversed -lxml.tests.test_etree.ETreeOnlyTestCase.test_entity_restructure lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_entity_restructure -lxml.tests.test_etree.ETreeOnlyTestCase.test_resolve_file_dtd lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_resolve_file_dtd -lxml.tests.test_etree.ETreeOnlyTestCase.test_element_name_quote lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_element_name_quote -lxml.tests.test_etree.ETreeOnlyTestCase.test_iterchildren_tag_multiple lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_iterchildren_tag_multiple -lxml.tests.test_etree.ETreeOnlyTestCase.test_iterancestors_tag_multiple lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_iterancestors_tag_multiple -lxml.tests.common_imports.HelperTestCase.assertFalse lxml.tests.common_imports.HelperTestCase-class.html#assertFalse -lxml.tests.test_etree.ETreeOnlyTestCase.test_setslice_step_negative lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_setslice_step_negative -lxml.tests.test_etree.ETreeOnlyTestCase.test_deepcopy_pi lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_deepcopy_pi -lxml.tests.test_etree.ETreeOnlyTestCase.test_strip_tags_doc_style lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_strip_tags_doc_style -lxml.tests.test_etree.ETreeOnlyTestCase.test_tostring_unicode lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_tostring_unicode -lxml.tests.test_etree.ETreeOnlyTestCase.test_dtd_io lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_dtd_io -lxml.tests.test_etree.ETreeOnlyTestCase.test_XMLDTDID_empty lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_XMLDTDID_empty -lxml.tests.test_etree.ETreeOnlyTestCase.test_getiterator_filter_entities lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_getiterator_filter_entities -lxml.tests.test_etree.ETreeOnlyTestCase.test_iterdescendants lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_iterdescendants -lxml.tests.test_etree.ETreeOnlyTestCase.test_iterparse_tag_all lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_iterparse_tag_all -lxml.tests.test_etree.ETreeOnlyTestCase.test_tounicode_none lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_tounicode_none -lxml.tests.test_etree.ETreeOnlyTestCase.test_iterancestors lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_iterancestors -lxml.tests.test_etree.ETreeOnlyTestCase.test_setslice_step lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_setslice_step -lxml.tests.test_etree.ETreeOnlyTestCase.test_cdata_parser lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_cdata_parser -lxml.tests.test_etree.ETreeOnlyTestCase.test_iterwalk_tag_all lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_iterwalk_tag_all -lxml.tests.test_etree.ETreeOnlyTestCase.test_tostring_standalone_in_out lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_tostring_standalone_in_out -lxml.tests.test_etree.ETreeOnlyTestCase.test_tounicode_element_tail lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_tounicode_element_tail -lxml.tests.test_etree.ETreeOnlyTestCase.test_resolve_bytes_dtd lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_resolve_bytes_dtd -lxml.tests.test_etree.ETreeOnlyTestCase.test_elementtree_findall_ns_qname lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_elementtree_findall_ns_qname -lxml.tests.test_etree.ETreeOnlyTestCase.test_html_base lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_html_base -lxml.tests.test_etree.ETreeOnlyTestCase.test_parser_target_comment lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_parser_target_comment -lxml.tests.test_etree.ETreeOnlyTestCase.test_pi lxml.tests.test_etree.ETreeOnlyTestCase-class.html#test_pi -lxml.tests.test_etree.ETreeWriteTestCase lxml.tests.test_etree.ETreeWriteTestCase-class.html -lxml.tests.test_etree.ETreeWriteTestCase.test_write_file_gzipfile_parse lxml.tests.test_etree.ETreeWriteTestCase-class.html#test_write_file_gzipfile_parse -lxml.tests.common_imports.HelperTestCase.tearDown lxml.tests.common_imports.HelperTestCase-class.html#tearDown -lxml.tests.test_etree.ETreeWriteTestCase.test_write lxml.tests.test_etree.ETreeWriteTestCase-class.html#test_write -lxml.tests.test_etree.ETreeWriteTestCase.test_write_gzip lxml.tests.test_etree.ETreeWriteTestCase-class.html#test_write_gzip -lxml.tests.test_etree.ETreeWriteTestCase.test_write_file_gzip_parse lxml.tests.test_etree.ETreeWriteTestCase-class.html#test_write_file_gzip_parse -lxml.tests.test_etree.ETreeWriteTestCase.test_write_file lxml.tests.test_etree.ETreeWriteTestCase-class.html#test_write_file -lxml.tests.test_etree.ETreeWriteTestCase.test_write_gzip_level lxml.tests.test_etree.ETreeWriteTestCase-class.html#test_write_gzip_level -lxml.tests.common_imports.HelperTestCase._rootstring lxml.tests.common_imports.HelperTestCase-class.html#_rootstring -lxml.tests.test_etree.ETreeWriteTestCase.test_write_file_gzip lxml.tests.test_etree.ETreeWriteTestCase-class.html#test_write_file_gzip -lxml.tests.common_imports.HelperTestCase.parse lxml.tests.common_imports.HelperTestCase-class.html#parse -unittest.case.TestCase.failureException exceptions.AssertionError-class.html -lxml.tests.common_imports.HelperTestCase.assertFalse lxml.tests.common_imports.HelperTestCase-class.html#assertFalse -lxml.tests.test_etree.ETreeXIncludeTestCase lxml.tests.test_etree.ETreeXIncludeTestCase-class.html -lxml.tests.test_etree.ETreeXIncludeTestCase.include lxml.tests.test_etree.ETreeXIncludeTestCase-class.html#include -lxml.tests.common_imports.HelperTestCase.tearDown lxml.tests.common_imports.HelperTestCase-class.html#tearDown -lxml.tests.common_imports.HelperTestCase._rootstring lxml.tests.common_imports.HelperTestCase-class.html#_rootstring -lxml.tests.test_etree._XIncludeTestCase.test_xinclude lxml.tests.test_etree._XIncludeTestCase-class.html#test_xinclude -lxml.tests.common_imports.HelperTestCase.parse lxml.tests.common_imports.HelperTestCase-class.html#parse -unittest.case.TestCase.failureException exceptions.AssertionError-class.html -lxml.tests.test_etree._XIncludeTestCase.test_xinclude_resolver lxml.tests.test_etree._XIncludeTestCase-class.html#test_xinclude_resolver -lxml.tests.test_etree._XIncludeTestCase.test_xinclude_text lxml.tests.test_etree._XIncludeTestCase-class.html#test_xinclude_text -lxml.tests.common_imports.HelperTestCase.assertFalse lxml.tests.common_imports.HelperTestCase-class.html#assertFalse -lxml.tests.test_etree.ElementIncludeTestCase lxml.tests.test_etree.ElementIncludeTestCase-class.html -lxml.tests.test_etree.ElementIncludeTestCase.include lxml.tests.test_etree.ElementIncludeTestCase-class.html#include -lxml.tests.common_imports.HelperTestCase.tearDown lxml.tests.common_imports.HelperTestCase-class.html#tearDown -lxml.tests.common_imports.HelperTestCase._rootstring lxml.tests.common_imports.HelperTestCase-class.html#_rootstring -lxml.tests.test_etree.ElementIncludeTestCase.ElementInclude lxml.ElementInclude-module.html -lxml.tests.test_etree._XIncludeTestCase.test_xinclude lxml.tests.test_etree._XIncludeTestCase-class.html#test_xinclude -lxml.tests.common_imports.HelperTestCase.parse lxml.tests.common_imports.HelperTestCase-class.html#parse -unittest.case.TestCase.failureException exceptions.AssertionError-class.html -lxml.tests.test_etree._XIncludeTestCase.test_xinclude_resolver lxml.tests.test_etree._XIncludeTestCase-class.html#test_xinclude_resolver -lxml.tests.test_etree._XIncludeTestCase.test_xinclude_text lxml.tests.test_etree._XIncludeTestCase-class.html#test_xinclude_text -lxml.tests.common_imports.HelperTestCase.assertFalse lxml.tests.common_imports.HelperTestCase-class.html#assertFalse -lxml.tests.test_etree._XIncludeTestCase lxml.tests.test_etree._XIncludeTestCase-class.html -lxml.tests.common_imports.HelperTestCase.tearDown lxml.tests.common_imports.HelperTestCase-class.html#tearDown -lxml.tests.common_imports.HelperTestCase._rootstring lxml.tests.common_imports.HelperTestCase-class.html#_rootstring -lxml.tests.test_etree._XIncludeTestCase.test_xinclude lxml.tests.test_etree._XIncludeTestCase-class.html#test_xinclude -lxml.tests.common_imports.HelperTestCase.parse lxml.tests.common_imports.HelperTestCase-class.html#parse -unittest.case.TestCase.failureException exceptions.AssertionError-class.html -lxml.tests.test_etree._XIncludeTestCase.test_xinclude_resolver lxml.tests.test_etree._XIncludeTestCase-class.html#test_xinclude_resolver -lxml.tests.test_etree._XIncludeTestCase.test_xinclude_text lxml.tests.test_etree._XIncludeTestCase-class.html#test_xinclude_text -lxml.tests.common_imports.HelperTestCase.assertFalse lxml.tests.common_imports.HelperTestCase-class.html#assertFalse -lxml.tests.test_htmlparser.HtmlParserTestCase lxml.tests.test_htmlparser.HtmlParserTestCase-class.html -lxml.tests.test_htmlparser.HtmlParserTestCase.test_module_HTML_broken lxml.tests.test_htmlparser.HtmlParserTestCase-class.html#test_module_HTML_broken -lxml.tests.test_htmlparser.HtmlParserTestCase.test_html_element_name_quote lxml.tests.test_htmlparser.HtmlParserTestCase-class.html#test_html_element_name_quote -lxml.tests.test_htmlparser.HtmlParserTestCase.test_html_parser_target_doctype_empty lxml.tests.test_htmlparser.HtmlParserTestCase-class.html#test_html_parser_target_doctype_empty -lxml.tests.test_htmlparser.HtmlParserTestCase.test_module_parse_html_norecover lxml.tests.test_htmlparser.HtmlParserTestCase-class.html#test_module_parse_html_norecover -lxml.tests.test_htmlparser.HtmlParserTestCase.test_html_subelement_name_space lxml.tests.test_htmlparser.HtmlParserTestCase-class.html#test_html_subelement_name_space -lxml.tests.test_htmlparser.HtmlParserTestCase.etree lxml.etree-module.html -lxml.tests.test_htmlparser.HtmlParserTestCase.test_module_parse_html lxml.tests.test_htmlparser.HtmlParserTestCase-class.html#test_module_parse_html -lxml.tests.test_htmlparser.HtmlParserTestCase.test_html_parser_target_doctype_html_full lxml.tests.test_htmlparser.HtmlParserTestCase-class.html#test_html_parser_target_doctype_html_full -lxml.tests.test_htmlparser.HtmlParserTestCase.test_html_element_name_colon lxml.tests.test_htmlparser.HtmlParserTestCase-class.html#test_html_element_name_colon -lxml.tests.test_htmlparser.HtmlParserTestCase.test_html_subelement_name_quote lxml.tests.test_htmlparser.HtmlParserTestCase-class.html#test_html_subelement_name_quote -lxml.tests.test_htmlparser.HtmlParserTestCase.test_module_parse_html_error lxml.tests.test_htmlparser.HtmlParserTestCase-class.html#test_module_parse_html_error -lxml.tests.test_htmlparser.HtmlParserTestCase.test_html_iterparse lxml.tests.test_htmlparser.HtmlParserTestCase-class.html#test_html_iterparse -lxml.tests.test_htmlparser.HtmlParserTestCase.test_html_iterparse_start lxml.tests.test_htmlparser.HtmlParserTestCase-class.html#test_html_iterparse_start -lxml.tests.test_htmlparser.HtmlParserTestCase.tearDown lxml.tests.test_htmlparser.HtmlParserTestCase-class.html#tearDown -lxml.tests.test_htmlparser.HtmlParserTestCase.test_html_subelement_name_colon lxml.tests.test_htmlparser.HtmlParserTestCase-class.html#test_html_subelement_name_colon -lxml.tests.test_htmlparser.HtmlParserTestCase.uhtml_str lxml.tests.test_htmlparser.HtmlParserTestCase-class.html#uhtml_str -lxml.tests.test_htmlparser.HtmlParserTestCase.test_module_HTML_pretty_print lxml.tests.test_htmlparser.HtmlParserTestCase-class.html#test_module_HTML_pretty_print -lxml.tests.test_htmlparser.HtmlParserTestCase.test_module_HTML_unicode lxml.tests.test_htmlparser.HtmlParserTestCase-class.html#test_module_HTML_unicode -lxml.tests.test_htmlparser.HtmlParserTestCase.test_parse_encoding_8bit_override lxml.tests.test_htmlparser.HtmlParserTestCase-class.html#test_parse_encoding_8bit_override -lxml.tests.test_htmlparser.HtmlParserTestCase.test_parse_encoding_8bit_explicit lxml.tests.test_htmlparser.HtmlParserTestCase-class.html#test_parse_encoding_8bit_explicit -lxml.tests.test_htmlparser.HtmlParserTestCase.test_module_HTML lxml.tests.test_htmlparser.HtmlParserTestCase-class.html#test_module_HTML -lxml.tests.test_htmlparser.HtmlParserTestCase.test_module_HTML_cdata lxml.tests.test_htmlparser.HtmlParserTestCase-class.html#test_module_HTML_cdata -lxml.tests.test_htmlparser.HtmlParserTestCase.test_html_parser_target_tag lxml.tests.test_htmlparser.HtmlParserTestCase-class.html#test_html_parser_target_tag -lxml.tests.common_imports.HelperTestCase._rootstring lxml.tests.common_imports.HelperTestCase-class.html#_rootstring -lxml.tests.test_htmlparser.HtmlParserTestCase.html_str_pretty lxml.tests.test_htmlparser.HtmlParserTestCase-class.html#html_str_pretty -lxml.tests.test_htmlparser.HtmlParserTestCase.test_module_HTML_access lxml.tests.test_htmlparser.HtmlParserTestCase-class.html#test_module_HTML_access -lxml.tests.test_htmlparser.HtmlParserTestCase.test_html_element_name_empty lxml.tests.test_htmlparser.HtmlParserTestCase-class.html#test_html_element_name_empty -lxml.tests.test_htmlparser.HtmlParserTestCase.broken_html_str lxml.tests.test_htmlparser.HtmlParserTestCase-class.html#broken_html_str -lxml.tests.common_imports.HelperTestCase.parse lxml.tests.common_imports.HelperTestCase-class.html#parse -unittest.case.TestCase.failureException exceptions.AssertionError-class.html -lxml.tests.test_htmlparser.HtmlParserTestCase.test_module_parse_html_filelike lxml.tests.test_htmlparser.HtmlParserTestCase-class.html#test_module_parse_html_filelike -lxml.tests.test_htmlparser.HtmlParserTestCase.test_html_subelement_name_empty lxml.tests.test_htmlparser.HtmlParserTestCase-class.html#test_html_subelement_name_empty -lxml.tests.test_htmlparser.HtmlParserTestCase.test_html_parser_target_doctype_html lxml.tests.test_htmlparser.HtmlParserTestCase-class.html#test_html_parser_target_doctype_html -lxml.tests.test_htmlparser.HtmlParserTestCase.test_default_parser_HTML_broken lxml.tests.test_htmlparser.HtmlParserTestCase-class.html#test_default_parser_HTML_broken -lxml.tests.test_htmlparser.HtmlParserTestCase.test_html_file_error lxml.tests.test_htmlparser.HtmlParserTestCase-class.html#test_html_file_error -lxml.tests.test_htmlparser.HtmlParserTestCase.html_str lxml.tests.test_htmlparser.HtmlParserTestCase-class.html#html_str -lxml.tests.test_htmlparser.HtmlParserTestCase.test_html_iterparse_file lxml.tests.test_htmlparser.HtmlParserTestCase-class.html#test_html_iterparse_file -lxml.tests.common_imports.HelperTestCase.assertFalse lxml.tests.common_imports.HelperTestCase-class.html#assertFalse -lxml.tests.test_htmlparser.HtmlParserTestCase.test_html_element_name_space lxml.tests.test_htmlparser.HtmlParserTestCase-class.html#test_html_element_name_space -lxml.tests.test_io.ETreeIOTestCase lxml.tests.test_io.ETreeIOTestCase-class.html -lxml.tests.test_io._IOTestCaseBase.test_class_parse_fileobject lxml.tests.test_io._IOTestCaseBase-class.html#test_class_parse_fileobject -lxml.tests.test_io._IOTestCaseBase.test_module_parse_gzipobject lxml.tests.test_io._IOTestCaseBase-class.html#test_module_parse_gzipobject -lxml.tests.test_io.ETreeIOTestCase.etree lxml.etree-module.html -lxml.tests.test_io._IOTestCaseBase.test_class_parse_filename lxml.tests.test_io._IOTestCaseBase-class.html#test_class_parse_filename -lxml.tests.test_io._IOTestCaseBase.test_write_invalid_filename lxml.tests.test_io._IOTestCaseBase-class.html#test_write_invalid_filename -lxml.tests.test_io._IOTestCaseBase.test_module_parse_fileobject_type_error lxml.tests.test_io._IOTestCaseBase-class.html#test_module_parse_fileobject_type_error -lxml.tests.test_io._IOTestCaseBase.buildNodes lxml.tests.test_io._IOTestCaseBase-class.html#buildNodes -lxml.tests.test_io._IOTestCaseBase.tearDown lxml.tests.test_io._IOTestCaseBase-class.html#tearDown -lxml.tests.test_io._IOTestCaseBase.test_write_filename lxml.tests.test_io._IOTestCaseBase-class.html#test_write_filename -lxml.tests.test_io._IOTestCaseBase.test_tree_io_latin1 lxml.tests.test_io._IOTestCaseBase-class.html#test_tree_io_latin1 -lxml.tests.test_io._IOTestCaseBase.setUp lxml.tests.test_io._IOTestCaseBase-class.html#setUp -lxml.tests.test_io._IOTestCaseBase.test_class_parse_unamed_fileobject lxml.tests.test_io._IOTestCaseBase-class.html#test_class_parse_unamed_fileobject -lxml.tests.test_io._IOTestCaseBase.test_module_parse_fileobject_error lxml.tests.test_io._IOTestCaseBase-class.html#test_module_parse_fileobject_error -lxml.tests.test_io._IOTestCaseBase.test_module_parse_large_fileobject lxml.tests.test_io._IOTestCaseBase-class.html#test_module_parse_large_fileobject -lxml.tests.common_imports.HelperTestCase._rootstring lxml.tests.common_imports.HelperTestCase-class.html#_rootstring -lxml.tests.common_imports.HelperTestCase.parse lxml.tests.common_imports.HelperTestCase-class.html#parse -unittest.case.TestCase.failureException exceptions.AssertionError-class.html -lxml.tests.test_io._IOTestCaseBase.getTestFilePath lxml.tests.test_io._IOTestCaseBase-class.html#getTestFilePath -lxml.tests.test_io._IOTestCaseBase.test_class_parse_filename_remove_previous lxml.tests.test_io._IOTestCaseBase-class.html#test_class_parse_filename_remove_previous -lxml.tests.test_io._IOTestCaseBase.test_tree_io lxml.tests.test_io._IOTestCaseBase-class.html#test_tree_io -lxml.tests.test_io._IOTestCaseBase.test_module_parse_fileobject_late_error lxml.tests.test_io._IOTestCaseBase-class.html#test_module_parse_fileobject_late_error -lxml.tests.common_imports.HelperTestCase.assertFalse lxml.tests.common_imports.HelperTestCase-class.html#assertFalse -lxml.tests.test_io.ElementTreeIOTestCase lxml.tests.test_io.ElementTreeIOTestCase-class.html -lxml.tests.test_io._IOTestCaseBase.test_class_parse_fileobject lxml.tests.test_io._IOTestCaseBase-class.html#test_class_parse_fileobject -lxml.tests.test_io._IOTestCaseBase.test_module_parse_gzipobject lxml.tests.test_io._IOTestCaseBase-class.html#test_module_parse_gzipobject -lxml.tests.test_io.ElementTreeIOTestCase.etree xml.etree.ElementTree-module.html -lxml.tests.test_io._IOTestCaseBase.test_class_parse_filename lxml.tests.test_io._IOTestCaseBase-class.html#test_class_parse_filename -lxml.tests.test_io._IOTestCaseBase.test_write_invalid_filename lxml.tests.test_io._IOTestCaseBase-class.html#test_write_invalid_filename -lxml.tests.test_io._IOTestCaseBase.test_module_parse_fileobject_type_error lxml.tests.test_io._IOTestCaseBase-class.html#test_module_parse_fileobject_type_error -lxml.tests.test_io._IOTestCaseBase.buildNodes lxml.tests.test_io._IOTestCaseBase-class.html#buildNodes -lxml.tests.test_io._IOTestCaseBase.tearDown lxml.tests.test_io._IOTestCaseBase-class.html#tearDown -lxml.tests.test_io._IOTestCaseBase.test_write_filename lxml.tests.test_io._IOTestCaseBase-class.html#test_write_filename -lxml.tests.test_io._IOTestCaseBase.test_tree_io_latin1 lxml.tests.test_io._IOTestCaseBase-class.html#test_tree_io_latin1 -lxml.tests.test_io._IOTestCaseBase.setUp lxml.tests.test_io._IOTestCaseBase-class.html#setUp -lxml.tests.test_io._IOTestCaseBase.test_class_parse_unamed_fileobject lxml.tests.test_io._IOTestCaseBase-class.html#test_class_parse_unamed_fileobject -lxml.tests.test_io._IOTestCaseBase.test_module_parse_fileobject_error lxml.tests.test_io._IOTestCaseBase-class.html#test_module_parse_fileobject_error -lxml.tests.test_io._IOTestCaseBase.test_module_parse_large_fileobject lxml.tests.test_io._IOTestCaseBase-class.html#test_module_parse_large_fileobject -lxml.tests.common_imports.HelperTestCase._rootstring lxml.tests.common_imports.HelperTestCase-class.html#_rootstring -lxml.tests.common_imports.HelperTestCase.parse lxml.tests.common_imports.HelperTestCase-class.html#parse -unittest.case.TestCase.failureException exceptions.AssertionError-class.html -lxml.tests.test_io._IOTestCaseBase.getTestFilePath lxml.tests.test_io._IOTestCaseBase-class.html#getTestFilePath -lxml.tests.test_io._IOTestCaseBase.test_class_parse_filename_remove_previous lxml.tests.test_io._IOTestCaseBase-class.html#test_class_parse_filename_remove_previous -lxml.tests.test_io._IOTestCaseBase.test_tree_io lxml.tests.test_io._IOTestCaseBase-class.html#test_tree_io -lxml.tests.test_io._IOTestCaseBase.test_module_parse_fileobject_late_error lxml.tests.test_io._IOTestCaseBase-class.html#test_module_parse_fileobject_late_error -lxml.tests.common_imports.HelperTestCase.assertFalse lxml.tests.common_imports.HelperTestCase-class.html#assertFalse -lxml.tests.test_io._IOTestCaseBase lxml.tests.test_io._IOTestCaseBase-class.html -lxml.tests.test_io._IOTestCaseBase.test_class_parse_fileobject lxml.tests.test_io._IOTestCaseBase-class.html#test_class_parse_fileobject -lxml.tests.test_io._IOTestCaseBase.test_module_parse_gzipobject lxml.tests.test_io._IOTestCaseBase-class.html#test_module_parse_gzipobject -lxml.tests.test_io._IOTestCaseBase.etree lxml.tests.test_io._IOTestCaseBase-class.html#etree -lxml.tests.test_io._IOTestCaseBase.test_class_parse_filename lxml.tests.test_io._IOTestCaseBase-class.html#test_class_parse_filename -lxml.tests.test_io._IOTestCaseBase.test_write_invalid_filename lxml.tests.test_io._IOTestCaseBase-class.html#test_write_invalid_filename -lxml.tests.test_io._IOTestCaseBase.test_module_parse_fileobject_type_error lxml.tests.test_io._IOTestCaseBase-class.html#test_module_parse_fileobject_type_error -lxml.tests.test_io._IOTestCaseBase.buildNodes lxml.tests.test_io._IOTestCaseBase-class.html#buildNodes -lxml.tests.test_io._IOTestCaseBase.tearDown lxml.tests.test_io._IOTestCaseBase-class.html#tearDown -lxml.tests.test_io._IOTestCaseBase.test_write_filename lxml.tests.test_io._IOTestCaseBase-class.html#test_write_filename -lxml.tests.test_io._IOTestCaseBase.test_tree_io_latin1 lxml.tests.test_io._IOTestCaseBase-class.html#test_tree_io_latin1 -lxml.tests.test_io._IOTestCaseBase.setUp lxml.tests.test_io._IOTestCaseBase-class.html#setUp -lxml.tests.test_io._IOTestCaseBase.test_class_parse_unamed_fileobject lxml.tests.test_io._IOTestCaseBase-class.html#test_class_parse_unamed_fileobject -lxml.tests.test_io._IOTestCaseBase.test_module_parse_fileobject_error lxml.tests.test_io._IOTestCaseBase-class.html#test_module_parse_fileobject_error -lxml.tests.test_io._IOTestCaseBase.test_module_parse_large_fileobject lxml.tests.test_io._IOTestCaseBase-class.html#test_module_parse_large_fileobject -lxml.tests.common_imports.HelperTestCase._rootstring lxml.tests.common_imports.HelperTestCase-class.html#_rootstring -lxml.tests.common_imports.HelperTestCase.parse lxml.tests.common_imports.HelperTestCase-class.html#parse -unittest.case.TestCase.failureException exceptions.AssertionError-class.html -lxml.tests.test_io._IOTestCaseBase.getTestFilePath lxml.tests.test_io._IOTestCaseBase-class.html#getTestFilePath -lxml.tests.test_io._IOTestCaseBase.test_class_parse_filename_remove_previous lxml.tests.test_io._IOTestCaseBase-class.html#test_class_parse_filename_remove_previous -lxml.tests.test_io._IOTestCaseBase.test_tree_io lxml.tests.test_io._IOTestCaseBase-class.html#test_tree_io -lxml.tests.test_io._IOTestCaseBase.test_module_parse_fileobject_late_error lxml.tests.test_io._IOTestCaseBase-class.html#test_module_parse_fileobject_late_error -lxml.tests.common_imports.HelperTestCase.assertFalse lxml.tests.common_imports.HelperTestCase-class.html#assertFalse -lxml.tests.test_isoschematron.ETreeISOSchematronTestCase lxml.tests.test_isoschematron.ETreeISOSchematronTestCase-class.html -lxml.tests.test_isoschematron.ETreeISOSchematronTestCase.test_schematron_from_file lxml.tests.test_isoschematron.ETreeISOSchematronTestCase-class.html#test_schematron_from_file -lxml.tests.test_isoschematron.ETreeISOSchematronTestCase.test_schematron_invalid_args lxml.tests.test_isoschematron.ETreeISOSchematronTestCase-class.html#test_schematron_invalid_args -lxml.tests.test_isoschematron.ETreeISOSchematronTestCase.test_schematron_error_log lxml.tests.test_isoschematron.ETreeISOSchematronTestCase-class.html#test_schematron_error_log -lxml.tests.common_imports.HelperTestCase.tearDown lxml.tests.common_imports.HelperTestCase-class.html#tearDown -lxml.tests.test_isoschematron.ETreeISOSchematronTestCase.test_schematron_customization lxml.tests.test_isoschematron.ETreeISOSchematronTestCase-class.html#test_schematron_customization -lxml.tests.test_isoschematron.ETreeISOSchematronTestCase.test_schematron_phases_kwarg lxml.tests.test_isoschematron.ETreeISOSchematronTestCase-class.html#test_schematron_phases_kwarg -lxml.tests.test_isoschematron.ETreeISOSchematronTestCase.test_schematron_xmlschema_embedded lxml.tests.test_isoschematron.ETreeISOSchematronTestCase-class.html#test_schematron_xmlschema_embedded -lxml.tests.test_isoschematron.ETreeISOSchematronTestCase.test_schematron_from_tree lxml.tests.test_isoschematron.ETreeISOSchematronTestCase-class.html#test_schematron_from_tree -lxml.tests.test_isoschematron.ETreeISOSchematronTestCase.test_schematron_store_xslt lxml.tests.test_isoschematron.ETreeISOSchematronTestCase-class.html#test_schematron_store_xslt -lxml.tests.test_isoschematron.ETreeISOSchematronTestCase.test_schematron_validate lxml.tests.test_isoschematron.ETreeISOSchematronTestCase-class.html#test_schematron_validate -lxml.tests.test_isoschematron.ETreeISOSchematronTestCase.test_schematron_from_element lxml.tests.test_isoschematron.ETreeISOSchematronTestCase-class.html#test_schematron_from_element -lxml.tests.test_isoschematron.ETreeISOSchematronTestCase.test_schematron_assertValid lxml.tests.test_isoschematron.ETreeISOSchematronTestCase-class.html#test_schematron_assertValid -lxml.tests.test_isoschematron.ETreeISOSchematronTestCase.test_schematron_result_report lxml.tests.test_isoschematron.ETreeISOSchematronTestCase-class.html#test_schematron_result_report -lxml.tests.test_isoschematron.ETreeISOSchematronTestCase.test_schematron_empty_pattern lxml.tests.test_isoschematron.ETreeISOSchematronTestCase-class.html#test_schematron_empty_pattern -lxml.tests.test_isoschematron.ETreeISOSchematronTestCase.test_schematron_store_schematron lxml.tests.test_isoschematron.ETreeISOSchematronTestCase-class.html#test_schematron_store_schematron -lxml.tests.test_isoschematron.ETreeISOSchematronTestCase.test_schematron_elementtree_error lxml.tests.test_isoschematron.ETreeISOSchematronTestCase-class.html#test_schematron_elementtree_error -lxml.tests.common_imports.HelperTestCase._rootstring lxml.tests.common_imports.HelperTestCase-class.html#_rootstring -lxml.tests.test_isoschematron.ETreeISOSchematronTestCase.test_schematron_abstract lxml.tests.test_isoschematron.ETreeISOSchematronTestCase-class.html#test_schematron_abstract -lxml.tests.test_isoschematron.ETreeISOSchematronTestCase.test_schematron_phases lxml.tests.test_isoschematron.ETreeISOSchematronTestCase-class.html#test_schematron_phases -lxml.tests.test_isoschematron.ETreeISOSchematronTestCase.test_schematron_call lxml.tests.test_isoschematron.ETreeISOSchematronTestCase-class.html#test_schematron_call -lxml.tests.test_isoschematron.ETreeISOSchematronTestCase.test_schematron lxml.tests.test_isoschematron.ETreeISOSchematronTestCase-class.html#test_schematron -lxml.tests.common_imports.HelperTestCase.parse lxml.tests.common_imports.HelperTestCase-class.html#parse -unittest.case.TestCase.failureException exceptions.AssertionError-class.html -lxml.tests.test_isoschematron.ETreeISOSchematronTestCase.test_schematron_invalid_schema_empty lxml.tests.test_isoschematron.ETreeISOSchematronTestCase-class.html#test_schematron_invalid_schema_empty -lxml.tests.test_isoschematron.ETreeISOSchematronTestCase.test_schematron_relaxng_embedded lxml.tests.test_isoschematron.ETreeISOSchematronTestCase-class.html#test_schematron_relaxng_embedded -lxml.tests.test_isoschematron.ETreeISOSchematronTestCase.test_schematron_invalid_schema_namespace lxml.tests.test_isoschematron.ETreeISOSchematronTestCase-class.html#test_schematron_invalid_schema_namespace -lxml.tests.common_imports.HelperTestCase.assertFalse lxml.tests.common_imports.HelperTestCase-class.html#assertFalse -lxml.tests.test_nsclasses.ETreeNamespaceClassesTestCase lxml.tests.test_nsclasses.ETreeNamespaceClassesTestCase-class.html -lxml.tests.test_nsclasses.ETreeNamespaceClassesTestCase.test_create_element lxml.tests.test_nsclasses.ETreeNamespaceClassesTestCase-class.html#test_create_element -lxml.tests.test_nsclasses.ETreeNamespaceClassesTestCase.test_element_creation lxml.tests.test_nsclasses.ETreeNamespaceClassesTestCase-class.html#test_element_creation -lxml.tests.test_nsclasses.ETreeNamespaceClassesTestCase.tearDown lxml.tests.test_nsclasses.ETreeNamespaceClassesTestCase-class.html#tearDown -lxml.tests.test_nsclasses.ETreeNamespaceClassesTestCase.test_default_tagname lxml.tests.test_nsclasses.ETreeNamespaceClassesTestCase-class.html#test_default_tagname -lxml.tests.test_nsclasses.ETreeNamespaceClassesTestCase.maeh_class lxml.tests.test_nsclasses.ETreeNamespaceClassesTestCase.maeh_class-class.html -lxml.tests.test_nsclasses.ETreeNamespaceClassesTestCase.setUp lxml.tests.test_nsclasses.ETreeNamespaceClassesTestCase-class.html#setUp -lxml.tests.common_imports.HelperTestCase._rootstring lxml.tests.common_imports.HelperTestCase-class.html#_rootstring -lxml.tests.test_nsclasses.ETreeNamespaceClassesTestCase.bluff_class lxml.tests.test_nsclasses.ETreeNamespaceClassesTestCase.bluff_class-class.html -lxml.tests.test_nsclasses.ETreeNamespaceClassesTestCase.test_ns_classes lxml.tests.test_nsclasses.ETreeNamespaceClassesTestCase-class.html#test_ns_classes -lxml.tests.test_nsclasses.ETreeNamespaceClassesTestCase.test_create_element_default lxml.tests.test_nsclasses.ETreeNamespaceClassesTestCase-class.html#test_create_element_default -lxml.tests.test_nsclasses.ETreeNamespaceClassesTestCase.default_class lxml.tests.test_nsclasses.ETreeNamespaceClassesTestCase.default_class-class.html -lxml.tests.common_imports.HelperTestCase.parse lxml.tests.common_imports.HelperTestCase-class.html#parse -unittest.case.TestCase.failureException exceptions.AssertionError-class.html -lxml.tests.common_imports.HelperTestCase.assertFalse lxml.tests.common_imports.HelperTestCase-class.html#assertFalse -lxml.tests.test_nsclasses.ETreeNamespaceClassesTestCase.test_registry lxml.tests.test_nsclasses.ETreeNamespaceClassesTestCase-class.html#test_registry -lxml.tests.test_nsclasses.ETreeNamespaceClassesTestCase.bluff_class lxml.tests.test_nsclasses.ETreeNamespaceClassesTestCase.bluff_class-class.html -lxml.etree._Element.getprevious lxml.etree._Element-class.html#getprevious -lxml.etree._Element.set lxml.etree._Element-class.html#set -lxml.etree._Element.getparent lxml.etree._Element-class.html#getparent -lxml.etree._Element.sourceline lxml.etree._Element-class.html#sourceline -lxml.etree._Element.text lxml.etree._Element-class.html#text -lxml.etree._Element.iterfind lxml.etree._Element-class.html#iterfind -lxml.etree._Element._init lxml.etree._Element-class.html#_init -lxml.etree._Element.nsmap lxml.etree._Element-class.html#nsmap -lxml.etree._Element.replace lxml.etree._Element-class.html#replace -lxml.etree._Element.prefix lxml.etree._Element-class.html#prefix -lxml.etree._Element.tag lxml.etree._Element-class.html#tag -lxml.etree._Element.iter lxml.etree._Element-class.html#iter -lxml.etree._Element.addnext lxml.etree._Element-class.html#addnext -lxml.etree._Element.addprevious lxml.etree._Element-class.html#addprevious -lxml.etree._Element.find lxml.etree._Element-class.html#find -lxml.etree._Element.append lxml.etree._Element-class.html#append -lxml.etree._Element.getnext lxml.etree._Element-class.html#getnext -lxml.etree._Element.index lxml.etree._Element-class.html#index -lxml.etree.ElementBase.__new__ lxml.etree.ElementBase-class.html#__new__ -lxml.etree._Element.__contains__ lxml.etree._Element-class.html#__contains__ -lxml.etree._Element.findtext lxml.etree._Element-class.html#findtext -lxml.etree._Element.tail lxml.etree._Element-class.html#tail -lxml.etree._Element.getroottree lxml.etree._Element-class.html#getroottree -lxml.etree._Element.iterdescendants lxml.etree._Element-class.html#iterdescendants -lxml.etree._Element.getchildren lxml.etree._Element-class.html#getchildren -lxml.etree.ElementBase.__init__ lxml.etree.ElementBase-class.html#__init__ -lxml.etree._Element.__len__ lxml.etree._Element-class.html#__len__ -lxml.etree._Element.xpath lxml.etree._Element-class.html#xpath -lxml.etree._Element.__getitem__ lxml.etree._Element-class.html#__getitem__ -lxml.etree._Element.get lxml.etree._Element-class.html#get -lxml.etree._Element.keys lxml.etree._Element-class.html#keys -lxml.etree._Element.__deepcopy__ lxml.etree._Element-class.html#__deepcopy__ -lxml.etree._Element.makeelement lxml.etree._Element-class.html#makeelement -lxml.etree._Element.__iter__ lxml.etree._Element-class.html#__iter__ -lxml.etree._Element.base lxml.etree._Element-class.html#base -lxml.tests.test_nsclasses.ETreeNamespaceClassesTestCase.bluff_class.bluff lxml.tests.test_nsclasses.ETreeNamespaceClassesTestCase.bluff_class-class.html#bluff -lxml.etree._Element.insert lxml.etree._Element-class.html#insert -lxml.etree._Element.iterchildren lxml.etree._Element-class.html#iterchildren -lxml.etree._Element.iterancestors lxml.etree._Element-class.html#iterancestors -lxml.etree._Element.extend lxml.etree._Element-class.html#extend -lxml.etree._Element.__delitem__ lxml.etree._Element-class.html#__delitem__ -lxml.etree._Element.__reversed__ lxml.etree._Element-class.html#__reversed__ -lxml.etree._Element.itersiblings lxml.etree._Element-class.html#itersiblings -lxml.etree._Element.__nonzero__ lxml.etree._Element-class.html#__nonzero__ -lxml.etree._Element.items lxml.etree._Element-class.html#items -lxml.etree._Element.clear lxml.etree._Element-class.html#clear -lxml.etree._Element.itertext lxml.etree._Element-class.html#itertext -lxml.etree._Element.findall lxml.etree._Element-class.html#findall -lxml.etree._Element.__setitem__ lxml.etree._Element-class.html#__setitem__ -lxml.etree._Element.remove lxml.etree._Element-class.html#remove -lxml.etree._Element.values lxml.etree._Element-class.html#values -lxml.etree._Element.__repr__ lxml.etree._Element-class.html#__repr__ -lxml.etree._Element.getiterator lxml.etree._Element-class.html#getiterator -lxml.etree._Element.attrib lxml.etree._Element-class.html#attrib -lxml.etree._Element.__copy__ lxml.etree._Element-class.html#__copy__ -lxml.tests.test_nsclasses.ETreeNamespaceClassesTestCase.default_class lxml.tests.test_nsclasses.ETreeNamespaceClassesTestCase.default_class-class.html -lxml.etree._Element.getprevious lxml.etree._Element-class.html#getprevious -lxml.etree._Element.set lxml.etree._Element-class.html#set -lxml.etree._Element.getparent lxml.etree._Element-class.html#getparent -lxml.etree._Element.sourceline lxml.etree._Element-class.html#sourceline -lxml.etree._Element.text lxml.etree._Element-class.html#text -lxml.etree._Element.iterfind lxml.etree._Element-class.html#iterfind -lxml.etree._Element._init lxml.etree._Element-class.html#_init -lxml.etree._Element.nsmap lxml.etree._Element-class.html#nsmap -lxml.etree._Element.replace lxml.etree._Element-class.html#replace -lxml.etree._Element.prefix lxml.etree._Element-class.html#prefix -lxml.etree._Element.tag lxml.etree._Element-class.html#tag -lxml.etree._Element.iter lxml.etree._Element-class.html#iter -lxml.etree._Element.addnext lxml.etree._Element-class.html#addnext -lxml.etree._Element.addprevious lxml.etree._Element-class.html#addprevious -lxml.etree._Element.find lxml.etree._Element-class.html#find -lxml.etree._Element.append lxml.etree._Element-class.html#append -lxml.etree._Element.getnext lxml.etree._Element-class.html#getnext -lxml.etree._Element.index lxml.etree._Element-class.html#index -lxml.etree.ElementBase.__new__ lxml.etree.ElementBase-class.html#__new__ -lxml.etree._Element.__contains__ lxml.etree._Element-class.html#__contains__ -lxml.etree._Element.findtext lxml.etree._Element-class.html#findtext -lxml.etree._Element.tail lxml.etree._Element-class.html#tail -lxml.etree._Element.getroottree lxml.etree._Element-class.html#getroottree -lxml.etree._Element.iterdescendants lxml.etree._Element-class.html#iterdescendants -lxml.etree._Element.getchildren lxml.etree._Element-class.html#getchildren -lxml.etree.ElementBase.__init__ lxml.etree.ElementBase-class.html#__init__ -lxml.etree._Element.__len__ lxml.etree._Element-class.html#__len__ -lxml.etree._Element.xpath lxml.etree._Element-class.html#xpath -lxml.etree._Element.__getitem__ lxml.etree._Element-class.html#__getitem__ -lxml.etree._Element.get lxml.etree._Element-class.html#get -lxml.etree._Element.keys lxml.etree._Element-class.html#keys -lxml.etree._Element.__deepcopy__ lxml.etree._Element-class.html#__deepcopy__ -lxml.etree._Element.makeelement lxml.etree._Element-class.html#makeelement -lxml.etree._Element.__iter__ lxml.etree._Element-class.html#__iter__ -lxml.etree._Element.base lxml.etree._Element-class.html#base -lxml.etree._Element.insert lxml.etree._Element-class.html#insert -lxml.etree._Element.iterchildren lxml.etree._Element-class.html#iterchildren -lxml.etree._Element.iterancestors lxml.etree._Element-class.html#iterancestors -lxml.etree._Element.extend lxml.etree._Element-class.html#extend -lxml.etree._Element.__delitem__ lxml.etree._Element-class.html#__delitem__ -lxml.etree._Element.__reversed__ lxml.etree._Element-class.html#__reversed__ -lxml.etree._Element.itersiblings lxml.etree._Element-class.html#itersiblings -lxml.etree._Element.__nonzero__ lxml.etree._Element-class.html#__nonzero__ -lxml.etree._Element.items lxml.etree._Element-class.html#items -lxml.etree._Element.clear lxml.etree._Element-class.html#clear -lxml.etree._Element.itertext lxml.etree._Element-class.html#itertext -lxml.etree._Element.findall lxml.etree._Element-class.html#findall -lxml.etree._Element.__setitem__ lxml.etree._Element-class.html#__setitem__ -lxml.etree._Element.remove lxml.etree._Element-class.html#remove -lxml.etree._Element.values lxml.etree._Element-class.html#values -lxml.etree._Element.__repr__ lxml.etree._Element-class.html#__repr__ -lxml.etree._Element.getiterator lxml.etree._Element-class.html#getiterator -lxml.etree._Element.attrib lxml.etree._Element-class.html#attrib -lxml.etree._Element.__copy__ lxml.etree._Element-class.html#__copy__ -lxml.tests.test_nsclasses.ETreeNamespaceClassesTestCase.maeh_class lxml.tests.test_nsclasses.ETreeNamespaceClassesTestCase.maeh_class-class.html -lxml.etree._Element.getprevious lxml.etree._Element-class.html#getprevious -lxml.etree._Element.set lxml.etree._Element-class.html#set -lxml.etree._Element.getparent lxml.etree._Element-class.html#getparent -lxml.etree._Element.sourceline lxml.etree._Element-class.html#sourceline -lxml.etree._Element.text lxml.etree._Element-class.html#text -lxml.etree._Element.iterfind lxml.etree._Element-class.html#iterfind -lxml.etree._Element._init lxml.etree._Element-class.html#_init -lxml.etree._Element.nsmap lxml.etree._Element-class.html#nsmap -lxml.etree._Element.replace lxml.etree._Element-class.html#replace -lxml.etree._Element.prefix lxml.etree._Element-class.html#prefix -lxml.etree._Element.tag lxml.etree._Element-class.html#tag -lxml.etree._Element.iter lxml.etree._Element-class.html#iter -lxml.etree._Element.addnext lxml.etree._Element-class.html#addnext -lxml.etree._Element.addprevious lxml.etree._Element-class.html#addprevious -lxml.etree._Element.find lxml.etree._Element-class.html#find -lxml.etree._Element.append lxml.etree._Element-class.html#append -lxml.etree._Element.getnext lxml.etree._Element-class.html#getnext -lxml.etree._Element.index lxml.etree._Element-class.html#index -lxml.etree.ElementBase.__new__ lxml.etree.ElementBase-class.html#__new__ -lxml.etree._Element.__contains__ lxml.etree._Element-class.html#__contains__ -lxml.tests.test_nsclasses.ETreeNamespaceClassesTestCase.maeh_class.maeh lxml.tests.test_nsclasses.ETreeNamespaceClassesTestCase.maeh_class-class.html#maeh -lxml.etree._Element.findtext lxml.etree._Element-class.html#findtext -lxml.etree._Element.tail lxml.etree._Element-class.html#tail -lxml.etree._Element.getroottree lxml.etree._Element-class.html#getroottree -lxml.etree._Element.iterdescendants lxml.etree._Element-class.html#iterdescendants -lxml.etree._Element.getchildren lxml.etree._Element-class.html#getchildren -lxml.etree.ElementBase.__init__ lxml.etree.ElementBase-class.html#__init__ -lxml.etree._Element.__len__ lxml.etree._Element-class.html#__len__ -lxml.etree._Element.xpath lxml.etree._Element-class.html#xpath -lxml.etree._Element.__getitem__ lxml.etree._Element-class.html#__getitem__ -lxml.etree._Element.get lxml.etree._Element-class.html#get -lxml.etree._Element.keys lxml.etree._Element-class.html#keys -lxml.etree._Element.__deepcopy__ lxml.etree._Element-class.html#__deepcopy__ -lxml.etree._Element.makeelement lxml.etree._Element-class.html#makeelement -lxml.etree._Element.__iter__ lxml.etree._Element-class.html#__iter__ -lxml.etree._Element.base lxml.etree._Element-class.html#base -lxml.etree._Element.insert lxml.etree._Element-class.html#insert -lxml.etree._Element.iterchildren lxml.etree._Element-class.html#iterchildren -lxml.etree._Element.iterancestors lxml.etree._Element-class.html#iterancestors -lxml.etree._Element.extend lxml.etree._Element-class.html#extend -lxml.etree._Element.__delitem__ lxml.etree._Element-class.html#__delitem__ -lxml.etree._Element.__reversed__ lxml.etree._Element-class.html#__reversed__ -lxml.etree._Element.itersiblings lxml.etree._Element-class.html#itersiblings -lxml.etree._Element.__nonzero__ lxml.etree._Element-class.html#__nonzero__ -lxml.etree._Element.items lxml.etree._Element-class.html#items -lxml.etree._Element.clear lxml.etree._Element-class.html#clear -lxml.etree._Element.itertext lxml.etree._Element-class.html#itertext -lxml.etree._Element.findall lxml.etree._Element-class.html#findall -lxml.etree._Element.__setitem__ lxml.etree._Element-class.html#__setitem__ -lxml.etree._Element.remove lxml.etree._Element-class.html#remove -lxml.etree._Element.values lxml.etree._Element-class.html#values -lxml.etree._Element.__repr__ lxml.etree._Element-class.html#__repr__ -lxml.etree._Element.getiterator lxml.etree._Element-class.html#getiterator -lxml.etree._Element.attrib lxml.etree._Element-class.html#attrib -lxml.etree._Element.__copy__ lxml.etree._Element-class.html#__copy__ -lxml.tests.test_objectify.ObjectifyTestCase lxml.tests.test_objectify.ObjectifyTestCase-class.html -lxml.tests.test_objectify.ObjectifyTestCase.test_efactory_nested lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_efactory_nested -lxml.tests.test_objectify.ObjectifyTestCase.test_setslice_partial_allneg lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_setslice_partial_allneg -lxml.tests.test_objectify.ObjectifyTestCase.test_type_bool_cmp lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_type_bool_cmp -lxml.tests.test_objectify.ObjectifyTestCase.test_pickle_floattelement lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_pickle_floattelement -lxml.tests.test_objectify.ObjectifyTestCase.test_type_unregistered lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_type_unregistered -lxml.tests.test_objectify.ObjectifyTestCase.test_xml_base lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_xml_base -lxml.tests.test_objectify.ObjectifyTestCase.test_pytype_annotation_use_old lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_pytype_annotation_use_old -lxml.tests.test_objectify.ObjectifyTestCase.test_registered_types lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_registered_types -lxml.tests.test_objectify.ObjectifyTestCase.test_sub_data_element_nsmap_custom lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_sub_data_element_nsmap_custom -lxml.tests.test_objectify.ObjectifyTestCase.test_sub_element_nsmap_default lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_sub_element_nsmap_default -lxml.tests.test_objectify.ObjectifyTestCase.test_child_nonexistant lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_child_nonexistant -lxml.tests.test_objectify.ObjectifyTestCase.test_object_path_list lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_object_path_list -lxml.tests.test_objectify.ObjectifyTestCase.test_xsiannotate_ignore_old lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_xsiannotate_ignore_old -lxml.tests.test_objectify.ObjectifyTestCase.test_schema_types lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_schema_types -lxml.tests.test_objectify.ObjectifyTestCase.test_data_element_attrib_attributes_precedence lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_data_element_attrib_attributes_precedence -lxml.tests.test_objectify.ObjectifyTestCase.test_object_path_dot lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_object_path_dot -lxml.tests.test_objectify.ObjectifyTestCase.test_pyannotate_use_old lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_pyannotate_use_old -lxml.tests.test_objectify.ObjectifyTestCase.test_build_tree lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_build_tree -lxml.tests.test_objectify.ObjectifyTestCase.test_type_str lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_type_str -lxml.tests.test_objectify.ObjectifyTestCase.test_element_nsmap_empty lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_element_nsmap_empty -lxml.tests.test_objectify.ObjectifyTestCase.test_object_path_dot_root_list lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_object_path_dot_root_list -lxml.tests.test_objectify.ObjectifyTestCase.test_data_element_float_hash lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_data_element_float_hash -lxml.tests.test_objectify.ObjectifyTestCase.test_setitem_string lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_setitem_string -lxml.tests.test_objectify.ObjectifyTestCase.test_type_str_hash lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_type_str_hash -lxml.tests.test_objectify.ObjectifyTestCase.test_object_path_dot_list lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_object_path_dot_list -lxml.tests.test_objectify.ObjectifyTestCase.test_data_element_pytypes lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_data_element_pytypes -lxml.tests.test_objectify.ObjectifyTestCase.test_xml_base_attribute lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_xml_base_attribute -lxml.tests.test_objectify.ObjectifyTestCase.test_object_path_addattr_create_element lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_object_path_addattr_create_element -lxml.tests.test_objectify.ObjectifyTestCase.test_data_element_data_element_arg_invalid_pytype lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_data_element_data_element_arg_invalid_pytype -lxml.tests.test_objectify.ObjectifyTestCase.etree lxml.etree-module.html -lxml.tests.test_objectify.ObjectifyTestCase.test_data_element_nsmap_custom_prefixes lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_data_element_nsmap_custom_prefixes -lxml.tests.test_objectify.ObjectifyTestCase.test_xsitype_deannotate lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_xsitype_deannotate -lxml.tests.test_objectify.ObjectifyTestCase.test_data_element_nsmap_custom lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_data_element_nsmap_custom -lxml.tests.test_objectify.ObjectifyTestCase.test_type_str_as_complex lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_type_str_as_complex -lxml.tests.test_objectify.ObjectifyTestCase.test_object_path_fail_parse_empty lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_object_path_fail_parse_empty -lxml.tests.test_objectify.ObjectifyTestCase.test_addattr_element lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_addattr_element -lxml.tests.test_objectify.ObjectifyTestCase.test_pyannotate_ignore_old lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_pyannotate_ignore_old -lxml.tests.test_objectify.ObjectifyTestCase.test_object_path_fail lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_object_path_fail -lxml.tests.test_objectify.ObjectifyTestCase.test_object_path_ns lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_object_path_ns -lxml.tests.test_objectify.ObjectifyTestCase.test_pyannotate_empty lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_pyannotate_empty -lxml.tests.test_objectify.ObjectifyTestCase.test_efactory_attrib lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_efactory_attrib -lxml.tests.test_objectify.ObjectifyTestCase.test_class_lookup lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_class_lookup -lxml.tests.test_objectify.ObjectifyTestCase.test_change_pytype_attribute lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_change_pytype_attribute -lxml.tests.test_objectify.ObjectifyTestCase.test_object_path_index_fail_lookup lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_object_path_index_fail_lookup -lxml.tests.test_objectify.ObjectifyTestCase.test_setslice_partial lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_setslice_partial -lxml.tests.test_objectify.ObjectifyTestCase.test_object_path lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_object_path -lxml.tests.test_objectify.ObjectifyTestCase.test_addattr_list lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_addattr_list -lxml.tests.test_objectify.ObjectifyTestCase.test_setslice_partial_wrong_length lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_setslice_partial_wrong_length -lxml.tests.test_objectify.ObjectifyTestCase.test_object_path_default_absolute lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_object_path_default_absolute -lxml.tests.test_objectify.ObjectifyTestCase.test_object_path_index_fail_parse lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_object_path_index_fail_parse -lxml.tests.test_objectify.ObjectifyTestCase.test_findall_ns lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_findall_ns -lxml.tests.test_objectify.ObjectifyTestCase.test_object_path_ns_list lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_object_path_ns_list -lxml.tests.test_objectify.ObjectifyTestCase.test_descendant_paths_prefix lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_descendant_paths_prefix -lxml.tests.test_objectify.ObjectifyTestCase.tearDown lxml.tests.test_objectify.ObjectifyTestCase-class.html#tearDown -lxml.tests.test_objectify.ObjectifyTestCase.test_pytype_xsitype_annotation lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_pytype_xsitype_annotation -lxml.tests.test_objectify.ObjectifyTestCase.test_pickle_elementtree lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_pickle_elementtree -lxml.tests.test_objectify.ObjectifyTestCase.test_data_element_int_hash lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_data_element_int_hash -lxml.tests.test_objectify.ObjectifyTestCase.test_parse_stringio_base_url lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_parse_stringio_base_url -lxml.tests.test_objectify.ObjectifyTestCase.test_setitem_string_special lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_setitem_string_special -lxml.tests.test_objectify.ObjectifyTestCase.test_type_ustr_intliteral lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_type_ustr_intliteral -lxml.tests.test_objectify.ObjectifyTestCase.test_object_path_set_create_list lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_object_path_set_create_list -lxml.tests.test_objectify.ObjectifyTestCase.test_date_element_efactory_text lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_date_element_efactory_text -lxml.tests.test_objectify.ObjectifyTestCase.test_root lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_root -lxml.tests.test_objectify.ObjectifyTestCase.test_setslice_empty lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_setslice_empty -lxml.tests.test_objectify.ObjectifyTestCase.test_type_str_as_int lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_type_str_as_int -lxml.tests.test_objectify.ObjectifyTestCase.test_data_element_ustr_floatliteral lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_data_element_ustr_floatliteral -lxml.tests.test_objectify.ObjectifyTestCase.test_efactory_bool lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_efactory_bool -lxml.tests.test_objectify.ObjectifyTestCase.test_pickle_intelement lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_pickle_intelement -lxml.tests.test_objectify.ObjectifyTestCase.test_data_element_xsitypes lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_data_element_xsitypes -lxml.tests.test_objectify.ObjectifyTestCase.test_pickle lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_pickle -lxml.tests.test_objectify.ObjectifyTestCase._test_pickle lxml.tests.test_objectify.ObjectifyTestCase-class.html#_test_pickle -lxml.tests.test_objectify.ObjectifyTestCase.test_date_element_efactory_tail lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_date_element_efactory_tail -lxml.tests.test_objectify.ObjectifyTestCase.test_object_path_index lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_object_path_index -lxml.tests.test_objectify.ObjectifyTestCase.test_object_path_set_create lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_object_path_set_create -lxml.tests.test_objectify.ObjectifyTestCase.test_sub_element_nsmap_custom lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_sub_element_nsmap_custom -lxml.tests.test_objectify.ObjectifyTestCase.test_type_ustr lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_type_ustr -lxml.tests.test_objectify.ObjectifyTestCase.test_xsinil_deannotate lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_xsinil_deannotate -lxml.tests.test_objectify.ObjectifyTestCase.test_data_element_float lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_data_element_float -lxml.tests.test_objectify.ObjectifyTestCase.test_dataelement_xsi_prefix_error lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_dataelement_xsi_prefix_error -lxml.tests.test_objectify.ObjectifyTestCase.setUp lxml.tests.test_objectify.ObjectifyTestCase-class.html#setUp -lxml.tests.test_objectify.ObjectifyTestCase.test_setattr lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_setattr -lxml.tests.test_objectify.ObjectifyTestCase.test_type_str_cmp lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_type_str_cmp -lxml.tests.test_objectify.ObjectifyTestCase.test_data_element_data_element_arg_pytype_none lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_data_element_data_element_arg_pytype_none -lxml.tests.test_objectify.ObjectifyTestCase.test_sub_element_nsmap_custom_prefixes lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_sub_element_nsmap_custom_prefixes -lxml.tests.test_objectify.ObjectifyTestCase.test_object_path_index_list lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_object_path_index_list -lxml.tests.test_objectify.ObjectifyTestCase.test_object_path_addattr_element lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_object_path_addattr_element -lxml.tests.test_objectify.ObjectifyTestCase.test_data_element_nsmap_default lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_data_element_nsmap_default -lxml.tests.test_objectify.ObjectifyTestCase.test_dataelement_xsi_nsmap lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_dataelement_xsi_nsmap -lxml.tests.test_objectify.ObjectifyTestCase.test_efactory_subtype lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_efactory_subtype -lxml.tests.test_objectify.ObjectifyTestCase.test_data_element_data_element_arg_pytype_xsitype lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_data_element_data_element_arg_pytype_xsitype -lxml.tests.test_objectify.ObjectifyTestCase.test_setslice_elements lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_setslice_elements -lxml.tests.test_objectify.ObjectifyTestCase.test_type_str_mod lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_type_str_mod -lxml.tests.test_objectify.ObjectifyTestCase.test_child_index lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_child_index -lxml.tests.test_objectify.ObjectifyTestCase.test_sub_data_element_nsmap_empty lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_sub_data_element_nsmap_empty -lxml.tests.test_objectify.ObjectifyTestCase.test_getslice_partial lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_getslice_partial -lxml.tests.test_objectify.ObjectifyTestCase.test_data_element_str lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_data_element_str -lxml.tests.test_objectify.ObjectifyTestCase.test_object_path_addattr lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_object_path_addattr -lxml.tests.test_objectify.ObjectifyTestCase.test_data_element_data_element_arg_xsitype lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_data_element_data_element_arg_xsitype -lxml.tests.test_objectify.ObjectifyTestCase.test_type_str_sequence lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_type_str_sequence -lxml.tests.test_objectify.ObjectifyTestCase.test_object_path_addattr_create lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_object_path_addattr_create -lxml.tests.test_objectify.ObjectifyTestCase.test_object_path_set_element lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_object_path_set_element -lxml.tests.test_objectify.ObjectifyTestCase.test_data_element_str_intliteral lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_data_element_str_intliteral -lxml.tests.test_objectify.ObjectifyTestCase.test_efactory_str lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_efactory_str -lxml.tests.test_objectify.ObjectifyTestCase.test_data_element_ustr lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_data_element_ustr -lxml.tests.test_objectify.ObjectifyTestCase.test_efactory_none lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_efactory_none -unittest.case.TestCase.failureException exceptions.AssertionError-class.html -lxml.tests.test_objectify.ObjectifyTestCase.test_str lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_str -lxml.tests.test_objectify.ObjectifyTestCase.test_object_path_syntax lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_object_path_syntax -lxml.tests.test_objectify.ObjectifyTestCase.test_data_element_NoneType lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_data_element_NoneType -lxml.tests.test_objectify.ObjectifyTestCase.test_type_NoneType lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_type_NoneType -lxml.tests.test_objectify.ObjectifyTestCase.test_child_getattr_empty_ns lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_child_getattr_empty_ns -lxml.tests.test_objectify.ObjectifyTestCase.test_data_element_xsitypes_xsdprefixed lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_data_element_xsitypes_xsdprefixed -lxml.tests.test_objectify.ObjectifyTestCase.test_efactory_float lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_efactory_float -lxml.tests.test_objectify.ObjectifyTestCase.test_element_nsmap_default lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_element_nsmap_default -lxml.tests.test_objectify.ObjectifyTestCase.test_pytype_annotation_empty lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_pytype_annotation_empty -lxml.tests.test_objectify.ObjectifyTestCase.test_child_addattr lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_child_addattr -lxml.tests.test_objectify.ObjectifyTestCase.test_setslice_complete lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_setslice_complete -lxml.tests.test_objectify.ObjectifyTestCase.test_data_element_xsitypes_prefixed lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_data_element_xsitypes_prefixed -lxml.tests.test_objectify.ObjectifyTestCase.test_object_path_addattr_create_list lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_object_path_addattr_create_list -lxml.tests.test_objectify.ObjectifyTestCase.XML lxml.tests.test_objectify.ObjectifyTestCase-class.html#XML -lxml.tests.test_objectify.ObjectifyTestCase.test_sub_data_element_nsmap_custom_prefixes lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_sub_data_element_nsmap_custom_prefixes -lxml.tests.test_objectify.ObjectifyTestCase.test_data_element_invalid_xsi lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_data_element_invalid_xsi -lxml.tests.test_objectify.ObjectifyTestCase.test_pickle_boolelement lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_pickle_boolelement -lxml.tests.test_objectify.ObjectifyTestCase.test_dataelement_xsi lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_dataelement_xsi -lxml.tests.test_objectify.ObjectifyTestCase.test_getslice_partial_neg lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_getslice_partial_neg -lxml.tests.test_objectify.ObjectifyTestCase.test_data_element_element_arg lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_data_element_element_arg -lxml.tests.test_objectify.ObjectifyTestCase.test_type_none_cmp lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_type_none_cmp -lxml.tests.test_objectify.ObjectifyTestCase.test_child_len lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_child_len -lxml.tests.test_objectify.ObjectifyTestCase.test_data_element_pytype_none lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_data_element_pytype_none -lxml.tests.test_objectify.ObjectifyTestCase.test_setslice_insert lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_setslice_insert -lxml.tests.test_objectify.ObjectifyTestCase.test_data_element_nsmap_empty lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_data_element_nsmap_empty -lxml.tests.test_objectify.ObjectifyTestCase.test_schema_types_prefixed lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_schema_types_prefixed -lxml.tests.test_objectify.ObjectifyTestCase.test_type_ustr_floatliteral lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_type_ustr_floatliteral -lxml.tests.test_objectify.ObjectifyTestCase.test_pickle_noneelement lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_pickle_noneelement -lxml.tests.test_objectify.ObjectifyTestCase.test_addattr lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_addattr -lxml.tests.test_objectify.ObjectifyTestCase.test_XML_set_base_url_docinfo lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_XML_set_base_url_docinfo -lxml.tests.test_objectify.ObjectifyTestCase.test_object_path_set lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_object_path_set -lxml.tests.test_objectify.ObjectifyTestCase.test_data_element_int lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_data_element_int -lxml.tests.test_objectify.ObjectifyTestCase.test_registered_type_stringify lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_registered_type_stringify -lxml.tests.test_objectify.ObjectifyTestCase.test_dir lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_dir -lxml.tests.test_objectify.ObjectifyTestCase.test_findall lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_findall -lxml.tests.test_objectify.ObjectifyTestCase.test_type_ustr_add lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_type_ustr_add -lxml.tests.test_objectify.ObjectifyTestCase.test_object_path_dot_root lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_object_path_dot_root -lxml.tests.test_objectify.ObjectifyTestCase.test_object_path_hasattr lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_object_path_hasattr -lxml.tests.test_objectify.ObjectifyTestCase.test_XML_base_url_docinfo lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_XML_base_url_docinfo -lxml.tests.test_objectify.ObjectifyTestCase.test_object_path_default_relative lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_object_path_default_relative -lxml.tests.test_objectify.ObjectifyTestCase.test_xsiannotate_use_old lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_xsiannotate_use_old -lxml.tests.common_imports.HelperTestCase.parse lxml.tests.common_imports.HelperTestCase-class.html#parse -lxml.tests.test_objectify.ObjectifyTestCase.test_data_element_pytype_none_compat lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_data_element_pytype_none_compat -lxml.tests.test_objectify.ObjectifyTestCase.test_type_int lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_type_int -lxml.tests.test_objectify.ObjectifyTestCase.test_data_element_unregistered lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_data_element_unregistered -lxml.tests.test_objectify.ObjectifyTestCase.test_type_str_mul lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_type_str_mul -lxml.tests.test_objectify.ObjectifyTestCase.test_data_element_str_floatliteral lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_data_element_str_floatliteral -lxml.tests.test_objectify.ObjectifyTestCase.test_type_bool lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_type_bool -lxml.tests.test_objectify.ObjectifyTestCase.test_data_element_ustr_intliteral lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_data_element_ustr_intliteral -lxml.tests.test_objectify.ObjectifyTestCase.test_object_path_set_create_element lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_object_path_set_create_element -lxml.tests.test_objectify.ObjectifyTestCase.test_type_str_add lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_type_str_add -lxml.tests.test_objectify.ObjectifyTestCase.test_type_float lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_type_float -lxml.tests.test_objectify.ObjectifyTestCase.test_data_element_data_element_arg_pytype lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_data_element_data_element_arg_pytype -lxml.tests.test_objectify.ObjectifyTestCase.test_type_ustr_mul lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_type_ustr_mul -lxml.tests.test_objectify.ObjectifyTestCase.test_data_element_data_element_arg_invalid_xsi lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_data_element_data_element_arg_invalid_xsi -lxml.tests.test_objectify.ObjectifyTestCase.test_child_getattr lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_child_getattr -lxml.tests.test_objectify.ObjectifyTestCase.test_sub_data_element_nsmap_default lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_sub_data_element_nsmap_default -lxml.tests.common_imports.HelperTestCase._rootstring lxml.tests.common_imports.HelperTestCase-class.html#_rootstring -lxml.tests.test_objectify.ObjectifyTestCase.test_descendant_paths_child lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_descendant_paths_child -lxml.tests.test_objectify.ObjectifyTestCase.test_object_path_fail_parse_empty_list lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_object_path_fail_parse_empty_list -lxml.tests.test_objectify.ObjectifyTestCase.test_pytype_annotation lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_pytype_annotation -lxml.tests.test_objectify.ObjectifyTestCase.test_type_int_cmp lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_type_int_cmp -lxml.tests.test_objectify.ObjectifyTestCase.test_pickle_strelement lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_pickle_strelement -lxml.tests.test_objectify.ObjectifyTestCase.test_child_set_ro lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_child_set_ro -lxml.tests.test_objectify.ObjectifyTestCase.test_type_str_intliteral lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_type_str_intliteral -lxml.tests.test_objectify.ObjectifyTestCase.test_element_nsmap_custom_prefixes lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_element_nsmap_custom_prefixes -lxml.tests.test_objectify.ObjectifyTestCase.test_data_element_data_element_arg lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_data_element_data_element_arg -lxml.tests.test_objectify.ObjectifyTestCase.test_vars lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_vars -lxml.tests.test_objectify.ObjectifyTestCase.test_child lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_child -lxml.tests.test_objectify.ObjectifyTestCase.test_type_str_floatliteral lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_type_str_floatliteral -lxml.tests.test_objectify.ObjectifyTestCase.test_parse_base_url_docinfo lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_parse_base_url_docinfo -lxml.tests.test_objectify.ObjectifyTestCase.test_element_nsmap_custom lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_element_nsmap_custom -lxml.tests.test_objectify.ObjectifyTestCase.test_data_element_bool lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_data_element_bool -lxml.tests.test_objectify.ObjectifyTestCase.test_setslice_insert_neg lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_setslice_insert_neg -lxml.tests.test_objectify.ObjectifyTestCase.test_efactory_value_concatenation lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_efactory_value_concatenation -lxml.tests.test_objectify.ObjectifyTestCase.test_pytype_deannotate lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_pytype_deannotate -lxml.tests.test_objectify.ObjectifyTestCase.test_setslice_partial_neg lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_setslice_partial_neg -lxml.tests.test_objectify.ObjectifyTestCase.test_efactory_int lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_efactory_int -lxml.tests.test_objectify.ObjectifyTestCase.test_type_str_mod_data_elements lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_type_str_mod_data_elements -lxml.tests.test_objectify.ObjectifyTestCase.test_data_element_invalid_pytype lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_data_element_invalid_pytype -lxml.tests.test_objectify.ObjectifyTestCase.test_setattr_nonunicode lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_setattr_nonunicode -lxml.tests.test_objectify.ObjectifyTestCase.test_sub_element_nsmap_empty lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_sub_element_nsmap_empty -lxml.tests.test_objectify.ObjectifyTestCase.test_descendant_paths lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_descendant_paths -lxml.tests.test_objectify.ObjectifyTestCase.test_type_str_as_float lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_type_str_as_float -lxml.tests.test_objectify.ObjectifyTestCase.test_deannotate lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_deannotate -lxml.tests.test_objectify.ObjectifyTestCase.test_getslice_complete lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_getslice_complete -lxml.tests.test_objectify.ObjectifyTestCase.test_efactory_unicode lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_efactory_unicode -lxml.tests.test_objectify.ObjectifyTestCase.test_set_string lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_set_string -lxml.tests.test_objectify.ObjectifyTestCase.test_child_index_neg lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_child_index_neg -lxml.tests.common_imports.HelperTestCase.assertFalse lxml.tests.common_imports.HelperTestCase-class.html#assertFalse -lxml.tests.test_objectify.ObjectifyTestCase.test_standard_lookup lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_standard_lookup -lxml.tests.test_objectify.ObjectifyTestCase.test_child_iter lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_child_iter -lxml.tests.test_objectify.ObjectifyTestCase.test_countchildren lxml.tests.test_objectify.ObjectifyTestCase-class.html#test_countchildren -lxml.tests.test_pyclasslookup.PyClassLookupTestCase lxml.tests.test_pyclasslookup.PyClassLookupTestCase-class.html -lxml.tests.test_pyclasslookup.PyClassLookupTestCase.test_lookup_get_default lxml.tests.test_pyclasslookup.PyClassLookupTestCase-class.html#test_lookup_get_default -lxml.tests.test_pyclasslookup.PyClassLookupTestCase.test_lookup_getitem_neg lxml.tests.test_pyclasslookup.PyClassLookupTestCase-class.html#test_lookup_getitem_neg -lxml.tests.test_pyclasslookup.PyClassLookupTestCase.test_lookup_iterchildren lxml.tests.test_pyclasslookup.PyClassLookupTestCase-class.html#test_lookup_iterchildren -lxml.tests.test_pyclasslookup.PyClassLookupTestCase.test_lookup_len lxml.tests.test_pyclasslookup.PyClassLookupTestCase-class.html#test_lookup_len -lxml.tests.test_pyclasslookup.PyClassLookupTestCase.test_lookup_prefix lxml.tests.test_pyclasslookup.PyClassLookupTestCase-class.html#test_lookup_prefix -lxml.tests.test_pyclasslookup.PyClassLookupTestCase.etree lxml.etree-module.html -lxml.tests.test_pyclasslookup.PyClassLookupTestCase.tearDown lxml.tests.test_pyclasslookup.PyClassLookupTestCase-class.html#tearDown -lxml.tests.test_pyclasslookup.PyClassLookupTestCase.test_lookup_keep_ref_assertion lxml.tests.test_pyclasslookup.PyClassLookupTestCase-class.html#test_lookup_keep_ref_assertion -lxml.tests.test_pyclasslookup.PyClassLookupTestCase.test_lookup_getparent lxml.tests.test_pyclasslookup.PyClassLookupTestCase-class.html#test_lookup_getparent -lxml.tests.test_pyclasslookup.PyClassLookupTestCase.test_lookup_iterchildren_tag lxml.tests.test_pyclasslookup.PyClassLookupTestCase-class.html#test_lookup_iterchildren_tag -lxml.tests.test_pyclasslookup.PyClassLookupTestCase.test_lookup_tag lxml.tests.test_pyclasslookup.PyClassLookupTestCase-class.html#test_lookup_tag -lxml.tests.test_pyclasslookup.PyClassLookupTestCase.test_lookup_getitem lxml.tests.test_pyclasslookup.PyClassLookupTestCase-class.html#test_lookup_getitem -lxml.tests.test_pyclasslookup.PyClassLookupTestCase.test_lookup_get lxml.tests.test_pyclasslookup.PyClassLookupTestCase-class.html#test_lookup_get -lxml.tests.test_pyclasslookup.PyClassLookupTestCase.test_lookup_sourceline lxml.tests.test_pyclasslookup.PyClassLookupTestCase-class.html#test_lookup_sourceline -lxml.tests.test_pyclasslookup.PyClassLookupTestCase.test_lookup_getchildren lxml.tests.test_pyclasslookup.PyClassLookupTestCase-class.html#test_lookup_getchildren -lxml.tests.test_pyclasslookup.PyClassLookupTestCase.test_lookup_bool lxml.tests.test_pyclasslookup.PyClassLookupTestCase-class.html#test_lookup_bool -lxml.tests.test_pyclasslookup.PyClassLookupTestCase.test_lookup_getnext lxml.tests.test_pyclasslookup.PyClassLookupTestCase-class.html#test_lookup_getnext -lxml.tests.test_pyclasslookup.PyClassLookupTestCase.test_lookup_getprevious lxml.tests.test_pyclasslookup.PyClassLookupTestCase-class.html#test_lookup_getprevious -lxml.tests.test_pyclasslookup.PyClassLookupTestCase._buildElementClass lxml.tests.test_pyclasslookup.PyClassLookupTestCase-class.html#_buildElementClass -lxml.tests.test_pyclasslookup.PyClassLookupTestCase.XML lxml.tests.test_pyclasslookup.PyClassLookupTestCase-class.html#XML -lxml.tests.test_pyclasslookup.PyClassLookupTestCase.test_lookup lxml.tests.test_pyclasslookup.PyClassLookupTestCase-class.html#test_lookup -lxml.tests.common_imports.HelperTestCase._rootstring lxml.tests.common_imports.HelperTestCase-class.html#_rootstring -lxml.tests.test_pyclasslookup.PyClassLookupTestCase.test_lookup_getslice lxml.tests.test_pyclasslookup.PyClassLookupTestCase-class.html#test_lookup_getslice -lxml.tests.test_pyclasslookup.PyClassLookupTestCase.parser lxml.tests.test_pyclasslookup.PyClassLookupTestCase-class.html#parser -lxml.tests.test_pyclasslookup.PyClassLookupTestCase._setClassLookup lxml.tests.test_pyclasslookup.PyClassLookupTestCase-class.html#_setClassLookup -lxml.tests.common_imports.HelperTestCase.parse lxml.tests.common_imports.HelperTestCase-class.html#parse -unittest.case.TestCase.failureException exceptions.AssertionError-class.html -lxml.tests.test_pyclasslookup.PyClassLookupTestCase.test_lookup_text lxml.tests.test_pyclasslookup.PyClassLookupTestCase-class.html#test_lookup_text -lxml.tests.test_pyclasslookup.PyClassLookupTestCase.Element lxml.tests.test_pyclasslookup.PyClassLookupTestCase-class.html#Element -lxml.tests.test_pyclasslookup.PyClassLookupTestCase.test_lookup_attrib lxml.tests.test_pyclasslookup.PyClassLookupTestCase-class.html#test_lookup_attrib -lxml.tests.test_pyclasslookup.PyClassLookupTestCase.test_lookup_tail lxml.tests.test_pyclasslookup.PyClassLookupTestCase-class.html#test_lookup_tail -lxml.tests.test_pyclasslookup.PyClassLookupTestCase.test_lookup_iter_children lxml.tests.test_pyclasslookup.PyClassLookupTestCase-class.html#test_lookup_iter_children -lxml.tests.common_imports.HelperTestCase.assertFalse lxml.tests.common_imports.HelperTestCase-class.html#assertFalse -lxml.tests.test_relaxng.ETreeRelaxNGTestCase lxml.tests.test_relaxng.ETreeRelaxNGTestCase-class.html -lxml.tests.test_relaxng.ETreeRelaxNGTestCase.test_relaxng_stringio lxml.tests.test_relaxng.ETreeRelaxNGTestCase-class.html#test_relaxng_stringio -lxml.tests.test_relaxng.ETreeRelaxNGTestCase.test_relaxng_elementtree_error lxml.tests.test_relaxng.ETreeRelaxNGTestCase-class.html#test_relaxng_elementtree_error -lxml.tests.common_imports.HelperTestCase.tearDown lxml.tests.common_imports.HelperTestCase-class.html#tearDown -lxml.tests.test_relaxng.ETreeRelaxNGTestCase.test_relaxng_include lxml.tests.test_relaxng.ETreeRelaxNGTestCase-class.html#test_relaxng_include -lxml.tests.test_relaxng.ETreeRelaxNGTestCase.test_relaxng_invalid_schema lxml.tests.test_relaxng.ETreeRelaxNGTestCase-class.html#test_relaxng_invalid_schema -lxml.tests.test_relaxng.ETreeRelaxNGTestCase.test_relaxng_shortcut lxml.tests.test_relaxng.ETreeRelaxNGTestCase-class.html#test_relaxng_shortcut -lxml.tests.test_relaxng.ETreeRelaxNGTestCase.test_relaxng_invalid_schema4 lxml.tests.test_relaxng.ETreeRelaxNGTestCase-class.html#test_relaxng_invalid_schema4 -lxml.tests.common_imports.HelperTestCase._rootstring lxml.tests.common_imports.HelperTestCase-class.html#_rootstring -lxml.tests.test_relaxng.ETreeRelaxNGTestCase.test_relaxng_invalid_schema2 lxml.tests.test_relaxng.ETreeRelaxNGTestCase-class.html#test_relaxng_invalid_schema2 -lxml.tests.test_relaxng.ETreeRelaxNGTestCase.test_relaxng_invalid_schema3 lxml.tests.test_relaxng.ETreeRelaxNGTestCase-class.html#test_relaxng_invalid_schema3 -lxml.tests.test_relaxng.ETreeRelaxNGTestCase.test_multiple_elementrees lxml.tests.test_relaxng.ETreeRelaxNGTestCase-class.html#test_multiple_elementrees -lxml.tests.common_imports.HelperTestCase.parse lxml.tests.common_imports.HelperTestCase-class.html#parse -unittest.case.TestCase.failureException exceptions.AssertionError-class.html -lxml.tests.test_relaxng.ETreeRelaxNGTestCase.test_relaxng lxml.tests.test_relaxng.ETreeRelaxNGTestCase-class.html#test_relaxng -lxml.tests.test_relaxng.ETreeRelaxNGTestCase.test_relaxng_error lxml.tests.test_relaxng.ETreeRelaxNGTestCase-class.html#test_relaxng_error -lxml.tests.common_imports.HelperTestCase.assertFalse lxml.tests.common_imports.HelperTestCase-class.html#assertFalse -lxml.tests.test_sax.ETreeSaxTestCase lxml.tests.test_sax.ETreeSaxTestCase-class.html -lxml.tests.test_sax.ETreeSaxTestCase.test_etree_sax_pi lxml.tests.test_sax.ETreeSaxTestCase-class.html#test_etree_sax_pi -lxml.tests.test_sax.ETreeSaxTestCase.test_etree_sax_simple lxml.tests.test_sax.ETreeSaxTestCase-class.html#test_etree_sax_simple -lxml.tests.test_sax.ETreeSaxTestCase.test_etree_sax_redefine_ns lxml.tests.test_sax.ETreeSaxTestCase-class.html#test_etree_sax_redefine_ns -lxml.tests.test_sax.ETreeSaxTestCase.test_etree_sax_no_ns lxml.tests.test_sax.ETreeSaxTestCase-class.html#test_etree_sax_no_ns -lxml.tests.test_sax.ETreeSaxTestCase.test_etree_sax_comment lxml.tests.test_sax.ETreeSaxTestCase-class.html#test_etree_sax_comment -lxml.tests.test_sax.ETreeSaxTestCase.test_element_sax_ns lxml.tests.test_sax.ETreeSaxTestCase-class.html#test_element_sax_ns -lxml.tests.test_sax.ETreeSaxTestCase.test_etree_sax_handler_default_ns_None lxml.tests.test_sax.ETreeSaxTestCase-class.html#test_etree_sax_handler_default_ns_None -lxml.tests.common_imports.HelperTestCase.tearDown lxml.tests.common_imports.HelperTestCase-class.html#tearDown -lxml.tests.test_sax.ETreeSaxTestCase._saxify_unsaxify lxml.tests.test_sax.ETreeSaxTestCase-class.html#_saxify_unsaxify -lxml.tests.test_sax.ETreeSaxTestCase.test_etree_sax_error lxml.tests.test_sax.ETreeSaxTestCase-class.html#test_etree_sax_error -lxml.tests.test_sax.ETreeSaxTestCase._saxify_serialize lxml.tests.test_sax.ETreeSaxTestCase-class.html#_saxify_serialize -lxml.tests.common_imports.HelperTestCase._rootstring lxml.tests.common_imports.HelperTestCase-class.html#_rootstring -lxml.tests.test_sax.ETreeSaxTestCase.test_etree_sax_ns1 lxml.tests.test_sax.ETreeSaxTestCase-class.html#test_etree_sax_ns1 -lxml.tests.test_sax.ETreeSaxTestCase.test_etree_sax_attributes lxml.tests.test_sax.ETreeSaxTestCase-class.html#test_etree_sax_attributes -lxml.tests.test_sax.ETreeSaxTestCase.test_etree_sax_ns2 lxml.tests.test_sax.ETreeSaxTestCase-class.html#test_etree_sax_ns2 -lxml.tests.test_sax.ETreeSaxTestCase.test_sax_to_pulldom lxml.tests.test_sax.ETreeSaxTestCase-class.html#test_sax_to_pulldom -lxml.tests.test_sax.ETreeSaxTestCase.test_etree_sax_handler_default_ns lxml.tests.test_sax.ETreeSaxTestCase-class.html#test_etree_sax_handler_default_ns -lxml.tests.common_imports.HelperTestCase.parse lxml.tests.common_imports.HelperTestCase-class.html#parse -lxml.tests.test_sax.ETreeSaxTestCase.test_etree_sax_comment_root lxml.tests.test_sax.ETreeSaxTestCase-class.html#test_etree_sax_comment_root -unittest.case.TestCase.failureException exceptions.AssertionError-class.html -lxml.tests.test_sax.ETreeSaxTestCase.test_etree_sax_error2 lxml.tests.test_sax.ETreeSaxTestCase-class.html#test_etree_sax_error2 -lxml.tests.test_sax.ETreeSaxTestCase.test_etree_sax_pi_root lxml.tests.test_sax.ETreeSaxTestCase-class.html#test_etree_sax_pi_root -lxml.tests.test_sax.ETreeSaxTestCase.test_element_sax lxml.tests.test_sax.ETreeSaxTestCase-class.html#test_element_sax -lxml.tests.test_sax.ETreeSaxTestCase.test_etree_sax_double lxml.tests.test_sax.ETreeSaxTestCase-class.html#test_etree_sax_double -lxml.tests.common_imports.HelperTestCase.assertFalse lxml.tests.common_imports.HelperTestCase-class.html#assertFalse -lxml.tests.test_schematron.ETreeSchematronTestCase lxml.tests.test_schematron.ETreeSchematronTestCase-class.html -lxml.tests.common_imports.HelperTestCase.tearDown lxml.tests.common_imports.HelperTestCase-class.html#tearDown -lxml.tests.test_schematron.ETreeSchematronTestCase.test_schematron_elementtree_error lxml.tests.test_schematron.ETreeSchematronTestCase-class.html#test_schematron_elementtree_error -lxml.tests.common_imports.HelperTestCase._rootstring lxml.tests.common_imports.HelperTestCase-class.html#_rootstring -lxml.tests.test_schematron.ETreeSchematronTestCase.test_schematron lxml.tests.test_schematron.ETreeSchematronTestCase-class.html#test_schematron -lxml.tests.common_imports.HelperTestCase.parse lxml.tests.common_imports.HelperTestCase-class.html#parse -unittest.case.TestCase.failureException exceptions.AssertionError-class.html -lxml.tests.test_schematron.ETreeSchematronTestCase.test_schematron_invalid_schema_empty lxml.tests.test_schematron.ETreeSchematronTestCase-class.html#test_schematron_invalid_schema_empty -lxml.tests.test_schematron.ETreeSchematronTestCase.test_schematron_invalid_schema lxml.tests.test_schematron.ETreeSchematronTestCase-class.html#test_schematron_invalid_schema -lxml.tests.test_schematron.ETreeSchematronTestCase.test_schematron_invalid_schema_namespace lxml.tests.test_schematron.ETreeSchematronTestCase-class.html#test_schematron_invalid_schema_namespace -lxml.tests.common_imports.HelperTestCase.assertFalse lxml.tests.common_imports.HelperTestCase-class.html#assertFalse -lxml.tests.test_threading.ThreadPipelineTestCase lxml.tests.test_threading.ThreadPipelineTestCase-class.html -lxml.tests.test_threading.ThreadPipelineTestCase.xml lxml.tests.test_threading.ThreadPipelineTestCase-class.html#xml -lxml.tests.test_threading.ThreadPipelineTestCase.RotateWorker lxml.tests.test_threading.ThreadPipelineTestCase.RotateWorker-class.html -lxml.tests.test_threading.ThreadPipelineTestCase.test_thread_pipeline_global_parse lxml.tests.test_threading.ThreadPipelineTestCase-class.html#test_thread_pipeline_global_parse -lxml.tests.test_threading.ThreadPipelineTestCase.etree lxml.etree-module.html -lxml.tests.test_threading.ThreadPipelineTestCase.test_thread_pipeline_thread_parse lxml.tests.test_threading.ThreadPipelineTestCase-class.html#test_thread_pipeline_thread_parse -lxml.tests.common_imports.HelperTestCase.tearDown lxml.tests.common_imports.HelperTestCase-class.html#tearDown -lxml.tests.test_threading.ThreadPipelineTestCase.Worker lxml.tests.test_threading.ThreadPipelineTestCase.Worker-class.html -lxml.tests.test_threading.ThreadPipelineTestCase.item_count lxml.tests.test_threading.ThreadPipelineTestCase-class.html#item_count -lxml.tests.test_threading.ThreadPipelineTestCase._build_pipeline lxml.tests.test_threading.ThreadPipelineTestCase-class.html#_build_pipeline -lxml.tests.test_threading.ThreadPipelineTestCase.ReverseWorker lxml.tests.test_threading.ThreadPipelineTestCase.ReverseWorker-class.html -lxml.tests.common_imports.HelperTestCase._rootstring lxml.tests.common_imports.HelperTestCase-class.html#_rootstring -lxml.tests.common_imports.HelperTestCase.parse lxml.tests.common_imports.HelperTestCase-class.html#parse -unittest.case.TestCase.failureException exceptions.AssertionError-class.html -lxml.tests.test_threading.ThreadPipelineTestCase.ParseWorker lxml.tests.test_threading.ThreadPipelineTestCase.ParseWorker-class.html -lxml.tests.test_threading.ThreadPipelineTestCase.ParseAndExtendWorker lxml.tests.test_threading.ThreadPipelineTestCase.ParseAndExtendWorker-class.html -lxml.tests.test_threading.ThreadPipelineTestCase.SerialiseWorker lxml.tests.test_threading.ThreadPipelineTestCase.SerialiseWorker-class.html -lxml.tests.common_imports.HelperTestCase.assertFalse lxml.tests.common_imports.HelperTestCase-class.html#assertFalse -lxml.tests.test_threading.ThreadPipelineTestCase.ParseAndExtendWorker lxml.tests.test_threading.ThreadPipelineTestCase.ParseAndExtendWorker-class.html -lxml.tests.test_threading.ThreadPipelineTestCase.Worker.__init__ lxml.tests.test_threading.ThreadPipelineTestCase.Worker-class.html#__init__ -lxml.tests.test_threading.ThreadPipelineTestCase.ParseAndExtendWorker.XML lxml.tests.test_threading.ThreadPipelineTestCase.ParseAndExtendWorker-class.html#XML -lxml.tests.test_threading.ThreadPipelineTestCase.Worker.run lxml.tests.test_threading.ThreadPipelineTestCase.Worker-class.html#run -lxml.tests.test_threading.ThreadPipelineTestCase.ParseAndExtendWorker.handle lxml.tests.test_threading.ThreadPipelineTestCase.ParseAndExtendWorker-class.html#handle -lxml.tests.test_threading.ThreadPipelineTestCase.ParseWorker lxml.tests.test_threading.ThreadPipelineTestCase.ParseWorker-class.html -lxml.tests.test_threading.ThreadPipelineTestCase.Worker.__init__ lxml.tests.test_threading.ThreadPipelineTestCase.Worker-class.html#__init__ -lxml.tests.test_threading.ThreadPipelineTestCase.ParseWorker.XML lxml.tests.test_threading.ThreadPipelineTestCase.ParseWorker-class.html#XML -lxml.tests.test_threading.ThreadPipelineTestCase.Worker.run lxml.tests.test_threading.ThreadPipelineTestCase.Worker-class.html#run -lxml.tests.test_threading.ThreadPipelineTestCase.ParseWorker.handle lxml.tests.test_threading.ThreadPipelineTestCase.ParseWorker-class.html#handle -lxml.tests.test_threading.ThreadPipelineTestCase.ReverseWorker lxml.tests.test_threading.ThreadPipelineTestCase.ReverseWorker-class.html -lxml.tests.test_threading.ThreadPipelineTestCase.Worker.__init__ lxml.tests.test_threading.ThreadPipelineTestCase.Worker-class.html#__init__ -lxml.tests.test_threading.ThreadPipelineTestCase.Worker.run lxml.tests.test_threading.ThreadPipelineTestCase.Worker-class.html#run -lxml.tests.test_threading.ThreadPipelineTestCase.ReverseWorker.handle lxml.tests.test_threading.ThreadPipelineTestCase.ReverseWorker-class.html#handle -lxml.tests.test_threading.ThreadPipelineTestCase.RotateWorker lxml.tests.test_threading.ThreadPipelineTestCase.RotateWorker-class.html -lxml.tests.test_threading.ThreadPipelineTestCase.Worker.__init__ lxml.tests.test_threading.ThreadPipelineTestCase.Worker-class.html#__init__ -lxml.tests.test_threading.ThreadPipelineTestCase.Worker.run lxml.tests.test_threading.ThreadPipelineTestCase.Worker-class.html#run -lxml.tests.test_threading.ThreadPipelineTestCase.RotateWorker.handle lxml.tests.test_threading.ThreadPipelineTestCase.RotateWorker-class.html#handle -lxml.tests.test_threading.ThreadPipelineTestCase.SerialiseWorker lxml.tests.test_threading.ThreadPipelineTestCase.SerialiseWorker-class.html -lxml.tests.test_threading.ThreadPipelineTestCase.Worker.__init__ lxml.tests.test_threading.ThreadPipelineTestCase.Worker-class.html#__init__ -lxml.tests.test_threading.ThreadPipelineTestCase.Worker.run lxml.tests.test_threading.ThreadPipelineTestCase.Worker-class.html#run -lxml.tests.test_threading.ThreadPipelineTestCase.SerialiseWorker.handle lxml.tests.test_threading.ThreadPipelineTestCase.SerialiseWorker-class.html#handle -lxml.tests.test_threading.ThreadPipelineTestCase.Worker lxml.tests.test_threading.ThreadPipelineTestCase.Worker-class.html -lxml.tests.test_threading.ThreadPipelineTestCase.Worker.__init__ lxml.tests.test_threading.ThreadPipelineTestCase.Worker-class.html#__init__ -lxml.tests.test_threading.ThreadPipelineTestCase.Worker.run lxml.tests.test_threading.ThreadPipelineTestCase.Worker-class.html#run -lxml.tests.test_threading.ThreadingTestCase lxml.tests.test_threading.ThreadingTestCase-class.html -lxml.tests.test_threading.ThreadingTestCase.test_concurrent_class_lookup lxml.tests.test_threading.ThreadingTestCase-class.html#test_concurrent_class_lookup -lxml.tests.test_threading.ThreadingTestCase.test_main_xslt_in_thread lxml.tests.test_threading.ThreadingTestCase-class.html#test_main_xslt_in_thread -lxml.tests.test_threading.ThreadingTestCase._run_thread lxml.tests.test_threading.ThreadingTestCase-class.html#_run_thread -lxml.tests.test_threading.ThreadingTestCase.etree lxml.etree-module.html -lxml.tests.test_threading.ThreadingTestCase.test_thread_mix lxml.tests.test_threading.ThreadingTestCase-class.html#test_thread_mix -lxml.tests.common_imports.HelperTestCase.tearDown lxml.tests.common_imports.HelperTestCase-class.html#tearDown -lxml.tests.test_threading.ThreadingTestCase.test_concurrent_proxies lxml.tests.test_threading.ThreadingTestCase-class.html#test_concurrent_proxies -lxml.tests.test_threading.ThreadingTestCase.test_thread_xslt_attr_replace lxml.tests.test_threading.ThreadingTestCase-class.html#test_thread_xslt_attr_replace -lxml.tests.test_threading.ThreadingTestCase.test_thread_xslt lxml.tests.test_threading.ThreadingTestCase-class.html#test_thread_xslt -lxml.tests.test_threading.ThreadingTestCase.test_subtree_copy_thread lxml.tests.test_threading.ThreadingTestCase-class.html#test_subtree_copy_thread -lxml.tests.test_threading.ThreadingTestCase.test_thread_create_xslt lxml.tests.test_threading.ThreadingTestCase-class.html#test_thread_create_xslt -lxml.tests.common_imports.HelperTestCase._rootstring lxml.tests.common_imports.HelperTestCase-class.html#_rootstring -lxml.tests.test_threading.ThreadingTestCase.test_thread_error_log lxml.tests.test_threading.ThreadingTestCase-class.html#test_thread_error_log -lxml.tests.common_imports.HelperTestCase.parse lxml.tests.common_imports.HelperTestCase-class.html#parse -unittest.case.TestCase.failureException exceptions.AssertionError-class.html -lxml.tests.common_imports.HelperTestCase.assertFalse lxml.tests.common_imports.HelperTestCase-class.html#assertFalse -lxml.tests.test_unicode.UnicodeTestCase lxml.tests.test_unicode.UnicodeTestCase-class.html -lxml.tests.test_unicode.UnicodeTestCase.test_unicode_xml_broken lxml.tests.test_unicode.UnicodeTestCase-class.html#test_unicode_xml_broken -lxml.tests.test_unicode.UnicodeTestCase.test_unicode_nstag_invalid lxml.tests.test_unicode.UnicodeTestCase-class.html#test_unicode_nstag_invalid -lxml.tests.common_imports.HelperTestCase.tearDown lxml.tests.common_imports.HelperTestCase-class.html#tearDown -lxml.tests.test_unicode.UnicodeTestCase.test_unicode_nstag lxml.tests.test_unicode.UnicodeTestCase-class.html#test_unicode_nstag -lxml.tests.test_unicode.UnicodeTestCase.test_unicode_attr lxml.tests.test_unicode.UnicodeTestCase-class.html#test_unicode_attr -lxml.tests.test_unicode.UnicodeTestCase.test_unicode_qname lxml.tests.test_unicode.UnicodeTestCase-class.html#test_unicode_qname -lxml.tests.test_unicode.UnicodeTestCase.test_unicode_qname_invalid lxml.tests.test_unicode.UnicodeTestCase-class.html#test_unicode_qname_invalid -lxml.tests.test_unicode.UnicodeTestCase.test_unicode_comment lxml.tests.test_unicode.UnicodeTestCase-class.html#test_unicode_comment -lxml.tests.common_imports.HelperTestCase._rootstring lxml.tests.common_imports.HelperTestCase-class.html#_rootstring -lxml.tests.test_unicode.UnicodeTestCase.test_unicode_xml lxml.tests.test_unicode.UnicodeTestCase-class.html#test_unicode_xml -lxml.tests.common_imports.HelperTestCase.parse lxml.tests.common_imports.HelperTestCase-class.html#parse -unittest.case.TestCase.failureException exceptions.AssertionError-class.html -lxml.tests.test_unicode.UnicodeTestCase.test_unicode_ns_invalid lxml.tests.test_unicode.UnicodeTestCase-class.html#test_unicode_ns_invalid -lxml.tests.test_unicode.UnicodeTestCase.test_unicode_tag lxml.tests.test_unicode.UnicodeTestCase-class.html#test_unicode_tag -lxml.tests.test_unicode.UnicodeTestCase.test_unicode_parse_stringio lxml.tests.test_unicode.UnicodeTestCase-class.html#test_unicode_parse_stringio -lxml.tests.test_unicode.UnicodeTestCase.test_unicode_tag_invalid lxml.tests.test_unicode.UnicodeTestCase-class.html#test_unicode_tag_invalid -lxml.tests.common_imports.HelperTestCase.assertFalse lxml.tests.common_imports.HelperTestCase-class.html#assertFalse -lxml.tests.test_xmlschema.ETreeXMLSchemaResolversTestCase lxml.tests.test_xmlschema.ETreeXMLSchemaResolversTestCase-class.html -lxml.tests.test_xmlschema.ETreeXMLSchemaResolversTestCase.resolver_schema_int2 lxml.tests.test_xmlschema.ETreeXMLSchemaResolversTestCase-class.html#resolver_schema_int2 -lxml.tests.test_xmlschema.ETreeXMLSchemaResolversTestCase.test_xmlschema_resolvers_noroot lxml.tests.test_xmlschema.ETreeXMLSchemaResolversTestCase-class.html#test_xmlschema_resolvers_noroot -lxml.tests.common_imports.HelperTestCase.tearDown lxml.tests.common_imports.HelperTestCase-class.html#tearDown -lxml.tests.test_xmlschema.ETreeXMLSchemaResolversTestCase.test_xmlschema_resolvers_root lxml.tests.test_xmlschema.ETreeXMLSchemaResolversTestCase-class.html#test_xmlschema_resolvers_root -lxml.tests.test_xmlschema.ETreeXMLSchemaResolversTestCase.test_xmlschema_nested_resolvers lxml.tests.test_xmlschema.ETreeXMLSchemaResolversTestCase-class.html#test_xmlschema_nested_resolvers -lxml.tests.common_imports.HelperTestCase._rootstring lxml.tests.common_imports.HelperTestCase-class.html#_rootstring -lxml.tests.common_imports.HelperTestCase.parse lxml.tests.common_imports.HelperTestCase-class.html#parse -unittest.case.TestCase.failureException exceptions.AssertionError-class.html -lxml.tests.test_xmlschema.ETreeXMLSchemaResolversTestCase.simple_resolver lxml.tests.test_xmlschema.ETreeXMLSchemaResolversTestCase.simple_resolver-class.html -lxml.tests.test_xmlschema.ETreeXMLSchemaResolversTestCase.test_xmlschema_resolvers lxml.tests.test_xmlschema.ETreeXMLSchemaResolversTestCase-class.html#test_xmlschema_resolvers -lxml.tests.test_xmlschema.ETreeXMLSchemaResolversTestCase.resolver_schema_ext lxml.tests.test_xmlschema.ETreeXMLSchemaResolversTestCase-class.html#resolver_schema_ext -lxml.tests.test_xmlschema.ETreeXMLSchemaResolversTestCase.resolver_schema_int lxml.tests.test_xmlschema.ETreeXMLSchemaResolversTestCase-class.html#resolver_schema_int -lxml.tests.common_imports.HelperTestCase.assertFalse lxml.tests.common_imports.HelperTestCase-class.html#assertFalse -lxml.tests.test_xmlschema.ETreeXMLSchemaResolversTestCase.simple_resolver lxml.tests.test_xmlschema.ETreeXMLSchemaResolversTestCase.simple_resolver-class.html -lxml.tests.test_xmlschema.ETreeXMLSchemaResolversTestCase.simple_resolver.resolve lxml.tests.test_xmlschema.ETreeXMLSchemaResolversTestCase.simple_resolver-class.html#resolve -lxml.etree.Resolver.resolve_filename lxml.etree.Resolver-class.html#resolve_filename -lxml.etree.Resolver.__new__ lxml.etree.Resolver-class.html#__new__ -lxml.etree.Resolver.resolve_string lxml.etree.Resolver-class.html#resolve_string -lxml.etree.Resolver.resolve_file lxml.etree.Resolver-class.html#resolve_file -lxml.etree.Resolver.resolve_empty lxml.etree.Resolver-class.html#resolve_empty -lxml.tests.test_xmlschema.ETreeXMLSchemaResolversTestCase.simple_resolver.__init__ lxml.tests.test_xmlschema.ETreeXMLSchemaResolversTestCase.simple_resolver-class.html#__init__ -lxml.tests.test_xmlschema.ETreeXMLSchemaTestCase lxml.tests.test_xmlschema.ETreeXMLSchemaTestCase-class.html -lxml.tests.test_xmlschema.ETreeXMLSchemaTestCase.test_xmlschema_import_file lxml.tests.test_xmlschema.ETreeXMLSchemaTestCase-class.html#test_xmlschema_import_file -lxml.tests.test_xmlschema.ETreeXMLSchemaTestCase.test_xmlschema_shortcut lxml.tests.test_xmlschema.ETreeXMLSchemaTestCase-class.html#test_xmlschema_shortcut -lxml.tests.test_xmlschema.ETreeXMLSchemaTestCase.test_xmlschema_default_attributes lxml.tests.test_xmlschema.ETreeXMLSchemaTestCase-class.html#test_xmlschema_default_attributes -lxml.tests.common_imports.HelperTestCase.tearDown lxml.tests.common_imports.HelperTestCase-class.html#tearDown -lxml.tests.test_xmlschema.ETreeXMLSchemaTestCase.test_xmlschema_parse lxml.tests.test_xmlschema.ETreeXMLSchemaTestCase-class.html#test_xmlschema_parse -lxml.tests.test_xmlschema.ETreeXMLSchemaTestCase.test_xmlschema_iterparse_fail lxml.tests.test_xmlschema.ETreeXMLSchemaTestCase-class.html#test_xmlschema_iterparse_fail -lxml.tests.test_xmlschema.ETreeXMLSchemaTestCase.test_xmlschema_parse_default_attributes lxml.tests.test_xmlschema.ETreeXMLSchemaTestCase-class.html#test_xmlschema_parse_default_attributes -lxml.tests.test_xmlschema.ETreeXMLSchemaTestCase.test_xmlschema_stringio lxml.tests.test_xmlschema.ETreeXMLSchemaTestCase-class.html#test_xmlschema_stringio -lxml.tests.test_xmlschema.ETreeXMLSchemaTestCase.test_xmlschema_invalid_schema2 lxml.tests.test_xmlschema.ETreeXMLSchemaTestCase-class.html#test_xmlschema_invalid_schema2 -lxml.tests.test_xmlschema.ETreeXMLSchemaTestCase.test_xmlschema_invalid_schema1 lxml.tests.test_xmlschema.ETreeXMLSchemaTestCase-class.html#test_xmlschema_invalid_schema1 -lxml.tests.common_imports.HelperTestCase._rootstring lxml.tests.common_imports.HelperTestCase-class.html#_rootstring -lxml.tests.test_xmlschema.ETreeXMLSchemaTestCase.test_xmlschema_elementtree_error lxml.tests.test_xmlschema.ETreeXMLSchemaTestCase-class.html#test_xmlschema_elementtree_error -lxml.tests.test_xmlschema.ETreeXMLSchemaTestCase.test_xmlschema_file lxml.tests.test_xmlschema.ETreeXMLSchemaTestCase-class.html#test_xmlschema_file -lxml.tests.test_xmlschema.ETreeXMLSchemaTestCase.test_xmlschema_parse_default_attributes_schema_config lxml.tests.test_xmlschema.ETreeXMLSchemaTestCase-class.html#test_xmlschema_parse_default_attributes_schema_config -lxml.tests.test_xmlschema.ETreeXMLSchemaTestCase.test_xmlschema lxml.tests.test_xmlschema.ETreeXMLSchemaTestCase-class.html#test_xmlschema -lxml.tests.common_imports.HelperTestCase.parse lxml.tests.common_imports.HelperTestCase-class.html#parse -unittest.case.TestCase.failureException exceptions.AssertionError-class.html -lxml.tests.test_xmlschema.ETreeXMLSchemaTestCase.test_xmlschema_iterparse lxml.tests.test_xmlschema.ETreeXMLSchemaTestCase-class.html#test_xmlschema_iterparse -lxml.tests.test_xmlschema.ETreeXMLSchemaTestCase.test_xmlschema_parse_fixed_attributes lxml.tests.test_xmlschema.ETreeXMLSchemaTestCase-class.html#test_xmlschema_parse_fixed_attributes -lxml.tests.common_imports.HelperTestCase.assertFalse lxml.tests.common_imports.HelperTestCase-class.html#assertFalse -lxml.tests.test_xpathevaluator.ETreeETXPathClassTestCase lxml.tests.test_xpathevaluator.ETreeETXPathClassTestCase-class.html -lxml.tests.common_imports.HelperTestCase.tearDown lxml.tests.common_imports.HelperTestCase-class.html#tearDown -lxml.tests.test_xpathevaluator.ETreeETXPathClassTestCase._test_xpath_compile_unicode lxml.tests.test_xpathevaluator.ETreeETXPathClassTestCase-class.html#_test_xpath_compile_unicode -lxml.tests.common_imports.HelperTestCase._rootstring lxml.tests.common_imports.HelperTestCase-class.html#_rootstring -lxml.tests.test_xpathevaluator.ETreeETXPathClassTestCase.test_xpath_compile_ns lxml.tests.test_xpathevaluator.ETreeETXPathClassTestCase-class.html#test_xpath_compile_ns -lxml.tests.common_imports.HelperTestCase.parse lxml.tests.common_imports.HelperTestCase-class.html#parse -unittest.case.TestCase.failureException exceptions.AssertionError-class.html -lxml.tests.common_imports.HelperTestCase.assertFalse lxml.tests.common_imports.HelperTestCase-class.html#assertFalse -lxml.tests.test_xpathevaluator.ETreeXPathClassTestCase lxml.tests.test_xpathevaluator.ETreeXPathClassTestCase-class.html -lxml.tests.test_xpathevaluator.ETreeXPathClassTestCase.test_xpath_compile_element lxml.tests.test_xpathevaluator.ETreeXPathClassTestCase-class.html#test_xpath_compile_element -lxml.tests.common_imports.HelperTestCase.tearDown lxml.tests.common_imports.HelperTestCase-class.html#tearDown -lxml.tests.test_xpathevaluator.ETreeXPathClassTestCase.test_xpath_compile_vars lxml.tests.test_xpathevaluator.ETreeXPathClassTestCase-class.html#test_xpath_compile_vars -lxml.tests.test_xpathevaluator.ETreeXPathClassTestCase.test_xpath_compile_doc lxml.tests.test_xpathevaluator.ETreeXPathClassTestCase-class.html#test_xpath_compile_doc -lxml.tests.common_imports.HelperTestCase._rootstring lxml.tests.common_imports.HelperTestCase-class.html#_rootstring -lxml.tests.common_imports.HelperTestCase.parse lxml.tests.common_imports.HelperTestCase-class.html#parse -unittest.case.TestCase.failureException exceptions.AssertionError-class.html -lxml.tests.test_xpathevaluator.ETreeXPathClassTestCase.test_xpath_elementtree_error lxml.tests.test_xpathevaluator.ETreeXPathClassTestCase-class.html#test_xpath_elementtree_error -lxml.tests.test_xpathevaluator.ETreeXPathClassTestCase.test_xpath_compile_error lxml.tests.test_xpathevaluator.ETreeXPathClassTestCase-class.html#test_xpath_compile_error -lxml.tests.common_imports.HelperTestCase.assertFalse lxml.tests.common_imports.HelperTestCase-class.html#assertFalse -lxml.tests.test_xpathevaluator.ETreeXPathExsltTestCase lxml.tests.test_xpathevaluator.ETreeXPathExsltTestCase-class.html -lxml.tests.test_xpathevaluator.ETreeXPathExsltTestCase.test_xpath_exslt_functions_strings lxml.tests.test_xpathevaluator.ETreeXPathExsltTestCase-class.html#test_xpath_exslt_functions_strings -lxml.tests.common_imports.HelperTestCase.tearDown lxml.tests.common_imports.HelperTestCase-class.html#tearDown -lxml.tests.test_xpathevaluator.ETreeXPathExsltTestCase.NSMAP lxml.tests.test_xpathevaluator.ETreeXPathExsltTestCase-class.html#NSMAP -lxml.tests.common_imports.HelperTestCase._rootstring lxml.tests.common_imports.HelperTestCase-class.html#_rootstring -lxml.tests.test_xpathevaluator.ETreeXPathExsltTestCase.test_xpath_exslt_functions_date lxml.tests.test_xpathevaluator.ETreeXPathExsltTestCase-class.html#test_xpath_exslt_functions_date -lxml.tests.common_imports.HelperTestCase.parse lxml.tests.common_imports.HelperTestCase-class.html#parse -unittest.case.TestCase.failureException exceptions.AssertionError-class.html -lxml.tests.common_imports.HelperTestCase.assertFalse lxml.tests.common_imports.HelperTestCase-class.html#assertFalse -lxml.tests.test_xpathevaluator.ETreeXPathTestCase lxml.tests.test_xpathevaluator.ETreeXPathTestCase-class.html -lxml.tests.test_xpathevaluator.ETreeXPathTestCase.test_xpath_list_comment lxml.tests.test_xpathevaluator.ETreeXPathTestCase-class.html#test_xpath_list_comment -lxml.tests.test_xpathevaluator.ETreeXPathTestCase.test_xpath_boolean lxml.tests.test_xpathevaluator.ETreeXPathTestCase-class.html#test_xpath_boolean -lxml.tests.test_xpathevaluator.ETreeXPathTestCase.test_xpath_prefix_error lxml.tests.test_xpathevaluator.ETreeXPathTestCase-class.html#test_xpath_prefix_error -lxml.tests.test_xpathevaluator.ETreeXPathTestCase.test_elementtree_getpath_partial lxml.tests.test_xpathevaluator.ETreeXPathTestCase-class.html#test_elementtree_getpath_partial -lxml.tests.test_xpathevaluator.ETreeXPathTestCase.test_xpath_evaluator_element lxml.tests.test_xpathevaluator.ETreeXPathTestCase-class.html#test_xpath_evaluator_element -lxml.tests.test_xpathevaluator.ETreeXPathTestCase.test_xpath_list_attribute_parent lxml.tests.test_xpathevaluator.ETreeXPathTestCase-class.html#test_xpath_list_attribute_parent -lxml.tests.test_xpathevaluator.ETreeXPathTestCase.test_elementtree_getpath lxml.tests.test_xpathevaluator.ETreeXPathTestCase-class.html#test_elementtree_getpath -lxml.tests.test_xpathevaluator.ETreeXPathTestCase.test_xpath_list_text_parent lxml.tests.test_xpathevaluator.ETreeXPathTestCase-class.html#test_xpath_list_text_parent -lxml.tests.test_xpathevaluator.ETreeXPathTestCase.test_xpath_error lxml.tests.test_xpathevaluator.ETreeXPathTestCase-class.html#test_xpath_error -lxml.tests.test_xpathevaluator.ETreeXPathTestCase.test_xpath_variables lxml.tests.test_xpathevaluator.ETreeXPathTestCase-class.html#test_xpath_variables -lxml.tests.test_xpathevaluator.ETreeXPathTestCase.test_xpath_eval_context_propagation lxml.tests.test_xpathevaluator.ETreeXPathTestCase-class.html#test_xpath_eval_context_propagation -lxml.tests.common_imports.HelperTestCase.tearDown lxml.tests.common_imports.HelperTestCase-class.html#tearDown -lxml.tests.test_xpathevaluator.ETreeXPathTestCase.test_xpath_list_elements lxml.tests.test_xpathevaluator.ETreeXPathTestCase-class.html#test_xpath_list_elements -lxml.tests.test_xpathevaluator.ETreeXPathTestCase.test_xpath_namespace lxml.tests.test_xpathevaluator.ETreeXPathTestCase-class.html#test_xpath_namespace -lxml.tests.test_xpathevaluator.ETreeXPathTestCase.test_xpath_evaluator_tree lxml.tests.test_xpathevaluator.ETreeXPathTestCase-class.html#test_xpath_evaluator_tree -lxml.tests.test_xpathevaluator.ETreeXPathTestCase.test_xpath_list_unicode_text_parent lxml.tests.test_xpathevaluator.ETreeXPathTestCase-class.html#test_xpath_list_unicode_text_parent -lxml.tests.test_xpathevaluator.ETreeXPathTestCase.test_xpath_extensions_mix lxml.tests.test_xpathevaluator.ETreeXPathTestCase-class.html#test_xpath_extensions_mix -lxml.tests.test_xpathevaluator.ETreeXPathTestCase.test_xpath_namespace_empty lxml.tests.test_xpathevaluator.ETreeXPathTestCase-class.html#test_xpath_namespace_empty -lxml.tests.test_xpathevaluator.ETreeXPathTestCase.test_xpath_eval_context_clear lxml.tests.test_xpathevaluator.ETreeXPathTestCase-class.html#test_xpath_eval_context_clear -lxml.tests.test_xpathevaluator.ETreeXPathTestCase.test_xpath_list_nothing lxml.tests.test_xpathevaluator.ETreeXPathTestCase-class.html#test_xpath_list_nothing -lxml.tests.test_xpathevaluator.ETreeXPathTestCase.test_xpath_class_error lxml.tests.test_xpathevaluator.ETreeXPathTestCase-class.html#test_xpath_class_error -lxml.tests.test_xpathevaluator.ETreeXPathTestCase.test_xpath_extensions_nodes lxml.tests.test_xpathevaluator.ETreeXPathTestCase-class.html#test_xpath_extensions_nodes -lxml.tests.test_xpathevaluator.ETreeXPathTestCase.test_xpath_extensions_nodes_append lxml.tests.test_xpathevaluator.ETreeXPathTestCase-class.html#test_xpath_extensions_nodes_append -lxml.tests.test_xpathevaluator.ETreeXPathTestCase.test_xpath_variables_nodeset lxml.tests.test_xpathevaluator.ETreeXPathTestCase-class.html#test_xpath_variables_nodeset -lxml.tests.test_xpathevaluator.ETreeXPathTestCase.test_xpath_extensions_nodes_append2 lxml.tests.test_xpathevaluator.ETreeXPathTestCase-class.html#test_xpath_extensions_nodes_append2 -lxml.tests.test_xpathevaluator.ETreeXPathTestCase.test_xpath_string lxml.tests.test_xpathevaluator.ETreeXPathTestCase-class.html#test_xpath_string -lxml.tests.test_xpathevaluator.ETreeXPathTestCase.test_xpath_extensions lxml.tests.test_xpathevaluator.ETreeXPathTestCase-class.html#test_xpath_extensions -lxml.tests.test_xpathevaluator.ETreeXPathTestCase.test_xpath_ns_none lxml.tests.test_xpathevaluator.ETreeXPathTestCase-class.html#test_xpath_ns_none -lxml.tests.test_xpathevaluator.ETreeXPathTestCase.test_xpath_list_text lxml.tests.test_xpathevaluator.ETreeXPathTestCase-class.html#test_xpath_list_text -lxml.tests.test_xpathevaluator.ETreeXPathTestCase.test_xpath_list_attribute_parent_no_smart_strings lxml.tests.test_xpathevaluator.ETreeXPathTestCase-class.html#test_xpath_list_attribute_parent_no_smart_strings -lxml.tests.test_xpathevaluator.ETreeXPathTestCase.test_xpath_document_root lxml.tests.test_xpathevaluator.ETreeXPathTestCase-class.html#test_xpath_document_root -lxml.tests.common_imports.HelperTestCase._rootstring lxml.tests.common_imports.HelperTestCase-class.html#_rootstring -lxml.tests.test_xpathevaluator.ETreeXPathTestCase.test_xpath_extensions_wrong_args lxml.tests.test_xpathevaluator.ETreeXPathTestCase-class.html#test_xpath_extensions_wrong_args -lxml.tests.test_xpathevaluator.ETreeXPathTestCase.test_xpath_list_attribute lxml.tests.test_xpathevaluator.ETreeXPathTestCase-class.html#test_xpath_list_attribute -lxml.tests.test_xpathevaluator.ETreeXPathTestCase.test_xpath_evaluator lxml.tests.test_xpathevaluator.ETreeXPathTestCase-class.html#test_xpath_evaluator -lxml.tests.common_imports.HelperTestCase.parse lxml.tests.common_imports.HelperTestCase-class.html#parse -unittest.case.TestCase.failureException exceptions.AssertionError-class.html -lxml.tests.test_xpathevaluator.ETreeXPathTestCase.test_xpath_text_from_other_document lxml.tests.test_xpathevaluator.ETreeXPathTestCase-class.html#test_xpath_text_from_other_document -lxml.tests.test_xpathevaluator.ETreeXPathTestCase.test_xpath_number lxml.tests.test_xpathevaluator.ETreeXPathTestCase-class.html#test_xpath_number -lxml.tests.test_xpathevaluator.ETreeXPathTestCase.test_xpath_ns_empty lxml.tests.test_xpathevaluator.ETreeXPathTestCase-class.html#test_xpath_ns_empty -lxml.tests.test_xpathevaluator.ETreeXPathTestCase.test_rel_xpath_list_elements lxml.tests.test_xpathevaluator.ETreeXPathTestCase-class.html#test_rel_xpath_list_elements -lxml.tests.test_xpathevaluator.ETreeXPathTestCase.test_xpath_list_text_parent_no_smart_strings lxml.tests.test_xpathevaluator.ETreeXPathTestCase-class.html#test_xpath_list_text_parent_no_smart_strings -lxml.tests.test_xpathevaluator.ETreeXPathTestCase.test_rel_xpath_boolean lxml.tests.test_xpathevaluator.ETreeXPathTestCase-class.html#test_rel_xpath_boolean -lxml.tests.test_xpathevaluator.ETreeXPathTestCase.test_xpath_evaluator_tree_absolute lxml.tests.test_xpathevaluator.ETreeXPathTestCase-class.html#test_xpath_evaluator_tree_absolute -lxml.tests.test_xpathevaluator.ETreeXPathTestCase.test_xpath_class_prefix_error lxml.tests.test_xpathevaluator.ETreeXPathTestCase-class.html#test_xpath_class_prefix_error -lxml.tests.test_xpathevaluator.ETreeXPathTestCase.test_xpath_context_node lxml.tests.test_xpathevaluator.ETreeXPathTestCase-class.html#test_xpath_context_node -lxml.tests.common_imports.HelperTestCase.assertFalse lxml.tests.common_imports.HelperTestCase-class.html#assertFalse -lxml.tests.test_xpathevaluator.ETreeXPathTestCase.test_xpath_extensions_error lxml.tests.test_xpathevaluator.ETreeXPathTestCase-class.html#test_xpath_extensions_error -lxml.tests.test_xpathevaluator.ETreeXPathTestCase.test_xpath_ns lxml.tests.test_xpathevaluator.ETreeXPathTestCase-class.html#test_xpath_ns -lxml.tests.test_xslt.ETreeEXSLTTestCase lxml.tests.test_xslt.ETreeEXSLTTestCase-class.html -lxml.tests.test_xslt.ETreeEXSLTTestCase.test_exslt_regexp_match lxml.tests.test_xslt.ETreeEXSLTTestCase-class.html#test_exslt_regexp_match -lxml.tests.test_xslt.ETreeEXSLTTestCase.test_exslt_regexp_match1 lxml.tests.test_xslt.ETreeEXSLTTestCase-class.html#test_exslt_regexp_match1 -lxml.tests.test_xslt.ETreeEXSLTTestCase.test_exslt_regexp_match2 lxml.tests.test_xslt.ETreeEXSLTTestCase-class.html#test_exslt_regexp_match2 -lxml.tests.test_xslt.ETreeEXSLTTestCase.test_exslt_str lxml.tests.test_xslt.ETreeEXSLTTestCase-class.html#test_exslt_str -lxml.tests.test_xslt.ETreeEXSLTTestCase._test_exslt_regexp_match4 lxml.tests.test_xslt.ETreeEXSLTTestCase-class.html#_test_exslt_regexp_match4 -lxml.tests.test_xslt.ETreeEXSLTTestCase._test_exslt_regexp_match3 lxml.tests.test_xslt.ETreeEXSLTTestCase-class.html#_test_exslt_regexp_match3 -lxml.tests.common_imports.HelperTestCase.tearDown lxml.tests.common_imports.HelperTestCase-class.html#tearDown -lxml.tests.test_xslt.ETreeEXSLTTestCase.test_exslt_regexp_replace lxml.tests.test_xslt.ETreeEXSLTTestCase-class.html#test_exslt_regexp_replace -lxml.tests.test_xslt.ETreeEXSLTTestCase.test_exslt_regexp_test lxml.tests.test_xslt.ETreeEXSLTTestCase-class.html#test_exslt_regexp_test -lxml.tests.test_xslt.ETreeEXSLTTestCase.test_exslt_math lxml.tests.test_xslt.ETreeEXSLTTestCase-class.html#test_exslt_math -lxml.tests.common_imports.HelperTestCase._rootstring lxml.tests.common_imports.HelperTestCase-class.html#_rootstring -lxml.tests.test_xslt.ETreeEXSLTTestCase.test_exslt_str_attribute_replace lxml.tests.test_xslt.ETreeEXSLTTestCase-class.html#test_exslt_str_attribute_replace -lxml.tests.test_xslt.ETreeEXSLTTestCase.test_exslt_regexp_match_groups lxml.tests.test_xslt.ETreeEXSLTTestCase-class.html#test_exslt_regexp_match_groups -lxml.tests.common_imports.HelperTestCase.parse lxml.tests.common_imports.HelperTestCase-class.html#parse -unittest.case.TestCase.failureException exceptions.AssertionError-class.html -lxml.tests.common_imports.HelperTestCase.assertFalse lxml.tests.common_imports.HelperTestCase-class.html#assertFalse -lxml.tests.test_xslt.ETreeXSLTExtElementTestCase lxml.tests.test_xslt.ETreeXSLTExtElementTestCase-class.html -lxml.tests.test_xslt.ETreeXSLTExtElementTestCase._test_extension_element_attribute_context lxml.tests.test_xslt.ETreeXSLTExtElementTestCase-class.html#_test_extension_element_attribute_context -lxml.tests.test_xslt.ETreeXSLTExtElementTestCase.test_extension_element_apply_templates_target_node lxml.tests.test_xslt.ETreeXSLTExtElementTestCase-class.html#test_extension_element_apply_templates_target_node -lxml.tests.test_xslt.ETreeXSLTExtElementTestCase.test_extension_element_apply_templates lxml.tests.test_xslt.ETreeXSLTExtElementTestCase-class.html#test_extension_element_apply_templates -lxml.tests.common_imports.HelperTestCase.tearDown lxml.tests.common_imports.HelperTestCase-class.html#tearDown -lxml.tests.test_xslt.ETreeXSLTExtElementTestCase.test_extension_element_content lxml.tests.test_xslt.ETreeXSLTExtElementTestCase-class.html#test_extension_element_content -lxml.tests.test_xslt.ETreeXSLTExtElementTestCase.test_extension_element_process_children_to_append_only lxml.tests.test_xslt.ETreeXSLTExtElementTestCase-class.html#test_extension_element_process_children_to_append_only -lxml.tests.test_xslt.ETreeXSLTExtElementTestCase.test_extension_element_process_children lxml.tests.test_xslt.ETreeXSLTExtElementTestCase-class.html#test_extension_element_process_children -lxml.tests.test_xslt.ETreeXSLTExtElementTestCase.test_extension_element_process_children_to_read_only_raise lxml.tests.test_xslt.ETreeXSLTExtElementTestCase-class.html#test_extension_element_process_children_to_read_only_raise -lxml.tests.test_xslt.ETreeXSLTExtElementTestCase.test_extension_element_comment_pi_context lxml.tests.test_xslt.ETreeXSLTExtElementTestCase-class.html#test_extension_element_comment_pi_context -lxml.tests.common_imports.HelperTestCase._rootstring lxml.tests.common_imports.HelperTestCase-class.html#_rootstring -lxml.tests.test_xslt.ETreeXSLTExtElementTestCase.test_extension_element_apply_templates_target_node_doc lxml.tests.test_xslt.ETreeXSLTExtElementTestCase-class.html#test_extension_element_apply_templates_target_node_doc -lxml.tests.test_xslt.ETreeXSLTExtElementTestCase.test_extension_element_raise lxml.tests.test_xslt.ETreeXSLTExtElementTestCase-class.html#test_extension_element_raise -lxml.tests.test_xslt.ETreeXSLTExtElementTestCase.test_extension_element_process_children_with_subextension_element lxml.tests.test_xslt.ETreeXSLTExtElementTestCase-class.html#test_extension_element_process_children_with_subextension_element -lxml.tests.common_imports.HelperTestCase.parse lxml.tests.common_imports.HelperTestCase-class.html#parse -unittest.case.TestCase.failureException exceptions.AssertionError-class.html -lxml.tests.test_xslt.ETreeXSLTExtElementTestCase.test_extension_element_doc_context lxml.tests.test_xslt.ETreeXSLTExtElementTestCase-class.html#test_extension_element_doc_context -lxml.tests.test_xslt.ETreeXSLTExtElementTestCase.test_extension_element lxml.tests.test_xslt.ETreeXSLTExtElementTestCase-class.html#test_extension_element -lxml.tests.common_imports.HelperTestCase.assertFalse lxml.tests.common_imports.HelperTestCase-class.html#assertFalse -lxml.tests.test_xslt.ETreeXSLTExtFuncTestCase lxml.tests.test_xslt.ETreeXSLTExtFuncTestCase-class.html -lxml.tests.test_xslt.ETreeXSLTExtFuncTestCase.test_variable_result_tree_fragment lxml.tests.test_xslt.ETreeXSLTExtFuncTestCase-class.html#test_variable_result_tree_fragment -lxml.tests.common_imports.HelperTestCase.tearDown lxml.tests.common_imports.HelperTestCase-class.html#tearDown -lxml.tests.test_xslt.ETreeXSLTExtFuncTestCase.test_extensions2 lxml.tests.test_xslt.ETreeXSLTExtFuncTestCase-class.html#test_extensions2 -lxml.tests.test_xslt.ETreeXSLTExtFuncTestCase.test_extensions1 lxml.tests.test_xslt.ETreeXSLTExtFuncTestCase-class.html#test_extensions1 -lxml.tests.common_imports.HelperTestCase._rootstring lxml.tests.common_imports.HelperTestCase-class.html#_rootstring -lxml.tests.common_imports.HelperTestCase.parse lxml.tests.common_imports.HelperTestCase-class.html#parse -unittest.case.TestCase.failureException exceptions.AssertionError-class.html -lxml.tests.common_imports.HelperTestCase.assertFalse lxml.tests.common_imports.HelperTestCase-class.html#assertFalse -lxml.tests.test_xslt.ETreeXSLTTestCase lxml.tests.test_xslt.ETreeXSLTTestCase-class.html -lxml.tests.test_xslt.ETreeXSLTTestCase.test_xslt_parameter_xpath lxml.tests.test_xslt.ETreeXSLTTestCase-class.html#test_xslt_parameter_xpath -lxml.tests.test_xslt.ETreeXSLTTestCase.test_xslt_default_parameters lxml.tests.test_xslt.ETreeXSLTTestCase-class.html#test_xslt_default_parameters -lxml.tests.test_xslt.ETreeXSLTTestCase.test_xslt_repeat_transform lxml.tests.test_xslt.ETreeXSLTTestCase-class.html#test_xslt_repeat_transform -lxml.tests.test_xslt.ETreeXSLTTestCase.test_xslt_pi_set_replace lxml.tests.test_xslt.ETreeXSLTTestCase-class.html#test_xslt_pi_set_replace -lxml.tests.test_xslt.ETreeXSLTTestCase.test_xslt_pi_get_all lxml.tests.test_xslt.ETreeXSLTTestCase-class.html#test_xslt_pi_get_all -lxml.tests.test_xslt.ETreeXSLTTestCase.test_xslt_html_output lxml.tests.test_xslt.ETreeXSLTTestCase-class.html#test_xslt_html_output -lxml.tests.test_xslt.ETreeXSLTTestCase.test_xslt_parameter_invalid lxml.tests.test_xslt.ETreeXSLTTestCase-class.html#test_xslt_parameter_invalid -lxml.tests.test_xslt.ETreeXSLTTestCase.test_xslt_shortcut lxml.tests.test_xslt.ETreeXSLTTestCase-class.html#test_xslt_shortcut -lxml.tests.test_xslt.ETreeXSLTTestCase.test_xslt_document_parse_allow lxml.tests.test_xslt.ETreeXSLTTestCase-class.html#test_xslt_document_parse_allow -lxml.tests.test_xslt.ETreeXSLTTestCase.test_xslt_message lxml.tests.test_xslt.ETreeXSLTTestCase-class.html#test_xslt_message -lxml.tests.test_xslt.ETreeXSLTTestCase.test_xslt_invalid_stylesheet lxml.tests.test_xslt.ETreeXSLTTestCase-class.html#test_xslt_invalid_stylesheet -lxml.tests.test_xslt.ETreeXSLTTestCase.test_xslt_unicode lxml.tests.test_xslt.ETreeXSLTTestCase-class.html#test_xslt_unicode -lxml.tests.test_xslt.ETreeXSLTTestCase.test_xslt_message_terminate lxml.tests.test_xslt.ETreeXSLTTestCase-class.html#test_xslt_message_terminate -lxml.tests.test_xslt.ETreeXSLTTestCase.test_xslt_input lxml.tests.test_xslt.ETreeXSLTTestCase-class.html#test_xslt_input -lxml.tests.test_xslt.ETreeXSLTTestCase.test_xslt_resolver_url_building lxml.tests.test_xslt.ETreeXSLTTestCase-class.html#test_xslt_resolver_url_building -lxml.tests.test_xslt.ETreeXSLTTestCase.test_xslt_broken lxml.tests.test_xslt.ETreeXSLTTestCase-class.html#test_xslt_broken -lxml.tests.test_xslt.ETreeXSLTTestCase.test_xslt_copy lxml.tests.test_xslt.ETreeXSLTTestCase-class.html#test_xslt_copy -lxml.tests.common_imports.HelperTestCase.tearDown lxml.tests.common_imports.HelperTestCase-class.html#tearDown -lxml.tests.test_xslt.ETreeXSLTTestCase.test_xslt_input_none lxml.tests.test_xslt.ETreeXSLTTestCase-class.html#test_xslt_input_none -lxml.tests.test_xslt.ETreeXSLTTestCase.test_xslt_pi_get lxml.tests.test_xslt.ETreeXSLTTestCase-class.html#test_xslt_pi_get -lxml.tests.test_xslt.ETreeXSLTTestCase.test_xslt_parameter_xpath_object lxml.tests.test_xslt.ETreeXSLTTestCase-class.html#test_xslt_parameter_xpath_object -lxml.tests.test_xslt.ETreeXSLTTestCase.test_xslt_pi_get_unknown lxml.tests.test_xslt.ETreeXSLTTestCase-class.html#test_xslt_pi_get_unknown -lxml.tests.test_xslt.ETreeXSLTTestCase.test_xslt_multiple_transforms lxml.tests.test_xslt.ETreeXSLTTestCase-class.html#test_xslt_multiple_transforms -lxml.tests.test_xslt.ETreeXSLTTestCase.test_xslt lxml.tests.test_xslt.ETreeXSLTTestCase-class.html#test_xslt -lxml.tests.test_xslt.ETreeXSLTTestCase.test_xslt_document_error lxml.tests.test_xslt.ETreeXSLTTestCase-class.html#test_xslt_document_error -lxml.tests.test_xslt.ETreeXSLTTestCase.test_xslt_empty lxml.tests.test_xslt.ETreeXSLTTestCase-class.html#test_xslt_empty -lxml.tests.test_xslt.ETreeXSLTTestCase.test_xslt_parameter_missing lxml.tests.test_xslt.ETreeXSLTTestCase-class.html#test_xslt_parameter_missing -lxml.tests.test_xslt.ETreeXSLTTestCase.test_xslt_encoding_override lxml.tests.test_xslt.ETreeXSLTTestCase-class.html#test_xslt_encoding_override -lxml.tests.test_xslt.ETreeXSLTTestCase.test_xslt_include_from_filelike lxml.tests.test_xslt.ETreeXSLTTestCase-class.html#test_xslt_include_from_filelike -lxml.tests.test_xslt.ETreeXSLTTestCase.test_xslt_elementtree_error lxml.tests.test_xslt.ETreeXSLTTestCase-class.html#test_xslt_elementtree_error -lxml.tests.test_xslt.ETreeXSLTTestCase.test_multiple_elementrees lxml.tests.test_xslt.ETreeXSLTTestCase-class.html#test_multiple_elementrees -lxml.tests.test_xslt.ETreeXSLTTestCase.test_xslt_input_partial_doc lxml.tests.test_xslt.ETreeXSLTTestCase-class.html#test_xslt_input_partial_doc -lxml.tests.common_imports.HelperTestCase._rootstring lxml.tests.common_imports.HelperTestCase-class.html#_rootstring -lxml.tests.test_xslt.ETreeXSLTTestCase.test_xslt_include lxml.tests.test_xslt.ETreeXSLTTestCase-class.html#test_xslt_include -lxml.tests.test_xslt.ETreeXSLTTestCase.test_xslt_pi_embedded_id lxml.tests.test_xslt.ETreeXSLTTestCase-class.html#test_xslt_pi_embedded_id -lxml.tests.test_xslt.ETreeXSLTTestCase.test_xslt_document_parse_deny lxml.tests.test_xslt.ETreeXSLTTestCase-class.html#test_xslt_document_parse_deny -lxml.tests.test_xslt.ETreeXSLTTestCase.test_xslt_document_XML_resolver lxml.tests.test_xslt.ETreeXSLTTestCase-class.html#test_xslt_document_XML_resolver -lxml.tests.test_xslt.ETreeXSLTTestCase.test_xslt_move_result lxml.tests.test_xslt.ETreeXSLTTestCase-class.html#test_xslt_move_result -lxml.tests.test_xslt.ETreeXSLTTestCase.test_xslt_string_parameters lxml.tests.test_xslt.ETreeXSLTTestCase-class.html#test_xslt_string_parameters -lxml.tests.common_imports.HelperTestCase.parse lxml.tests.common_imports.HelperTestCase-class.html#parse -lxml.tests.test_xslt.ETreeXSLTTestCase.test_xslt_document_parse_deny_all lxml.tests.test_xslt.ETreeXSLTTestCase-class.html#test_xslt_document_parse_deny_all -unittest.case.TestCase.failureException exceptions.AssertionError-class.html -lxml.tests.test_xslt.ETreeXSLTTestCase.test_xslt_document_elementtree lxml.tests.test_xslt.ETreeXSLTTestCase-class.html#test_xslt_document_elementtree -lxml.tests.test_xslt.ETreeXSLTTestCase.test_xslt_multiple_parameters lxml.tests.test_xslt.ETreeXSLTTestCase-class.html#test_xslt_multiple_parameters -lxml.tests.test_xslt.ETreeXSLTTestCase.test_xslt_parameters lxml.tests.test_xslt.ETreeXSLTTestCase-class.html#test_xslt_parameters -lxml.tests.test_xslt.ETreeXSLTTestCase.test_xslt_document_XML lxml.tests.test_xslt.ETreeXSLTTestCase-class.html#test_xslt_document_XML -lxml.tests.test_xslt.ETreeXSLTTestCase.test_xslt_pi_embedded_xmlid lxml.tests.test_xslt.ETreeXSLTTestCase-class.html#test_xslt_pi_embedded_xmlid -lxml.tests.test_xslt.ETreeXSLTTestCase.test_xslt_pi lxml.tests.test_xslt.ETreeXSLTTestCase-class.html#test_xslt_pi -lxml.tests.test_xslt.ETreeXSLTTestCase.test_xslt_pi_set_new lxml.tests.test_xslt.ETreeXSLTTestCase-class.html#test_xslt_pi_set_new -lxml.tests.test_xslt.ETreeXSLTTestCase.test_xslt_document_parse lxml.tests.test_xslt.ETreeXSLTTestCase-class.html#test_xslt_document_parse -lxml.tests.test_xslt.ETreeXSLTTestCase.test_xslt_utf8 lxml.tests.test_xslt.ETreeXSLTTestCase-class.html#test_xslt_utf8 -lxml.tests.test_xslt.ETreeXSLTTestCase.test_xslt_encoding lxml.tests.test_xslt.ETreeXSLTTestCase-class.html#test_xslt_encoding -lxml.tests.common_imports.HelperTestCase.assertFalse lxml.tests.common_imports.HelperTestCase-class.html#assertFalse -lxml.tests.test_xslt.ETreeXSLTTestCase.test_xslt_pi_get_all_reversed lxml.tests.test_xslt.ETreeXSLTTestCase-class.html#test_xslt_pi_get_all_reversed -lxml.tests.test_xslt.Py3XSLTTestCase lxml.tests.test_xslt.Py3XSLTTestCase-class.html -lxml.tests.test_xslt.Py3XSLTTestCase.test_xslt_result_bytes lxml.tests.test_xslt.Py3XSLTTestCase-class.html#test_xslt_result_bytes -lxml.tests.common_imports.HelperTestCase.tearDown lxml.tests.common_imports.HelperTestCase-class.html#tearDown -lxml.tests.test_xslt.Py3XSLTTestCase.pytestmark lxml.tests.test_xslt.Py3XSLTTestCase-class.html#pytestmark -lxml.tests.test_xslt.Py3XSLTTestCase.test_xslt_result_bytearray lxml.tests.test_xslt.Py3XSLTTestCase-class.html#test_xslt_result_bytearray -lxml.tests.test_xslt.Py3XSLTTestCase.test_xslt_result_memoryview lxml.tests.test_xslt.Py3XSLTTestCase-class.html#test_xslt_result_memoryview -lxml.tests.common_imports.HelperTestCase._rootstring lxml.tests.common_imports.HelperTestCase-class.html#_rootstring -lxml.tests.common_imports.HelperTestCase.parse lxml.tests.common_imports.HelperTestCase-class.html#parse -unittest.case.TestCase.failureException exceptions.AssertionError-class.html -lxml.tests.common_imports.HelperTestCase.assertFalse lxml.tests.common_imports.HelperTestCase-class.html#assertFalse -str str-class.html -str.upper str-class.html#upper -str.__getslice__ str-class.html#__getslice__ -str.__ne__ str-class.html#__ne__ -str.lstrip str-class.html#lstrip -str.__str__ str-class.html#__str__ -str.__getattribute__ str-class.html#__getattribute__ -str.rpartition str-class.html#rpartition -str.replace str-class.html#replace -str.isdigit str-class.html#isdigit -str.endswith str-class.html#endswith -str.splitlines str-class.html#splitlines -str.rfind str-class.html#rfind -str.strip str-class.html#strip -str.__rmul__ str-class.html#__rmul__ -str.__lt__ str-class.html#__lt__ -str.__getnewargs__ str-class.html#__getnewargs__ -str.__rmod__ str-class.html#__rmod__ -str.index str-class.html#index -str.ljust str-class.html#ljust -str.__new__ str-class.html#__new__ -str.isalnum str-class.html#isalnum -str.__contains__ str-class.html#__contains__ -str.rindex str-class.html#rindex -str.rsplit str-class.html#rsplit -str.__format__ str-class.html#__format__ -str.find str-class.html#find -str.decode str-class.html#decode -str.isalpha str-class.html#isalpha -str.__eq__ str-class.html#__eq__ -str.split str-class.html#split -str.rstrip str-class.html#rstrip -str.encode str-class.html#encode -str._formatter_parser str-class.html#_formatter_parser -str.translate str-class.html#translate -str.isspace str-class.html#isspace -str.__len__ str-class.html#__len__ -str.__repr__ str-class.html#__repr__ -str.startswith str-class.html#startswith -str.__getitem__ str-class.html#__getitem__ -str.format str-class.html#format -str.rjust str-class.html#rjust -str.swapcase str-class.html#swapcase -str.__hash__ str-class.html#__hash__ -str.zfill str-class.html#zfill -str.__add__ str-class.html#__add__ -str.__gt__ str-class.html#__gt__ -str.capitalize str-class.html#capitalize -str.__sizeof__ str-class.html#__sizeof__ -str.count str-class.html#count -str.lower str-class.html#lower -str.join str-class.html#join -str.center str-class.html#center -str.__mod__ str-class.html#__mod__ -str.partition str-class.html#partition -str.expandtabs str-class.html#expandtabs -str.istitle str-class.html#istitle -str.__le__ str-class.html#__le__ -str.__mul__ str-class.html#__mul__ -str._formatter_field_name_split str-class.html#_formatter_field_name_split -str.islower str-class.html#islower -str.title str-class.html#title -str.isupper str-class.html#isupper -str.__ge__ str-class.html#__ge__ -xml.etree.ElementTree.Element xml.etree.ElementTree.Element-class.html -xml.etree.ElementTree.Element.set xml.etree.ElementTree.Element-class.html#set -xml.etree.ElementTree.Element.text xml.etree.ElementTree.Element-class.html#text -xml.etree.ElementTree.Element.iterfind xml.etree.ElementTree.Element-class.html#iterfind -xml.etree.ElementTree.Element.tag xml.etree.ElementTree.Element-class.html#tag -xml.etree.ElementTree.Element.iter xml.etree.ElementTree.Element-class.html#iter -xml.etree.ElementTree.Element.findall xml.etree.ElementTree.Element-class.html#findall -xml.etree.ElementTree.Element.append xml.etree.ElementTree.Element-class.html#append -xml.etree.ElementTree.Element.__getitem__ xml.etree.ElementTree.Element-class.html#__getitem__ -xml.etree.ElementTree.Element.itertext xml.etree.ElementTree.Element-class.html#itertext -xml.etree.ElementTree.Element.findtext xml.etree.ElementTree.Element-class.html#findtext -xml.etree.ElementTree.Element.tail xml.etree.ElementTree.Element-class.html#tail -xml.etree.ElementTree.Element.find xml.etree.ElementTree.Element-class.html#find -xml.etree.ElementTree.Element.getchildren xml.etree.ElementTree.Element-class.html#getchildren -xml.etree.ElementTree.Element.__init__ xml.etree.ElementTree.Element-class.html#__init__ -xml.etree.ElementTree.Element.__delitem__ xml.etree.ElementTree.Element-class.html#__delitem__ -xml.etree.ElementTree.Element.__len__ xml.etree.ElementTree.Element-class.html#__len__ -xml.etree.ElementTree.Element.extend xml.etree.ElementTree.Element-class.html#extend -xml.etree.ElementTree.Element.get xml.etree.ElementTree.Element-class.html#get -xml.etree.ElementTree.Element.keys xml.etree.ElementTree.Element-class.html#keys -xml.etree.ElementTree.Element.makeelement xml.etree.ElementTree.Element-class.html#makeelement -xml.etree.ElementTree.Element.__setitem__ xml.etree.ElementTree.Element-class.html#__setitem__ -xml.etree.ElementTree.Element.copy xml.etree.ElementTree.Element-class.html#copy -xml.etree.ElementTree.Element.insert xml.etree.ElementTree.Element-class.html#insert -xml.etree.ElementTree.Element.__nonzero__ xml.etree.ElementTree.Element-class.html#__nonzero__ -xml.etree.ElementTree.Element.items xml.etree.ElementTree.Element-class.html#items -xml.etree.ElementTree.Element.clear xml.etree.ElementTree.Element-class.html#clear -xml.etree.ElementTree.Element.remove xml.etree.ElementTree.Element-class.html#remove -xml.etree.ElementTree.Element.__repr__ xml.etree.ElementTree.Element-class.html#__repr__ -xml.etree.ElementTree.Element.getiterator xml.etree.ElementTree.Element-class.html#getiterator -xml.etree.ElementTree.Element.attrib xml.etree.ElementTree.Element-class.html#attrib -xml.etree.ElementTree.ElementTree xml.etree.ElementTree.ElementTree-class.html -xml.etree.ElementTree.ElementTree.getroot xml.etree.ElementTree.ElementTree-class.html#getroot -xml.etree.ElementTree.ElementTree.iterfind xml.etree.ElementTree.ElementTree-class.html#iterfind -xml.etree.ElementTree.ElementTree.parse xml.etree.ElementTree.ElementTree-class.html#parse -xml.etree.ElementTree.ElementTree.findall xml.etree.ElementTree.ElementTree-class.html#findall -xml.etree.ElementTree.ElementTree.__init__ xml.etree.ElementTree.ElementTree-class.html#__init__ -xml.etree.ElementTree.ElementTree.findtext xml.etree.ElementTree.ElementTree-class.html#findtext -xml.etree.ElementTree.ElementTree.find xml.etree.ElementTree.ElementTree-class.html#find -xml.etree.ElementTree.ElementTree.write xml.etree.ElementTree.ElementTree-class.html#write -xml.etree.ElementTree.ElementTree._setroot xml.etree.ElementTree.ElementTree-class.html#_setroot -xml.etree.ElementTree.ElementTree.write_c14n xml.etree.ElementTree.ElementTree-class.html#write_c14n -xml.etree.ElementTree.ElementTree.getiterator xml.etree.ElementTree.ElementTree-class.html#getiterator -xml.etree.ElementTree.ElementTree.iter xml.etree.ElementTree.ElementTree-class.html#iter -xml.etree.ElementTree.ParseError xml.etree.ElementTree.ParseError-class.html -xml.etree.ElementTree.QName xml.etree.ElementTree.QName-class.html -xml.etree.ElementTree.QName.__str__ xml.etree.ElementTree.QName-class.html#__str__ -xml.etree.ElementTree.QName.__cmp__ xml.etree.ElementTree.QName-class.html#__cmp__ -xml.etree.ElementTree.QName.__hash__ xml.etree.ElementTree.QName-class.html#__hash__ -xml.etree.ElementTree.QName.__init__ xml.etree.ElementTree.QName-class.html#__init__ -xml.etree.ElementTree.TreeBuilder xml.etree.ElementTree.TreeBuilder-class.html -xml.etree.ElementTree.TreeBuilder.end xml.etree.ElementTree.TreeBuilder-class.html#end -xml.etree.ElementTree.TreeBuilder.start xml.etree.ElementTree.TreeBuilder-class.html#start -xml.etree.ElementTree.TreeBuilder._flush xml.etree.ElementTree.TreeBuilder-class.html#_flush -xml.etree.ElementTree.TreeBuilder.close xml.etree.ElementTree.TreeBuilder-class.html#close -xml.etree.ElementTree.TreeBuilder.data xml.etree.ElementTree.TreeBuilder-class.html#data -xml.etree.ElementTree.TreeBuilder.__init__ xml.etree.ElementTree.TreeBuilder-class.html#__init__ -xml.etree.ElementTree.XMLParser xml.etree.ElementTree.XMLParser-class.html -xml.etree.ElementTree.XMLParser.feed xml.etree.ElementTree.XMLParser-class.html#feed -xml.etree.ElementTree.XMLParser.__doctype xml.etree.ElementTree.XMLParser-class.html#__doctype -xml.etree.ElementTree.XMLParser._fixtext xml.etree.ElementTree.XMLParser-class.html#_fixtext -xml.etree.ElementTree.XMLParser._fixname xml.etree.ElementTree.XMLParser-class.html#_fixname -xml.etree.ElementTree.XMLParser.close xml.etree.ElementTree.XMLParser-class.html#close -xml.etree.ElementTree.XMLParser._start xml.etree.ElementTree.XMLParser-class.html#_start -xml.etree.ElementTree.XMLParser.__init__ xml.etree.ElementTree.XMLParser-class.html#__init__ -xml.etree.ElementTree.XMLParser._pi xml.etree.ElementTree.XMLParser-class.html#_pi -xml.etree.ElementTree.XMLParser._end xml.etree.ElementTree.XMLParser-class.html#_end -xml.etree.ElementTree.XMLParser._default xml.etree.ElementTree.XMLParser-class.html#_default -xml.etree.ElementTree.XMLParser._start_list xml.etree.ElementTree.XMLParser-class.html#_start_list -xml.etree.ElementTree.XMLParser._data xml.etree.ElementTree.XMLParser-class.html#_data -xml.etree.ElementTree.XMLParser._raiseerror xml.etree.ElementTree.XMLParser-class.html#_raiseerror -xml.etree.ElementTree.XMLParser._comment xml.etree.ElementTree.XMLParser-class.html#_comment -xml.etree.ElementTree.XMLParser.doctype xml.etree.ElementTree.XMLParser-class.html#doctype -xml.etree.ElementTree._IterParseIterator xml.etree.ElementTree._IterParseIterator-class.html -xml.etree.ElementTree._IterParseIterator.next xml.etree.ElementTree._IterParseIterator-class.html#next -xml.etree.ElementTree._IterParseIterator.__iter__ xml.etree.ElementTree._IterParseIterator-class.html#__iter__ -xml.etree.ElementTree._IterParseIterator.__init__ xml.etree.ElementTree._IterParseIterator-class.html#__init__ -xml.etree.ElementTree._SimpleElementPath xml.etree.ElementTree._SimpleElementPath-class.html -xml.etree.ElementTree._SimpleElementPath.iterfind xml.etree.ElementTree._SimpleElementPath-class.html#iterfind -xml.etree.ElementTree._SimpleElementPath.findtext xml.etree.ElementTree._SimpleElementPath-class.html#findtext -xml.etree.ElementTree._SimpleElementPath.find xml.etree.ElementTree._SimpleElementPath-class.html#find -xml.etree.ElementTree._SimpleElementPath.findall xml.etree.ElementTree._SimpleElementPath-class.html#findall diff --git a/doc/html/api/class-tree.html b/doc/html/api/class-tree.html deleted file mode 100644 index d631eba..0000000 --- a/doc/html/api/class-tree.html +++ /dev/null @@ -1,1100 +0,0 @@ - - - - - Class Hierarchy - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  - - - - -
[hide private]
[frames] | no frames]
-
-
- [ Module Hierarchy - | Class Hierarchy ] -

-

Class Hierarchy

- - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/deprecated-index.html b/doc/html/api/deprecated-index.html deleted file mode 100644 index a58fc5a..0000000 --- a/doc/html/api/deprecated-index.html +++ /dev/null @@ -1,167 +0,0 @@ - - - - - Deprecation List - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  - - - - -
[hide private]
[frames] | no frames]
-
-
[ - Identifiers -| Deprecations -]

-

Deprecation List

-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/epydoc.css b/doc/html/api/epydoc.css deleted file mode 100644 index 86d4170..0000000 --- a/doc/html/api/epydoc.css +++ /dev/null @@ -1,322 +0,0 @@ - - -/* Epydoc CSS Stylesheet - * - * This stylesheet can be used to customize the appearance of epydoc's - * HTML output. - * - */ - -/* Default Colors & Styles - * - Set the default foreground & background color with 'body'; and - * link colors with 'a:link' and 'a:visited'. - * - Use bold for decision list terms. - * - The heading styles defined here are used for headings *within* - * docstring descriptions. All headings used by epydoc itself use - * either class='epydoc' or class='toc' (CSS styles for both - * defined below). - */ -body { background: #ffffff; color: #000000; } -p { margin-top: 0.5em; margin-bottom: 0.5em; } -a:link { color: #0000ff; } -a:visited { color: #204080; } -dt { font-weight: bold; } -h1 { font-size: +140%; font-style: italic; - font-weight: bold; } -h2 { font-size: +125%; font-style: italic; - font-weight: bold; } -h3 { font-size: +110%; font-style: italic; - font-weight: normal; } -code { font-size: 100%; } -/* N.B.: class, not pseudoclass */ -a.link { font-family: monospace; } - -/* Page Header & Footer - * - The standard page header consists of a navigation bar (with - * pointers to standard pages such as 'home' and 'trees'); a - * breadcrumbs list, which can be used to navigate to containing - * classes or modules; options links, to show/hide private - * variables and to show/hide frames; and a page title (using - *

). The page title may be followed by a link to the - * corresponding source code (using 'span.codelink'). - * - The footer consists of a navigation bar, a timestamp, and a - * pointer to epydoc's homepage. - */ -h1.epydoc { margin: 0; font-size: +140%; font-weight: bold; } -h2.epydoc { font-size: +130%; font-weight: bold; } -h3.epydoc { font-size: +115%; font-weight: bold; - margin-top: 0.2em; } -td h3.epydoc { font-size: +115%; font-weight: bold; - margin-bottom: 0; } -table.navbar { background: #a0c0ff; color: #000000; - border: 2px groove #c0d0d0; } -table.navbar table { color: #000000; } -th.navbar-select { background: #70b0ff; - color: #000000; } -table.navbar a { text-decoration: none; } -table.navbar a:link { color: #0000ff; } -table.navbar a:visited { color: #204080; } -span.breadcrumbs { font-size: 85%; font-weight: bold; } -span.options { font-size: 70%; } -span.codelink { font-size: 85%; } -td.footer { font-size: 85%; } - -/* Table Headers - * - Each summary table and details section begins with a 'header' - * row. This row contains a section title (marked by - * 'span.table-header') as well as a show/hide private link - * (marked by 'span.options', defined above). - * - Summary tables that contain user-defined groups mark those - * groups using 'group header' rows. - */ -td.table-header { background: #70b0ff; color: #000000; - border: 1px solid #608090; } -td.table-header table { color: #000000; } -td.table-header table a:link { color: #0000ff; } -td.table-header table a:visited { color: #204080; } -span.table-header { font-size: 120%; font-weight: bold; } -th.group-header { background: #c0e0f8; color: #000000; - text-align: left; font-style: italic; - font-size: 115%; - border: 1px solid #608090; } - -/* Summary Tables (functions, variables, etc) - * - Each object is described by a single row of the table with - * two cells. The left cell gives the object's type, and is - * marked with 'code.summary-type'. The right cell gives the - * object's name and a summary description. - * - CSS styles for the table's header and group headers are - * defined above, under 'Table Headers' - */ -table.summary { border-collapse: collapse; - background: #e8f0f8; color: #000000; - border: 1px solid #608090; - margin-bottom: 0.5em; } -td.summary { border: 1px solid #608090; } -code.summary-type { font-size: 85%; } -table.summary a:link { color: #0000ff; } -table.summary a:visited { color: #204080; } - - -/* Details Tables (functions, variables, etc) - * - Each object is described in its own div. - * - A single-row summary table w/ table-header is used as - * a header for each details section (CSS style for table-header - * is defined above, under 'Table Headers'). - */ -table.details { border-collapse: collapse; - background: #e8f0f8; color: #000000; - border: 1px solid #608090; - margin: .2em 0 0 0; } -table.details table { color: #000000; } -table.details a:link { color: #0000ff; } -table.details a:visited { color: #204080; } - -/* Fields */ -dl.fields { margin-left: 2em; margin-top: 1em; - margin-bottom: 1em; } -dl.fields dd ul { margin-left: 0em; padding-left: 0em; } -dl.fields dd ul li ul { margin-left: 2em; padding-left: 0em; } -div.fields { margin-left: 2em; } -div.fields p { margin-bottom: 0.5em; } - -/* Index tables (identifier index, term index, etc) - * - link-index is used for indices containing lists of links - * (namely, the identifier index & term index). - * - index-where is used in link indices for the text indicating - * the container/source for each link. - * - metadata-index is used for indices containing metadata - * extracted from fields (namely, the bug index & todo index). - */ -table.link-index { border-collapse: collapse; - background: #e8f0f8; color: #000000; - border: 1px solid #608090; } -td.link-index { border-width: 0px; } -table.link-index a:link { color: #0000ff; } -table.link-index a:visited { color: #204080; } -span.index-where { font-size: 70%; } -table.metadata-index { border-collapse: collapse; - background: #e8f0f8; color: #000000; - border: 1px solid #608090; - margin: .2em 0 0 0; } -td.metadata-index { border-width: 1px; border-style: solid; } -table.metadata-index a:link { color: #0000ff; } -table.metadata-index a:visited { color: #204080; } - -/* Function signatures - * - sig* is used for the signature in the details section. - * - .summary-sig* is used for the signature in the summary - * table, and when listing property accessor functions. - * */ -.sig-name { color: #006080; } -.sig-arg { color: #008060; } -.sig-default { color: #602000; } -.summary-sig { font-family: monospace; } -.summary-sig-name { color: #006080; font-weight: bold; } -table.summary a.summary-sig-name:link - { color: #006080; font-weight: bold; } -table.summary a.summary-sig-name:visited - { color: #006080; font-weight: bold; } -.summary-sig-arg { color: #006040; } -.summary-sig-default { color: #501800; } - -/* Subclass list - */ -ul.subclass-list { display: inline; } -ul.subclass-list li { display: inline; } - -/* To render variables, classes etc. like functions */ -table.summary .summary-name { color: #006080; font-weight: bold; - font-family: monospace; } -table.summary - a.summary-name:link { color: #006080; font-weight: bold; - font-family: monospace; } -table.summary - a.summary-name:visited { color: #006080; font-weight: bold; - font-family: monospace; } - -/* Variable values - * - In the 'variable details' sections, each varaible's value is - * listed in a 'pre.variable' box. The width of this box is - * restricted to 80 chars; if the value's repr is longer than - * this it will be wrapped, using a backslash marked with - * class 'variable-linewrap'. If the value's repr is longer - * than 3 lines, the rest will be ellided; and an ellipsis - * marker ('...' marked with 'variable-ellipsis') will be used. - * - If the value is a string, its quote marks will be marked - * with 'variable-quote'. - * - If the variable is a regexp, it is syntax-highlighted using - * the re* CSS classes. - */ -pre.variable { padding: .5em; margin: 0; - background: #dce4ec; color: #000000; - border: 1px solid #708890; } -.variable-linewrap { color: #604000; font-weight: bold; } -.variable-ellipsis { color: #604000; font-weight: bold; } -.variable-quote { color: #604000; font-weight: bold; } -.variable-group { color: #008000; font-weight: bold; } -.variable-op { color: #604000; font-weight: bold; } -.variable-string { color: #006030; } -.variable-unknown { color: #a00000; font-weight: bold; } -.re { color: #000000; } -.re-char { color: #006030; } -.re-op { color: #600000; } -.re-group { color: #003060; } -.re-ref { color: #404040; } - -/* Base tree - * - Used by class pages to display the base class hierarchy. - */ -pre.base-tree { font-size: 80%; margin: 0; } - -/* Frames-based table of contents headers - * - Consists of two frames: one for selecting modules; and - * the other listing the contents of the selected module. - * - h1.toc is used for each frame's heading - * - h2.toc is used for subheadings within each frame. - */ -h1.toc { text-align: center; font-size: 105%; - margin: 0; font-weight: bold; - padding: 0; } -h2.toc { font-size: 100%; font-weight: bold; - margin: 0.5em 0 0 -0.3em; } - -/* Syntax Highlighting for Source Code - * - doctest examples are displayed in a 'pre.py-doctest' block. - * If the example is in a details table entry, then it will use - * the colors specified by the 'table pre.py-doctest' line. - * - Source code listings are displayed in a 'pre.py-src' block. - * Each line is marked with 'span.py-line' (used to draw a line - * down the left margin, separating the code from the line - * numbers). Line numbers are displayed with 'span.py-lineno'. - * The expand/collapse block toggle button is displayed with - * 'a.py-toggle' (Note: the CSS style for 'a.py-toggle' should not - * modify the font size of the text.) - * - If a source code page is opened with an anchor, then the - * corresponding code block will be highlighted. The code - * block's header is highlighted with 'py-highlight-hdr'; and - * the code block's body is highlighted with 'py-highlight'. - * - The remaining py-* classes are used to perform syntax - * highlighting (py-string for string literals, py-name for names, - * etc.) - */ -pre.py-doctest { padding: .5em; margin: 1em; - background: #e8f0f8; color: #000000; - border: 1px solid #708890; } -table pre.py-doctest { background: #dce4ec; - color: #000000; } -pre.py-src { border: 2px solid #000000; - background: #f0f0f0; color: #000000; } -.py-line { border-left: 2px solid #000000; - margin-left: .2em; padding-left: .4em; } -.py-lineno { font-style: italic; font-size: 90%; - padding-left: .5em; } -a.py-toggle { text-decoration: none; } -div.py-highlight-hdr { border-top: 2px solid #000000; - border-bottom: 2px solid #000000; - background: #d8e8e8; } -div.py-highlight { border-bottom: 2px solid #000000; - background: #d0e0e0; } -.py-prompt { color: #005050; font-weight: bold;} -.py-more { color: #005050; font-weight: bold;} -.py-string { color: #006030; } -.py-comment { color: #003060; } -.py-keyword { color: #600000; } -.py-output { color: #404040; } -.py-name { color: #000050; } -.py-name:link { color: #000050 !important; } -.py-name:visited { color: #000050 !important; } -.py-number { color: #005000; } -.py-defname { color: #000060; font-weight: bold; } -.py-def-name { color: #000060; font-weight: bold; } -.py-base-class { color: #000060; } -.py-param { color: #000060; } -.py-docstring { color: #006030; } -.py-decorator { color: #804020; } -/* Use this if you don't want links to names underlined: */ -/*a.py-name { text-decoration: none; }*/ - -/* Graphs & Diagrams - * - These CSS styles are used for graphs & diagrams generated using - * Graphviz dot. 'img.graph-without-title' is used for bare - * diagrams (to remove the border created by making the image - * clickable). - */ -img.graph-without-title { border: none; } -img.graph-with-title { border: 1px solid #000000; } -span.graph-title { font-weight: bold; } -span.graph-caption { } - -/* General-purpose classes - * - 'p.indent-wrapped-lines' defines a paragraph whose first line - * is not indented, but whose subsequent lines are. - * - The 'nomargin-top' class is used to remove the top margin (e.g. - * from lists). The 'nomargin' class is used to remove both the - * top and bottom margin (but not the left or right margin -- - * for lists, that would cause the bullets to disappear.) - */ -p.indent-wrapped-lines { padding: 0 0 0 7em; text-indent: -7em; - margin: 0; } -.nomargin-top { margin-top: 0; } -.nomargin { margin-top: 0; margin-bottom: 0; } - -/* HTML Log */ -div.log-block { padding: 0; margin: .5em 0 .5em 0; - background: #e8f0f8; color: #000000; - border: 1px solid #000000; } -div.log-error { padding: .1em .3em .1em .3em; margin: 4px; - background: #ffb0b0; color: #000000; - border: 1px solid #000000; } -div.log-warning { padding: .1em .3em .1em .3em; margin: 4px; - background: #ffffb0; color: #000000; - border: 1px solid #000000; } -div.log-info { padding: .1em .3em .1em .3em; margin: 4px; - background: #b0ffb0; color: #000000; - border: 1px solid #000000; } -h2.log-hdr { background: #70b0ff; color: #000000; - margin: 0; padding: 0em 0.5em 0em 0.5em; - border-bottom: 1px solid #000000; font-size: 110%; } -p.log { font-weight: bold; margin: .5em 0 .5em 0; } -tr.opt-changed { color: #000000; font-weight: bold; } -tr.opt-default { color: #606060; } -pre.log { margin: 0; padding: 0; padding-left: 1em; } diff --git a/doc/html/api/exceptions.AssertionError-class.html b/doc/html/api/exceptions.AssertionError-class.html deleted file mode 100644 index 8f31312..0000000 --- a/doc/html/api/exceptions.AssertionError-class.html +++ /dev/null @@ -1,302 +0,0 @@ - - - - - exceptions.AssertionError - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - exceptions :: - AssertionError :: - Class AssertionError - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class AssertionError

-
-   object --+            
-            |            
-BaseException --+        
-                |        
-        Exception --+    
-                    |    
-        StandardError --+
-                        |
-                       AssertionError
-
- -
-Assertion failed. - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__init__(...)
- x.__init__(...) initializes x; see help(type(x)) for signature
- - -
- -
- a new object with type S, a subtype of T - - - - - - -
__new__(T, - S, - ...) - - -
- -
-

Inherited from BaseException: - __delattr__, - __getattribute__, - __getitem__, - __getslice__, - __reduce__, - __repr__, - __setattr__, - __setstate__, - __str__, - __unicode__ -

-

Inherited from object: - __format__, - __hash__, - __reduce_ex__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from BaseException: - args, - message -

-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__init__(...) -
(Constructor) -

-
  -
- - x.__init__(...) initializes x; see help(type(x)) for signature -
-
Overrides: - object.__init__ -
-
-
-
- -
- -
- - -
-

__new__(T, - S, - ...) -

-
  -
- - -
-
Returns: a new object with type S, a subtype of T
-
Overrides: - object.__new__ -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/frames.html b/doc/html/api/frames.html deleted file mode 100644 index 7c41668..0000000 --- a/doc/html/api/frames.html +++ /dev/null @@ -1,17 +0,0 @@ - - - - - lxml API - - - - - - - - - diff --git a/doc/html/api/help.html b/doc/html/api/help.html deleted file mode 100644 index 4c584d7..0000000 --- a/doc/html/api/help.html +++ /dev/null @@ -1,278 +0,0 @@ - - - - - Help - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  - - - - -
[hide private]
[frames] | no frames]
-
- -

API Documentation

- -

This document contains the API (Application Programming Interface) -documentation for lxml API. Documentation for the Python -objects defined by the project is divided into separate pages for each -package, module, and class. The API documentation also includes two -pages containing information about the project as a whole: a trees -page, and an index page.

- -

Object Documentation

- -

Each Package Documentation page contains:

- - -

Each Module Documentation page contains:

- - -

Each Class Documentation page contains:

- - -

Project Documentation

- -

The Trees page contains the module and class hierarchies:

- - -

The Index page contains indices of terms and - identifiers:

- - -

The Table of Contents

- -

The table of contents occupies the two frames on the left side of -the window. The upper-left frame displays the project -contents, and the lower-left frame displays the module -contents:

- - - - - - - - - -
- Project
Contents
...
- API
Documentation
Frame


-
- Module
Contents
 
...
  -

- -

The project contents frame contains a list of all packages -and modules that are defined by the project. Clicking on an entry -will display its contents in the module contents frame. Clicking on a -special entry, labeled "Everything," will display the contents of -the entire project.

- -

The module contents frame contains a list of every -submodule, class, type, exception, function, and variable defined by a -module or package. Clicking on an entry will display its -documentation in the API documentation frame. Clicking on the name of -the module, at the top of the frame, will display the documentation -for the module itself.

- -

The "frames" and "no frames" buttons below the top -navigation bar can be used to control whether the table of contents is -displayed or not.

- -

The Navigation Bar

- -

A navigation bar is located at the top and bottom of every page. -It indicates what type of page you are currently viewing, and allows -you to go to related pages. The following table describes the labels -on the navigation bar. Note that not some labels (such as -[Parent]) are not displayed on all pages.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
LabelHighlighted when...Links to...
[Parent](never highlighted) the parent of the current package
[Package]viewing a packagethe package containing the current object -
[Module]viewing a modulethe module containing the current object -
[Class]viewing a class the class containing the current object
[Trees]viewing the trees page the trees page
[Index]viewing the index page the index page
[Help]viewing the help page the help page
- -

The "show private" and "hide private" buttons below -the top navigation bar can be used to control whether documentation -for private objects is displayed. Private objects are usually defined -as objects whose (short) names begin with a single underscore, but do -not end with an underscore. For example, "_x", -"__pprint", and "epydoc.epytext._tokenize" -are private objects; but "re.sub", -"__init__", and "type_" are not. However, -if a module defines the "__all__" variable, then its -contents are used to decide which objects are private.

- -

A timestamp below the bottom navigation bar indicates when each -page was last updated.

- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/identifier-index-A.html b/doc/html/api/identifier-index-A.html deleted file mode 100644 index 164b2d3..0000000 --- a/doc/html/api/identifier-index-A.html +++ /dev/null @@ -1,261 +0,0 @@ - - - - - Identifier Index - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  - - - - -
[hide private]
[frames] | no frames]
-
-
[ - Identifiers -| Deprecations -]

- -
-

Identifier Index

-
-[ - A - B - C - D - E - F - G - H - I - J - K - L - M - N - O - P - Q - R - S - T - U - V - W - X - Y - Z - _ -] -
- - - -

A

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/identifier-index-B.html b/doc/html/api/identifier-index-B.html deleted file mode 100644 index 640c499..0000000 --- a/doc/html/api/identifier-index-B.html +++ /dev/null @@ -1,224 +0,0 @@ - - - - - Identifier Index - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  - - - - -
[hide private]
[frames] | no frames]
-
-
[ - Identifiers -| Deprecations -]

- -
-

Identifier Index

-
-[ - A - B - C - D - E - F - G - H - I - J - K - L - M - N - O - P - Q - R - S - T - U - V - W - X - Y - Z - _ -] -
- - - -

B

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/identifier-index-C.html b/doc/html/api/identifier-index-C.html deleted file mode 100644 index 80cde1a..0000000 --- a/doc/html/api/identifier-index-C.html +++ /dev/null @@ -1,469 +0,0 @@ - - - - - Identifier Index - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  - - - - -
[hide private]
[frames] | no frames]
-
-
[ - Identifiers -| Deprecations -]

- -
-

Identifier Index

-
-[ - A - B - C - D - E - F - G - H - I - J - K - L - M - N - O - P - Q - R - S - T - U - V - W - X - Y - Z - _ -] -
- - - -

C

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/identifier-index-D.html b/doc/html/api/identifier-index-D.html deleted file mode 100644 index 5a0c221..0000000 --- a/doc/html/api/identifier-index-D.html +++ /dev/null @@ -1,384 +0,0 @@ - - - - - Identifier Index - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  - - - - -
[hide private]
[frames] | no frames]
-
-
[ - Identifiers -| Deprecations -]

- -
-

Identifier Index

-
-[ - A - B - C - D - E - F - G - H - I - J - K - L - M - N - O - P - Q - R - S - T - U - V - W - X - Y - Z - _ -] -
- - - -

D

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/identifier-index-E.html b/doc/html/api/identifier-index-E.html deleted file mode 100644 index 9efa944..0000000 --- a/doc/html/api/identifier-index-E.html +++ /dev/null @@ -1,701 +0,0 @@ - - - - - Identifier Index - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  - - - - -
[hide private]
[frames] | no frames]
-
-
[ - Identifiers -| Deprecations -]

- -
-

Identifier Index

-
-[ - A - B - C - D - E - F - G - H - I - J - K - L - M - N - O - P - Q - R - S - T - U - V - W - X - Y - Z - _ -] -
- - - -

E

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/identifier-index-F.html b/doc/html/api/identifier-index-F.html deleted file mode 100644 index f832bd4..0000000 --- a/doc/html/api/identifier-index-F.html +++ /dev/null @@ -1,340 +0,0 @@ - - - - - Identifier Index - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  - - - - -
[hide private]
[frames] | no frames]
-
-
[ - Identifiers -| Deprecations -]

- -
-

Identifier Index

-
-[ - A - B - C - D - E - F - G - H - I - J - K - L - M - N - O - P - Q - R - S - T - U - V - W - X - Y - Z - _ -] -
- - - -

F

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/identifier-index-G.html b/doc/html/api/identifier-index-G.html deleted file mode 100644 index 9036d14..0000000 --- a/doc/html/api/identifier-index-G.html +++ /dev/null @@ -1,224 +0,0 @@ - - - - - Identifier Index - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  - - - - -
[hide private]
[frames] | no frames]
-
-
[ - Identifiers -| Deprecations -]

- -
-

Identifier Index

-
-[ - A - B - C - D - E - F - G - H - I - J - K - L - M - N - O - P - Q - R - S - T - U - V - W - X - Y - Z - _ -] -
- - - -

G

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/identifier-index-H.html b/doc/html/api/identifier-index-H.html deleted file mode 100644 index c35b0ae..0000000 --- a/doc/html/api/identifier-index-H.html +++ /dev/null @@ -1,305 +0,0 @@ - - - - - Identifier Index - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  - - - - -
[hide private]
[frames] | no frames]
-
-
[ - Identifiers -| Deprecations -]

- -
-

Identifier Index

-
-[ - A - B - C - D - E - F - G - H - I - J - K - L - M - N - O - P - Q - R - S - T - U - V - W - X - Y - Z - _ -] -
- - - -

H

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/identifier-index-I.html b/doc/html/api/identifier-index-I.html deleted file mode 100644 index e0fec0d..0000000 --- a/doc/html/api/identifier-index-I.html +++ /dev/null @@ -1,493 +0,0 @@ - - - - - Identifier Index - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  - - - - -
[hide private]
[frames] | no frames]
-
-
[ - Identifiers -| Deprecations -]

- -
-

Identifier Index

-
-[ - A - B - C - D - E - F - G - H - I - J - K - L - M - N - O - P - Q - R - S - T - U - V - W - X - Y - Z - _ -] -
- - - -

I

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/identifier-index-J.html b/doc/html/api/identifier-index-J.html deleted file mode 100644 index e645e8f..0000000 --- a/doc/html/api/identifier-index-J.html +++ /dev/null @@ -1,159 +0,0 @@ - - - - - Identifier Index - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  - - - - -
[hide private]
[frames] | no frames]
-
-
[ - Identifiers -| Deprecations -]

- -
-

Identifier Index

-
-[ - A - B - C - D - E - F - G - H - I - J - K - L - M - N - O - P - Q - R - S - T - U - V - W - X - Y - Z - _ -] -
- - - -

J

- - - - - - - - -
-

- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/identifier-index-K.html b/doc/html/api/identifier-index-K.html deleted file mode 100644 index f6728b7..0000000 --- a/doc/html/api/identifier-index-K.html +++ /dev/null @@ -1,176 +0,0 @@ - - - - - Identifier Index - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  - - - - -
[hide private]
[frames] | no frames]
-
-
[ - Identifiers -| Deprecations -]

- -
-

Identifier Index

-
-[ - A - B - C - D - E - F - G - H - I - J - K - L - M - N - O - P - Q - R - S - T - U - V - W - X - Y - Z - _ -] -
- - - -

K

- - - - - - - - - - - - - - - - - -
-

- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/identifier-index-L.html b/doc/html/api/identifier-index-L.html deleted file mode 100644 index 288c7d9..0000000 --- a/doc/html/api/identifier-index-L.html +++ /dev/null @@ -1,252 +0,0 @@ - - - - - Identifier Index - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  - - - - -
[hide private]
[frames] | no frames]
-
-
[ - Identifiers -| Deprecations -]

- -
-

Identifier Index

-
-[ - A - B - C - D - E - F - G - H - I - J - K - L - M - N - O - P - Q - R - S - T - U - V - W - X - Y - Z - _ -] -
- - - -

L

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/identifier-index-M.html b/doc/html/api/identifier-index-M.html deleted file mode 100644 index ec30e27..0000000 --- a/doc/html/api/identifier-index-M.html +++ /dev/null @@ -1,221 +0,0 @@ - - - - - Identifier Index - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  - - - - -
[hide private]
[frames] | no frames]
-
-
[ - Identifiers -| Deprecations -]

- -
-

Identifier Index

-
-[ - A - B - C - D - E - F - G - H - I - J - K - L - M - N - O - P - Q - R - S - T - U - V - W - X - Y - Z - _ -] -
- - - -

M

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/identifier-index-N.html b/doc/html/api/identifier-index-N.html deleted file mode 100644 index 7b2a25c..0000000 --- a/doc/html/api/identifier-index-N.html +++ /dev/null @@ -1,239 +0,0 @@ - - - - - Identifier Index - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  - - - - -
[hide private]
[frames] | no frames]
-
-
[ - Identifiers -| Deprecations -]

- -
-

Identifier Index

-
-[ - A - B - C - D - E - F - G - H - I - J - K - L - M - N - O - P - Q - R - S - T - U - V - W - X - Y - Z - _ -] -
- - - -

N

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/identifier-index-O.html b/doc/html/api/identifier-index-O.html deleted file mode 100644 index 7c2bbb9..0000000 --- a/doc/html/api/identifier-index-O.html +++ /dev/null @@ -1,198 +0,0 @@ - - - - - Identifier Index - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  - - - - -
[hide private]
[frames] | no frames]
-
-
[ - Identifiers -| Deprecations -]

- -
-

Identifier Index

-
-[ - A - B - C - D - E - F - G - H - I - J - K - L - M - N - O - P - Q - R - S - T - U - V - W - X - Y - Z - _ -] -
- - - -

O

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/identifier-index-P.html b/doc/html/api/identifier-index-P.html deleted file mode 100644 index 1cb9dbb..0000000 --- a/doc/html/api/identifier-index-P.html +++ /dev/null @@ -1,295 +0,0 @@ - - - - - Identifier Index - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  - - - - -
[hide private]
[frames] | no frames]
-
-
[ - Identifiers -| Deprecations -]

- -
-

Identifier Index

-
-[ - A - B - C - D - E - F - G - H - I - J - K - L - M - N - O - P - Q - R - S - T - U - V - W - X - Y - Z - _ -] -
- - - -

P

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/identifier-index-Q.html b/doc/html/api/identifier-index-Q.html deleted file mode 100644 index 8ddec72..0000000 --- a/doc/html/api/identifier-index-Q.html +++ /dev/null @@ -1,160 +0,0 @@ - - - - - Identifier Index - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  - - - - -
[hide private]
[frames] | no frames]
-
-
[ - Identifiers -| Deprecations -]

- -
-

Identifier Index

-
-[ - A - B - C - D - E - F - G - H - I - J - K - L - M - N - O - P - Q - R - S - T - U - V - W - X - Y - Z - _ -] -
- - - -

Q

- - - - - - - - -
-

- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/identifier-index-R.html b/doc/html/api/identifier-index-R.html deleted file mode 100644 index 50edd9e..0000000 --- a/doc/html/api/identifier-index-R.html +++ /dev/null @@ -1,735 +0,0 @@ - - - - - Identifier Index - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  - - - - -
[hide private]
[frames] | no frames]
-
-
[ - Identifiers -| Deprecations -]

- -
-

Identifier Index

-
-[ - A - B - C - D - E - F - G - H - I - J - K - L - M - N - O - P - Q - R - S - T - U - V - W - X - Y - Z - _ -] -
- - - -

R

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/identifier-index-S.html b/doc/html/api/identifier-index-S.html deleted file mode 100644 index c4d2c04..0000000 --- a/doc/html/api/identifier-index-S.html +++ /dev/null @@ -1,1132 +0,0 @@ - - - - - Identifier Index - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  - - - - -
[hide private]
[frames] | no frames]
-
-
[ - Identifiers -| Deprecations -]

- -
-

Identifier Index

-
-[ - A - B - C - D - E - F - G - H - I - J - K - L - M - N - O - P - Q - R - S - T - U - V - W - X - Y - Z - _ -] -
- - - -

S

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/identifier-index-T.html b/doc/html/api/identifier-index-T.html deleted file mode 100644 index 8c4efd3..0000000 --- a/doc/html/api/identifier-index-T.html +++ /dev/null @@ -1,3166 +0,0 @@ - - - - - Identifier Index - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  - - - - -
[hide private]
[frames] | no frames]
-
-
[ - Identifiers -| Deprecations -]

- -
-

Identifier Index

-
-[ - A - B - C - D - E - F - G - H - I - J - K - L - M - N - O - P - Q - R - S - T - U - V - W - X - Y - Z - _ -] -
- - - -

T

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/identifier-index-U.html b/doc/html/api/identifier-index-U.html deleted file mode 100644 index f08596b..0000000 --- a/doc/html/api/identifier-index-U.html +++ /dev/null @@ -1,206 +0,0 @@ - - - - - Identifier Index - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  - - - - -
[hide private]
[frames] | no frames]
-
-
[ - Identifiers -| Deprecations -]

- -
-

Identifier Index

-
-[ - A - B - C - D - E - F - G - H - I - J - K - L - M - N - O - P - Q - R - S - T - U - V - W - X - Y - Z - _ -] -
- - - -

U

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/identifier-index-V.html b/doc/html/api/identifier-index-V.html deleted file mode 100644 index e8a3197..0000000 --- a/doc/html/api/identifier-index-V.html +++ /dev/null @@ -1,206 +0,0 @@ - - - - - Identifier Index - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  - - - - -
[hide private]
[frames] | no frames]
-
-
[ - Identifiers -| Deprecations -]

- -
-

Identifier Index

-
-[ - A - B - C - D - E - F - G - H - I - J - K - L - M - N - O - P - Q - R - S - T - U - V - W - X - Y - Z - _ -] -
- - - -

V

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/identifier-index-W.html b/doc/html/api/identifier-index-W.html deleted file mode 100644 index f379d2e..0000000 --- a/doc/html/api/identifier-index-W.html +++ /dev/null @@ -1,200 +0,0 @@ - - - - - Identifier Index - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  - - - - -
[hide private]
[frames] | no frames]
-
-
[ - Identifiers -| Deprecations -]

- -
-

Identifier Index

-
-[ - A - B - C - D - E - F - G - H - I - J - K - L - M - N - O - P - Q - R - S - T - U - V - W - X - Y - Z - _ -] -
- - - -

W

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/identifier-index-X.html b/doc/html/api/identifier-index-X.html deleted file mode 100644 index b0275c3..0000000 --- a/doc/html/api/identifier-index-X.html +++ /dev/null @@ -1,445 +0,0 @@ - - - - - Identifier Index - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  - - - - -
[hide private]
[frames] | no frames]
-
-
[ - Identifiers -| Deprecations -]

- -
-

Identifier Index

-
-[ - A - B - C - D - E - F - G - H - I - J - K - L - M - N - O - P - Q - R - S - T - U - V - W - X - Y - Z - _ -] -
- - - -

X

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/identifier-index-Y.html b/doc/html/api/identifier-index-Y.html deleted file mode 100644 index a0fa3d4..0000000 --- a/doc/html/api/identifier-index-Y.html +++ /dev/null @@ -1,145 +0,0 @@ - - - - - Identifier Index - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  - - - - -
[hide private]
[frames] | no frames]
-
-
[ - Identifiers -| Deprecations -]

- -
-

Identifier Index

-
-[ - A - B - C - D - E - F - G - H - I - J - K - L - M - N - O - P - Q - R - S - T - U - V - W - X - Y - Z - _ -] -
-
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/identifier-index-Z.html b/doc/html/api/identifier-index-Z.html deleted file mode 100644 index 322054b..0000000 --- a/doc/html/api/identifier-index-Z.html +++ /dev/null @@ -1,145 +0,0 @@ - - - - - Identifier Index - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  - - - - -
[hide private]
[frames] | no frames]
-
-
[ - Identifiers -| Deprecations -]

- -
-

Identifier Index

-
-[ - A - B - C - D - E - F - G - H - I - J - K - L - M - N - O - P - Q - R - S - T - U - V - W - X - Y - Z - _ -] -
-
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/identifier-index-_.html b/doc/html/api/identifier-index-_.html deleted file mode 100644 index 7b941aa..0000000 --- a/doc/html/api/identifier-index-_.html +++ /dev/null @@ -1,1844 +0,0 @@ - - - - - Identifier Index - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  - - - - -
[hide private]
[frames] | no frames]
-
-
[ - Identifiers -| Deprecations -]

- -
-

Identifier Index

-
-[ - A - B - C - D - E - F - G - H - I - J - K - L - M - N - O - P - Q - R - S - T - U - V - W - X - Y - Z - _ -] -
- - - -

_

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/identifier-index.html b/doc/html/api/identifier-index.html deleted file mode 100644 index bcfa90c..0000000 --- a/doc/html/api/identifier-index.html +++ /dev/null @@ -1,261 +0,0 @@ - - - - - Identifier Index - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  - - - - -
[hide private]
[frames] | no frames]
-
-
[ - Identifiers -| Deprecations -]

- -
-

Identifier Index

-
-[ - A - B - C - D - E - F - G - H - I - J - K - L - M - N - O - P - Q - R - S - T - U - V - W - X - Y - Z - _ -] -
- - - -

A

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/index.html b/doc/html/api/index.html deleted file mode 100644 index 7c41668..0000000 --- a/doc/html/api/index.html +++ /dev/null @@ -1,17 +0,0 @@ - - - - - lxml API - - - - - - - - - diff --git a/doc/html/api/lxml-module.html b/doc/html/api/lxml-module.html deleted file mode 100644 index bdacc13..0000000 --- a/doc/html/api/lxml-module.html +++ /dev/null @@ -1,254 +0,0 @@ - - - - - lxml - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Package lxml

source code

- - - - - - - -
- - - - - -
Submodules[hide private]
-
-
- -
- - - - - - - - - -
- - - - - -
Functions[hide private]
-
-   - - - - - - -
get_include()
- Returns a list of header include paths (for lxml itself, libxml2 -and libxslt) needed to compile C code against lxml if it was built -with statically linked libraries.
- source code - -
- -
- - - - - - - - - -
- - - - - -
Variables[hide private]
-
-   - - __package__ = None
- hash(x) -
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml-pysrc.html b/doc/html/api/lxml-pysrc.html deleted file mode 100644 index 0e223a3..0000000 --- a/doc/html/api/lxml-pysrc.html +++ /dev/null @@ -1,145 +0,0 @@ - - - - - lxml - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml - - - - - - -
[hide private]
[frames] | no frames]
-
-

Source Code for Package lxml

-
- 1  # this is a package 
- 2   
-
3 -def get_include(): -
4 """ - 5 Returns a list of header include paths (for lxml itself, libxml2 - 6 and libxslt) needed to compile C code against lxml if it was built - 7 with statically linked libraries. - 8 """ - 9 import os -10 lxml_path = __path__[0] -11 include_path = os.path.join(lxml_path, 'includes') -12 includes = [include_path, lxml_path] -13 -14 for name in os.listdir(include_path): -15 path = os.path.join(include_path, name) -16 if os.path.isdir(path): -17 includes.append(path) -18 -19 return includes -
20 -
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.ElementInclude-module.html b/doc/html/api/lxml.ElementInclude-module.html deleted file mode 100644 index d70cdc3..0000000 --- a/doc/html/api/lxml.ElementInclude-module.html +++ /dev/null @@ -1,299 +0,0 @@ - - - - - lxml.ElementInclude - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module ElementInclude - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Module ElementInclude

source code

-

Limited XInclude support for the ElementTree package.

-

While lxml.etree has full support for XInclude (see -etree.ElementTree.xinclude()), this module provides a simpler, pure -Python, ElementTree compatible implementation that supports a simple -form of custom URL resolvers.

- - - - - - - - - - -
- - - - - -
Classes[hide private]
-
-   - - FatalIncludeError -
- - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Functions[hide private]
-
-   - - - - - - -
default_loader(href, - parse, - encoding=None) - source code - -
- -
-   - - - - - - -
_lxml_default_loader(href, - parse, - encoding=None, - parser=None) - source code - -
- -
-   - - - - - - -
_wrap_et_loader(loader) - source code - -
- -
-   - - - - - - -
include(elem, - loader=None, - base_url=None) - source code - -
- -
-   - - - - - - -
_include(elem, - loader=None, - _parent_hrefs=None, - base_url=None) - source code - -
- -
- - - - - - - - - - - - - - - - - - -
- - - - - -
Variables[hide private]
-
-   - - XINCLUDE = '{http://www.w3.org/2001/XInclude}' -
-   - - XINCLUDE_INCLUDE = '{http://www.w3.org/2001/XInclude}include' -
-   - - XINCLUDE_FALLBACK = '{http://www.w3.org/2001/XInclude}fallback' -
-   - - __package__ = 'lxml' -
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.ElementInclude-pysrc.html b/doc/html/api/lxml.ElementInclude-pysrc.html deleted file mode 100644 index edb9463..0000000 --- a/doc/html/api/lxml.ElementInclude-pysrc.html +++ /dev/null @@ -1,540 +0,0 @@ - - - - - lxml.ElementInclude - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module ElementInclude - - - - - - -
[hide private]
[frames] | no frames]
-
-

Source Code for Module lxml.ElementInclude

-
-  1  # 
-  2  # ElementTree 
-  3  # $Id: ElementInclude.py 1862 2004-06-18 07:31:02Z Fredrik $ 
-  4  # 
-  5  # limited xinclude support for element trees 
-  6  # 
-  7  # history: 
-  8  # 2003-08-15 fl   created 
-  9  # 2003-11-14 fl   fixed default loader 
- 10  # 
- 11  # Copyright (c) 2003-2004 by Fredrik Lundh.  All rights reserved. 
- 12  # 
- 13  # fredrik@pythonware.com 
- 14  # http://www.pythonware.com 
- 15  # 
- 16  # -------------------------------------------------------------------- 
- 17  # The ElementTree toolkit is 
- 18  # 
- 19  # Copyright (c) 1999-2004 by Fredrik Lundh 
- 20  # 
- 21  # By obtaining, using, and/or copying this software and/or its 
- 22  # associated documentation, you agree that you have read, understood, 
- 23  # and will comply with the following terms and conditions: 
- 24  # 
- 25  # Permission to use, copy, modify, and distribute this software and 
- 26  # its associated documentation for any purpose and without fee is 
- 27  # hereby granted, provided that the above copyright notice appears in 
- 28  # all copies, and that both that copyright notice and this permission 
- 29  # notice appear in supporting documentation, and that the name of 
- 30  # Secret Labs AB or the author not be used in advertising or publicity 
- 31  # pertaining to distribution of the software without specific, written 
- 32  # prior permission. 
- 33  # 
- 34  # SECRET LABS AB AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD 
- 35  # TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANT- 
- 36  # ABILITY AND FITNESS.  IN NO EVENT SHALL SECRET LABS AB OR THE AUTHOR 
- 37  # BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY 
- 38  # DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 
- 39  # WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS 
- 40  # ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 
- 41  # OF THIS SOFTWARE. 
- 42  # -------------------------------------------------------------------- 
- 43   
- 44  """ 
- 45  Limited XInclude support for the ElementTree package. 
- 46   
- 47  While lxml.etree has full support for XInclude (see 
- 48  `etree.ElementTree.xinclude()`), this module provides a simpler, pure 
- 49  Python, ElementTree compatible implementation that supports a simple 
- 50  form of custom URL resolvers. 
- 51  """ 
- 52   
- 53  from lxml import etree 
- 54  import copy 
- 55  try: 
- 56      from urlparse import urljoin 
- 57      from urllib2 import urlopen 
- 58  except ImportError: 
- 59      # Python 3 
- 60      from urllib.parse import urljoin 
- 61      from urllib.request import urlopen 
- 62   
- 63  try: 
- 64      set 
- 65  except NameError: 
- 66      # Python 2.3 
- 67      from sets import Set as set 
- 68   
- 69  XINCLUDE = "{http://www.w3.org/2001/XInclude}" 
- 70   
- 71  XINCLUDE_INCLUDE = XINCLUDE + "include" 
- 72  XINCLUDE_FALLBACK = XINCLUDE + "fallback" 
- 73   
- 74  ## 
- 75  # Fatal include error. 
- 76   
-
77 -class FatalIncludeError(etree.LxmlSyntaxError): -
78 pass -
79 - 80 ## - 81 # ET compatible default loader. - 82 # This loader reads an included resource from disk. - 83 # - 84 # @param href Resource reference. - 85 # @param parse Parse mode. Either "xml" or "text". - 86 # @param encoding Optional text encoding. - 87 # @return The expanded resource. If the parse mode is "xml", this - 88 # is an ElementTree instance. If the parse mode is "text", this - 89 # is a Unicode string. If the loader fails, it can return None - 90 # or raise an IOError exception. - 91 # @throws IOError If the loader fails to load the resource. - 92 -
93 -def default_loader(href, parse, encoding=None): -
94 file = open(href, 'rb') - 95 if parse == "xml": - 96 data = etree.parse(file).getroot() - 97 else: - 98 data = file.read() - 99 if not encoding: -100 encoding = 'utf-8' -101 data = data.decode(encoding) -102 file.close() -103 return data -
104 -105 ## -106 # Default loader used by lxml.etree - handles custom resolvers properly -107 # -108 -
109 -def _lxml_default_loader(href, parse, encoding=None, parser=None): -
110 if parse == "xml": -111 data = etree.parse(href, parser).getroot() -112 else: -113 if "://" in href: -114 f = urlopen(href) -115 else: -116 f = open(href, 'rb') -117 data = f.read() -118 f.close() -119 if not encoding: -120 encoding = 'utf-8' -121 data = data.decode(encoding) -122 return data -
123 -124 ## -125 # Wrapper for ET compatibility - drops the parser -126 -
127 -def _wrap_et_loader(loader): -
128 def load(href, parse, encoding=None, parser=None): -129 return loader(href, parse, encoding) -
130 return load -131 -132 -133 ## -134 # Expand XInclude directives. -135 # -136 # @param elem Root element. -137 # @param loader Optional resource loader. If omitted, it defaults -138 # to {@link default_loader}. If given, it should be a callable -139 # that implements the same interface as <b>default_loader</b>. -140 # @throws FatalIncludeError If the function fails to include a given -141 # resource, or if the tree contains malformed XInclude elements. -142 # @throws IOError If the function fails to load a given resource. -143 # @returns the node or its replacement if it was an XInclude node -144 -
145 -def include(elem, loader=None, base_url=None): -
146 if base_url is None: -147 if hasattr(elem, 'getroot'): -148 tree = elem -149 elem = elem.getroot() -150 else: -151 tree = elem.getroottree() -152 if hasattr(tree, 'docinfo'): -153 base_url = tree.docinfo.URL -154 elif hasattr(elem, 'getroot'): -155 elem = elem.getroot() -156 _include(elem, loader, base_url=base_url) -
157 -
158 -def _include(elem, loader=None, _parent_hrefs=None, base_url=None): -
159 if loader is not None: -160 load_include = _wrap_et_loader(loader) -161 else: -162 load_include = _lxml_default_loader -163 -164 if _parent_hrefs is None: -165 _parent_hrefs = set() -166 -167 parser = elem.getroottree().parser -168 -169 include_elements = list( -170 elem.iter('{http://www.w3.org/2001/XInclude}*')) -171 -172 for e in include_elements: -173 if e.tag == XINCLUDE_INCLUDE: -174 # process xinclude directive -175 href = urljoin(base_url, e.get("href")) -176 parse = e.get("parse", "xml") -177 parent = e.getparent() -178 if parse == "xml": -179 if href in _parent_hrefs: -180 raise FatalIncludeError( -181 "recursive include of %r detected" % href -182 ) -183 _parent_hrefs.add(href) -184 node = load_include(href, parse, parser=parser) -185 if node is None: -186 raise FatalIncludeError( -187 "cannot load %r as %r" % (href, parse) -188 ) -189 node = _include(node, loader, _parent_hrefs) -190 if e.tail: -191 node.tail = (node.tail or "") + e.tail -192 if parent is None: -193 return node # replaced the root node! -194 parent.replace(e, node) -195 elif parse == "text": -196 text = load_include(href, parse, encoding=e.get("encoding")) -197 if text is None: -198 raise FatalIncludeError( -199 "cannot load %r as %r" % (href, parse) -200 ) -201 predecessor = e.getprevious() -202 if predecessor is not None: -203 predecessor.tail = (predecessor.tail or "") + text -204 elif parent is None: -205 return text # replaced the root node! -206 else: -207 parent.text = (parent.text or "") + text + (e.tail or "") -208 parent.remove(e) -209 else: -210 raise FatalIncludeError( -211 "unknown parse type in xi:include tag (%r)" % parse -212 ) -213 elif e.tag == XINCLUDE_FALLBACK: -214 parent = e.getparent() -215 if parent is not None and parent.tag != XINCLUDE_INCLUDE: -216 raise FatalIncludeError( -217 "xi:fallback tag must be child of xi:include (%r)" % e.tag -218 ) -219 else: -220 raise FatalIncludeError( -221 "Invalid element found in XInclude namespace (%r)" % e.tag -222 ) -223 return elem -
224 -
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.ElementInclude.FatalIncludeError-class.html b/doc/html/api/lxml.ElementInclude.FatalIncludeError-class.html deleted file mode 100644 index dafe33e..0000000 --- a/doc/html/api/lxml.ElementInclude.FatalIncludeError-class.html +++ /dev/null @@ -1,226 +0,0 @@ - - - - - lxml.ElementInclude.FatalIncludeError - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module ElementInclude :: - Class FatalIncludeError - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class FatalIncludeError

source code

-
-              object --+                    
-                       |                    
-exceptions.BaseException --+                
-                           |                
-        exceptions.Exception --+            
-                               |            
-                     etree.Error --+        
-                                   |        
-                     etree.LxmlError --+    
-                                       |    
-              object --+               |    
-                       |               |    
-exceptions.BaseException --+           |    
-                           |           |    
-        exceptions.Exception --+       |    
-                               |       |    
-        exceptions.StandardError --+   |    
-                                   |   |    
-              exceptions.SyntaxError --+    
-                                       |    
-                   etree.LxmlSyntaxError --+
-                                           |
-                                          FatalIncludeError
-
- -
- - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-

Inherited from etree.LxmlError: - __init__ -

-

Inherited from exceptions.SyntaxError: - __new__, - __str__ -

-

Inherited from exceptions.BaseException: - __delattr__, - __getattribute__, - __getitem__, - __getslice__, - __reduce__, - __repr__, - __setattr__, - __setstate__, - __unicode__ -

-

Inherited from object: - __format__, - __hash__, - __reduce_ex__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from exceptions.SyntaxError: - filename, - lineno, - msg, - offset, - print_file_and_line, - text -

-

Inherited from exceptions.BaseException: - args, - message -

-

Inherited from object: - __class__ -

-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.builder-module.html b/doc/html/api/lxml.builder-module.html deleted file mode 100644 index 3136c56..0000000 --- a/doc/html/api/lxml.builder-module.html +++ /dev/null @@ -1,224 +0,0 @@ - - - - - lxml.builder - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module builder - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Module builder

source code

-The E Element factory for generating XML documents. - - - - - - - - - - - - - - - - -
- - - - - -
Classes[hide private]
-
-   - - basestring
- str(object) -> string -
-   - - unicode
- str(object) -> string -
-   - - ElementMaker
- Element generator factory. -
- - - - - - - - - -
- - - - - -
Functions[hide private]
-
-   - - - - - - -
callable(f) - source code - -
- -
- - - - - - - - - - - - -
- - - - - -
Variables[hide private]
-
-   - - E = ElementMaker() -
-   - - __package__ = 'lxml' -
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.builder-pysrc.html b/doc/html/api/lxml.builder-pysrc.html deleted file mode 100644 index dfaf576..0000000 --- a/doc/html/api/lxml.builder-pysrc.html +++ /dev/null @@ -1,458 +0,0 @@ - - - - - lxml.builder - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module builder - - - - - - -
[hide private]
[frames] | no frames]
-
-

Source Code for Module lxml.builder

-
-  1  # 
-  2  # Element generator factory by Fredrik Lundh. 
-  3  # 
-  4  # Source: 
-  5  #    http://online.effbot.org/2006_11_01_archive.htm#et-builder 
-  6  #    http://effbot.python-hosting.com/file/stuff/sandbox/elementlib/builder.py 
-  7  # 
-  8  # -------------------------------------------------------------------- 
-  9  # The ElementTree toolkit is 
- 10  # 
- 11  # Copyright (c) 1999-2004 by Fredrik Lundh 
- 12  # 
- 13  # By obtaining, using, and/or copying this software and/or its 
- 14  # associated documentation, you agree that you have read, understood, 
- 15  # and will comply with the following terms and conditions: 
- 16  # 
- 17  # Permission to use, copy, modify, and distribute this software and 
- 18  # its associated documentation for any purpose and without fee is 
- 19  # hereby granted, provided that the above copyright notice appears in 
- 20  # all copies, and that both that copyright notice and this permission 
- 21  # notice appear in supporting documentation, and that the name of 
- 22  # Secret Labs AB or the author not be used in advertising or publicity 
- 23  # pertaining to distribution of the software without specific, written 
- 24  # prior permission. 
- 25  # 
- 26  # SECRET LABS AB AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD 
- 27  # TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANT- 
- 28  # ABILITY AND FITNESS.  IN NO EVENT SHALL SECRET LABS AB OR THE AUTHOR 
- 29  # BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY 
- 30  # DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 
- 31  # WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS 
- 32  # ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 
- 33  # OF THIS SOFTWARE. 
- 34  # -------------------------------------------------------------------- 
- 35   
- 36  """ 
- 37  The ``E`` Element factory for generating XML documents. 
- 38  """ 
- 39   
- 40  import lxml.etree as ET 
- 41   
- 42  try: 
- 43      from functools import partial 
- 44  except ImportError: 
- 45      # fake it for pre-2.5 releases 
-
46 - def partial(func, tag): -
47 return lambda *args, **kwargs: func(tag, *args, **kwargs) -
48 - 49 try: - 50 callable - 51 except NameError: - 52 # Python 3 -
53 - def callable(f): -
54 return hasattr(f, '__call__') -
55 - 56 try: - 57 basestring - 58 except NameError: - 59 basestring = str - 60 - 61 try: - 62 unicode - 63 except NameError: - 64 unicode = str - 65 - 66 -
67 -class ElementMaker(object): -
68 """Element generator factory. - 69 - 70 Unlike the ordinary Element factory, the E factory allows you to pass in - 71 more than just a tag and some optional attributes; you can also pass in - 72 text and other elements. The text is added as either text or tail - 73 attributes, and elements are inserted at the right spot. Some small - 74 examples:: - 75 - 76 >>> from lxml import etree as ET - 77 >>> from lxml.builder import E - 78 - 79 >>> ET.tostring(E("tag")) - 80 '<tag/>' - 81 >>> ET.tostring(E("tag", "text")) - 82 '<tag>text</tag>' - 83 >>> ET.tostring(E("tag", "text", key="value")) - 84 '<tag key="value">text</tag>' - 85 >>> ET.tostring(E("tag", E("subtag", "text"), "tail")) - 86 '<tag><subtag>text</subtag>tail</tag>' - 87 - 88 For simple tags, the factory also allows you to write ``E.tag(...)`` instead - 89 of ``E('tag', ...)``:: - 90 - 91 >>> ET.tostring(E.tag()) - 92 '<tag/>' - 93 >>> ET.tostring(E.tag("text")) - 94 '<tag>text</tag>' - 95 >>> ET.tostring(E.tag(E.subtag("text"), "tail")) - 96 '<tag><subtag>text</subtag>tail</tag>' - 97 - 98 Here's a somewhat larger example; this shows how to generate HTML - 99 documents, using a mix of prepared factory functions for inline elements, -100 nested ``E.tag`` calls, and embedded XHTML fragments:: -101 -102 # some common inline elements -103 A = E.a -104 I = E.i -105 B = E.b -106 -107 def CLASS(v): -108 # helper function, 'class' is a reserved word -109 return {'class': v} -110 -111 page = ( -112 E.html( -113 E.head( -114 E.title("This is a sample document") -115 ), -116 E.body( -117 E.h1("Hello!", CLASS("title")), -118 E.p("This is a paragraph with ", B("bold"), " text in it!"), -119 E.p("This is another paragraph, with a ", -120 A("link", href="http://www.python.org"), "."), -121 E.p("Here are some reservered characters: <spam&egg>."), -122 ET.XML("<p>And finally, here is an embedded XHTML fragment.</p>"), -123 ) -124 ) -125 ) -126 -127 print ET.tostring(page) -128 -129 Here's a prettyprinted version of the output from the above script:: -130 -131 <html> -132 <head> -133 <title>This is a sample document</title> -134 </head> -135 <body> -136 <h1 class="title">Hello!</h1> -137 <p>This is a paragraph with <b>bold</b> text in it!</p> -138 <p>This is another paragraph, with <a href="http://www.python.org">link</a>.</p> -139 <p>Here are some reservered characters: &lt;spam&amp;egg&gt;.</p> -140 <p>And finally, here is an embedded XHTML fragment.</p> -141 </body> -142 </html> -143 -144 For namespace support, you can pass a namespace map (``nsmap``) -145 and/or a specific target ``namespace`` to the ElementMaker class:: -146 -147 >>> E = ElementMaker(namespace="http://my.ns/") -148 >>> print(ET.tostring( E.test )) -149 <test xmlns="http://my.ns/"/> -150 -151 >>> E = ElementMaker(namespace="http://my.ns/", nsmap={'p':'http://my.ns/'}) -152 >>> print(ET.tostring( E.test )) -153 <p:test xmlns:p="http://my.ns/"/> -154 """ -155 -
156 - def __init__(self, typemap=None, -157 namespace=None, nsmap=None, makeelement=None): -
158 if namespace is not None: -159 self._namespace = '{' + namespace + '}' -160 else: -161 self._namespace = None -162 -163 if nsmap: -164 self._nsmap = dict(nsmap) -165 else: -166 self._nsmap = None -167 -168 if makeelement is not None: -169 assert callable(makeelement) -170 self._makeelement = makeelement -171 else: -172 self._makeelement = ET.Element -173 -174 # initialize type map for this element factory -175 -176 if typemap: -177 typemap = typemap.copy() -178 else: -179 typemap = {} -180 -181 def add_text(elem, item): -182 if len(elem): -183 elem[-1].tail = (elem[-1].tail or "") + item -184 else: -185 elem.text = (elem.text or "") + item -
186 if str not in typemap: -187 typemap[str] = add_text -188 if unicode not in typemap: -189 typemap[unicode] = add_text -190 -191 def add_dict(elem, item): -192 attrib = elem.attrib -193 for k, v in item.items(): -194 if isinstance(v, basestring): -195 attrib[k] = v -196 else: -197 attrib[k] = typemap[type(v)](None, v) -
198 if dict not in typemap: -199 typemap[dict] = add_dict -200 -201 self._typemap = typemap -202 -
203 - def __call__(self, tag, *children, **attrib): -
204 get = self._typemap.get -205 -206 if self._namespace is not None and tag[0] != '{': -207 tag = self._namespace + tag -208 elem = self._makeelement(tag, nsmap=self._nsmap) -209 if attrib: -210 get(dict)(elem, attrib) -211 -212 for item in children: -213 if callable(item): -214 item = item() -215 t = get(type(item)) -216 if t is None: -217 if ET.iselement(item): -218 elem.append(item) -219 continue -220 for basetype in type(item).__mro__: -221 # See if the typemap knows of any of this type's bases. -222 t = get(basetype) -223 if t is not None: -224 break -225 else: -226 raise TypeError("bad argument type: %s(%r)" % -227 (type(item).__name__, item)) -228 v = t(elem, item) -229 if v: -230 get(type(v))(elem, v) -231 -232 return elem -
233 -
234 - def __getattr__(self, tag): -
235 return partial(self, tag) -
236 -237 # create factory object -238 E = ElementMaker() -239 -
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.builder.ElementMaker-class.html b/doc/html/api/lxml.builder.ElementMaker-class.html deleted file mode 100644 index ea199c1..0000000 --- a/doc/html/api/lxml.builder.ElementMaker-class.html +++ /dev/null @@ -1,377 +0,0 @@ - - - - - lxml.builder.ElementMaker - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module builder :: - Class ElementMaker - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class ElementMaker

source code

-
-object --+
-         |
-        ElementMaker
-
- -
-
-Element generator factory.
-
-Unlike the ordinary Element factory, the E factory allows you to pass in
-more than just a tag and some optional attributes; you can also pass in
-text and other elements.  The text is added as either text or tail
-attributes, and elements are inserted at the right spot.  Some small
-examples::
-
-    >>> from lxml import etree as ET
-    >>> from lxml.builder import E
-
-    >>> ET.tostring(E("tag"))
-    '<tag/>'
-    >>> ET.tostring(E("tag", "text"))
-    '<tag>text</tag>'
-    >>> ET.tostring(E("tag", "text", key="value"))
-    '<tag key="value">text</tag>'
-    >>> ET.tostring(E("tag", E("subtag", "text"), "tail"))
-    '<tag><subtag>text</subtag>tail</tag>'
-
-For simple tags, the factory also allows you to write ``E.tag(...)`` instead
-of ``E('tag', ...)``::
-
-    >>> ET.tostring(E.tag())
-    '<tag/>'
-    >>> ET.tostring(E.tag("text"))
-    '<tag>text</tag>'
-    >>> ET.tostring(E.tag(E.subtag("text"), "tail"))
-    '<tag><subtag>text</subtag>tail</tag>'
-
-Here's a somewhat larger example; this shows how to generate HTML
-documents, using a mix of prepared factory functions for inline elements,
-nested ``E.tag`` calls, and embedded XHTML fragments::
-
-    # some common inline elements
-    A = E.a
-    I = E.i
-    B = E.b
-
-    def CLASS(v):
-        # helper function, 'class' is a reserved word
-        return {'class': v}
-
-    page = (
-        E.html(
-            E.head(
-                E.title("This is a sample document")
-            ),
-            E.body(
-                E.h1("Hello!", CLASS("title")),
-                E.p("This is a paragraph with ", B("bold"), " text in it!"),
-                E.p("This is another paragraph, with a ",
-                    A("link", href="http://www.python.org"), "."),
-                E.p("Here are some reservered characters: <spam&egg>."),
-                ET.XML("<p>And finally, here is an embedded XHTML fragment.</p>"),
-            )
-        )
-    )
-
-    print ET.tostring(page)
-
-Here's a prettyprinted version of the output from the above script::
-
-    <html>
-      <head>
-        <title>This is a sample document</title>
-      </head>
-      <body>
-        <h1 class="title">Hello!</h1>
-        <p>This is a paragraph with <b>bold</b> text in it!</p>
-        <p>This is another paragraph, with <a href="http://www.python.org">link</a>.</p>
-        <p>Here are some reservered characters: &lt;spam&amp;egg&gt;.</p>
-        <p>And finally, here is an embedded XHTML fragment.</p>
-      </body>
-    </html>
-
-For namespace support, you can pass a namespace map (``nsmap``)
-and/or a specific target ``namespace`` to the ElementMaker class::
-
->>> E = ElementMaker(namespace="http://my.ns/")
->>> print(ET.tostring( E.test ))
-<test xmlns="http://my.ns/"/>
-
->>> E = ElementMaker(namespace="http://my.ns/", nsmap={'p':'http://my.ns/'})
->>> print(ET.tostring( E.test ))
-<p:test xmlns:p="http://my.ns/"/>
-
-
- - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__init__(self, - typemap=None, - namespace=None, - nsmap=None, - makeelement=None)
- x.__init__(...) initializes x; see help(type(x)) for signature
- source code - -
- -
-   - - - - - - -
__call__(self, - tag, - *children, - **attrib) - source code - -
- -
-   - - - - - - -
__getattr__(self, - tag) - source code - -
- -
-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __new__, - __reduce__, - __reduce_ex__, - __repr__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__init__(self, - typemap=None, - namespace=None, - nsmap=None, - makeelement=None) -
(Constructor) -

-
source code  -
- - x.__init__(...) initializes x; see help(type(x)) for signature -
-
Overrides: - object.__init__ -
(inherited documentation)
- -
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.cssselect-module.html b/doc/html/api/lxml.cssselect-module.html deleted file mode 100644 index bd1256f..0000000 --- a/doc/html/api/lxml.cssselect-module.html +++ /dev/null @@ -1,249 +0,0 @@ - - - - - lxml.cssselect - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module cssselect - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Module cssselect

source code

-

CSS Selectors based on XPath.

-

This module supports selecting XML/HTML tags based on CSS selectors. -See the CSSSelector class for details.

-

This is a thin wrapper around cssselect 0.7 or later.

- - - - - - - - - - - - - - - - -
- - - - - -
Classes[hide private]
-
-   - - LxmlTranslator
- A custom CSS selector to XPath translator with lxml-specific extensions. -
-   - - LxmlHTMLTranslator
- lxml extensions + HTML support. -
-   - - CSSSelector
- A CSS selector. -
- - - - - - - - - -
- - - - - -
Functions[hide private]
-
-   - - - - - - -
_make_lower_case(context, - s) - source code - -
- -
- - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Variables[hide private]
-
-   - - external_cssselect = __import__('cssselect') -
-   - - SelectorSyntaxError = external_cssselect.SelectorSyntaxError -
-   - - ExpressionError = external_cssselect.ExpressionError -
-   - - SelectorError = external_cssselect.SelectorError -
-   - - ns = etree.FunctionNamespace('http://codespeak.net/lxml/css/') -
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.cssselect-pysrc.html b/doc/html/api/lxml.cssselect-pysrc.html deleted file mode 100644 index f14ce3c..0000000 --- a/doc/html/api/lxml.cssselect-pysrc.html +++ /dev/null @@ -1,315 +0,0 @@ - - - - - lxml.cssselect - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module cssselect - - - - - - -
[hide private]
[frames] | no frames]
-
-

Source Code for Module lxml.cssselect

-
-  1  """CSS Selectors based on XPath. 
-  2   
-  3  This module supports selecting XML/HTML tags based on CSS selectors. 
-  4  See the `CSSSelector` class for details. 
-  5   
-  6  This is a thin wrapper around cssselect 0.7 or later. 
-  7  """ 
-  8   
-  9  import sys 
- 10  from lxml import etree 
- 11   
- 12  ## Work-around the lack of absolute import in Python 2.4 
- 13  #from __future__ import absolute_import 
- 14  #from cssselect import ... 
- 15  try: 
- 16      external_cssselect = __import__('cssselect') 
- 17  except ImportError: 
- 18      raise ImportError('cssselect seems not to be installed. ' 
- 19                        'See http://packages.python.org/cssselect/') 
- 20   
- 21  SelectorSyntaxError = external_cssselect.SelectorSyntaxError 
- 22  ExpressionError = external_cssselect.ExpressionError 
- 23  SelectorError = external_cssselect.SelectorError 
- 24   
- 25   
- 26  __all__ = ['SelectorSyntaxError', 'ExpressionError', 'SelectorError', 
- 27             'CSSSelector'] 
- 28   
- 29   
-
30 -class LxmlTranslator(external_cssselect.GenericTranslator): -
31 """ - 32 A custom CSS selector to XPath translator with lxml-specific extensions. - 33 """ -
34 - def xpath_contains_function(self, xpath, function): -
35 # Defined there, removed in later drafts: - 36 # http://www.w3.org/TR/2001/CR-css3-selectors-20011113/#content-selectors - 37 if function.argument_types() not in (['STRING'], ['IDENT']): - 38 raise ExpressionError( - 39 "Expected a single string or ident for :contains(), got %r" - 40 % function.arguments) - 41 value = function.arguments[0].value - 42 return xpath.add_condition( - 43 'contains(__lxml_internal_css:lower-case(string(.)), %s)' - 44 % self.xpath_literal(value.lower())) -
45 - 46 -
47 -class LxmlHTMLTranslator(LxmlTranslator, external_cssselect.HTMLTranslator): -
48 """ - 49 lxml extensions + HTML support. - 50 """ -
51 - 52 -
53 -def _make_lower_case(context, s): -
54 return s.lower() -
55 - 56 ns = etree.FunctionNamespace('http://codespeak.net/lxml/css/') - 57 ns.prefix = '__lxml_internal_css' - 58 ns['lower-case'] = _make_lower_case - 59 - 60 -
61 -class CSSSelector(etree.XPath): -
62 """A CSS selector. - 63 - 64 Usage:: - 65 - 66 >>> from lxml import etree, cssselect - 67 >>> select = cssselect.CSSSelector("a tag > child") - 68 - 69 >>> root = etree.XML("<a><b><c/><tag><child>TEXT</child></tag></b></a>") - 70 >>> [ el.tag for el in select(root) ] - 71 ['child'] - 72 - 73 To use CSS namespaces, you need to pass a prefix-to-namespace - 74 mapping as ``namespaces`` keyword argument:: - 75 - 76 >>> rdfns = 'http://www.w3.org/1999/02/22-rdf-syntax-ns#' - 77 >>> select_ns = cssselect.CSSSelector('root > rdf|Description', - 78 ... namespaces={'rdf': rdfns}) - 79 - 80 >>> rdf = etree.XML(( - 81 ... '<root xmlns:rdf="%s">' - 82 ... '<rdf:Description>blah</rdf:Description>' - 83 ... '</root>') % rdfns) - 84 >>> [(el.tag, el.text) for el in select_ns(rdf)] - 85 [('{http://www.w3.org/1999/02/22-rdf-syntax-ns#}Description', 'blah')] - 86 - 87 """ -
88 - def __init__(self, css, namespaces=None, translator='xml'): -
89 if translator == 'xml': - 90 translator = LxmlTranslator() - 91 elif translator == 'html': - 92 translator = LxmlHTMLTranslator() - 93 elif translator == 'xhtml': - 94 translator = LxmlHTMLTranslator(xhtml=True) - 95 path = translator.css_to_xpath(css) - 96 etree.XPath.__init__(self, path, namespaces=namespaces) - 97 self.css = css -
98 -
99 - def __repr__(self): -
100 return '<%s %s for %r>' % ( -101 self.__class__.__name__, -102 hex(abs(id(self)))[2:], -103 self.css) -
104 -
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.cssselect.CSSSelector-class.html b/doc/html/api/lxml.cssselect.CSSSelector-class.html deleted file mode 100644 index 8177d84..0000000 --- a/doc/html/api/lxml.cssselect.CSSSelector-class.html +++ /dev/null @@ -1,330 +0,0 @@ - - - - - lxml.cssselect.CSSSelector - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module cssselect :: - Class CSSSelector - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class CSSSelector

source code

-
-               object --+        
-                        |        
-etree._XPathEvaluatorBase --+    
-                            |    
-                  etree.XPath --+
-                                |
-                               CSSSelector
-
- -
-

A CSS selector.

-

Usage:

-
->>> from lxml import etree, cssselect
->>> select = cssselect.CSSSelector("a tag > child")
-
->>> root = etree.XML("<a><b><c/><tag><child>TEXT</child></tag></b></a>")
->>> [ el.tag for el in select(root) ]
-['child']
-
-

To use CSS namespaces, you need to pass a prefix-to-namespace -mapping as namespaces keyword argument:

-
->>> rdfns = 'http://www.w3.org/1999/02/22-rdf-syntax-ns#'
->>> select_ns = cssselect.CSSSelector('root > rdf|Description',
-...                                   namespaces={'rdf': rdfns})
-
->>> rdf = etree.XML((
-...     '<root xmlns:rdf="%s">'
-...       '<rdf:Description>blah</rdf:Description>'
-...     '</root>') % rdfns)
->>> [(el.tag, el.text) for el in select_ns(rdf)]
-[('{http://www.w3.org/1999/02/22-rdf-syntax-ns#}Description', 'blah')]
-
- - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__init__(self, - css, - namespaces=None, - translator='xml')
- x.__init__(...) initializes x; see help(type(x)) for signature
- source code - -
- -
-   - - - - - - -
__repr__(self)
- repr(x)
- source code - -
- -
-

Inherited from etree.XPath: - __call__, - __new__ -

-

Inherited from etree._XPathEvaluatorBase: - evaluate -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __reduce__, - __reduce_ex__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from etree.XPath: - path -

-

Inherited from etree._XPathEvaluatorBase: - error_log -

-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__init__(self, - css, - namespaces=None, - translator='xml') -
(Constructor) -

-
source code  -
- - x.__init__(...) initializes x; see help(type(x)) for signature -
-
Overrides: - object.__init__ -
(inherited documentation)
- -
-
-
- -
- -
- - -
-

__repr__(self) -
(Representation operator) -

-
source code  -
- - repr(x) -
-
Overrides: - object.__repr__ -
(inherited documentation)
- -
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.cssselect.LxmlHTMLTranslator-class.html b/doc/html/api/lxml.cssselect.LxmlHTMLTranslator-class.html deleted file mode 100644 index c6b0983..0000000 --- a/doc/html/api/lxml.cssselect.LxmlHTMLTranslator-class.html +++ /dev/null @@ -1,153 +0,0 @@ - - - - - lxml.cssselect.LxmlHTMLTranslator - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module cssselect :: - Class LxmlHTMLTranslator - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class LxmlHTMLTranslator

source code

-
-     ??-50 --+    
-             |    
-LxmlTranslator --+
-                 |
-         ??-51 --+
-                 |
-                LxmlHTMLTranslator
-
- -
-lxml extensions + HTML support. - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-

Inherited from LxmlTranslator: - xpath_contains_function -

-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.cssselect.LxmlTranslator-class.html b/doc/html/api/lxml.cssselect.LxmlTranslator-class.html deleted file mode 100644 index 5cd4636..0000000 --- a/doc/html/api/lxml.cssselect.LxmlTranslator-class.html +++ /dev/null @@ -1,160 +0,0 @@ - - - - - lxml.cssselect.LxmlTranslator - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module cssselect :: - Class LxmlTranslator - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class LxmlTranslator

source code

-
-??-50 --+
-        |
-       LxmlTranslator
-
- -
-A custom CSS selector to XPath translator with lxml-specific extensions. - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
xpath_contains_function(self, - xpath, - function) - source code - -
- -
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.doctestcompare-module.html b/doc/html/api/lxml.doctestcompare-module.html deleted file mode 100644 index 41fa186..0000000 --- a/doc/html/api/lxml.doctestcompare-module.html +++ /dev/null @@ -1,515 +0,0 @@ - - - - - lxml.doctestcompare - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module doctestcompare - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Module doctestcompare

source code

-

lxml-based doctest output comparison.

-

Note: normally, you should just import the lxml.usedoctest and -lxml.html.usedoctest modules from within a doctest, instead of this -one:

-
->>> import lxml.usedoctest # for XML output
-
->>> import lxml.html.usedoctest # for HTML output
-
-

To use this module directly, you must call lxmldoctest.install(), -which will cause doctest to use this in all subsequent calls.

-

This changes the way output is checked and comparisons are made for -XML or HTML-like content.

-

XML or HTML content is noticed because the example starts with < -(it's HTML if it starts with <html). You can also use the -PARSE_HTML and PARSE_XML flags to force parsing.

-

Some rough wildcard-like things are allowed. Whitespace is generally -ignored (except in attributes). In text (attributes and text in the -body) you can use ... as a wildcard. In an example it also -matches any trailing tags in the element, though it does not match -leading tags. You may create a tag <any> or include an any -attribute in the tag. An any tag matches any tag, while the -attribute matches any and all attributes.

-

When a match fails, the reformatted example and gotten text is -displayed (indented), and a rough diff-like output is given. Anything -marked with - is in the output but wasn't supposed to be, and -similarly + means its in the example but wasn't in the output.

-

You can disable parsing on one line with # doctest:+NOPARSE_MARKUP

- - - - - - - - - - - - - - - - -
- - - - - -
Classes[hide private]
-
-   - - LXMLOutputChecker -
-   - - LHTMLOutputChecker -
-   - - _RestoreChecker -
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Functions[hide private]
-
-   - - - - - - -
strip(v) - source code - -
- -
-   - - - - - - -
norm_whitespace(v) - source code - -
- -
-   - - - - - - -
html_fromstring(html) - source code - -
- -
-   - - - - - - -
install(html=False)
- Install doctestcompare for all future doctests.
- source code - -
- -
-   - - - - - - -
temp_install(html=False, - del_module=None)
- Use this inside a doctest to enable this checker for this -doctest only.
- source code - -
- -
-   - - - - - - -
_find_doctest_frame() - source code - -
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Variables[hide private]
-
-   - - _IS_PYTHON_3 = False -
-   - - PARSE_HTML = 1024 -
-   - - PARSE_XML = 2048 -
-   - - NOPARSE_MARKUP = 4096 -
-   - - _html_parser = etree.HTMLParser(recover= False, remove_blank_t... -
-   - - _repr_re = re.compile(r'^<[^>]+ (at|object) ') -
-   - - _norm_whitespace_re = re.compile(r'[ \t\n][ \t\n]+') -
-   - - __test__ = {'basic': '\n >>> temp_install()\n >>> print ... -
-   - - __package__ = 'lxml' -
- - - - - - -
- - - - - -
Function Details[hide private]
-
- -
- -
- - -
-

install(html=False) -

-
source code  -
- -

Install doctestcompare for all future doctests.

-

If html is true, then by default the HTML parser will be used; -otherwise the XML parser is used.

-
-
-
-
- -
- -
- - -
-

temp_install(html=False, - del_module=None) -

-
source code  -
- -

Use this inside a doctest to enable this checker for this -doctest only.

-

If html is true, then by default the HTML parser will be used; -otherwise the XML parser is used.

-
-
-
-
-
- - - - - - -
- - - - - -
Variables Details[hide private]
-
- -
- -
-

_html_parser

- -
-
-
-
Value:
-
-etree.HTMLParser(recover= False, remove_blank_text= True)
-
-
-
-
-
- -
- -
-

__test__

- -
-
-
-
Value:
-
-{'basic': '''
-    >>> temp_install()
-    >>> print """<xml a="1" b="2">stuff</xml>"""
-    <xml b="2" a="1">...</xml>
-    >>> print """<xml xmlns="http://example.com"><tag   attr="bar"   /\
-></xml>"""
-    <xml xmlns="...">
-      <tag attr="..." />
-...
-
-
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.doctestcompare-pysrc.html b/doc/html/api/lxml.doctestcompare-pysrc.html deleted file mode 100644 index 8cd113a..0000000 --- a/doc/html/api/lxml.doctestcompare-pysrc.html +++ /dev/null @@ -1,1114 +0,0 @@ - - - - - lxml.doctestcompare - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module doctestcompare - - - - - - -
[hide private]
[frames] | no frames]
-
-

Source Code for Module lxml.doctestcompare

-
-  1  """ 
-  2  lxml-based doctest output comparison. 
-  3   
-  4  Note: normally, you should just import the `lxml.usedoctest` and 
-  5  `lxml.html.usedoctest` modules from within a doctest, instead of this 
-  6  one:: 
-  7   
-  8      >>> import lxml.usedoctest # for XML output 
-  9   
- 10      >>> import lxml.html.usedoctest # for HTML output 
- 11   
- 12  To use this module directly, you must call ``lxmldoctest.install()``, 
- 13  which will cause doctest to use this in all subsequent calls. 
- 14   
- 15  This changes the way output is checked and comparisons are made for 
- 16  XML or HTML-like content. 
- 17   
- 18  XML or HTML content is noticed because the example starts with ``<`` 
- 19  (it's HTML if it starts with ``<html``).  You can also use the 
- 20  ``PARSE_HTML`` and ``PARSE_XML`` flags to force parsing. 
- 21   
- 22  Some rough wildcard-like things are allowed.  Whitespace is generally 
- 23  ignored (except in attributes).  In text (attributes and text in the 
- 24  body) you can use ``...`` as a wildcard.  In an example it also 
- 25  matches any trailing tags in the element, though it does not match 
- 26  leading tags.  You may create a tag ``<any>`` or include an ``any`` 
- 27  attribute in the tag.  An ``any`` tag matches any tag, while the 
- 28  attribute matches any and all attributes. 
- 29   
- 30  When a match fails, the reformatted example and gotten text is 
- 31  displayed (indented), and a rough diff-like output is given.  Anything 
- 32  marked with ``-`` is in the output but wasn't supposed to be, and 
- 33  similarly ``+`` means its in the example but wasn't in the output. 
- 34   
- 35  You can disable parsing on one line with ``# doctest:+NOPARSE_MARKUP`` 
- 36  """ 
- 37   
- 38  from lxml import etree 
- 39  import sys 
- 40  import re 
- 41  import doctest 
- 42  import cgi 
- 43   
- 44  __all__ = ['PARSE_HTML', 'PARSE_XML', 'NOPARSE_MARKUP', 'LXMLOutputChecker', 
- 45             'LHTMLOutputChecker', 'install', 'temp_install'] 
- 46   
- 47  try: 
- 48      _basestring = basestring 
- 49  except NameError: 
- 50      _basestring = (str, bytes) 
- 51   
- 52  _IS_PYTHON_3 = sys.version_info[0] >= 3 
- 53   
- 54  PARSE_HTML = doctest.register_optionflag('PARSE_HTML') 
- 55  PARSE_XML = doctest.register_optionflag('PARSE_XML') 
- 56  NOPARSE_MARKUP = doctest.register_optionflag('NOPARSE_MARKUP') 
- 57   
- 58  OutputChecker = doctest.OutputChecker 
- 59   
-
60 -def strip(v): -
61 if v is None: - 62 return None - 63 else: - 64 return v.strip() -
65 -
66 -def norm_whitespace(v): -
67 return _norm_whitespace_re.sub(' ', v) -
68 - 69 _html_parser = etree.HTMLParser(recover=False, remove_blank_text=True) - 70 -
71 -def html_fromstring(html): -
73 - 74 # We use this to distinguish repr()s from elements: - 75 _repr_re = re.compile(r'^<[^>]+ (at|object) ') - 76 _norm_whitespace_re = re.compile(r'[ \t\n][ \t\n]+') - 77 -
78 -class LXMLOutputChecker(OutputChecker): -
79 - 80 empty_tags = ( - 81 'param', 'img', 'area', 'br', 'basefont', 'input', - 82 'base', 'meta', 'link', 'col') - 83 -
84 - def get_default_parser(self): -
85 return etree.XML -
86 -
87 - def check_output(self, want, got, optionflags): -
88 alt_self = getattr(self, '_temp_override_self', None) - 89 if alt_self is not None: - 90 super_method = self._temp_call_super_check_output - 91 self = alt_self - 92 else: - 93 super_method = OutputChecker.check_output - 94 parser = self.get_parser(want, got, optionflags) - 95 if not parser: - 96 return super_method( - 97 self, want, got, optionflags) - 98 try: - 99 want_doc = parser(want) -100 except etree.XMLSyntaxError: -101 return False -102 try: -103 got_doc = parser(got) -104 except etree.XMLSyntaxError: -105 return False -106 return self.compare_docs(want_doc, got_doc) -
107 -
108 - def get_parser(self, want, got, optionflags): -
109 parser = None -110 if NOPARSE_MARKUP & optionflags: -111 return None -112 if PARSE_HTML & optionflags: -113 parser = html_fromstring -114 elif PARSE_XML & optionflags: -115 parser = etree.XML -116 elif (want.strip().lower().startswith('<html') -117 and got.strip().startswith('<html')): -118 parser = html_fromstring -119 elif (self._looks_like_markup(want) -120 and self._looks_like_markup(got)): -121 parser = self.get_default_parser() -122 return parser -
123 -
124 - def _looks_like_markup(self, s): -
125 s = s.strip() -126 return (s.startswith('<') -127 and not _repr_re.search(s)) -
128 -
129 - def compare_docs(self, want, got): -
130 if not self.tag_compare(want.tag, got.tag): -131 return False -132 if not self.text_compare(want.text, got.text, True): -133 return False -134 if not self.text_compare(want.tail, got.tail, True): -135 return False -136 if 'any' not in want.attrib: -137 want_keys = sorted(want.attrib.keys()) -138 got_keys = sorted(got.attrib.keys()) -139 if want_keys != got_keys: -140 return False -141 for key in want_keys: -142 if not self.text_compare(want.attrib[key], got.attrib[key], False): -143 return False -144 if want.text != '...' or len(want): -145 want_children = list(want) -146 got_children = list(got) -147 while want_children or got_children: -148 if not want_children or not got_children: -149 return False -150 want_first = want_children.pop(0) -151 got_first = got_children.pop(0) -152 if not self.compare_docs(want_first, got_first): -153 return False -154 if not got_children and want_first.tail == '...': -155 break -156 return True -
157 -
158 - def text_compare(self, want, got, strip): -
159 want = want or '' -160 got = got or '' -161 if strip: -162 want = norm_whitespace(want).strip() -163 got = norm_whitespace(got).strip() -164 want = '^%s$' % re.escape(want) -165 want = want.replace(r'\.\.\.', '.*') -166 if re.search(want, got): -167 return True -168 else: -169 return False -
170 -
171 - def tag_compare(self, want, got): -
172 if want == 'any': -173 return True -174 if (not isinstance(want, _basestring) -175 or not isinstance(got, _basestring)): -176 return want == got -177 want = want or '' -178 got = got or '' -179 if want.startswith('{...}'): -180 # Ellipsis on the namespace -181 return want.split('}')[-1] == got.split('}')[-1] -182 else: -183 return want == got -
184 -
185 - def output_difference(self, example, got, optionflags): -
186 want = example.want -187 parser = self.get_parser(want, got, optionflags) -188 errors = [] -189 if parser is not None: -190 try: -191 want_doc = parser(want) -192 except etree.XMLSyntaxError: -193 e = sys.exc_info()[1] -194 errors.append('In example: %s' % e) -195 try: -196 got_doc = parser(got) -197 except etree.XMLSyntaxError: -198 e = sys.exc_info()[1] -199 errors.append('In actual output: %s' % e) -200 if parser is None or errors: -201 value = OutputChecker.output_difference( -202 self, example, got, optionflags) -203 if errors: -204 errors.append(value) -205 return '\n'.join(errors) -206 else: -207 return value -208 html = parser is html_fromstring -209 diff_parts = [] -210 diff_parts.append('Expected:') -211 diff_parts.append(self.format_doc(want_doc, html, 2)) -212 diff_parts.append('Got:') -213 diff_parts.append(self.format_doc(got_doc, html, 2)) -214 diff_parts.append('Diff:') -215 diff_parts.append(self.collect_diff(want_doc, got_doc, html, 2)) -216 return '\n'.join(diff_parts) -
217 -
218 - def html_empty_tag(self, el, html=True): -
219 if not html: -220 return False -221 if el.tag not in self.empty_tags: -222 return False -223 if el.text or len(el): -224 # This shouldn't happen (contents in an empty tag) -225 return False -226 return True -
227 -
228 - def format_doc(self, doc, html, indent, prefix=''): -
229 parts = [] -230 if not len(doc): -231 # No children... -232 parts.append(' '*indent) -233 parts.append(prefix) -234 parts.append(self.format_tag(doc)) -235 if not self.html_empty_tag(doc, html): -236 if strip(doc.text): -237 parts.append(self.format_text(doc.text)) -238 parts.append(self.format_end_tag(doc)) -239 if strip(doc.tail): -240 parts.append(self.format_text(doc.tail)) -241 parts.append('\n') -242 return ''.join(parts) -243 parts.append(' '*indent) -244 parts.append(prefix) -245 parts.append(self.format_tag(doc)) -246 if not self.html_empty_tag(doc, html): -247 parts.append('\n') -248 if strip(doc.text): -249 parts.append(' '*indent) -250 parts.append(self.format_text(doc.text)) -251 parts.append('\n') -252 for el in doc: -253 parts.append(self.format_doc(el, html, indent+2)) -254 parts.append(' '*indent) -255 parts.append(self.format_end_tag(doc)) -256 parts.append('\n') -257 if strip(doc.tail): -258 parts.append(' '*indent) -259 parts.append(self.format_text(doc.tail)) -260 parts.append('\n') -261 return ''.join(parts) -
262 -
263 - def format_text(self, text, strip=True): -
264 if text is None: -265 return '' -266 if strip: -267 text = text.strip() -268 return cgi.escape(text, 1) -
269 -
270 - def format_tag(self, el): -
271 attrs = [] -272 if isinstance(el, etree.CommentBase): -273 # FIXME: probably PIs should be handled specially too? -274 return '<!--' -275 for name, value in sorted(el.attrib.items()): -276 attrs.append('%s="%s"' % (name, self.format_text(value, False))) -277 if not attrs: -278 return '<%s>' % el.tag -279 return '<%s %s>' % (el.tag, ' '.join(attrs)) -
280 -
281 - def format_end_tag(self, el): -
282 if isinstance(el, etree.CommentBase): -283 # FIXME: probably PIs should be handled specially too? -284 return '-->' -285 return '</%s>' % el.tag -
286 -
287 - def collect_diff(self, want, got, html, indent): -
288 parts = [] -289 if not len(want) and not len(got): -290 parts.append(' '*indent) -291 parts.append(self.collect_diff_tag(want, got)) -292 if not self.html_empty_tag(got, html): -293 parts.append(self.collect_diff_text(want.text, got.text)) -294 parts.append(self.collect_diff_end_tag(want, got)) -295 parts.append(self.collect_diff_text(want.tail, got.tail)) -296 parts.append('\n') -297 return ''.join(parts) -298 parts.append(' '*indent) -299 parts.append(self.collect_diff_tag(want, got)) -300 parts.append('\n') -301 if strip(want.text) or strip(got.text): -302 parts.append(' '*indent) -303 parts.append(self.collect_diff_text(want.text, got.text)) -304 parts.append('\n') -305 want_children = list(want) -306 got_children = list(got) -307 while want_children or got_children: -308 if not want_children: -309 parts.append(self.format_doc(got_children.pop(0), html, indent+2, '-')) -310 continue -311 if not got_children: -312 parts.append(self.format_doc(want_children.pop(0), html, indent+2, '+')) -313 continue -314 parts.append(self.collect_diff( -315 want_children.pop(0), got_children.pop(0), html, indent+2)) -316 parts.append(' '*indent) -317 parts.append(self.collect_diff_end_tag(want, got)) -318 parts.append('\n') -319 if strip(want.tail) or strip(got.tail): -320 parts.append(' '*indent) -321 parts.append(self.collect_diff_text(want.tail, got.tail)) -322 parts.append('\n') -323 return ''.join(parts) -
324 -
325 - def collect_diff_tag(self, want, got): -
326 if not self.tag_compare(want.tag, got.tag): -327 tag = '%s (got: %s)' % (want.tag, got.tag) -328 else: -329 tag = got.tag -330 attrs = [] -331 any = want.tag == 'any' or 'any' in want.attrib -332 for name, value in sorted(got.attrib.items()): -333 if name not in want.attrib and not any: -334 attrs.append('-%s="%s"' % (name, self.format_text(value, False))) -335 else: -336 if name in want.attrib: -337 text = self.collect_diff_text(value, want.attrib[name], False) -338 else: -339 text = self.format_text(value, False) -340 attrs.append('%s="%s"' % (name, text)) -341 if not any: -342 for name, value in sorted(want.attrib.items()): -343 if name in got.attrib: -344 continue -345 attrs.append('+%s="%s"' % (name, self.format_text(value, False))) -346 if attrs: -347 tag = '<%s %s>' % (tag, ' '.join(attrs)) -348 else: -349 tag = '<%s>' % tag -350 return tag -
351 -
352 - def collect_diff_end_tag(self, want, got): -
353 if want.tag != got.tag: -354 tag = '%s (got: %s)' % (want.tag, got.tag) -355 else: -356 tag = got.tag -357 return '</%s>' % tag -
358 -
359 - def collect_diff_text(self, want, got, strip=True): -
360 if self.text_compare(want, got, strip): -361 if not got: -362 return '' -363 return self.format_text(got, strip) -364 text = '%s (got: %s)' % (want, got) -365 return self.format_text(text, strip) -
366 -
367 -class LHTMLOutputChecker(LXMLOutputChecker): -
368 - def get_default_parser(self): -
369 return html_fromstring -
370 -
371 -def install(html=False): -
372 """ -373 Install doctestcompare for all future doctests. -374 -375 If html is true, then by default the HTML parser will be used; -376 otherwise the XML parser is used. -377 """ -378 if html: -379 doctest.OutputChecker = LHTMLOutputChecker -380 else: -381 doctest.OutputChecker = LXMLOutputChecker -
382 -
383 -def temp_install(html=False, del_module=None): -
384 """ -385 Use this *inside* a doctest to enable this checker for this -386 doctest only. -387 -388 If html is true, then by default the HTML parser will be used; -389 otherwise the XML parser is used. -390 """ -391 if html: -392 Checker = LHTMLOutputChecker -393 else: -394 Checker = LXMLOutputChecker -395 frame = _find_doctest_frame() -396 dt_self = frame.f_locals['self'] -397 checker = Checker() -398 old_checker = dt_self._checker -399 dt_self._checker = checker -400 # The unfortunate thing is that there is a local variable 'check' -401 # in the function that runs the doctests, that is a bound method -402 # into the output checker. We have to update that. We can't -403 # modify the frame, so we have to modify the object in place. The -404 # only way to do this is to actually change the func_code -405 # attribute of the method. We change it, and then wait for -406 # __record_outcome to be run, which signals the end of the __run -407 # method, at which point we restore the previous check_output -408 # implementation. -409 if _IS_PYTHON_3: -410 check_func = frame.f_locals['check'].__func__ -411 checker_check_func = checker.check_output.__func__ -412 else: -413 check_func = frame.f_locals['check'].im_func -414 checker_check_func = checker.check_output.im_func -415 # Because we can't patch up func_globals, this is the only global -416 # in check_output that we care about: -417 doctest.etree = etree -418 _RestoreChecker(dt_self, old_checker, checker, -419 check_func, checker_check_func, -420 del_module) -
421 -
422 -class _RestoreChecker(object): -
423 - def __init__(self, dt_self, old_checker, new_checker, check_func, clone_func, -424 del_module): -
425 self.dt_self = dt_self -426 self.checker = old_checker -427 self.checker._temp_call_super_check_output = self.call_super -428 self.checker._temp_override_self = new_checker -429 self.check_func = check_func -430 self.clone_func = clone_func -431 self.del_module = del_module -432 self.install_clone() -433 self.install_dt_self() -
434 - def install_clone(self): -
435 if _IS_PYTHON_3: -436 self.func_code = self.check_func.__code__ -437 self.func_globals = self.check_func.__globals__ -438 self.check_func.__code__ = self.clone_func.__code__ -439 else: -440 self.func_code = self.check_func.func_code -441 self.func_globals = self.check_func.func_globals -442 self.check_func.func_code = self.clone_func.func_code -
443 - def uninstall_clone(self): -
444 if _IS_PYTHON_3: -445 self.check_func.__code__ = self.func_code -446 else: -447 self.check_func.func_code = self.func_code -
448 - def install_dt_self(self): -
449 self.prev_func = self.dt_self._DocTestRunner__record_outcome -450 self.dt_self._DocTestRunner__record_outcome = self -
451 - def uninstall_dt_self(self): -
452 self.dt_self._DocTestRunner__record_outcome = self.prev_func -
453 - def uninstall_module(self): -
454 if self.del_module: -455 import sys -456 del sys.modules[self.del_module] -457 if '.' in self.del_module: -458 package, module = self.del_module.rsplit('.', 1) -459 package_mod = sys.modules[package] -460 delattr(package_mod, module) -
461 - def __call__(self, *args, **kw): -
462 self.uninstall_clone() -463 self.uninstall_dt_self() -464 del self.checker._temp_override_self -465 del self.checker._temp_call_super_check_output -466 result = self.prev_func(*args, **kw) -467 self.uninstall_module() -468 return result -
469 - def call_super(self, *args, **kw): -
470 self.uninstall_clone() -471 try: -472 return self.check_func(*args, **kw) -473 finally: -474 self.install_clone() -
475 -
477 import sys -478 frame = sys._getframe(1) -479 while frame: -480 l = frame.f_locals -481 if 'BOOM' in l: -482 # Sign of doctest -483 return frame -484 frame = frame.f_back -485 raise LookupError( -486 "Could not find doctest (only use this function *inside* a doctest)") -
487 -488 __test__ = { -489 'basic': ''' -490 >>> temp_install() -491 >>> print """<xml a="1" b="2">stuff</xml>""" -492 <xml b="2" a="1">...</xml> -493 >>> print """<xml xmlns="http://example.com"><tag attr="bar" /></xml>""" -494 <xml xmlns="..."> -495 <tag attr="..." /> -496 </xml> -497 >>> print """<xml>blahblahblah<foo /></xml>""" # doctest: +NOPARSE_MARKUP, +ELLIPSIS -498 <xml>...foo /></xml> -499 '''} -500 -501 if __name__ == '__main__': -502 import doctest -503 doctest.testmod() -504 -
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.doctestcompare.LHTMLOutputChecker-class.html b/doc/html/api/lxml.doctestcompare.LHTMLOutputChecker-class.html deleted file mode 100644 index c6ee76d..0000000 --- a/doc/html/api/lxml.doctestcompare.LHTMLOutputChecker-class.html +++ /dev/null @@ -1,251 +0,0 @@ - - - - - lxml.doctestcompare.LHTMLOutputChecker - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module doctestcompare :: - Class LHTMLOutputChecker - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class LHTMLOutputChecker

source code

-
-doctest.OutputChecker --+    
-                        |    
-        LXMLOutputChecker --+
-                            |
-                           LHTMLOutputChecker
-
- -
- - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
get_default_parser(self) - source code - -
- -
-

Inherited from LXMLOutputChecker: - check_output, - collect_diff, - collect_diff_end_tag, - collect_diff_tag, - collect_diff_text, - compare_docs, - format_doc, - format_end_tag, - format_tag, - format_text, - get_parser, - html_empty_tag, - output_difference, - tag_compare, - text_compare -

-

Inherited from LXMLOutputChecker (private): - _looks_like_markup -

-

Inherited from doctest.OutputChecker (private): - _do_a_fancy_diff -

-
- - - - - - - - - -
- - - - - -
Class Variables[hide private]
-
-

Inherited from LXMLOutputChecker: - empty_tags -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

get_default_parser(self) -

-
source code  -
- - -
-
Overrides: - LXMLOutputChecker.get_default_parser -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.doctestcompare.LXMLOutputChecker-class.html b/doc/html/api/lxml.doctestcompare.LXMLOutputChecker-class.html deleted file mode 100644 index 2125fd6..0000000 --- a/doc/html/api/lxml.doctestcompare.LXMLOutputChecker-class.html +++ /dev/null @@ -1,632 +0,0 @@ - - - - - lxml.doctestcompare.LXMLOutputChecker - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module doctestcompare :: - Class LXMLOutputChecker - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class LXMLOutputChecker

source code

-
-doctest.OutputChecker --+
-                        |
-                       LXMLOutputChecker
-
- -
Known Subclasses:
-
- -
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
get_default_parser(self) - source code - -
- -
-   - - - - - - -
check_output(self, - want, - got, - optionflags)
- Return True iff the actual output from an example (got) -matches the expected output (want). These strings are -always considered to match if they are identical; but -depending on what option flags the test runner is using, -several non-exact match types are also possible. See the -documentation for TestRunner for more information about -option flags.
- source code - -
- -
-   - - - - - - -
get_parser(self, - want, - got, - optionflags) - source code - -
- -
-   - - - - - - -
_looks_like_markup(self, - s) - source code - -
- -
-   - - - - - - -
compare_docs(self, - want, - got) - source code - -
- -
-   - - - - - - -
text_compare(self, - want, - got, - strip) - source code - -
- -
-   - - - - - - -
tag_compare(self, - want, - got) - source code - -
- -
-   - - - - - - -
output_difference(self, - example, - got, - optionflags)
- Return a string describing the differences between the -expected output for a given example (example) and the actual -output (got). optionflags is the set of option flags used -to compare want and got.
- source code - -
- -
-   - - - - - - -
html_empty_tag(self, - el, - html=True) - source code - -
- -
-   - - - - - - -
format_doc(self, - doc, - html, - indent, - prefix='') - source code - -
- -
-   - - - - - - -
format_text(self, - text, - strip=True) - source code - -
- -
-   - - - - - - -
format_tag(self, - el) - source code - -
- -
-   - - - - - - -
format_end_tag(self, - el) - source code - -
- -
-   - - - - - - -
collect_diff(self, - want, - got, - html, - indent) - source code - -
- -
-   - - - - - - -
collect_diff_tag(self, - want, - got) - source code - -
- -
-   - - - - - - -
collect_diff_end_tag(self, - want, - got) - source code - -
- -
-   - - - - - - -
collect_diff_text(self, - want, - got, - strip=True) - source code - -
- -
-

Inherited from doctest.OutputChecker (private): - _do_a_fancy_diff -

-
- - - - - - - - - -
- - - - - -
Class Variables[hide private]
-
-   - - empty_tags = ('param', 'img', 'area', 'br', 'basefont', 'input... -
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

check_output(self, - want, - got, - optionflags) -

-
source code  -
- - Return True iff the actual output from an example (got) -matches the expected output (want). These strings are -always considered to match if they are identical; but -depending on what option flags the test runner is using, -several non-exact match types are also possible. See the -documentation for TestRunner for more information about -option flags. -
-
Overrides: - doctest.OutputChecker.check_output -
(inherited documentation)
- -
-
-
- -
- -
- - -
-

output_difference(self, - example, - got, - optionflags) -

-
source code  -
- - Return a string describing the differences between the -expected output for a given example (example) and the actual -output (got). optionflags is the set of option flags used -to compare want and got. -
-
Overrides: - doctest.OutputChecker.output_difference -
(inherited documentation)
- -
-
-
-
- - - - - - -
- - - - - -
Class Variable Details[hide private]
-
- -
- -
-

empty_tags

- -
-
-
-
Value:
-
-('param',
- 'img',
- 'area',
- 'br',
- 'basefont',
- 'input',
- 'base',
- 'meta',
-...
-
-
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.doctestcompare._RestoreChecker-class.html b/doc/html/api/lxml.doctestcompare._RestoreChecker-class.html deleted file mode 100644 index 0f81b86..0000000 --- a/doc/html/api/lxml.doctestcompare._RestoreChecker-class.html +++ /dev/null @@ -1,371 +0,0 @@ - - - - - lxml.doctestcompare._RestoreChecker - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module doctestcompare :: - Class _RestoreChecker - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class _RestoreChecker

source code

-
-object --+
-         |
-        _RestoreChecker
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__init__(self, - dt_self, - old_checker, - new_checker, - check_func, - clone_func, - del_module)
- x.__init__(...) initializes x; see help(type(x)) for signature
- source code - -
- -
-   - - - - - - -
install_clone(self) - source code - -
- -
-   - - - - - - -
uninstall_clone(self) - source code - -
- -
-   - - - - - - -
install_dt_self(self) - source code - -
- -
-   - - - - - - -
uninstall_dt_self(self) - source code - -
- -
-   - - - - - - -
uninstall_module(self) - source code - -
- -
-   - - - - - - -
__call__(self, - *args, - **kw) - source code - -
- -
-   - - - - - - -
call_super(self, - *args, - **kw) - source code - -
- -
-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __new__, - __reduce__, - __reduce_ex__, - __repr__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__init__(self, - dt_self, - old_checker, - new_checker, - check_func, - clone_func, - del_module) -
(Constructor) -

-
source code  -
- - x.__init__(...) initializes x; see help(type(x)) for signature -
-
Overrides: - object.__init__ -
(inherited documentation)
- -
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree-module.html b/doc/html/api/lxml.etree-module.html deleted file mode 100644 index 0400585..0000000 --- a/doc/html/api/lxml.etree-module.html +++ /dev/null @@ -1,2469 +0,0 @@ - - - - - lxml.etree - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Module etree

-The lxml.etree module implements the extended ElementTree API -for XML. - -
-

Version: - 2.3.6 -

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Classes[hide private]
-
-   - - AncestorsIterator
- AncestorsIterator(self, node, tag=None) -Iterates over the ancestors of an element (from parent to parent). -
-   - - AttributeBasedElementClassLookup
- AttributeBasedElementClassLookup(self, attribute_name, class_mapping, fallback=None) -Checks an attribute of an Element and looks up the value in a -class dictionary. -
-   - - C14NError
- Error during C14N serialisation. -
-   - - CDATA
- CDATA(data) -
-   - - CommentBase
- All custom Comment classes must inherit from this one. -
-   - - CustomElementClassLookup
- CustomElementClassLookup(self, fallback=None) -Element class lookup based on a subclass method. -
-   - - DTD
- DTD(self, file=None, external_id=None) -A DTD validator. -
-   - - DTDError
- Base class for DTD errors. -
-   - - DTDParseError
- Error while parsing a DTD. -
-   - - DTDValidateError
- Error while validating an XML document with a DTD. -
-   - - DocInfo
- Document information provided by parser and DTD. -
-   - - DocumentInvalid
- Validation error. -
-   - - ETCompatXMLParser
- ETCompatXMLParser(self, encoding=None, attribute_defaults=False, dtd_validation=False, load_dtd=False, no_network=True, ns_clean=False, recover=False, schema=None, huge_tree=False, remove_blank_text=False, resolve_entities=True, remove_comments=True, remove_pis=True, strip_cdata=True, target=None, compact=True) -
-   - - ETXPath
- ETXPath(self, path, extensions=None, regexp=True, smart_strings=True) -Special XPath class that supports the ElementTree {uri} notation for namespaces. -
-   - - ElementBase
- ElementBase(*children, attrib=None, nsmap=None, **_extra) -
-   - - ElementChildIterator
- ElementChildIterator(self, node, tag=None, reversed=False) -Iterates over the children of an element. -
-   - - ElementClassLookup
- ElementClassLookup(self) -Superclass of Element class lookups. -
-   - - ElementDefaultClassLookup
- ElementDefaultClassLookup(self, element=None, comment=None, pi=None, entity=None) -Element class lookup scheme that always returns the default Element -class. -
-   - - ElementDepthFirstIterator
- ElementDepthFirstIterator(self, node, tag=None, inclusive=True) -Iterates over an element and its sub-elements in document order (depth -first pre-order). -
-   - - ElementNamespaceClassLookup
- ElementNamespaceClassLookup(self, fallback=None) -
-   - - ElementTextIterator
- ElementTextIterator(self, element, tag=None, with_tail=True) -Iterates over the text content of a subtree. -
-   - - EntityBase
- All custom Entity classes must inherit from this one. -
-   - - Error -
-   - - ErrorDomains
- Libxml2 error domains -
-   - - ErrorLevels
- Libxml2 error levels -
-   - - ErrorTypes
- Libxml2 error types -
-   - - FallbackElementClassLookup
- FallbackElementClassLookup(self, fallback=None) -
-   - - HTMLParser
- HTMLParser(self, encoding=None, remove_blank_text=False, remove_comments=False, remove_pis=False, strip_cdata=True, no_network=True, target=None, XMLSchema schema=None, recover=True, compact=True) -
-   - - LxmlError
- Main exception base class for lxml. All other exceptions inherit from -this one. -
-   - - LxmlRegistryError
- Base class of lxml registry errors. -
-   - - LxmlSyntaxError
- Base class for all syntax errors. -
-   - - NamespaceRegistryError
- Error registering a namespace extension. -
-   - - PIBase
- All custom Processing Instruction classes must inherit from this one. -
-   - - ParseError
- Syntax error while parsing an XML document. -
-   - - ParserBasedElementClassLookup
- ParserBasedElementClassLookup(self, fallback=None) -Element class lookup based on the XML parser. -
-   - - ParserError
- Internal lxml parser error. -
-   - - PyErrorLog
- PyErrorLog(self, logger_name=None, logger=None) -A global error log that connects to the Python stdlib logging package. -
-   - - PythonElementClassLookup
- PythonElementClassLookup(self, fallback=None) -Element class lookup based on a subclass method. -
-   - - QName
- QName(text_or_uri_or_element, tag=None) -
-   - - RelaxNG
- RelaxNG(self, etree=None, file=None) -Turn a document into a Relax NG validator. -
-   - - RelaxNGError
- Base class for RelaxNG errors. -
-   - - RelaxNGErrorTypes
- Libxml2 RelaxNG error types -
-   - - RelaxNGParseError
- Error while parsing an XML document as RelaxNG. -
-   - - RelaxNGValidateError
- Error while validating an XML document with a RelaxNG schema. -
-   - - Resolver
- This is the base class of all resolvers. -
-   - - Schematron
- Schematron(self, etree=None, file=None) -A Schematron validator. -
-   - - SchematronError
- Base class of all Schematron errors. -
-   - - SchematronParseError
- Error while parsing an XML document as Schematron schema. -
-   - - SchematronValidateError
- Error while validating an XML document with a Schematron schema. -
-   - - SerialisationError
- A libxml2 error that occurred during serialisation. -
-   - - SiblingsIterator
- SiblingsIterator(self, node, tag=None, preceding=False) -Iterates over the siblings of an element. -
-   - - TreeBuilder
- TreeBuilder(self, element_factory=None, parser=None) -Parser target that builds a tree. -
-   - - XInclude
- XInclude(self) -XInclude processor. -
-   - - XIncludeError
- Error during XInclude processing. -
-   - - XMLParser
- XMLParser(self, encoding=None, attribute_defaults=False, dtd_validation=False, load_dtd=False, no_network=True, ns_clean=False, recover=False, XMLSchema schema=None, remove_blank_text=False, resolve_entities=True, remove_comments=False, remove_pis=False, strip_cdata=True, target=None, compact=True) -
-   - - XMLSchema
- XMLSchema(self, etree=None, file=None) -Turn a document into an XML Schema validator. -
-   - - XMLSchemaError
- Base class of all XML Schema errors -
-   - - XMLSchemaParseError
- Error while parsing an XML document as XML Schema. -
-   - - XMLSchemaValidateError
- Error while validating an XML document with an XML Schema. -
-   - - XMLSyntaxError
- Syntax error while parsing an XML document. -
-   - - XMLTreeBuilder
- ETCompatXMLParser(self, encoding=None, attribute_defaults=False, dtd_validation=False, load_dtd=False, no_network=True, ns_clean=False, recover=False, schema=None, huge_tree=False, remove_blank_text=False, resolve_entities=True, remove_comments=True, remove_pis=True, strip_cdata=True, target=None, compact=True) -
-   - - XPath
- XPath(self, path, namespaces=None, extensions=None, regexp=True, smart_strings=True) -A compiled XPath expression that can be called on Elements and ElementTrees. -
-   - - XPathDocumentEvaluator
- XPathDocumentEvaluator(self, etree, namespaces=None, extensions=None, regexp=True, smart_strings=True) -Create an XPath evaluator for an ElementTree. -
-   - - XPathElementEvaluator
- XPathElementEvaluator(self, element, namespaces=None, extensions=None, regexp=True, smart_strings=True) -Create an XPath evaluator for an element. -
-   - - XPathError
- Base class of all XPath errors. -
-   - - XPathEvalError
- Error during XPath evaluation. -
-   - - XPathFunctionError
- Internal error looking up an XPath extension function. -
-   - - XPathResultError
- Error handling an XPath result. -
-   - - XPathSyntaxError -
-   - - XSLT
- XSLT(self, xslt_input, extensions=None, regexp=True, access_control=None) -
-   - - XSLTAccessControl
- XSLTAccessControl(self, read_file=True, write_file=True, create_dir=True, read_network=True, write_network=True) -
-   - - XSLTApplyError
- Error running an XSL transformation. -
-   - - XSLTError
- Base class of all XSLT errors. -
-   - - XSLTExtension
- Base class of an XSLT extension element. -
-   - - XSLTExtensionError
- Error registering an XSLT extension. -
-   - - XSLTParseError
- Error parsing a stylesheet document. -
-   - - XSLTSaveError
- Error serialising an XSLT result. -
-   - - _Attrib
- A dict-like proxy for the Element.attrib property. -
-   - - _BaseErrorLog -
-   - - _BaseParser -
-   - - _Comment -
-   - - _Document
- Internal base class to reference a libxml document. -
-   - - _DomainErrorLog -
-   - - _Element
- Element class. -
-   - - _ElementIterator
- Dead but public. :) -
-   - - _ElementMatchIterator -
-   - - _ElementStringResult -
-   - - _ElementTagMatcher
- Dead but public. :) -
-   - - _ElementTree -
-   - - _ElementUnicodeResult -
-   - - _Entity -
-   - - _ErrorLog -
-   - - _FeedParser -
-   - - _IDDict
- IDDict(self, etree) -A dictionary-like proxy class that mapps ID attributes to elements. -
-   - - _ListErrorLog
- Immutable base version of a list based error log. -
-   - - _LogEntry
- A log message entry from an error log. -
-   - - _ProcessingInstruction -
-   - - _RotatingErrorLog -
-   - - _SaxParserTarget -
-   - - _TargetParserResult -
-   - - _Validator
- Base class for XML validators. -
-   - - _XPathEvaluatorBase -
-   - - _XSLTProcessingInstruction -
-   - - _XSLTResultTree -
-   - - iterparse
- iterparse(self, source, events=("end",), tag=None, attribute_defaults=False, dtd_validation=False, load_dtd=False, no_network=True, remove_blank_text=False, remove_comments=False, remove_pis=False, encoding=None, html=False, huge_tree=False, schema=None) -
-   - - iterwalk
- iterwalk(self, element_or_tree, events=("end",), tag=None) -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Functions[hide private]
-
-   - - - - - - -
Comment(text=None)
- Comment element factory. This factory function creates a special element that will -be serialized as an XML comment.
- - -
- -
-   - - - - - - -
Element(_tag, - attrib=None, - nsmap=None, - **_extra)
- Element factory. This function returns an object implementing the -Element interface.
- - -
- -
-   - - - - - - -
ElementTree(element=None, - file=None, - parser=None)
- ElementTree wrapper class.
- - -
- -
-   - - - - - - -
Entity(name)
- Entity factory. This factory function creates a special element -that will be serialized as an XML entity reference or character -reference. Note, however, that entities will not be automatically -declared in the document. A document that uses entity references -requires a DTD to define the entities.
- - -
- -
-   - - - - - - -
Extension(module, - function_mapping=None, - ns=None)
- Build a dictionary of extension functions from the functions -defined in a module or the methods of an object.
- - -
- -
-   - - - - - - -
FunctionNamespace(ns_uri)
- Retrieve the function namespace object associated with the given -URI.
- - -
- -
-   - - - - - - -
HTML(text, - parser=None, - base_url=None)
- Parses an HTML document from a string constant. Returns the root -node (or the result returned by a parser target). This function -can be used to embed "HTML literals" in Python code.
- - -
- -
-   - - - - - - -
PI(target, - text=None)
- ProcessingInstruction element factory. This factory function creates a -special element that will be serialized as an XML processing instruction.
- - -
- -
-   - - - - - - -
ProcessingInstruction(target, - text=None)
- ProcessingInstruction element factory. This factory function creates a -special element that will be serialized as an XML processing instruction.
- - -
- -
-   - - - - - - -
SubElement(_parent, - _tag, - attrib=None, - nsmap=None, - **_extra)
- Subelement factory. This function creates an element instance, and -appends it to an existing element.
- - -
- -
-   - - - - - - -
XML(text, - parser=None, - base_url=None)
- Parses an XML document or fragment from a string constant. -Returns the root node (or the result returned by a parser target). -This function can be used to embed "XML literals" in Python code, -like in
- - -
- -
-   - - - - - - -
XMLDTDID(text, - parser=None, - base_url=None)
- Parse the text and return a tuple (root node, ID dictionary). The root -node is the same as returned by the XML() function. The dictionary -contains string-element pairs. The dictionary keys are the values of ID -attributes as defined by the DTD. The elements referenced by the ID are -stored as dictionary values.
- - -
- -
-   - - - - - - -
XMLID(text, - parser=None, - base_url=None)
- Parse the text and return a tuple (root node, ID dictionary). The root -node is the same as returned by the XML() function. The dictionary -contains string-element pairs. The dictionary keys are the values of 'id' -attributes. The elements referenced by the ID are stored as dictionary -values.
- - -
- -
-   - - - - - - -
XPathEvaluator(etree_or_element, - namespaces=None, - extensions=None, - regexp=True, - smart_strings=True)
- Creates an XPath evaluator for an ElementTree or an Element.
- - -
- -
-   - - - - - - -
cleanup_namespaces(tree_or_element)
- Remove all namespace declarations from a subtree that are not used -by any of the elements or attributes in that tree.
- - -
- -
-   - - - - - - -
clear_error_log()
- Clear the global error log. Note that this log is already bound to a -fixed size.
- - -
- -
-   - - - - - - -
dump(elem, - pretty_print=True, - with_tail=True)
- Writes an element tree or element structure to sys.stdout. This function -should be used for debugging only.
- - -
- -
-   - - - - - - -
fromstring(text, - parser=None, - base_url=None)
- Parses an XML document or fragment from a string. Returns the -root node (or the result returned by a parser target).
- - -
- -
-   - - - - - - -
fromstringlist(strings, - parser=None)
- Parses an XML document from a sequence of strings. Returns the -root node (or the result returned by a parser target).
- - -
- -
-   - - - - - - -
get_default_parser() - - -
- -
-   - - - - - - -
iselement(element)
- Checks if an object appears to be a valid element object.
- - -
- -
-   - - - - - - -
parse(source, - parser=None, - base_url=None)
- Return an ElementTree object loaded with source elements. If no parser -is provided as second argument, the default parser is used.
- - -
- -
-   - - - - - - -
parseid(source, - parser=None)
- Parses the source into a tuple containing an ElementTree object and an -ID dictionary. If no parser is provided as second argument, the default -parser is used.
- - -
- -
-   - - - - - - -
register_namespace(...)
- Registers a namespace prefix that newly created Elements in that -namespace will use. The registry is global, and any existing -mapping for either the given prefix or the namespace URI will be -removed.
- - -
- -
-   - - - - - - -
set_default_parser(parser=None)
- Set a default parser for the current thread. This parser is used -globally whenever no parser is supplied to the various parse functions of -the lxml API. If this function is called without a parser (or if it is -None), the default parser is reset to the original configuration.
- - -
- -
-   - - - - - - -
set_element_class_lookup(lookup= None)
- Set the global default element class lookup method.
- - -
- -
-   - - - - - - -
strip_attributes(tree_or_element, - *attribute_names)
- Delete all attributes with the provided attribute names from an -Element (or ElementTree) and its descendants.
- - -
- -
-   - - - - - - -
strip_elements(tree_or_element, - with_tail=True, - *tag_names)
- Delete all elements with the provided tag names from a tree or -subtree. This will remove the elements and their entire subtree, -including all their attributes, text content and descendants. It -will also remove the tail text of the element unless you -explicitly set the with_tail keyword argument option to False.
- - -
- -
-   - - - - - - -
strip_tags(tree_or_element, - *tag_names)
- Delete all elements with the provided tag names from a tree or -subtree. This will remove the elements and their attributes, but -not their text/tail content or descendants. Instead, it will -merge the text content and children of the element into its -parent.
- - -
- -
-   - - - - - - -
tostring(element_or_tree, - encoding=None, - method="xml", - xml_declaration=None, - pretty_print=False, - with_tail=True, - standalone=None, - doctype=None, - exclusive=False, - with_comments=True, - inclusive_ns_prefixes=None)
- Serialize an element to an encoded string representation of its XML -tree.
- - -
- -
-   - - - - - - -
tostringlist(element_or_tree, - *args, - **kwargs)
- Serialize an element to an encoded string representation of its XML -tree, stored in a list of partial strings.
- - -
- -
-   - - - - - - -
tounicode(element_or_tree, - method="xml", - pretty_print=False, - with_tail=True, - doctype=None)
- Serialize an element to the Python unicode representation of its XML -tree.
- - -
- -
-   - - - - - - -
use_global_python_log(log)
- Replace the global error log by an etree.PyErrorLog that uses the -standard Python logging package.
- - -
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Variables[hide private]
-
-   - - DEBUG = 1 -
-   - - LIBXML_COMPILED_VERSION = (2, 7, 8) -
-   - - LIBXML_VERSION = (2, 7, 8) -
-   - - LIBXSLT_COMPILED_VERSION = (1, 1, 26) -
-   - - LIBXSLT_VERSION = (1, 1, 26) -
-   - - LXML_VERSION = (2, 3, 6, 0) -
-   - - __package__ = None
- hash(x) -
-   - - __pyx_capi__ = {'appendChild': <capsule object "void (struct L... -
-   - - __test__ = {u'XML (line 2926)': u'XML(text, parser=None, base_... -
-   - - memory_debugger = <lxml.etree._MemDebug object at 0x2acea522d8e0> -
- - - - - - -
- - - - - -
Function Details[hide private]
-
- -
- -
- - -
-

Element(_tag, - attrib=None, - nsmap=None, - **_extra) -

-
  -
- -

Element factory. This function returns an object implementing the -Element interface.

-

Also look at the _Element.makeelement() and -_BaseParser.makeelement() methods, which provide a faster way to -create an Element within a specific document or parser context.

-
-
-
-
- -
- -
- - -
-

Extension(module, - function_mapping=None, - ns=None) -

-
  -
- -

Build a dictionary of extension functions from the functions -defined in a module or the methods of an object.

-

As second argument, you can pass an additional mapping of -attribute names to XPath function names, or a list of function -names that should be taken.

-

The ns keyword argument accepts a namespace URI for the XPath -functions.

-
-
-
-
- -
- -
- - -
-

FunctionNamespace(ns_uri) -

-
  -
- -

Retrieve the function namespace object associated with the given -URI.

-

Creates a new one if it does not yet exist. A function namespace -can only be used to register extension functions.

-
-
-
-
- -
- -
- - -
-

HTML(text, - parser=None, - base_url=None) -

-
  -
- -

Parses an HTML document from a string constant. Returns the root -node (or the result returned by a parser target). This function -can be used to embed "HTML literals" in Python code.

-

To override the parser with a different HTMLParser you can pass it to -the parser keyword argument.

-

The base_url keyword argument allows to set the original base URL of -the document to support relative Paths when looking up external entities -(DTD, XInclude, ...).

-
-
-
-
- -
- -
- - -
-

XML(text, - parser=None, - base_url=None) -

-
  -
- -

Parses an XML document or fragment from a string constant. -Returns the root node (or the result returned by a parser target). -This function can be used to embed "XML literals" in Python code, -like in

-
-
->>> root = etree.XML("<root><test/></root>")
-
-

To override the parser with a different XMLParser you can pass it to -the parser keyword argument.

-

The base_url keyword argument allows to set the original base URL of -the document to support relative Paths when looking up external entities -(DTD, XInclude, ...).

-
-
-
-
- -
- -
- - -
-

XMLDTDID(text, - parser=None, - base_url=None) -

-
  -
- -

Parse the text and return a tuple (root node, ID dictionary). The root -node is the same as returned by the XML() function. The dictionary -contains string-element pairs. The dictionary keys are the values of ID -attributes as defined by the DTD. The elements referenced by the ID are -stored as dictionary values.

-

Note that you must not modify the XML tree if you use the ID dictionary. -The results are undefined.

-
-
-
-
- -
- -
- - -
-

XPathEvaluator(etree_or_element, - namespaces=None, - extensions=None, - regexp=True, - smart_strings=True) -

-
  -
- -

Creates an XPath evaluator for an ElementTree or an Element.

-

The resulting object can be called with an XPath expression as argument -and XPath variables provided as keyword arguments.

-

Additional namespace declarations can be passed with the -'namespace' keyword argument. EXSLT regular expression support -can be disabled with the 'regexp' boolean keyword (defaults to -True). Smart strings will be returned for string results unless -you pass smart_strings=False.

-
-
-
-
- -
- -
- - -
-

clear_error_log() -

-
  -
- -

Clear the global error log. Note that this log is already bound to a -fixed size.

-

Note: since lxml 2.2, the global error log is local to a thread -and this function will only clear the global error log of the -current thread.

-
-
-
-
- -
- -
- - -
-

fromstring(text, - parser=None, - base_url=None) -

-
  -
- -

Parses an XML document or fragment from a string. Returns the -root node (or the result returned by a parser target).

-

To override the default parser with a different parser you can pass it to -the parser keyword argument.

-

The base_url keyword argument allows to set the original base URL of -the document to support relative Paths when looking up external entities -(DTD, XInclude, ...).

-
-
-
-
- -
- -
- - -
-

fromstringlist(strings, - parser=None) -

-
  -
- -

Parses an XML document from a sequence of strings. Returns the -root node (or the result returned by a parser target).

-

To override the default parser with a different parser you can pass it to -the parser keyword argument.

-
-
-
-
- -
- -
- - -
-

parse(source, - parser=None, - base_url=None) -

-
  -
- -

Return an ElementTree object loaded with source elements. If no parser -is provided as second argument, the default parser is used.

-

The source can be any of the following:

-
    -
  • a file name/path
  • -
  • a file object
  • -
  • a file-like object
  • -
  • a URL using the HTTP or FTP protocol
  • -
-

To parse from a string, use the fromstring() function instead.

-

Note that it is generally faster to parse from a file path or URL -than from an open file object or file-like object. Transparent -decompression from gzip compressed sources is supported (unless -explicitly disabled in libxml2).

-

The base_url keyword allows setting a URL for the document -when parsing from a file-like object. This is needed when looking -up external entities (DTD, XInclude, ...) with relative paths.

-
-
-
-
- -
- -
- - -
-

parseid(source, - parser=None) -

-
  -
- -

Parses the source into a tuple containing an ElementTree object and an -ID dictionary. If no parser is provided as second argument, the default -parser is used.

-

Note that you must not modify the XML tree if you use the ID dictionary. -The results are undefined.

-
-
-
-
- -
- -
- - -
-

set_default_parser(parser=None) -

-
  -
- -

Set a default parser for the current thread. This parser is used -globally whenever no parser is supplied to the various parse functions of -the lxml API. If this function is called without a parser (or if it is -None), the default parser is reset to the original configuration.

-

Note that the pre-installed default parser is not thread-safe. Avoid the -default parser in multi-threaded environments. You can create a separate -parser for each thread explicitly or use a parser pool.

-
-
-
-
- -
- -
- - -
-

strip_attributes(tree_or_element, - *attribute_names) -

-
  -
- -

Delete all attributes with the provided attribute names from an -Element (or ElementTree) and its descendants.

-

Attribute names can contain wildcards as in _Element.iter.

-

Example usage:

-
-strip_attributes(root_element,
-                 'simpleattr',
-                 '{http://some/ns}attrname',
-                 '{http://other/ns}*')
-
-
-
-
-
- -
- -
- - -
-

strip_elements(tree_or_element, - with_tail=True, - *tag_names) -

-
  -
- -

Delete all elements with the provided tag names from a tree or -subtree. This will remove the elements and their entire subtree, -including all their attributes, text content and descendants. It -will also remove the tail text of the element unless you -explicitly set the with_tail keyword argument option to False.

-

Tag names can contain wildcards as in _Element.iter.

-

Note that this will not delete the element (or ElementTree root -element) that you passed even if it matches. It will only treat -its descendants. If you want to include the root element, check -its tag name directly before even calling this function.

-

Example usage:

-
-strip_elements(some_element,
-    'simpletagname',             # non-namespaced tag
-    '{http://some/ns}tagname',   # namespaced tag
-    '{http://some/other/ns}*'    # any tag from a namespace
-    lxml.etree.Comment           # comments
-    )
-
-
-
-
-
- -
- -
- - -
-

strip_tags(tree_or_element, - *tag_names) -

-
  -
- -

Delete all elements with the provided tag names from a tree or -subtree. This will remove the elements and their attributes, but -not their text/tail content or descendants. Instead, it will -merge the text content and children of the element into its -parent.

-

Tag names can contain wildcards as in _Element.iter.

-

Note that this will not delete the element (or ElementTree root -element) that you passed even if it matches. It will only treat -its descendants.

-

Example usage:

-
-strip_tags(some_element,
-    'simpletagname',             # non-namespaced tag
-    '{http://some/ns}tagname',   # namespaced tag
-    '{http://some/other/ns}*'    # any tag from a namespace
-    Comment                      # comments (including their text!)
-    )
-
-
-
-
-
- -
- -
- - -
-

tostring(element_or_tree, - encoding=None, - method="xml", - xml_declaration=None, - pretty_print=False, - with_tail=True, - standalone=None, - doctype=None, - exclusive=False, - with_comments=True, - inclusive_ns_prefixes=None) -

-
  -
- -

Serialize an element to an encoded string representation of its XML -tree.

-

Defaults to ASCII encoding without XML declaration. This -behaviour can be configured with the keyword arguments 'encoding' -(string) and 'xml_declaration' (bool). Note that changing the -encoding to a non UTF-8 compatible encoding will enable a -declaration by default.

-

You can also serialise to a Unicode string without declaration by -passing the unicode function as encoding (or str in Py3), -or the name 'unicode'. This changes the return value from a byte -string to an unencoded unicode string.

-

The keyword argument 'pretty_print' (bool) enables formatted XML.

-

The keyword argument 'method' selects the output method: 'xml', -'html', plain 'text' (text content without tags) or 'c14n'. -Default is 'xml'.

-

The exclusive and with_comments arguments are only used -with C14N output, where they request exclusive and uncommented -C14N serialisation respectively.

-

Passing a boolean value to the standalone option will output -an XML declaration with the corresponding standalone flag.

-

The doctype option allows passing in a plain string that will -be serialised before the XML tree. Note that passing in non -well-formed content here will make the XML output non well-formed. -Also, an existing doctype in the document tree will not be removed -when serialising an ElementTree instance.

-

You can prevent the tail text of the element from being serialised -by passing the boolean with_tail option. This has no impact -on the tail text of children, which will always be serialised.

-
-
-
-
- -
- -
- - -
-

tostringlist(element_or_tree, - *args, - **kwargs) -

-
  -
- -

Serialize an element to an encoded string representation of its XML -tree, stored in a list of partial strings.

-

This is purely for ElementTree 1.3 compatibility. The result is a -single string wrapped in a list.

-
-
-
-
- -
- -
- - -
-

tounicode(element_or_tree, - method="xml", - pretty_print=False, - with_tail=True, - doctype=None) -

-
  -
- -

Serialize an element to the Python unicode representation of its XML -tree.

-

Note that the result does not carry an XML encoding declaration and is -therefore not necessarily suited for serialization to byte streams without -further treatment.

-

The boolean keyword argument 'pretty_print' enables formatted XML.

-

The keyword argument 'method' selects the output method: 'xml', -'html' or plain 'text'.

-

You can prevent the tail text of the element from being serialised -by passing the boolean with_tail option. This has no impact -on the tail text of children, which will always be serialised.

-
-
-

Deprecated: - use tostring(el, encoding=unicode) instead. -

-
-
- -
- -
- - -
-

use_global_python_log(log) -

-
  -
- -

Replace the global error log by an etree.PyErrorLog that uses the -standard Python logging package.

-

Note that this disables access to the global error log from exceptions. -Parsers, XSLT etc. will continue to provide their normal local error log.

-

Note: prior to lxml 2.2, this changed the error log globally. -Since lxml 2.2, the global error log is local to a thread and this -function will only set the global error log of the current thread.

-
-
-
-
-
- - - - - - -
- - - - - -
Variables Details[hide private]
-
- -
- -
-

__pyx_capi__

- -
-
-
-
Value:
-
-{'appendChild': <capsule object "void (struct LxmlElement *, struct Lx\
-mlElement *)" at 0x2289510>,
- 'attributeValue': <capsule object "PyObject *(xmlNode *, xmlAttr *)" \
-at 0x22891e0>,
- 'attributeValueFromNsName': <capsule object "PyObject *(xmlNode *, co\
-nst xmlChar *, const xmlChar *)" at 0x2289210>,
- 'callLookupFallback': <capsule object "PyObject *(struct LxmlFallback\
-ElementClassLookup *, struct LxmlDocument *, xmlNode *)" at 0x2286e70>\
-...
-
-
-
-
-
- -
- -
-

__test__

- -
-
-
-
Value:
-
-{u'XML (line 2926)': u'''XML(text, parser=None, base_url=None)
-
-    Parses an XML document or fragment from a string constant.
-    Returns the root node (or the result returned by a parser target).
-    This function can be used to embed "XML literals" in Python code,
-    like in
-
-       >>> root = etree.XML("<root><test/></root>")
-...
-
-
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree.AncestorsIterator-class.html b/doc/html/api/lxml.etree.AncestorsIterator-class.html deleted file mode 100644 index e61c731..0000000 --- a/doc/html/api/lxml.etree.AncestorsIterator-class.html +++ /dev/null @@ -1,255 +0,0 @@ - - - - - lxml.etree.AncestorsIterator - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class AncestorsIterator - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class AncestorsIterator

-
-           object --+    
-                    |    
-_ElementMatchIterator --+
-                        |
-                       AncestorsIterator
-
- -
-AncestorsIterator(self, node, tag=None) -Iterates over the ancestors of an element (from parent to parent). - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
- a new object with type S, a subtype of T - - - - - - -
__new__(T, - S, - ...) - - -
- -
-

Inherited from _ElementMatchIterator: - __iter__, - __next__, - next -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __init__, - __reduce__, - __reduce_ex__, - __repr__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__new__(T, - S, - ...) -

-
  -
- - -
-
Returns: a new object with type S, a subtype of T
-
Overrides: - object.__new__ -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree.AttributeBasedElementClassLookup-class.html b/doc/html/api/lxml.etree.AttributeBasedElementClassLookup-class.html deleted file mode 100644 index 36a463d..0000000 --- a/doc/html/api/lxml.etree.AttributeBasedElementClassLookup-class.html +++ /dev/null @@ -1,315 +0,0 @@ - - - - - lxml.etree.AttributeBasedElementClassLookup - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class AttributeBasedElementClassLookup - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class AttributeBasedElementClassLookup

-
-            object --+        
-                     |        
-    ElementClassLookup --+    
-                         |    
-FallbackElementClassLookup --+
-                             |
-                            AttributeBasedElementClassLookup
-
- -
-

AttributeBasedElementClassLookup(self, attribute_name, class_mapping, fallback=None) -Checks an attribute of an Element and looks up the value in a -class dictionary.

-
-
Arguments:
-
    -
  • attribute name - '{ns}name' style string
  • -
  • class mapping - Python dict mapping attribute values to Element classes
  • -
  • fallback - optional fallback lookup mechanism
  • -
-
-
-

A None key in the class mapping will be checked if the attribute is -missing.

- - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__init__(self, - attribute_name, - class_mapping, - fallback=None)
- x.__init__(...) initializes x; see help(type(x)) for signature
- - -
- -
- a new object with type S, a subtype of T - - - - - - -
__new__(T, - S, - ...) - - -
- -
-

Inherited from FallbackElementClassLookup: - set_fallback -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __reduce__, - __reduce_ex__, - __repr__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from FallbackElementClassLookup: - fallback -

-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__init__(self, - attribute_name, - class_mapping, - fallback=None) -
(Constructor) -

-
  -
- - x.__init__(...) initializes x; see help(type(x)) for signature -
-
Overrides: - object.__init__ -
-
-
-
- -
- -
- - -
-

__new__(T, - S, - ...) -

-
  -
- - -
-
Returns: a new object with type S, a subtype of T
-
Overrides: - object.__new__ -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree.C14NError-class.html b/doc/html/api/lxml.etree.C14NError-class.html deleted file mode 100644 index f0d62df..0000000 --- a/doc/html/api/lxml.etree.C14NError-class.html +++ /dev/null @@ -1,208 +0,0 @@ - - - - - lxml.etree.C14NError - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class C14NError - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class C14NError

-
-              object --+                
-                       |                
-exceptions.BaseException --+            
-                           |            
-        exceptions.Exception --+        
-                               |        
-                           Error --+    
-                                   |    
-                           LxmlError --+
-                                       |
-                                      C14NError
-
- -
-Error during C14N serialisation. - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-

Inherited from LxmlError: - __init__ -

-

Inherited from exceptions.Exception: - __new__ -

-

Inherited from exceptions.BaseException: - __delattr__, - __getattribute__, - __getitem__, - __getslice__, - __reduce__, - __repr__, - __setattr__, - __setstate__, - __str__, - __unicode__ -

-

Inherited from object: - __format__, - __hash__, - __reduce_ex__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from exceptions.BaseException: - args, - message -

-

Inherited from object: - __class__ -

-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree.CDATA-class.html b/doc/html/api/lxml.etree.CDATA-class.html deleted file mode 100644 index c647e8f..0000000 --- a/doc/html/api/lxml.etree.CDATA-class.html +++ /dev/null @@ -1,293 +0,0 @@ - - - - - lxml.etree.CDATA - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class CDATA - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class CDATA

-
-object --+
-         |
-        CDATA
-
- -
-

CDATA(data)

-

CDATA factory. This factory creates an opaque data object that -can be used to set Element text. The usual way to use it is:

-
->>> from lxml import etree
->>> el = etree.Element('content')
->>> el.text = etree.CDATA('a string')
-
- - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__init__(data)
- x.__init__(...) initializes x; see help(type(x)) for signature
- - -
- -
- a new object with type S, a subtype of T - - - - - - -
__new__(T, - S, - ...) - - -
- -
-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __reduce__, - __reduce_ex__, - __repr__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__init__(data) -
(Constructor) -

-
  -
- - x.__init__(...) initializes x; see help(type(x)) for signature -
-
Overrides: - object.__init__ -
-
-
-
- -
- -
- - -
-

__new__(T, - S, - ...) -

-
  -
- - -
-
Returns: a new object with type S, a subtype of T
-
Overrides: - object.__new__ -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree.CommentBase-class.html b/doc/html/api/lxml.etree.CommentBase-class.html deleted file mode 100644 index 15843a6..0000000 --- a/doc/html/api/lxml.etree.CommentBase-class.html +++ /dev/null @@ -1,370 +0,0 @@ - - - - - lxml.etree.CommentBase - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class CommentBase - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class CommentBase

-
-         object --+            
-                  |            
-           _Element --+        
-                      |        
-??.__ContentOnlyElement --+    
-                          |    
-                   _Comment --+
-                              |
-                             CommentBase
-
- -
Known Subclasses:
-
- -
- -
-

All custom Comment classes must inherit from this one.

-

To create an XML Comment instance, use the Comment() factory.

-

Subclasses must not override __init__ or __new__ as it is -absolutely undefined when these objects will be created or -destroyed. All persistent state of Comments must be stored in the -underlying XML. If you really need to initialize the object after -creation, you can implement an _init(self) method that will be -called after object creation.

- - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__init__(...)
- x.__init__(...) initializes x; see help(type(x)) for signature
- - -
- -
- a new object with type S, a subtype of T - - - - - - -
__new__(T, - S, - ...) - - -
- -
-

Inherited from _Comment: - __repr__ -

-

Inherited from unreachable.__ContentOnlyElement: - __delitem__, - __getitem__, - __len__, - __setitem__, - append, - get, - insert, - items, - keys, - set, - values -

-

Inherited from _Element: - __contains__, - __copy__, - __deepcopy__, - __iter__, - __nonzero__, - __reversed__, - addnext, - addprevious, - clear, - extend, - find, - findall, - findtext, - getchildren, - getiterator, - getnext, - getparent, - getprevious, - getroottree, - index, - iter, - iterancestors, - iterchildren, - iterdescendants, - iterfind, - itersiblings, - itertext, - makeelement, - remove, - replace, - xpath -

-

Inherited from _Element (private): - _init -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __reduce__, - __reduce_ex__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from _Comment: - tag -

-

Inherited from unreachable.__ContentOnlyElement: - attrib, - text -

-

Inherited from _Element: - base, - nsmap, - prefix, - sourceline, - tail -

-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__init__(...) -
(Constructor) -

-
  -
- - x.__init__(...) initializes x; see help(type(x)) for signature -
-
Overrides: - object.__init__ -
-
-
-
- -
- -
- - -
-

__new__(T, - S, - ...) -

-
  -
- - -
-
Returns: a new object with type S, a subtype of T
-
Overrides: - object.__new__ -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree.CustomElementClassLookup-class.html b/doc/html/api/lxml.etree.CustomElementClassLookup-class.html deleted file mode 100644 index 2292560..0000000 --- a/doc/html/api/lxml.etree.CustomElementClassLookup-class.html +++ /dev/null @@ -1,294 +0,0 @@ - - - - - lxml.etree.CustomElementClassLookup - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class CustomElementClassLookup - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class CustomElementClassLookup

-
-            object --+        
-                     |        
-    ElementClassLookup --+    
-                         |    
-FallbackElementClassLookup --+
-                             |
-                            CustomElementClassLookup
-
- -
Known Subclasses:
-
- -
- -
-

CustomElementClassLookup(self, fallback=None) -Element class lookup based on a subclass method.

-

You can inherit from this class and override the method:

-
-lookup(self, type, doc, namespace, name)
-
-

to lookup the element class for a node. Arguments of the method: -* type: one of 'element', 'comment', 'PI', 'entity' -* doc: document that the node is in -* namespace: namespace URI of the node (or None for comments/PIs/entities) -* name: name of the element/entity, None for comments, target for PIs

-

If you return None from this method, the fallback will be called.

- - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
- a new object with type S, a subtype of T - - - - - - -
__new__(T, - S, - ...) - - -
- -
-   - - - - - - -
lookup(self, - type, - doc, - namespace, - name) - - -
- -
-

Inherited from FallbackElementClassLookup: - __init__, - set_fallback -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __reduce__, - __reduce_ex__, - __repr__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from FallbackElementClassLookup: - fallback -

-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__new__(T, - S, - ...) -

-
  -
- - -
-
Returns: a new object with type S, a subtype of T
-
Overrides: - object.__new__ -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree.DTD-class.html b/doc/html/api/lxml.etree.DTD-class.html deleted file mode 100644 index f07e0b2..0000000 --- a/doc/html/api/lxml.etree.DTD-class.html +++ /dev/null @@ -1,433 +0,0 @@ - - - - - lxml.etree.DTD - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class DTD - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class DTD

-
-object --+    
-         |    
-_Validator --+
-             |
-            DTD
-
- -
-

DTD(self, file=None, external_id=None) -A DTD validator.

-

Can load from filesystem directly given a filename or file-like object. -Alternatively, pass the keyword parameter external_id to load from a -catalog.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__call__(self, - etree)
- Validate doc using the DTD.
- - -
- -
-   - - - - - - -
__init__(self, - file=None, - external_id=None)
- x.__init__(...) initializes x; see help(type(x)) for signature
- - -
- -
- a new object with type S, a subtype of T - - - - - - -
__new__(T, - S, - ...) - - -
- -
-   - - - - - - -
elements(...) - - -
- -
-   - - - - - - -
entities(...) - - -
- -
-   - - - - - - -
iterelements(...) - - -
- -
-   - - - - - - -
iterentities(...) - - -
- -
-

Inherited from _Validator: - assertValid, - assert_, - validate -

-

Inherited from _Validator (private): - _append_log_message, - _clear_error_log -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __reduce__, - __reduce_ex__, - __repr__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - - - - - - - - - - -
- - - - - -
Properties[hide private]
-
-   - - external_id -
-   - - name -
-   - - system_url -
-

Inherited from _Validator: - error_log -

-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__call__(self, - etree) -
(Call operator) -

-
  -
- -

Validate doc using the DTD.

-

Returns true if the document is valid, false if not.

-
-
-
-
- -
- -
- - -
-

__init__(self, - file=None, - external_id=None) -
(Constructor) -

-
  -
- - x.__init__(...) initializes x; see help(type(x)) for signature -
-
Overrides: - object.__init__ -
-
-
-
- -
- -
- - -
-

__new__(T, - S, - ...) -

-
  -
- - -
-
Returns: a new object with type S, a subtype of T
-
Overrides: - object.__new__ -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree.DTDError-class.html b/doc/html/api/lxml.etree.DTDError-class.html deleted file mode 100644 index b95be1e..0000000 --- a/doc/html/api/lxml.etree.DTDError-class.html +++ /dev/null @@ -1,214 +0,0 @@ - - - - - lxml.etree.DTDError - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class DTDError - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class DTDError

-
-              object --+                
-                       |                
-exceptions.BaseException --+            
-                           |            
-        exceptions.Exception --+        
-                               |        
-                           Error --+    
-                                   |    
-                           LxmlError --+
-                                       |
-                                      DTDError
-
- -
Known Subclasses:
-
- -
- -
-Base class for DTD errors. - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-

Inherited from LxmlError: - __init__ -

-

Inherited from exceptions.Exception: - __new__ -

-

Inherited from exceptions.BaseException: - __delattr__, - __getattribute__, - __getitem__, - __getslice__, - __reduce__, - __repr__, - __setattr__, - __setstate__, - __str__, - __unicode__ -

-

Inherited from object: - __format__, - __hash__, - __reduce_ex__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from exceptions.BaseException: - args, - message -

-

Inherited from object: - __class__ -

-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree.DTDParseError-class.html b/doc/html/api/lxml.etree.DTDParseError-class.html deleted file mode 100644 index dffdff6..0000000 --- a/doc/html/api/lxml.etree.DTDParseError-class.html +++ /dev/null @@ -1,210 +0,0 @@ - - - - - lxml.etree.DTDParseError - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class DTDParseError - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class DTDParseError

-
-              object --+                    
-                       |                    
-exceptions.BaseException --+                
-                           |                
-        exceptions.Exception --+            
-                               |            
-                           Error --+        
-                                   |        
-                           LxmlError --+    
-                                       |    
-                                DTDError --+
-                                           |
-                                          DTDParseError
-
- -
-Error while parsing a DTD. - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-

Inherited from LxmlError: - __init__ -

-

Inherited from exceptions.Exception: - __new__ -

-

Inherited from exceptions.BaseException: - __delattr__, - __getattribute__, - __getitem__, - __getslice__, - __reduce__, - __repr__, - __setattr__, - __setstate__, - __str__, - __unicode__ -

-

Inherited from object: - __format__, - __hash__, - __reduce_ex__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from exceptions.BaseException: - args, - message -

-

Inherited from object: - __class__ -

-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree.DTDValidateError-class.html b/doc/html/api/lxml.etree.DTDValidateError-class.html deleted file mode 100644 index 608cb6b..0000000 --- a/doc/html/api/lxml.etree.DTDValidateError-class.html +++ /dev/null @@ -1,210 +0,0 @@ - - - - - lxml.etree.DTDValidateError - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class DTDValidateError - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class DTDValidateError

-
-              object --+                    
-                       |                    
-exceptions.BaseException --+                
-                           |                
-        exceptions.Exception --+            
-                               |            
-                           Error --+        
-                                   |        
-                           LxmlError --+    
-                                       |    
-                                DTDError --+
-                                           |
-                                          DTDValidateError
-
- -
-Error while validating an XML document with a DTD. - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-

Inherited from LxmlError: - __init__ -

-

Inherited from exceptions.Exception: - __new__ -

-

Inherited from exceptions.BaseException: - __delattr__, - __getattribute__, - __getitem__, - __getslice__, - __reduce__, - __repr__, - __setattr__, - __setstate__, - __str__, - __unicode__ -

-

Inherited from object: - __format__, - __hash__, - __reduce_ex__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from exceptions.BaseException: - args, - message -

-

Inherited from object: - __class__ -

-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree.DocInfo-class.html b/doc/html/api/lxml.etree.DocInfo-class.html deleted file mode 100644 index d220534..0000000 --- a/doc/html/api/lxml.etree.DocInfo-class.html +++ /dev/null @@ -1,332 +0,0 @@ - - - - - lxml.etree.DocInfo - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class DocInfo - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class DocInfo

-
-object --+
-         |
-        DocInfo
-
- -
-Document information provided by parser and DTD. - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
- a new object with type S, a subtype of T - - - - - - -
__new__(T, - S, - ...) - - -
- -
-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __init__, - __reduce__, - __reduce_ex__, - __repr__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Properties[hide private]
-
-   - - URL
- The source URL of the document (or None if unknown). -
-   - - doctype
- Returns a DOCTYPE declaration string for the document. -
-   - - encoding
- Returns the encoding name as declared by the document. -
-   - - externalDTD
- Returns a DTD validator based on the external subset of the document. -
-   - - internalDTD
- Returns a DTD validator based on the internal subset of the document. -
-   - - public_id
- Returns the public ID of the DOCTYPE. -
-   - - root_name
- Returns the name of the root node as defined by the DOCTYPE. -
-   - - standalone
- Returns the standalone flag as declared by the document. The possible -values are True (standalone='yes'), False -(standalone='no' or flag not provided in the declaration), -and None (unknown or no declaration found). Note that a -normal truth test on this value will always tell if the -standalone flag was set to 'yes' or not. -
-   - - system_url
- Returns the system ID of the DOCTYPE. -
-   - - xml_version
- Returns the XML version as declared by the document. -
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__new__(T, - S, - ...) -

-
  -
- - -
-
Returns: a new object with type S, a subtype of T
-
Overrides: - object.__new__ -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree.DocumentInvalid-class.html b/doc/html/api/lxml.etree.DocumentInvalid-class.html deleted file mode 100644 index 30f4075..0000000 --- a/doc/html/api/lxml.etree.DocumentInvalid-class.html +++ /dev/null @@ -1,210 +0,0 @@ - - - - - lxml.etree.DocumentInvalid - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class DocumentInvalid - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class DocumentInvalid

-
-              object --+                
-                       |                
-exceptions.BaseException --+            
-                           |            
-        exceptions.Exception --+        
-                               |        
-                           Error --+    
-                                   |    
-                           LxmlError --+
-                                       |
-                                      DocumentInvalid
-
- -
-

Validation error.

-

Raised by all document validators when their assertValid(tree) -method fails.

- - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-

Inherited from LxmlError: - __init__ -

-

Inherited from exceptions.Exception: - __new__ -

-

Inherited from exceptions.BaseException: - __delattr__, - __getattribute__, - __getitem__, - __getslice__, - __reduce__, - __repr__, - __setattr__, - __setstate__, - __str__, - __unicode__ -

-

Inherited from object: - __format__, - __hash__, - __reduce_ex__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from exceptions.BaseException: - args, - message -

-

Inherited from object: - __class__ -

-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree.ETCompatXMLParser-class.html b/doc/html/api/lxml.etree.ETCompatXMLParser-class.html deleted file mode 100644 index dff03d6..0000000 --- a/doc/html/api/lxml.etree.ETCompatXMLParser-class.html +++ /dev/null @@ -1,347 +0,0 @@ - - - - - lxml.etree.ETCompatXMLParser - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class ETCompatXMLParser - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class ETCompatXMLParser

-
- object --+            
-          |            
-_BaseParser --+        
-              |        
-    _FeedParser --+    
-                  |    
-          XMLParser --+
-                      |
-                     ETCompatXMLParser
-
- -
-

ETCompatXMLParser(self, encoding=None, attribute_defaults=False, dtd_validation=False, load_dtd=False, no_network=True, ns_clean=False, recover=False, schema=None, huge_tree=False, remove_blank_text=False, resolve_entities=True, remove_comments=True, remove_pis=True, strip_cdata=True, target=None, compact=True)

-

An XML parser with an ElementTree compatible default setup.

-

See the XMLParser class for details.

-

This parser has remove_comments and remove_pis enabled by default -and thus ignores comments and processing instructions.

- - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__init__(self, - encoding=None, - attribute_defaults=False, - dtd_validation=False, - load_dtd=False, - no_network=True, - ns_clean=False, - recover=False, - schema=None, - huge_tree=False, - remove_blank_text=False, - resolve_entities=True, - remove_comments=True, - remove_pis=True, - strip_cdata=True, - target=None, - compact=True)
- x.__init__(...) initializes x; see help(type(x)) for signature
- - -
- -
- a new object with type S, a subtype of T - - - - - - -
__new__(T, - S, - ...) - - -
- -
-

Inherited from _FeedParser: - close, - feed -

-

Inherited from _BaseParser: - copy, - makeelement, - setElementClassLookup, - set_element_class_lookup -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __reduce__, - __reduce_ex__, - __repr__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from _FeedParser: - feed_error_log -

-

Inherited from _BaseParser: - error_log, - resolvers, - target, - version -

-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__init__(self, - encoding=None, - attribute_defaults=False, - dtd_validation=False, - load_dtd=False, - no_network=True, - ns_clean=False, - recover=False, - schema=None, - huge_tree=False, - remove_blank_text=False, - resolve_entities=True, - remove_comments=True, - remove_pis=True, - strip_cdata=True, - target=None, - compact=True) -
(Constructor) -

-
  -
- - x.__init__(...) initializes x; see help(type(x)) for signature -
-
Overrides: - object.__init__ -
-
-
-
- -
- -
- - -
-

__new__(T, - S, - ...) -

-
  -
- - -
-
Returns: a new object with type S, a subtype of T
-
Overrides: - object.__new__ -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree.ETXPath-class.html b/doc/html/api/lxml.etree.ETXPath-class.html deleted file mode 100644 index a8f3a19..0000000 --- a/doc/html/api/lxml.etree.ETXPath-class.html +++ /dev/null @@ -1,315 +0,0 @@ - - - - - lxml.etree.ETXPath - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class ETXPath - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class ETXPath

-
-         object --+        
-                  |        
-_XPathEvaluatorBase --+    
-                      |    
-                  XPath --+
-                          |
-                         ETXPath
-
- -
-

ETXPath(self, path, extensions=None, regexp=True, smart_strings=True) -Special XPath class that supports the ElementTree {uri} notation for namespaces.

-

Note that this class does not accept the namespace keyword -argument. All namespaces must be passed as part of the path -string. Smart strings will be returned for string results unless -you pass smart_strings=False.

- - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__init__(self, - path, - extensions=None, - regexp=True, - smart_strings=True)
- x.__init__(...) initializes x; see help(type(x)) for signature
- - -
- -
- a new object with type S, a subtype of T - - - - - - -
__new__(T, - S, - ...) - - -
- -
-

Inherited from XPath: - __call__, - __repr__ -

-

Inherited from _XPathEvaluatorBase: - evaluate -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __reduce__, - __reduce_ex__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from XPath: - path -

-

Inherited from _XPathEvaluatorBase: - error_log -

-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__init__(self, - path, - extensions=None, - regexp=True, - smart_strings=True) -
(Constructor) -

-
  -
- - x.__init__(...) initializes x; see help(type(x)) for signature -
-
Overrides: - object.__init__ -
-
-
-
- -
- -
- - -
-

__new__(T, - S, - ...) -

-
  -
- - -
-
Returns: a new object with type S, a subtype of T
-
Overrides: - object.__new__ -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree.ElementBase-class.html b/doc/html/api/lxml.etree.ElementBase-class.html deleted file mode 100644 index ac73050..0000000 --- a/doc/html/api/lxml.etree.ElementBase-class.html +++ /dev/null @@ -1,383 +0,0 @@ - - - - - lxml.etree.ElementBase - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class ElementBase - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class ElementBase

-
-object --+    
-         |    
-  _Element --+
-             |
-            ElementBase
-
- -
Known Subclasses:
-
- -
- -
-

ElementBase(*children, attrib=None, nsmap=None, **_extra)

-

The public Element class. All custom Element classes must inherit -from this one. To create an Element, use the Element() factory.

-

BIG FAT WARNING: Subclasses must not override __init__ or -__new__ as it is absolutely undefined when these objects will be -created or destroyed. All persistent state of Elements must be -stored in the underlying XML. If you really need to initialize -the object after creation, you can implement an _init(self) -method that will be called directly after object creation.

-

Subclasses of this class can be instantiated to create a new -Element. By default, the tag name will be the class name and the -namespace will be empty. You can modify this with the following -class attributes:

- -

In user code, the latter three are commonly inherited in class -hierarchies that implement a common namespace.

- - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__init__(attrib=None, - nsmap=None, - *children, - **_extra)
- x.__init__(...) initializes x; see help(type(x)) for signature
- - -
- -
- a new object with type S, a subtype of T - - - - - - -
__new__(T, - S, - ...) - - -
- -
-

Inherited from _Element: - __contains__, - __copy__, - __deepcopy__, - __delitem__, - __getitem__, - __iter__, - __len__, - __nonzero__, - __repr__, - __reversed__, - __setitem__, - addnext, - addprevious, - append, - clear, - extend, - find, - findall, - findtext, - get, - getchildren, - getiterator, - getnext, - getparent, - getprevious, - getroottree, - index, - insert, - items, - iter, - iterancestors, - iterchildren, - iterdescendants, - iterfind, - itersiblings, - itertext, - keys, - makeelement, - remove, - replace, - set, - values, - xpath -

-

Inherited from _Element (private): - _init -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __reduce__, - __reduce_ex__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from _Element: - attrib, - base, - nsmap, - prefix, - sourceline, - tag, - tail, - text -

-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__init__(attrib=None, - nsmap=None, - *children, - **_extra) -
(Constructor) -

-
  -
- - x.__init__(...) initializes x; see help(type(x)) for signature -
-
Overrides: - object.__init__ -
-
-
-
- -
- -
- - -
-

__new__(T, - S, - ...) -

-
  -
- - -
-
Returns: a new object with type S, a subtype of T
-
Overrides: - object.__new__ -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree.ElementChildIterator-class.html b/doc/html/api/lxml.etree.ElementChildIterator-class.html deleted file mode 100644 index ef17ad5..0000000 --- a/doc/html/api/lxml.etree.ElementChildIterator-class.html +++ /dev/null @@ -1,255 +0,0 @@ - - - - - lxml.etree.ElementChildIterator - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class ElementChildIterator - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class ElementChildIterator

-
-           object --+    
-                    |    
-_ElementMatchIterator --+
-                        |
-                       ElementChildIterator
-
- -
-ElementChildIterator(self, node, tag=None, reversed=False) -Iterates over the children of an element. - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
- a new object with type S, a subtype of T - - - - - - -
__new__(T, - S, - ...) - - -
- -
-

Inherited from _ElementMatchIterator: - __iter__, - __next__, - next -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __init__, - __reduce__, - __reduce_ex__, - __repr__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__new__(T, - S, - ...) -

-
  -
- - -
-
Returns: a new object with type S, a subtype of T
-
Overrides: - object.__new__ -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree.ElementClassLookup-class.html b/doc/html/api/lxml.etree.ElementClassLookup-class.html deleted file mode 100644 index 2ccc3b0..0000000 --- a/doc/html/api/lxml.etree.ElementClassLookup-class.html +++ /dev/null @@ -1,254 +0,0 @@ - - - - - lxml.etree.ElementClassLookup - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class ElementClassLookup - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class ElementClassLookup

-
-object --+
-         |
-        ElementClassLookup
-
- -
Known Subclasses:
-
- -
- -
-ElementClassLookup(self) -Superclass of Element class lookups. - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
- a new object with type S, a subtype of T - - - - - - -
__new__(T, - S, - ...) - - -
- -
-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __init__, - __reduce__, - __reduce_ex__, - __repr__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__new__(T, - S, - ...) -

-
  -
- - -
-
Returns: a new object with type S, a subtype of T
-
Overrides: - object.__new__ -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree.ElementDefaultClassLookup-class.html b/doc/html/api/lxml.etree.ElementDefaultClassLookup-class.html deleted file mode 100644 index ccd6892..0000000 --- a/doc/html/api/lxml.etree.ElementDefaultClassLookup-class.html +++ /dev/null @@ -1,328 +0,0 @@ - - - - - lxml.etree.ElementDefaultClassLookup - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class ElementDefaultClassLookup - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class ElementDefaultClassLookup

-
-        object --+    
-                 |    
-ElementClassLookup --+
-                     |
-                    ElementDefaultClassLookup
-
- -
-

ElementDefaultClassLookup(self, element=None, comment=None, pi=None, entity=None) -Element class lookup scheme that always returns the default Element -class.

-

The keyword arguments element, comment, pi and entity -accept the respective Element classes.

- - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__init__(self, - element=None, - comment=None, - pi=None, - entity=None)
- x.__init__(...) initializes x; see help(type(x)) for signature
- - -
- -
- a new object with type S, a subtype of T - - - - - - -
__new__(T, - S, - ...) - - -
- -
-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __reduce__, - __reduce_ex__, - __repr__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Properties[hide private]
-
-   - - comment_class -
-   - - element_class -
-   - - entity_class -
-   - - pi_class -
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__init__(self, - element=None, - comment=None, - pi=None, - entity=None) -
(Constructor) -

-
  -
- - x.__init__(...) initializes x; see help(type(x)) for signature -
-
Overrides: - object.__init__ -
-
-
-
- -
- -
- - -
-

__new__(T, - S, - ...) -

-
  -
- - -
-
Returns: a new object with type S, a subtype of T
-
Overrides: - object.__new__ -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree.ElementDepthFirstIterator-class.html b/doc/html/api/lxml.etree.ElementDepthFirstIterator-class.html deleted file mode 100644 index d37d462..0000000 --- a/doc/html/api/lxml.etree.ElementDepthFirstIterator-class.html +++ /dev/null @@ -1,309 +0,0 @@ - - - - - lxml.etree.ElementDepthFirstIterator - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class ElementDepthFirstIterator - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class ElementDepthFirstIterator

-
-object --+
-         |
-        ElementDepthFirstIterator
-
- -
-

ElementDepthFirstIterator(self, node, tag=None, inclusive=True) -Iterates over an element and its sub-elements in document order (depth -first pre-order).

-

Note that this also includes comments, entities and processing -instructions. To filter them out, check if the tag property -of the returned element is a string (i.e. not None and not a -factory function), or pass the Element factory for the tag -argument to receive only Elements.

-

If the optional tag argument is not None, the iterator returns only -the elements that match the respective name and namespace.

-

The optional boolean argument 'inclusive' defaults to True and can be set -to False to exclude the start element itself.

-

Note that the behaviour of this iterator is completely undefined if the -tree it traverses is modified during iteration.

- - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__iter__(x)
- iter(x)
- - -
- -
- a new object with type S, a subtype of T - - - - - - -
__new__(T, - S, - ...) - - -
- -
-   - - - - - - -
__next__(...) - - -
- -
- the next value, or raise StopIteration - - - - - - -
next(x) - - -
- -
-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __init__, - __reduce__, - __reduce_ex__, - __repr__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__new__(T, - S, - ...) -

-
  -
- - -
-
Returns: a new object with type S, a subtype of T
-
Overrides: - object.__new__ -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree.ElementNamespaceClassLookup-class.html b/doc/html/api/lxml.etree.ElementNamespaceClassLookup-class.html deleted file mode 100644 index 4e3e310..0000000 --- a/doc/html/api/lxml.etree.ElementNamespaceClassLookup-class.html +++ /dev/null @@ -1,341 +0,0 @@ - - - - - lxml.etree.ElementNamespaceClassLookup - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class ElementNamespaceClassLookup - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class ElementNamespaceClassLookup

-
-            object --+        
-                     |        
-    ElementClassLookup --+    
-                         |    
-FallbackElementClassLookup --+
-                             |
-                            ElementNamespaceClassLookup
-
- -
-

ElementNamespaceClassLookup(self, fallback=None)

-

Element class lookup scheme that searches the Element class in the -Namespace registry.

- - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__init__(self, - fallback=None)
- x.__init__(...) initializes x; see help(type(x)) for signature
- - -
- -
- a new object with type S, a subtype of T - - - - - - -
__new__(T, - S, - ...) - - -
- -
-   - - - - - - -
get_namespace(self, - ns_uri)
- Retrieve the namespace object associated with the given URI. -Pass None for the empty namespace.
- - -
- -
-

Inherited from FallbackElementClassLookup: - set_fallback -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __reduce__, - __reduce_ex__, - __repr__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from FallbackElementClassLookup: - fallback -

-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__init__(self, - fallback=None) -
(Constructor) -

-
  -
- - x.__init__(...) initializes x; see help(type(x)) for signature -
-
Overrides: - object.__init__ -
-
-
-
- -
- -
- - -
-

__new__(T, - S, - ...) -

-
  -
- - -
-
Returns: a new object with type S, a subtype of T
-
Overrides: - object.__new__ -
-
-
-
- -
- -
- - -
-

get_namespace(self, - ns_uri) -

-
  -
- -

Retrieve the namespace object associated with the given URI. -Pass None for the empty namespace.

-

Creates a new namespace object if it does not yet exist.

-
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree.ElementTextIterator-class.html b/doc/html/api/lxml.etree.ElementTextIterator-class.html deleted file mode 100644 index 1f1c854..0000000 --- a/doc/html/api/lxml.etree.ElementTextIterator-class.html +++ /dev/null @@ -1,301 +0,0 @@ - - - - - lxml.etree.ElementTextIterator - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class ElementTextIterator - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class ElementTextIterator

-
-object --+
-         |
-        ElementTextIterator
-
- -
-

ElementTextIterator(self, element, tag=None, with_tail=True) -Iterates over the text content of a subtree.

-

You can pass the tag keyword argument to restrict text content to a -specific tag name.

-

You can set the with_tail keyword argument to False to skip over -tail text.

- - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__iter__(x)
- iter(x)
- - -
- -
- a new object with type S, a subtype of T - - - - - - -
__new__(T, - S, - ...) - - -
- -
-   - - - - - - -
__next__(...) - - -
- -
- the next value, or raise StopIteration - - - - - - -
next(x) - - -
- -
-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __init__, - __reduce__, - __reduce_ex__, - __repr__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__new__(T, - S, - ...) -

-
  -
- - -
-
Returns: a new object with type S, a subtype of T
-
Overrides: - object.__new__ -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree.EntityBase-class.html b/doc/html/api/lxml.etree.EntityBase-class.html deleted file mode 100644 index a4d1faa..0000000 --- a/doc/html/api/lxml.etree.EntityBase-class.html +++ /dev/null @@ -1,371 +0,0 @@ - - - - - lxml.etree.EntityBase - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class EntityBase - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class EntityBase

-
-         object --+            
-                  |            
-           _Element --+        
-                      |        
-??.__ContentOnlyElement --+    
-                          |    
-                    _Entity --+
-                              |
-                             EntityBase
-
- -
Known Subclasses:
-
- -
- -
-

All custom Entity classes must inherit from this one.

-

To create an XML Entity instance, use the Entity() factory.

-

Subclasses must not override __init__ or __new__ as it is -absolutely undefined when these objects will be created or -destroyed. All persistent state of Entities must be stored in the -underlying XML. If you really need to initialize the object after -creation, you can implement an _init(self) method that will be -called after object creation.

- - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__init__(...)
- x.__init__(...) initializes x; see help(type(x)) for signature
- - -
- -
- a new object with type S, a subtype of T - - - - - - -
__new__(T, - S, - ...) - - -
- -
-

Inherited from _Entity: - __repr__ -

-

Inherited from unreachable.__ContentOnlyElement: - __delitem__, - __getitem__, - __len__, - __setitem__, - append, - get, - insert, - items, - keys, - set, - values -

-

Inherited from _Element: - __contains__, - __copy__, - __deepcopy__, - __iter__, - __nonzero__, - __reversed__, - addnext, - addprevious, - clear, - extend, - find, - findall, - findtext, - getchildren, - getiterator, - getnext, - getparent, - getprevious, - getroottree, - index, - iter, - iterancestors, - iterchildren, - iterdescendants, - iterfind, - itersiblings, - itertext, - makeelement, - remove, - replace, - xpath -

-

Inherited from _Element (private): - _init -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __reduce__, - __reduce_ex__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from _Entity: - name, - tag, - text -

-

Inherited from unreachable.__ContentOnlyElement: - attrib -

-

Inherited from _Element: - base, - nsmap, - prefix, - sourceline, - tail -

-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__init__(...) -
(Constructor) -

-
  -
- - x.__init__(...) initializes x; see help(type(x)) for signature -
-
Overrides: - object.__init__ -
-
-
-
- -
- -
- - -
-

__new__(T, - S, - ...) -

-
  -
- - -
-
Returns: a new object with type S, a subtype of T
-
Overrides: - object.__new__ -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree.Error-class.html b/doc/html/api/lxml.etree.Error-class.html deleted file mode 100644 index e6b7a2f..0000000 --- a/doc/html/api/lxml.etree.Error-class.html +++ /dev/null @@ -1,206 +0,0 @@ - - - - - lxml.etree.Error - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class Error - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class Error

-
-              object --+        
-                       |        
-exceptions.BaseException --+    
-                           |    
-        exceptions.Exception --+
-                               |
-                              Error
-
- -
Known Subclasses:
-
- -
- -
- - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-

Inherited from exceptions.Exception: - __init__, - __new__ -

-

Inherited from exceptions.BaseException: - __delattr__, - __getattribute__, - __getitem__, - __getslice__, - __reduce__, - __repr__, - __setattr__, - __setstate__, - __str__, - __unicode__ -

-

Inherited from object: - __format__, - __hash__, - __reduce_ex__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from exceptions.BaseException: - args, - message -

-

Inherited from object: - __class__ -

-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree.ErrorDomains-class.html b/doc/html/api/lxml.etree.ErrorDomains-class.html deleted file mode 100644 index ba9b606..0000000 --- a/doc/html/api/lxml.etree.ErrorDomains-class.html +++ /dev/null @@ -1,486 +0,0 @@ - - - - - lxml.etree.ErrorDomains - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class ErrorDomains - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class ErrorDomains

-
-object --+
-         |
-        ErrorDomains
-
- -
-Libxml2 error domains - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
- D[k] if k in D, else d - - - - - - -
_getName(D, - k, - d=...)
- d defaults to None.
- - -
- -
-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __init__, - __new__, - __reduce__, - __reduce_ex__, - __repr__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Class Variables[hide private]
-
-   - - C14N = 21 -
-   - - CATALOG = 20 -
-   - - CHECK = 24 -
-   - - DATATYPE = 15 -
-   - - DTD = 4 -
-   - - FTP = 9 -
-   - - HTML = 5 -
-   - - HTTP = 10 -
-   - - I18N = 27 -
-   - - IO = 8 -
-   - - MEMORY = 6 -
-   - - MODULE = 26 -
-   - - NAMESPACE = 3 -
-   - - NONE = 0 -
-   - - OUTPUT = 7 -
-   - - PARSER = 1 -
-   - - REGEXP = 14 -
-   - - RELAXNGP = 18 -
-   - - RELAXNGV = 19 -
-   - - SCHEMASP = 16 -
-   - - SCHEMASV = 17 -
-   - - SCHEMATRONV = 28 -
-   - - TREE = 2 -
-   - - VALID = 23 -
-   - - WRITER = 25 -
-   - - XINCLUDE = 11 -
-   - - XPATH = 12 -
-   - - XPOINTER = 13 -
-   - - XSLT = 22 -
-   - - _names = {0: u'NONE', 1: u'PARSER', 2: u'TREE', 3: u'NAMESPACE... -
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Class Variable Details[hide private]
-
- -
- -
-

_names

- -
-
-
-
Value:
-
-{0: u'NONE',
- 1: u'PARSER',
- 2: u'TREE',
- 3: u'NAMESPACE',
- 4: u'DTD',
- 5: u'HTML',
- 6: u'MEMORY',
- 7: u'OUTPUT',
-...
-
-
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree.ErrorLevels-class.html b/doc/html/api/lxml.etree.ErrorLevels-class.html deleted file mode 100644 index 308e246..0000000 --- a/doc/html/api/lxml.etree.ErrorLevels-class.html +++ /dev/null @@ -1,258 +0,0 @@ - - - - - lxml.etree.ErrorLevels - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class ErrorLevels - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class ErrorLevels

-
-object --+
-         |
-        ErrorLevels
-
- -
-Libxml2 error levels - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
- D[k] if k in D, else d - - - - - - -
_getName(D, - k, - d=...)
- d defaults to None.
- - -
- -
-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __init__, - __new__, - __reduce__, - __reduce_ex__, - __repr__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Class Variables[hide private]
-
-   - - ERROR = 2 -
-   - - FATAL = 3 -
-   - - NONE = 0 -
-   - - WARNING = 1 -
-   - - _names = {0: u'NONE', 1: u'WARNING', 2: u'ERROR', 3: u'FATAL'} -
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree.ErrorTypes-class.html b/doc/html/api/lxml.etree.ErrorTypes-class.html deleted file mode 100644 index 71f1534..0000000 --- a/doc/html/api/lxml.etree.ErrorTypes-class.html +++ /dev/null @@ -1,5414 +0,0 @@ - - - - - lxml.etree.ErrorTypes - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class ErrorTypes - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class ErrorTypes

-
-object --+
-         |
-        ErrorTypes
-
- -
-Libxml2 error types - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
- D[k] if k in D, else d - - - - - - -
_getName(D, - k, - d=...)
- d defaults to None.
- - -
- -
-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __init__, - __new__, - __reduce__, - __reduce_ex__, - __repr__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Class Variables[hide private]
-
-   - - C14N_CREATE_CTXT = 1950 -
-   - - C14N_CREATE_STACK = 1952 -
-   - - C14N_INVALID_NODE = 1953 -
-   - - C14N_RELATIVE_NAMESPACE = 1955 -
-   - - C14N_REQUIRES_UTF8 = 1951 -
-   - - C14N_UNKNOW_NODE = 1954 -
-   - - CATALOG_ENTRY_BROKEN = 1651 -
-   - - CATALOG_MISSING_ATTR = 1650 -
-   - - CATALOG_NOT_CATALOG = 1653 -
-   - - CATALOG_PREFER_VALUE = 1652 -
-   - - CATALOG_RECURSION = 1654 -
-   - - CHECK_ = 6005 -
-   - - CHECK_ENTITY_TYPE = 5012 -
-   - - CHECK_FOUND_ATTRIBUTE = 5001 -
-   - - CHECK_FOUND_CDATA = 5003 -
-   - - CHECK_FOUND_COMMENT = 5007 -
-   - - CHECK_FOUND_DOCTYPE = 5008 -
-   - - CHECK_FOUND_ELEMENT = 5000 -
-   - - CHECK_FOUND_ENTITY = 5005 -
-   - - CHECK_FOUND_ENTITYREF = 5004 -
-   - - CHECK_FOUND_FRAGMENT = 5009 -
-   - - CHECK_FOUND_NOTATION = 5010 -
-   - - CHECK_FOUND_PI = 5006 -
-   - - CHECK_FOUND_TEXT = 5002 -
-   - - CHECK_NAME_NOT_NULL = 5037 -
-   - - CHECK_NOT_ATTR = 5023 -
-   - - CHECK_NOT_ATTR_DECL = 5024 -
-   - - CHECK_NOT_DTD = 5022 -
-   - - CHECK_NOT_ELEM_DECL = 5025 -
-   - - CHECK_NOT_ENTITY_DECL = 5026 -
-   - - CHECK_NOT_NCNAME = 5034 -
-   - - CHECK_NOT_NS_DECL = 5027 -
-   - - CHECK_NOT_UTF8 = 5032 -
-   - - CHECK_NO_DICT = 5033 -
-   - - CHECK_NO_DOC = 5014 -
-   - - CHECK_NO_ELEM = 5016 -
-   - - CHECK_NO_HREF = 5028 -
-   - - CHECK_NO_NAME = 5015 -
-   - - CHECK_NO_NEXT = 5020 -
-   - - CHECK_NO_PARENT = 5013 -
-   - - CHECK_NO_PREV = 5018 -
-   - - CHECK_NS_ANCESTOR = 5031 -
-   - - CHECK_NS_SCOPE = 5030 -
-   - - CHECK_OUTSIDE_DICT = 5035 -
-   - - CHECK_UNKNOWN_NODE = 5011 -
-   - - CHECK_WRONG_DOC = 5017 -
-   - - CHECK_WRONG_NAME = 5036 -
-   - - CHECK_WRONG_NEXT = 5021 -
-   - - CHECK_WRONG_PARENT = 5029 -
-   - - CHECK_WRONG_PREV = 5019 -
-   - - CHECK_X = 6006 -
-   - - DTD_ATTRIBUTE_DEFAULT = 500 -
-   - - DTD_ATTRIBUTE_REDEFINED = 501 -
-   - - DTD_ATTRIBUTE_VALUE = 502 -
-   - - DTD_CONTENT_ERROR = 503 -
-   - - DTD_CONTENT_MODEL = 504 -
-   - - DTD_CONTENT_NOT_DETERMINIST = 505 -
-   - - DTD_DIFFERENT_PREFIX = 506 -
-   - - DTD_DUP_TOKEN = 541 -
-   - - DTD_ELEM_DEFAULT_NAMESPACE = 507 -
-   - - DTD_ELEM_NAMESPACE = 508 -
-   - - DTD_ELEM_REDEFINED = 509 -
-   - - DTD_EMPTY_NOTATION = 510 -
-   - - DTD_ENTITY_TYPE = 511 -
-   - - DTD_ID_FIXED = 512 -
-   - - DTD_ID_REDEFINED = 513 -
-   - - DTD_ID_SUBSET = 514 -
-   - - DTD_INVALID_CHILD = 515 -
-   - - DTD_INVALID_DEFAULT = 516 -
-   - - DTD_LOAD_ERROR = 517 -
-   - - DTD_MISSING_ATTRIBUTE = 518 -
-   - - DTD_MIXED_CORRUPT = 519 -
-   - - DTD_MULTIPLE_ID = 520 -
-   - - DTD_NOTATION_REDEFINED = 526 -
-   - - DTD_NOTATION_VALUE = 527 -
-   - - DTD_NOT_EMPTY = 528 -
-   - - DTD_NOT_PCDATA = 529 -
-   - - DTD_NOT_STANDALONE = 530 -
-   - - DTD_NO_DOC = 521 -
-   - - DTD_NO_DTD = 522 -
-   - - DTD_NO_ELEM_NAME = 523 -
-   - - DTD_NO_PREFIX = 524 -
-   - - DTD_NO_ROOT = 525 -
-   - - DTD_ROOT_NAME = 531 -
-   - - DTD_STANDALONE_DEFAULTED = 538 -
-   - - DTD_STANDALONE_WHITE_SPACE = 532 -
-   - - DTD_UNKNOWN_ATTRIBUTE = 533 -
-   - - DTD_UNKNOWN_ELEM = 534 -
-   - - DTD_UNKNOWN_ENTITY = 535 -
-   - - DTD_UNKNOWN_ID = 536 -
-   - - DTD_UNKNOWN_NOTATION = 537 -
-   - - DTD_XMLID_TYPE = 540 -
-   - - DTD_XMLID_VALUE = 539 -
-   - - ERR_ATTLIST_NOT_FINISHED = 51 -
-   - - ERR_ATTLIST_NOT_STARTED = 50 -
-   - - ERR_ATTRIBUTE_NOT_FINISHED = 40 -
-   - - ERR_ATTRIBUTE_NOT_STARTED = 39 -
-   - - ERR_ATTRIBUTE_REDEFINED = 42 -
-   - - ERR_ATTRIBUTE_WITHOUT_VALUE = 41 -
-   - - ERR_CDATA_NOT_FINISHED = 63 -
-   - - ERR_CHARREF_AT_EOF = 10 -
-   - - ERR_CHARREF_IN_DTD = 13 -
-   - - ERR_CHARREF_IN_EPILOG = 12 -
-   - - ERR_CHARREF_IN_PROLOG = 11 -
-   - - ERR_COMMENT_NOT_FINISHED = 45 -
-   - - ERR_CONDSEC_INVALID = 83 -
-   - - ERR_CONDSEC_INVALID_KEYWORD = 95 -
-   - - ERR_CONDSEC_NOT_FINISHED = 59 -
-   - - ERR_CONDSEC_NOT_STARTED = 58 -
-   - - ERR_DOCTYPE_NOT_FINISHED = 61 -
-   - - ERR_DOCUMENT_EMPTY = 4 -
-   - - ERR_DOCUMENT_END = 5 -
-   - - ERR_DOCUMENT_START = 3 -
-   - - ERR_ELEMCONTENT_NOT_FINISHED = 55 -
-   - - ERR_ELEMCONTENT_NOT_STARTED = 54 -
-   - - ERR_ENCODING_NAME = 79 -
-   - - ERR_ENTITYREF_AT_EOF = 14 -
-   - - ERR_ENTITYREF_IN_DTD = 17 -
-   - - ERR_ENTITYREF_IN_EPILOG = 16 -
-   - - ERR_ENTITYREF_IN_PROLOG = 15 -
-   - - ERR_ENTITYREF_NO_NAME = 22 -
-   - - ERR_ENTITYREF_SEMICOL_MISSING = 23 -
-   - - ERR_ENTITY_BOUNDARY = 90 -
-   - - ERR_ENTITY_CHAR_ERROR = 87 -
-   - - ERR_ENTITY_IS_EXTERNAL = 29 -
-   - - ERR_ENTITY_IS_PARAMETER = 30 -
-   - - ERR_ENTITY_LOOP = 89 -
-   - - ERR_ENTITY_NOT_FINISHED = 37 -
-   - - ERR_ENTITY_NOT_STARTED = 36 -
-   - - ERR_ENTITY_PE_INTERNAL = 88 -
-   - - ERR_ENTITY_PROCESSING = 104 -
-   - - ERR_EQUAL_REQUIRED = 75 -
-   - - ERR_EXTRA_CONTENT = 86 -
-   - - ERR_EXT_ENTITY_STANDALONE = 82 -
-   - - ERR_EXT_SUBSET_NOT_FINISHED = 60 -
-   - - ERR_GT_REQUIRED = 73 -
-   - - ERR_HYPHEN_IN_COMMENT = 80 -
-   - - ERR_INTERNAL_ERROR = 1 -
-   - - ERR_INVALID_CHAR = 9 -
-   - - ERR_INVALID_CHARREF = 8 -
-   - - ERR_INVALID_DEC_CHARREF = 7 -
-   - - ERR_INVALID_ENCODING = 81 -
-   - - ERR_INVALID_HEX_CHARREF = 6 -
-   - - ERR_INVALID_URI = 91 -
-   - - ERR_LITERAL_NOT_FINISHED = 44 -
-   - - ERR_LITERAL_NOT_STARTED = 43 -
-   - - ERR_LTSLASH_REQUIRED = 74 -
-   - - ERR_LT_IN_ATTRIBUTE = 38 -
-   - - ERR_LT_REQUIRED = 72 -
-   - - ERR_MISPLACED_CDATA_END = 62 -
-   - - ERR_MISSING_ENCODING = 101 -
-   - - ERR_MIXED_NOT_FINISHED = 53 -
-   - - ERR_MIXED_NOT_STARTED = 52 -
-   - - ERR_NAME_REQUIRED = 68 -
-   - - ERR_NMTOKEN_REQUIRED = 67 -
-   - - ERR_NOTATION_NOT_FINISHED = 49 -
-   - - ERR_NOTATION_NOT_STARTED = 48 -
-   - - ERR_NOTATION_PROCESSING = 105 -
-   - - ERR_NOT_STANDALONE = 103 -
-   - - ERR_NOT_WELL_BALANCED = 85 -
-   - - ERR_NO_DTD = 94 -
-   - - ERR_NO_MEMORY = 2 -
-   - - ERR_NS_DECL_ERROR = 35 -
-   - - ERR_OK = 0 -
-   - - ERR_PCDATA_REQUIRED = 69 -
-   - - ERR_PEREF_AT_EOF = 18 -
-   - - ERR_PEREF_IN_EPILOG = 20 -
-   - - ERR_PEREF_IN_INT_SUBSET = 21 -
-   - - ERR_PEREF_IN_PROLOG = 19 -
-   - - ERR_PEREF_NO_NAME = 24 -
-   - - ERR_PEREF_SEMICOL_MISSING = 25 -
-   - - ERR_PI_NOT_FINISHED = 47 -
-   - - ERR_PI_NOT_STARTED = 46 -
-   - - ERR_PUBID_REQUIRED = 71 -
-   - - ERR_RESERVED_XML_NAME = 64 -
-   - - ERR_SEPARATOR_REQUIRED = 66 -
-   - - ERR_SPACE_REQUIRED = 65 -
-   - - ERR_STANDALONE_VALUE = 78 -
-   - - ERR_STRING_NOT_CLOSED = 34 -
-   - - ERR_STRING_NOT_STARTED = 33 -
-   - - ERR_TAG_NAME_MISMATCH = 76 -
-   - - ERR_TAG_NOT_FINISHED = 77 -
-   - - ERR_UNDECLARED_ENTITY = 26 -
-   - - ERR_UNKNOWN_ENCODING = 31 -
-   - - ERR_UNKNOWN_VERSION = 108 -
-   - - ERR_UNPARSED_ENTITY = 28 -
-   - - ERR_UNSUPPORTED_ENCODING = 32 -
-   - - ERR_URI_FRAGMENT = 92 -
-   - - ERR_URI_REQUIRED = 70 -
-   - - ERR_VALUE_REQUIRED = 84 -
-   - - ERR_VERSION_MISMATCH = 109 -
-   - - ERR_VERSION_MISSING = 96 -
-   - - ERR_XMLDECL_NOT_FINISHED = 57 -
-   - - ERR_XMLDECL_NOT_STARTED = 56 -
-   - - FTP_ACCNT = 2002 -
-   - - FTP_EPSV_ANSWER = 2001 -
-   - - FTP_PASV_ANSWER = 2000 -
-   - - FTP_URL_SYNTAX = 2003 -
-   - - HTML_STRUCURE_ERROR = 800 -
-   - - HTML_UNKNOWN_TAG = 801 -
-   - - HTTP_UNKNOWN_HOST = 2022 -
-   - - HTTP_URL_SYNTAX = 2020 -
-   - - HTTP_USE_IP = 2021 -
-   - - I18N_CONV_FAILED = 6003 -
-   - - I18N_EXCESS_HANDLER = 6002 -
-   - - I18N_NO_HANDLER = 6001 -
-   - - I18N_NO_NAME = 6000 -
-   - - I18N_NO_OUTPUT = 6004 -
-   - - IO_BUFFER_FULL = 1548 -
-   - - IO_EACCES = 1501 -
-   - - IO_EADDRINUSE = 1554 -
-   - - IO_EAFNOSUPPORT = 1556 -
-   - - IO_EAGAIN = 1502 -
-   - - IO_EALREADY = 1555 -
-   - - IO_EBADF = 1503 -
-   - - IO_EBADMSG = 1504 -
-   - - IO_EBUSY = 1505 -
-   - - IO_ECANCELED = 1506 -
-   - - IO_ECHILD = 1507 -
-   - - IO_ECONNREFUSED = 1552 -
-   - - IO_EDEADLK = 1508 -
-   - - IO_EDOM = 1509 -
-   - - IO_EEXIST = 1510 -
-   - - IO_EFAULT = 1511 -
-   - - IO_EFBIG = 1512 -
-   - - IO_EINPROGRESS = 1513 -
-   - - IO_EINTR = 1514 -
-   - - IO_EINVAL = 1515 -
-   - - IO_EIO = 1516 -
-   - - IO_EISCONN = 1551 -
-   - - IO_EISDIR = 1517 -
-   - - IO_EMFILE = 1518 -
-   - - IO_EMLINK = 1519 -
-   - - IO_EMSGSIZE = 1520 -
-   - - IO_ENAMETOOLONG = 1521 -
-   - - IO_ENCODER = 1544 -
-   - - IO_ENETUNREACH = 1553 -
-   - - IO_ENFILE = 1522 -
-   - - IO_ENODEV = 1523 -
-   - - IO_ENOENT = 1524 -
-   - - IO_ENOEXEC = 1525 -
-   - - IO_ENOLCK = 1526 -
-   - - IO_ENOMEM = 1527 -
-   - - IO_ENOSPC = 1528 -
-   - - IO_ENOSYS = 1529 -
-   - - IO_ENOTDIR = 1530 -
-   - - IO_ENOTEMPTY = 1531 -
-   - - IO_ENOTSOCK = 1550 -
-   - - IO_ENOTSUP = 1532 -
-   - - IO_ENOTTY = 1533 -
-   - - IO_ENXIO = 1534 -
-   - - IO_EPERM = 1535 -
-   - - IO_EPIPE = 1536 -
-   - - IO_ERANGE = 1537 -
-   - - IO_EROFS = 1538 -
-   - - IO_ESPIPE = 1539 -
-   - - IO_ESRCH = 1540 -
-   - - IO_ETIMEDOUT = 1541 -
-   - - IO_EXDEV = 1542 -
-   - - IO_FLUSH = 1545 -
-   - - IO_LOAD_ERROR = 1549 -
-   - - IO_NETWORK_ATTEMPT = 1543 -
-   - - IO_NO_INPUT = 1547 -
-   - - IO_UNKNOWN = 1500 -
-   - - IO_WRITE = 1546 -
-   - - MODULE_CLOSE = 4901 -
-   - - MODULE_OPEN = 4900 -
-   - - NS_ERR_ATTRIBUTE_REDEFINED = 203 -
-   - - NS_ERR_COLON = 205 -
-   - - NS_ERR_EMPTY = 204 -
-   - - NS_ERR_QNAME = 202 -
-   - - NS_ERR_UNDEFINED_NAMESPACE = 201 -
-   - - NS_ERR_XML_NAMESPACE = 200 -
-   - - REGEXP_COMPILE_ERROR = 1450 -
-   - - RNGP_ANYNAME_ATTR_ANCESTOR = 1000 -
-   - - RNGP_ATTRIBUTE_CHILDREN = 1002 -
-   - - RNGP_ATTRIBUTE_CONTENT = 1003 -
-   - - RNGP_ATTRIBUTE_EMPTY = 1004 -
-   - - RNGP_ATTRIBUTE_NOOP = 1005 -
-   - - RNGP_ATTR_CONFLICT = 1001 -
-   - - RNGP_CHOICE_CONTENT = 1006 -
-   - - RNGP_CHOICE_EMPTY = 1007 -
-   - - RNGP_CREATE_FAILURE = 1008 -
-   - - RNGP_DATA_CONTENT = 1009 -
-   - - RNGP_DEFINE_CREATE_FAILED = 1011 -
-   - - RNGP_DEFINE_EMPTY = 1012 -
-   - - RNGP_DEFINE_MISSING = 1013 -
-   - - RNGP_DEFINE_NAME_MISSING = 1014 -
-   - - RNGP_DEF_CHOICE_AND_INTERLEAVE = 1010 -
-   - - RNGP_ELEMENT_CONTENT = 1018 -
-   - - RNGP_ELEMENT_EMPTY = 1017 -
-   - - RNGP_ELEMENT_NAME = 1019 -
-   - - RNGP_ELEMENT_NO_CONTENT = 1020 -
-   - - RNGP_ELEM_CONTENT_EMPTY = 1015 -
-   - - RNGP_ELEM_CONTENT_ERROR = 1016 -
-   - - RNGP_ELEM_TEXT_CONFLICT = 1021 -
-   - - RNGP_EMPTY = 1022 -
-   - - RNGP_EMPTY_CONSTRUCT = 1023 -
-   - - RNGP_EMPTY_CONTENT = 1024 -
-   - - RNGP_EMPTY_NOT_EMPTY = 1025 -
-   - - RNGP_ERROR_TYPE_LIB = 1026 -
-   - - RNGP_EXCEPT_EMPTY = 1027 -
-   - - RNGP_EXCEPT_MISSING = 1028 -
-   - - RNGP_EXCEPT_MULTIPLE = 1029 -
-   - - RNGP_EXCEPT_NO_CONTENT = 1030 -
-   - - RNGP_EXTERNALREF_EMTPY = 1031 -
-   - - RNGP_EXTERNALREF_RECURSE = 1033 -
-   - - RNGP_EXTERNAL_REF_FAILURE = 1032 -
-   - - RNGP_FORBIDDEN_ATTRIBUTE = 1034 -
-   - - RNGP_FOREIGN_ELEMENT = 1035 -
-   - - RNGP_GRAMMAR_CONTENT = 1036 -
-   - - RNGP_GRAMMAR_EMPTY = 1037 -
-   - - RNGP_GRAMMAR_MISSING = 1038 -
-   - - RNGP_GRAMMAR_NO_START = 1039 -
-   - - RNGP_GROUP_ATTR_CONFLICT = 1040 -
-   - - RNGP_HREF_ERROR = 1041 -
-   - - RNGP_INCLUDE_EMPTY = 1042 -
-   - - RNGP_INCLUDE_FAILURE = 1043 -
-   - - RNGP_INCLUDE_RECURSE = 1044 -
-   - - RNGP_INTERLEAVE_ADD = 1045 -
-   - - RNGP_INTERLEAVE_CREATE_FAILED = 1046 -
-   - - RNGP_INTERLEAVE_EMPTY = 1047 -
-   - - RNGP_INTERLEAVE_NO_CONTENT = 1048 -
-   - - RNGP_INVALID_DEFINE_NAME = 1049 -
-   - - RNGP_INVALID_URI = 1050 -
-   - - RNGP_INVALID_VALUE = 1051 -
-   - - RNGP_MISSING_HREF = 1052 -
-   - - RNGP_NAME_MISSING = 1053 -
-   - - RNGP_NEED_COMBINE = 1054 -
-   - - RNGP_NOTALLOWED_NOT_EMPTY = 1055 -
-   - - RNGP_NSNAME_ATTR_ANCESTOR = 1056 -
-   - - RNGP_NSNAME_NO_NS = 1057 -
-   - - RNGP_PARAM_FORBIDDEN = 1058 -
-   - - RNGP_PARAM_NAME_MISSING = 1059 -
-   - - RNGP_PARENTREF_CREATE_FAILED = 1060 -
-   - - RNGP_PARENTREF_NAME_INVALID = 1061 -
-   - - RNGP_PARENTREF_NOT_EMPTY = 1064 -
-   - - RNGP_PARENTREF_NO_NAME = 1062 -
-   - - RNGP_PARENTREF_NO_PARENT = 1063 -
-   - - RNGP_PARSE_ERROR = 1065 -
-   - - RNGP_PAT_ANYNAME_EXCEPT_ANYNAME = 1066 -
-   - - RNGP_PAT_ATTR_ATTR = 1067 -
-   - - RNGP_PAT_ATTR_ELEM = 1068 -
-   - - RNGP_PAT_DATA_EXCEPT_ATTR = 1069 -
-   - - RNGP_PAT_DATA_EXCEPT_ELEM = 1070 -
-   - - RNGP_PAT_DATA_EXCEPT_EMPTY = 1071 -
-   - - RNGP_PAT_DATA_EXCEPT_GROUP = 1072 -
-   - - RNGP_PAT_DATA_EXCEPT_INTERLEAVE = 1073 -
-   - - RNGP_PAT_DATA_EXCEPT_LIST = 1074 -
-   - - RNGP_PAT_DATA_EXCEPT_ONEMORE = 1075 -
-   - - RNGP_PAT_DATA_EXCEPT_REF = 1076 -
-   - - RNGP_PAT_DATA_EXCEPT_TEXT = 1077 -
-   - - RNGP_PAT_LIST_ATTR = 1078 -
-   - - RNGP_PAT_LIST_ELEM = 1079 -
-   - - RNGP_PAT_LIST_INTERLEAVE = 1080 -
-   - - RNGP_PAT_LIST_LIST = 1081 -
-   - - RNGP_PAT_LIST_REF = 1082 -
-   - - RNGP_PAT_LIST_TEXT = 1083 -
-   - - RNGP_PAT_NSNAME_EXCEPT_ANYNAME = 1084 -
-   - - RNGP_PAT_NSNAME_EXCEPT_NSNAME = 1085 -
-   - - RNGP_PAT_ONEMORE_GROUP_ATTR = 1086 -
-   - - RNGP_PAT_ONEMORE_INTERLEAVE_ATTR = 1087 -
-   - - RNGP_PAT_START_ATTR = 1088 -
-   - - RNGP_PAT_START_DATA = 1089 -
-   - - RNGP_PAT_START_EMPTY = 1090 -
-   - - RNGP_PAT_START_GROUP = 1091 -
-   - - RNGP_PAT_START_INTERLEAVE = 1092 -
-   - - RNGP_PAT_START_LIST = 1093 -
-   - - RNGP_PAT_START_ONEMORE = 1094 -
-   - - RNGP_PAT_START_TEXT = 1095 -
-   - - RNGP_PAT_START_VALUE = 1096 -
-   - - RNGP_PREFIX_UNDEFINED = 1097 -
-   - - RNGP_REF_CREATE_FAILED = 1098 -
-   - - RNGP_REF_CYCLE = 1099 -
-   - - RNGP_REF_NAME_INVALID = 1100 -
-   - - RNGP_REF_NOT_EMPTY = 1103 -
-   - - RNGP_REF_NO_DEF = 1101 -
-   - - RNGP_REF_NO_NAME = 1102 -
-   - - RNGP_START_CHOICE_AND_INTERLEAVE = 1104 -
-   - - RNGP_START_CONTENT = 1105 -
-   - - RNGP_START_EMPTY = 1106 -
-   - - RNGP_START_MISSING = 1107 -
-   - - RNGP_TEXT_EXPECTED = 1108 -
-   - - RNGP_TEXT_HAS_CHILD = 1109 -
-   - - RNGP_TYPE_MISSING = 1110 -
-   - - RNGP_TYPE_NOT_FOUND = 1111 -
-   - - RNGP_TYPE_VALUE = 1112 -
-   - - RNGP_UNKNOWN_ATTRIBUTE = 1113 -
-   - - RNGP_UNKNOWN_COMBINE = 1114 -
-   - - RNGP_UNKNOWN_CONSTRUCT = 1115 -
-   - - RNGP_UNKNOWN_TYPE_LIB = 1116 -
-   - - RNGP_URI_FRAGMENT = 1117 -
-   - - RNGP_URI_NOT_ABSOLUTE = 1118 -
-   - - RNGP_VALUE_EMPTY = 1119 -
-   - - RNGP_VALUE_NO_CONTENT = 1120 -
-   - - RNGP_XMLNS_NAME = 1121 -
-   - - RNGP_XML_NS = 1122 -
-   - - SAVE_CHAR_INVALID = 1401 -
-   - - SAVE_NOT_UTF8 = 1400 -
-   - - SAVE_NO_DOCTYPE = 1402 -
-   - - SAVE_UNKNOWN_ENCODING = 1403 -
-   - - SCHEMAP_AG_PROPS_CORRECT = 3087 -
-   - - SCHEMAP_ATTRFORMDEFAULT_VALUE = 1701 -
-   - - SCHEMAP_ATTRGRP_NONAME_NOREF = 1702 -
-   - - SCHEMAP_ATTR_NONAME_NOREF = 1703 -
-   - - SCHEMAP_AU_PROPS_CORRECT = 3089 -
-   - - SCHEMAP_AU_PROPS_CORRECT_2 = 3078 -
-   - - SCHEMAP_A_PROPS_CORRECT_2 = 3079 -
-   - - SCHEMAP_A_PROPS_CORRECT_3 = 3090 -
-   - - SCHEMAP_COMPLEXTYPE_NONAME_NOREF = 1704 -
-   - - SCHEMAP_COS_ALL_LIMITED = 3091 -
-   - - SCHEMAP_COS_CT_EXTENDS_1_1 = 3063 -
-   - - SCHEMAP_COS_CT_EXTENDS_1_2 = 3088 -
-   - - SCHEMAP_COS_CT_EXTENDS_1_3 = 1800 -
-   - - SCHEMAP_COS_ST_DERIVED_OK_2_1 = 3031 -
-   - - SCHEMAP_COS_ST_DERIVED_OK_2_2 = 3032 -
-   - - SCHEMAP_COS_ST_RESTRICTS_1_1 = 3011 -
-   - - SCHEMAP_COS_ST_RESTRICTS_1_2 = 3012 -
-   - - SCHEMAP_COS_ST_RESTRICTS_1_3_1 = 3013 -
-   - - SCHEMAP_COS_ST_RESTRICTS_1_3_2 = 3014 -
-   - - SCHEMAP_COS_ST_RESTRICTS_2_1 = 3015 -
-   - - SCHEMAP_COS_ST_RESTRICTS_2_3_1_1 = 3016 -
-   - - SCHEMAP_COS_ST_RESTRICTS_2_3_1_2 = 3017 -
-   - - SCHEMAP_COS_ST_RESTRICTS_2_3_2_1 = 3018 -
-   - - SCHEMAP_COS_ST_RESTRICTS_2_3_2_2 = 3019 -
-   - - SCHEMAP_COS_ST_RESTRICTS_2_3_2_3 = 3020 -
-   - - SCHEMAP_COS_ST_RESTRICTS_2_3_2_4 = 3021 -
-   - - SCHEMAP_COS_ST_RESTRICTS_2_3_2_5 = 3022 -
-   - - SCHEMAP_COS_ST_RESTRICTS_3_1 = 3023 -
-   - - SCHEMAP_COS_ST_RESTRICTS_3_3_1 = 3024 -
-   - - SCHEMAP_COS_ST_RESTRICTS_3_3_1_2 = 3025 -
-   - - SCHEMAP_COS_ST_RESTRICTS_3_3_2_1 = 3027 -
-   - - SCHEMAP_COS_ST_RESTRICTS_3_3_2_2 = 3026 -
-   - - SCHEMAP_COS_ST_RESTRICTS_3_3_2_3 = 3028 -
-   - - SCHEMAP_COS_ST_RESTRICTS_3_3_2_4 = 3029 -
-   - - SCHEMAP_COS_ST_RESTRICTS_3_3_2_5 = 3030 -
-   - - SCHEMAP_COS_VALID_DEFAULT_1 = 3058 -
-   - - SCHEMAP_COS_VALID_DEFAULT_2_1 = 3059 -
-   - - SCHEMAP_COS_VALID_DEFAULT_2_2_1 = 3060 -
-   - - SCHEMAP_COS_VALID_DEFAULT_2_2_2 = 3061 -
-   - - SCHEMAP_CT_PROPS_CORRECT_1 = 1782 -
-   - - SCHEMAP_CT_PROPS_CORRECT_2 = 1783 -
-   - - SCHEMAP_CT_PROPS_CORRECT_3 = 1784 -
-   - - SCHEMAP_CT_PROPS_CORRECT_4 = 1785 -
-   - - SCHEMAP_CT_PROPS_CORRECT_5 = 1786 -
-   - - SCHEMAP_CVC_SIMPLE_TYPE = 3062 -
-   - - SCHEMAP_C_PROPS_CORRECT = 3080 -
-   - - SCHEMAP_DEF_AND_PREFIX = 1768 -
-   - - SCHEMAP_DERIVATION_OK_RESTRICTION_1 = 1787 -
-   - - SCHEMAP_DERIVATION_OK_RESTRICTION_2_1_1 = 1788 -
-   - - SCHEMAP_DERIVATION_OK_RESTRICTION_2_1_2 = 1789 -
-   - - SCHEMAP_DERIVATION_OK_RESTRICTION_2_1_3 = 3077 -
-   - - SCHEMAP_DERIVATION_OK_RESTRICTION_2_2 = 1790 -
-   - - SCHEMAP_DERIVATION_OK_RESTRICTION_3 = 1791 -
-   - - SCHEMAP_DERIVATION_OK_RESTRICTION_4_1 = 1797 -
-   - - SCHEMAP_DERIVATION_OK_RESTRICTION_4_2 = 1798 -
-   - - SCHEMAP_DERIVATION_OK_RESTRICTION_4_3 = 1799 -
-   - - SCHEMAP_ELEMFORMDEFAULT_VALUE = 1705 -
-   - - SCHEMAP_ELEM_DEFAULT_FIXED = 1755 -
-   - - SCHEMAP_ELEM_NONAME_NOREF = 1706 -
-   - - SCHEMAP_EXTENSION_NO_BASE = 1707 -
-   - - SCHEMAP_E_PROPS_CORRECT_2 = 3045 -
-   - - SCHEMAP_E_PROPS_CORRECT_3 = 3046 -
-   - - SCHEMAP_E_PROPS_CORRECT_4 = 3047 -
-   - - SCHEMAP_E_PROPS_CORRECT_5 = 3048 -
-   - - SCHEMAP_E_PROPS_CORRECT_6 = 3049 -
-   - - SCHEMAP_FACET_NO_VALUE = 1708 -
-   - - SCHEMAP_FAILED_BUILD_IMPORT = 1709 -
-   - - SCHEMAP_FAILED_LOAD = 1757 -
-   - - SCHEMAP_FAILED_PARSE = 1766 -
-   - - SCHEMAP_GROUP_NONAME_NOREF = 1710 -
-   - - SCHEMAP_IMPORT_NAMESPACE_NOT_URI = 1711 -
-   - - SCHEMAP_IMPORT_REDEFINE_NSNAME = 1712 -
-   - - SCHEMAP_IMPORT_SCHEMA_NOT_URI = 1713 -
-   - - SCHEMAP_INCLUDE_SCHEMA_NOT_URI = 1770 -
-   - - SCHEMAP_INCLUDE_SCHEMA_NO_URI = 1771 -
-   - - SCHEMAP_INTERNAL = 3069 -
-   - - SCHEMAP_INTERSECTION_NOT_EXPRESSIBLE = 1793 -
-   - - SCHEMAP_INVALID_ATTR_COMBINATION = 1777 -
-   - - SCHEMAP_INVALID_ATTR_INLINE_COMBINATION = 1778 -
-   - - SCHEMAP_INVALID_ATTR_NAME = 1780 -
-   - - SCHEMAP_INVALID_ATTR_USE = 1774 -
-   - - SCHEMAP_INVALID_BOOLEAN = 1714 -
-   - - SCHEMAP_INVALID_ENUM = 1715 -
-   - - SCHEMAP_INVALID_FACET = 1716 -
-   - - SCHEMAP_INVALID_FACET_VALUE = 1717 -
-   - - SCHEMAP_INVALID_MAXOCCURS = 1718 -
-   - - SCHEMAP_INVALID_MINOCCURS = 1719 -
-   - - SCHEMAP_INVALID_REF_AND_SUBTYPE = 1720 -
-   - - SCHEMAP_INVALID_WHITE_SPACE = 1721 -
-   - - SCHEMAP_MG_PROPS_CORRECT_1 = 3074 -
-   - - SCHEMAP_MG_PROPS_CORRECT_2 = 3075 -
-   - - SCHEMAP_MISSING_SIMPLETYPE_CHILD = 1779 -
-   - - SCHEMAP_NOATTR_NOREF = 1722 -
-   - - SCHEMAP_NOROOT = 1759 -
-   - - SCHEMAP_NOTATION_NO_NAME = 1723 -
-   - - SCHEMAP_NOTHING_TO_PARSE = 1758 -
-   - - SCHEMAP_NOTYPE_NOREF = 1724 -
-   - - SCHEMAP_NOT_DETERMINISTIC = 3070 -
-   - - SCHEMAP_NOT_SCHEMA = 1772 -
-   - - SCHEMAP_NO_XMLNS = 3056 -
-   - - SCHEMAP_NO_XSI = 3057 -
-   - - SCHEMAP_PREFIX_UNDEFINED = 1700 -
-   - - SCHEMAP_P_PROPS_CORRECT_1 = 3042 -
-   - - SCHEMAP_P_PROPS_CORRECT_2_1 = 3043 -
-   - - SCHEMAP_P_PROPS_CORRECT_2_2 = 3044 -
-   - - SCHEMAP_RECURSIVE = 1775 -
-   - - SCHEMAP_REDEFINED_ATTR = 1764 -
-   - - SCHEMAP_REDEFINED_ATTRGROUP = 1763 -
-   - - SCHEMAP_REDEFINED_ELEMENT = 1762 -
-   - - SCHEMAP_REDEFINED_GROUP = 1760 -
-   - - SCHEMAP_REDEFINED_NOTATION = 1765 -
-   - - SCHEMAP_REDEFINED_TYPE = 1761 -
-   - - SCHEMAP_REF_AND_CONTENT = 1781 -
-   - - SCHEMAP_REF_AND_SUBTYPE = 1725 -
-   - - SCHEMAP_REGEXP_INVALID = 1756 -
-   - - SCHEMAP_RESTRICTION_NONAME_NOREF = 1726 -
-   - - SCHEMAP_S4S_ATTR_INVALID_VALUE = 3037 -
-   - - SCHEMAP_S4S_ATTR_MISSING = 3036 -
-   - - SCHEMAP_S4S_ATTR_NOT_ALLOWED = 3035 -
-   - - SCHEMAP_S4S_ELEM_MISSING = 3034 -
-   - - SCHEMAP_S4S_ELEM_NOT_ALLOWED = 3033 -
-   - - SCHEMAP_SIMPLETYPE_NONAME = 1727 -
-   - - SCHEMAP_SRC_ATTRIBUTE_1 = 3051 -
-   - - SCHEMAP_SRC_ATTRIBUTE_2 = 3052 -
-   - - SCHEMAP_SRC_ATTRIBUTE_3_1 = 3053 -
-   - - SCHEMAP_SRC_ATTRIBUTE_3_2 = 3054 -
-   - - SCHEMAP_SRC_ATTRIBUTE_4 = 3055 -
-   - - SCHEMAP_SRC_ATTRIBUTE_GROUP_1 = 3071 -
-   - - SCHEMAP_SRC_ATTRIBUTE_GROUP_2 = 3072 -
-   - - SCHEMAP_SRC_ATTRIBUTE_GROUP_3 = 3073 -
-   - - SCHEMAP_SRC_CT_1 = 3076 -
-   - - SCHEMAP_SRC_ELEMENT_1 = 3038 -
-   - - SCHEMAP_SRC_ELEMENT_2_1 = 3039 -
-   - - SCHEMAP_SRC_ELEMENT_2_2 = 3040 -
-   - - SCHEMAP_SRC_ELEMENT_3 = 3041 -
-   - - SCHEMAP_SRC_IMPORT = 3082 -
-   - - SCHEMAP_SRC_IMPORT_1_1 = 3064 -
-   - - SCHEMAP_SRC_IMPORT_1_2 = 3065 -
-   - - SCHEMAP_SRC_IMPORT_2 = 3066 -
-   - - SCHEMAP_SRC_IMPORT_2_1 = 3067 -
-   - - SCHEMAP_SRC_IMPORT_2_2 = 3068 -
-   - - SCHEMAP_SRC_IMPORT_3_1 = 1795 -
-   - - SCHEMAP_SRC_IMPORT_3_2 = 1796 -
-   - - SCHEMAP_SRC_INCLUDE = 3050 -
-   - - SCHEMAP_SRC_LIST_ITEMTYPE_OR_SIMPLETYPE = 3006 -
-   - - SCHEMAP_SRC_REDEFINE = 3081 -
-   - - SCHEMAP_SRC_RESOLVE = 3004 -
-   - - SCHEMAP_SRC_RESTRICTION_BASE_OR_SIMPLETYPE = 3005 -
-   - - SCHEMAP_SRC_SIMPLE_TYPE_1 = 3000 -
-   - - SCHEMAP_SRC_SIMPLE_TYPE_2 = 3001 -
-   - - SCHEMAP_SRC_SIMPLE_TYPE_3 = 3002 -
-   - - SCHEMAP_SRC_SIMPLE_TYPE_4 = 3003 -
-   - - SCHEMAP_SRC_UNION_MEMBERTYPES_OR_SIMPLETYPES = 3007 -
-   - - SCHEMAP_ST_PROPS_CORRECT_1 = 3008 -
-   - - SCHEMAP_ST_PROPS_CORRECT_2 = 3009 -
-   - - SCHEMAP_ST_PROPS_CORRECT_3 = 3010 -
-   - - SCHEMAP_SUPERNUMEROUS_LIST_ITEM_TYPE = 1776 -
-   - - SCHEMAP_TYPE_AND_SUBTYPE = 1728 -
-   - - SCHEMAP_UNION_NOT_EXPRESSIBLE = 1794 -
-   - - SCHEMAP_UNKNOWN_ALL_CHILD = 1729 -
-   - - SCHEMAP_UNKNOWN_ANYATTRIBUTE_CHILD = 1730 -
-   - - SCHEMAP_UNKNOWN_ATTRGRP_CHILD = 1732 -
-   - - SCHEMAP_UNKNOWN_ATTRIBUTE_GROUP = 1733 -
-   - - SCHEMAP_UNKNOWN_ATTR_CHILD = 1731 -
-   - - SCHEMAP_UNKNOWN_BASE_TYPE = 1734 -
-   - - SCHEMAP_UNKNOWN_CHOICE_CHILD = 1735 -
-   - - SCHEMAP_UNKNOWN_COMPLEXCONTENT_CHILD = 1736 -
-   - - SCHEMAP_UNKNOWN_COMPLEXTYPE_CHILD = 1737 -
-   - - SCHEMAP_UNKNOWN_ELEM_CHILD = 1738 -
-   - - SCHEMAP_UNKNOWN_EXTENSION_CHILD = 1739 -
-   - - SCHEMAP_UNKNOWN_FACET_CHILD = 1740 -
-   - - SCHEMAP_UNKNOWN_FACET_TYPE = 1741 -
-   - - SCHEMAP_UNKNOWN_GROUP_CHILD = 1742 -
-   - - SCHEMAP_UNKNOWN_IMPORT_CHILD = 1743 -
-   - - SCHEMAP_UNKNOWN_INCLUDE_CHILD = 1769 -
-   - - SCHEMAP_UNKNOWN_LIST_CHILD = 1744 -
-   - - SCHEMAP_UNKNOWN_MEMBER_TYPE = 1773 -
-   - - SCHEMAP_UNKNOWN_NOTATION_CHILD = 1745 -
-   - - SCHEMAP_UNKNOWN_PREFIX = 1767 -
-   - - SCHEMAP_UNKNOWN_PROCESSCONTENT_CHILD = 1746 -
-   - - SCHEMAP_UNKNOWN_REF = 1747 -
-   - - SCHEMAP_UNKNOWN_RESTRICTION_CHILD = 1748 -
-   - - SCHEMAP_UNKNOWN_SCHEMAS_CHILD = 1749 -
-   - - SCHEMAP_UNKNOWN_SEQUENCE_CHILD = 1750 -
-   - - SCHEMAP_UNKNOWN_SIMPLECONTENT_CHILD = 1751 -
-   - - SCHEMAP_UNKNOWN_SIMPLETYPE_CHILD = 1752 -
-   - - SCHEMAP_UNKNOWN_TYPE = 1753 -
-   - - SCHEMAP_UNKNOWN_UNION_CHILD = 1754 -
-   - - SCHEMAP_WARN_ATTR_POINTLESS_PROH = 3086 -
-   - - SCHEMAP_WARN_ATTR_REDECL_PROH = 3085 -
-   - - SCHEMAP_WARN_SKIP_SCHEMA = 3083 -
-   - - SCHEMAP_WARN_UNLOCATED_SCHEMA = 3084 -
-   - - SCHEMAP_WILDCARD_INVALID_NS_MEMBER = 1792 -
-   - - SCHEMATRONV_ASSERT = 4000 -
-   - - SCHEMATRONV_REPORT = 4001 -
-   - - SCHEMAV_ATTRINVALID = 1821 -
-   - - SCHEMAV_ATTRUNKNOWN = 1820 -
-   - - SCHEMAV_CONSTRUCT = 1817 -
-   - - SCHEMAV_CVC_ATTRIBUTE_1 = 1861 -
-   - - SCHEMAV_CVC_ATTRIBUTE_2 = 1862 -
-   - - SCHEMAV_CVC_ATTRIBUTE_3 = 1863 -
-   - - SCHEMAV_CVC_ATTRIBUTE_4 = 1864 -
-   - - SCHEMAV_CVC_AU = 1874 -
-   - - SCHEMAV_CVC_COMPLEX_TYPE_1 = 1873 -
-   - - SCHEMAV_CVC_COMPLEX_TYPE_2_1 = 1841 -
-   - - SCHEMAV_CVC_COMPLEX_TYPE_2_2 = 1842 -
-   - - SCHEMAV_CVC_COMPLEX_TYPE_2_3 = 1843 -
-   - - SCHEMAV_CVC_COMPLEX_TYPE_2_4 = 1844 -
-   - - SCHEMAV_CVC_COMPLEX_TYPE_3_1 = 1865 -
-   - - SCHEMAV_CVC_COMPLEX_TYPE_3_2_1 = 1866 -
-   - - SCHEMAV_CVC_COMPLEX_TYPE_3_2_2 = 1867 -
-   - - SCHEMAV_CVC_COMPLEX_TYPE_4 = 1868 -
-   - - SCHEMAV_CVC_COMPLEX_TYPE_5_1 = 1869 -
-   - - SCHEMAV_CVC_COMPLEX_TYPE_5_2 = 1870 -
-   - - SCHEMAV_CVC_DATATYPE_VALID_1_2_1 = 1824 -
-   - - SCHEMAV_CVC_DATATYPE_VALID_1_2_2 = 1825 -
-   - - SCHEMAV_CVC_DATATYPE_VALID_1_2_3 = 1826 -
-   - - SCHEMAV_CVC_ELT_1 = 1845 -
-   - - SCHEMAV_CVC_ELT_2 = 1846 -
-   - - SCHEMAV_CVC_ELT_3_1 = 1847 -
-   - - SCHEMAV_CVC_ELT_3_2_1 = 1848 -
-   - - SCHEMAV_CVC_ELT_3_2_2 = 1849 -
-   - - SCHEMAV_CVC_ELT_4_1 = 1850 -
-   - - SCHEMAV_CVC_ELT_4_2 = 1851 -
-   - - SCHEMAV_CVC_ELT_4_3 = 1852 -
-   - - SCHEMAV_CVC_ELT_5_1_1 = 1853 -
-   - - SCHEMAV_CVC_ELT_5_1_2 = 1854 -
-   - - SCHEMAV_CVC_ELT_5_2_1 = 1855 -
-   - - SCHEMAV_CVC_ELT_5_2_2_1 = 1856 -
-   - - SCHEMAV_CVC_ELT_5_2_2_2_1 = 1857 -
-   - - SCHEMAV_CVC_ELT_5_2_2_2_2 = 1858 -
-   - - SCHEMAV_CVC_ELT_6 = 1859 -
-   - - SCHEMAV_CVC_ELT_7 = 1860 -
-   - - SCHEMAV_CVC_ENUMERATION_VALID = 1840 -
-   - - SCHEMAV_CVC_FACET_VALID = 1829 -
-   - - SCHEMAV_CVC_FRACTIONDIGITS_VALID = 1838 -
-   - - SCHEMAV_CVC_IDC = 1877 -
-   - - SCHEMAV_CVC_LENGTH_VALID = 1830 -
-   - - SCHEMAV_CVC_MAXEXCLUSIVE_VALID = 1836 -
-   - - SCHEMAV_CVC_MAXINCLUSIVE_VALID = 1834 -
-   - - SCHEMAV_CVC_MAXLENGTH_VALID = 1832 -
-   - - SCHEMAV_CVC_MINEXCLUSIVE_VALID = 1835 -
-   - - SCHEMAV_CVC_MININCLUSIVE_VALID = 1833 -
-   - - SCHEMAV_CVC_MINLENGTH_VALID = 1831 -
-   - - SCHEMAV_CVC_PATTERN_VALID = 1839 -
-   - - SCHEMAV_CVC_TOTALDIGITS_VALID = 1837 -
-   - - SCHEMAV_CVC_TYPE_1 = 1875 -
-   - - SCHEMAV_CVC_TYPE_2 = 1876 -
-   - - SCHEMAV_CVC_TYPE_3_1_1 = 1827 -
-   - - SCHEMAV_CVC_TYPE_3_1_2 = 1828 -
-   - - SCHEMAV_CVC_WILDCARD = 1878 -
-   - - SCHEMAV_DOCUMENT_ELEMENT_MISSING = 1872 -
-   - - SCHEMAV_ELEMCONT = 1810 -
-   - - SCHEMAV_ELEMENT_CONTENT = 1871 -
-   - - SCHEMAV_EXTRACONTENT = 1813 -
-   - - SCHEMAV_FACET = 1823 -
-   - - SCHEMAV_HAVEDEFAULT = 1811 -
-   - - SCHEMAV_INTERNAL = 1818 -
-   - - SCHEMAV_INVALIDATTR = 1814 -
-   - - SCHEMAV_INVALIDELEM = 1815 -
-   - - SCHEMAV_ISABSTRACT = 1808 -
-   - - SCHEMAV_MISC = 1879 -
-   - - SCHEMAV_MISSING = 1804 -
-   - - SCHEMAV_NOROLLBACK = 1807 -
-   - - SCHEMAV_NOROOT = 1801 -
-   - - SCHEMAV_NOTDETERMINIST = 1816 -
-   - - SCHEMAV_NOTEMPTY = 1809 -
-   - - SCHEMAV_NOTNILLABLE = 1812 -
-   - - SCHEMAV_NOTSIMPLE = 1819 -
-   - - SCHEMAV_NOTTOPLEVEL = 1803 -
-   - - SCHEMAV_NOTYPE = 1806 -
-   - - SCHEMAV_UNDECLAREDELEM = 1802 -
-   - - SCHEMAV_VALUE = 1822 -
-   - - SCHEMAV_WRONGELEM = 1805 -
-   - - TREE_INVALID_DEC = 1301 -
-   - - TREE_INVALID_HEX = 1300 -
-   - - TREE_NOT_UTF8 = 1303 -
-   - - TREE_UNTERMINATED_ENTITY = 1302 -
-   - - WAR_CATALOG_PI = 93 -
-   - - WAR_ENTITY_REDEFINED = 107 -
-   - - WAR_LANG_VALUE = 98 -
-   - - WAR_NS_COLUMN = 106 -
-   - - WAR_NS_URI = 99 -
-   - - WAR_NS_URI_RELATIVE = 100 -
-   - - WAR_SPACE_VALUE = 102 -
-   - - WAR_UNDECLARED_ENTITY = 27 -
-   - - WAR_UNKNOWN_VERSION = 97 -
-   - - XINCLUDE_BUILD_FAILED = 1609 -
-   - - XINCLUDE_DEPRECATED_NS = 1617 -
-   - - XINCLUDE_ENTITY_DEF_MISMATCH = 1602 -
-   - - XINCLUDE_FALLBACKS_IN_INCLUDE = 1615 -
-   - - XINCLUDE_FALLBACK_NOT_IN_INCLUDE = 1616 -
-   - - XINCLUDE_FRAGMENT_ID = 1618 -
-   - - XINCLUDE_HREF_URI = 1605 -
-   - - XINCLUDE_INCLUDE_IN_INCLUDE = 1614 -
-   - - XINCLUDE_INVALID_CHAR = 1608 -
-   - - XINCLUDE_MULTIPLE_ROOT = 1611 -
-   - - XINCLUDE_NO_FALLBACK = 1604 -
-   - - XINCLUDE_NO_HREF = 1603 -
-   - - XINCLUDE_PARSE_VALUE = 1601 -
-   - - XINCLUDE_RECURSION = 1600 -
-   - - XINCLUDE_TEXT_DOCUMENT = 1607 -
-   - - XINCLUDE_TEXT_FRAGMENT = 1606 -
-   - - XINCLUDE_UNKNOWN_ENCODING = 1610 -
-   - - XINCLUDE_XPTR_FAILED = 1612 -
-   - - XINCLUDE_XPTR_RESULT = 1613 -
-   - - XPATH_ENCODING_ERROR = 1220 -
-   - - XPATH_EXPRESSION_OK = 1200 -
-   - - XPATH_EXPR_ERROR = 1207 -
-   - - XPATH_INVALID_ARITY = 1212 -
-   - - XPATH_INVALID_CHAR_ERROR = 1221 -
-   - - XPATH_INVALID_CTXT_POSITION = 1214 -
-   - - XPATH_INVALID_CTXT_SIZE = 1213 -
-   - - XPATH_INVALID_OPERAND = 1210 -
-   - - XPATH_INVALID_PREDICATE_ERROR = 1206 -
-   - - XPATH_INVALID_TYPE = 1211 -
-   - - XPATH_MEMORY_ERROR = 1215 -
-   - - XPATH_NUMBER_ERROR = 1201 -
-   - - XPATH_START_LITERAL_ERROR = 1203 -
-   - - XPATH_UNCLOSED_ERROR = 1208 -
-   - - XPATH_UNDEF_PREFIX_ERROR = 1219 -
-   - - XPATH_UNDEF_VARIABLE_ERROR = 1205 -
-   - - XPATH_UNFINISHED_LITERAL_ERROR = 1202 -
-   - - XPATH_UNKNOWN_FUNC_ERROR = 1209 -
-   - - XPATH_VARIABLE_REF_ERROR = 1204 -
-   - - XPTR_CHILDSEQ_START = 1901 -
-   - - XPTR_EVAL_FAILED = 1902 -
-   - - XPTR_EXTRA_OBJECTS = 1903 -
-   - - XPTR_RESOURCE_ERROR = 1217 -
-   - - XPTR_SUB_RESOURCE_ERROR = 1218 -
-   - - XPTR_SYNTAX_ERROR = 1216 -
-   - - XPTR_UNKNOWN_SCHEME = 1900 -
-   - - _names = {0: u'ERR_OK', 1: u'ERR_INTERNAL_ERROR', 2: u'ERR_NO_... -
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Class Variable Details[hide private]
-
- -
- -
-

_names

- -
-
-
-
Value:
-
-{0: u'ERR_OK',
- 1: u'ERR_INTERNAL_ERROR',
- 2: u'ERR_NO_MEMORY',
- 3: u'ERR_DOCUMENT_START',
- 4: u'ERR_DOCUMENT_EMPTY',
- 5: u'ERR_DOCUMENT_END',
- 6: u'ERR_INVALID_HEX_CHARREF',
- 7: u'ERR_INVALID_DEC_CHARREF',
-...
-
-
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree.FallbackElementClassLookup-class.html b/doc/html/api/lxml.etree.FallbackElementClassLookup-class.html deleted file mode 100644 index 07240b6..0000000 --- a/doc/html/api/lxml.etree.FallbackElementClassLookup-class.html +++ /dev/null @@ -1,322 +0,0 @@ - - - - - lxml.etree.FallbackElementClassLookup - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class FallbackElementClassLookup - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class FallbackElementClassLookup

-
-        object --+    
-                 |    
-ElementClassLookup --+
-                     |
-                    FallbackElementClassLookup
-
- -
Known Subclasses:
-
- -
- -
-

FallbackElementClassLookup(self, fallback=None)

-

Superclass of Element class lookups with additional fallback.

- - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__init__(self, - fallback=None)
- x.__init__(...) initializes x; see help(type(x)) for signature
- - -
- -
- a new object with type S, a subtype of T - - - - - - -
__new__(T, - S, - ...) - - -
- -
-   - - - - - - -
set_fallback(self, - lookup)
- Sets the fallback scheme for this lookup method.
- - -
- -
-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __reduce__, - __reduce_ex__, - __repr__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - - - - -
- - - - - -
Properties[hide private]
-
-   - - fallback -
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__init__(self, - fallback=None) -
(Constructor) -

-
  -
- - x.__init__(...) initializes x; see help(type(x)) for signature -
-
Overrides: - object.__init__ -
-
-
-
- -
- -
- - -
-

__new__(T, - S, - ...) -

-
  -
- - -
-
Returns: a new object with type S, a subtype of T
-
Overrides: - object.__new__ -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree.HTMLParser-class.html b/doc/html/api/lxml.etree.HTMLParser-class.html deleted file mode 100644 index 6c8a649..0000000 --- a/doc/html/api/lxml.etree.HTMLParser-class.html +++ /dev/null @@ -1,358 +0,0 @@ - - - - - lxml.etree.HTMLParser - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class HTMLParser - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class HTMLParser

-
- object --+        
-          |        
-_BaseParser --+    
-              |    
-    _FeedParser --+
-                  |
-                 HTMLParser
-
- -
Known Subclasses:
-
- -
- -
-

HTMLParser(self, encoding=None, remove_blank_text=False, remove_comments=False, remove_pis=False, strip_cdata=True, no_network=True, target=None, XMLSchema schema=None, recover=True, compact=True)

-

The HTML parser.

-

This parser allows reading HTML into a normal XML tree. By -default, it can read broken (non well-formed) HTML, depending on -the capabilities of libxml2. Use the 'recover' option to switch -this off.

-

Available boolean keyword arguments:

- -

Other keyword arguments:

- -

Note that you should avoid sharing parsers between threads for performance -reasons.

- - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__init__(self, - encoding=None, - remove_blank_text=False, - remove_comments=False, - remove_pis=False, - strip_cdata=True, - no_network=True, - target=None, - XMLSchema schema=None, - recover=True, - compact=True)
- x.__init__(...) initializes x; see help(type(x)) for signature
- - -
- -
- a new object with type S, a subtype of T - - - - - - -
__new__(T, - S, - ...) - - -
- -
-

Inherited from _FeedParser: - close, - feed -

-

Inherited from _BaseParser: - copy, - makeelement, - setElementClassLookup, - set_element_class_lookup -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __reduce__, - __reduce_ex__, - __repr__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from _FeedParser: - feed_error_log -

-

Inherited from _BaseParser: - error_log, - resolvers, - target, - version -

-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__init__(self, - encoding=None, - remove_blank_text=False, - remove_comments=False, - remove_pis=False, - strip_cdata=True, - no_network=True, - target=None, - XMLSchema schema=None, - recover=True, - compact=True) -
(Constructor) -

-
  -
- - x.__init__(...) initializes x; see help(type(x)) for signature -
-
Overrides: - object.__init__ -
-
-
-
- -
- -
- - -
-

__new__(T, - S, - ...) -

-
  -
- - -
-
Returns: a new object with type S, a subtype of T
-
Overrides: - object.__new__ -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree.LxmlError-class.html b/doc/html/api/lxml.etree.LxmlError-class.html deleted file mode 100644 index 5755acb..0000000 --- a/doc/html/api/lxml.etree.LxmlError-class.html +++ /dev/null @@ -1,270 +0,0 @@ - - - - - lxml.etree.LxmlError - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class LxmlError - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class LxmlError

-
-              object --+            
-                       |            
-exceptions.BaseException --+        
-                           |        
-        exceptions.Exception --+    
-                               |    
-                           Error --+
-                                   |
-                                  LxmlError
-
- -
Known Subclasses:
-
- -
- -
-Main exception base class for lxml. All other exceptions inherit from -this one. - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__init__(...)
- x.__init__(...) initializes x; see help(type(x)) for signature
- - -
- -
-

Inherited from exceptions.Exception: - __new__ -

-

Inherited from exceptions.BaseException: - __delattr__, - __getattribute__, - __getitem__, - __getslice__, - __reduce__, - __repr__, - __setattr__, - __setstate__, - __str__, - __unicode__ -

-

Inherited from object: - __format__, - __hash__, - __reduce_ex__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from exceptions.BaseException: - args, - message -

-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__init__(...) -
(Constructor) -

-
  -
- - x.__init__(...) initializes x; see help(type(x)) for signature -
-
Overrides: - object.__init__ -
(inherited documentation)
- -
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree.LxmlRegistryError-class.html b/doc/html/api/lxml.etree.LxmlRegistryError-class.html deleted file mode 100644 index 188dce6..0000000 --- a/doc/html/api/lxml.etree.LxmlRegistryError-class.html +++ /dev/null @@ -1,214 +0,0 @@ - - - - - lxml.etree.LxmlRegistryError - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class LxmlRegistryError - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class LxmlRegistryError

-
-              object --+                
-                       |                
-exceptions.BaseException --+            
-                           |            
-        exceptions.Exception --+        
-                               |        
-                           Error --+    
-                                   |    
-                           LxmlError --+
-                                       |
-                                      LxmlRegistryError
-
- -
Known Subclasses:
-
- -
- -
-Base class of lxml registry errors. - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-

Inherited from LxmlError: - __init__ -

-

Inherited from exceptions.Exception: - __new__ -

-

Inherited from exceptions.BaseException: - __delattr__, - __getattribute__, - __getitem__, - __getslice__, - __reduce__, - __repr__, - __setattr__, - __setstate__, - __str__, - __unicode__ -

-

Inherited from object: - __format__, - __hash__, - __reduce_ex__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from exceptions.BaseException: - args, - message -

-

Inherited from object: - __class__ -

-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree.LxmlSyntaxError-class.html b/doc/html/api/lxml.etree.LxmlSyntaxError-class.html deleted file mode 100644 index 9fae88c..0000000 --- a/doc/html/api/lxml.etree.LxmlSyntaxError-class.html +++ /dev/null @@ -1,232 +0,0 @@ - - - - - lxml.etree.LxmlSyntaxError - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class LxmlSyntaxError - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class LxmlSyntaxError

-
-              object --+                
-                       |                
-exceptions.BaseException --+            
-                           |            
-        exceptions.Exception --+        
-                               |        
-                           Error --+    
-                                   |    
-                           LxmlError --+
-                                       |
-              object --+               |
-                       |               |
-exceptions.BaseException --+           |
-                           |           |
-        exceptions.Exception --+       |
-                               |       |
-        exceptions.StandardError --+   |
-                                   |   |
-              exceptions.SyntaxError --+
-                                       |
-                                      LxmlSyntaxError
-
- -
Known Subclasses:
-
- -
- -
-Base class for all syntax errors. - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-

Inherited from LxmlError: - __init__ -

-

Inherited from exceptions.SyntaxError: - __new__, - __str__ -

-

Inherited from exceptions.BaseException: - __delattr__, - __getattribute__, - __getitem__, - __getslice__, - __reduce__, - __repr__, - __setattr__, - __setstate__, - __unicode__ -

-

Inherited from object: - __format__, - __hash__, - __reduce_ex__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from exceptions.SyntaxError: - filename, - lineno, - msg, - offset, - print_file_and_line, - text -

-

Inherited from exceptions.BaseException: - args, - message -

-

Inherited from object: - __class__ -

-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree.NamespaceRegistryError-class.html b/doc/html/api/lxml.etree.NamespaceRegistryError-class.html deleted file mode 100644 index 6845154..0000000 --- a/doc/html/api/lxml.etree.NamespaceRegistryError-class.html +++ /dev/null @@ -1,210 +0,0 @@ - - - - - lxml.etree.NamespaceRegistryError - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class NamespaceRegistryError - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class NamespaceRegistryError

-
-              object --+                    
-                       |                    
-exceptions.BaseException --+                
-                           |                
-        exceptions.Exception --+            
-                               |            
-                           Error --+        
-                                   |        
-                           LxmlError --+    
-                                       |    
-                       LxmlRegistryError --+
-                                           |
-                                          NamespaceRegistryError
-
- -
-Error registering a namespace extension. - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-

Inherited from LxmlError: - __init__ -

-

Inherited from exceptions.Exception: - __new__ -

-

Inherited from exceptions.BaseException: - __delattr__, - __getattribute__, - __getitem__, - __getslice__, - __reduce__, - __repr__, - __setattr__, - __setstate__, - __str__, - __unicode__ -

-

Inherited from object: - __format__, - __hash__, - __reduce_ex__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from exceptions.BaseException: - args, - message -

-

Inherited from object: - __class__ -

-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree.PIBase-class.html b/doc/html/api/lxml.etree.PIBase-class.html deleted file mode 100644 index 00d018a..0000000 --- a/doc/html/api/lxml.etree.PIBase-class.html +++ /dev/null @@ -1,372 +0,0 @@ - - - - - lxml.etree.PIBase - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class PIBase - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class PIBase

-
-         object --+            
-                  |            
-           _Element --+        
-                      |        
-??.__ContentOnlyElement --+    
-                          |    
-     _ProcessingInstruction --+
-                              |
-                             PIBase
-
- -
Known Subclasses:
-
- -
- -
-

All custom Processing Instruction classes must inherit from this one.

-

To create an XML ProcessingInstruction instance, use the PI() -factory.

-

Subclasses must not override __init__ or __new__ as it is -absolutely undefined when these objects will be created or -destroyed. All persistent state of PIs must be stored in the -underlying XML. If you really need to initialize the object after -creation, you can implement an _init(self) method that will be -called after object creation.

- - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__init__(...)
- x.__init__(...) initializes x; see help(type(x)) for signature
- - -
- -
- a new object with type S, a subtype of T - - - - - - -
__new__(T, - S, - ...) - - -
- -
-

Inherited from _ProcessingInstruction: - __repr__, - get -

-

Inherited from unreachable.__ContentOnlyElement: - __delitem__, - __getitem__, - __len__, - __setitem__, - append, - insert, - items, - keys, - set, - values -

-

Inherited from _Element: - __contains__, - __copy__, - __deepcopy__, - __iter__, - __nonzero__, - __reversed__, - addnext, - addprevious, - clear, - extend, - find, - findall, - findtext, - getchildren, - getiterator, - getnext, - getparent, - getprevious, - getroottree, - index, - iter, - iterancestors, - iterchildren, - iterdescendants, - iterfind, - itersiblings, - itertext, - makeelement, - remove, - replace, - xpath -

-

Inherited from _Element (private): - _init -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __reduce__, - __reduce_ex__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from _ProcessingInstruction: - attrib, - tag, - target -

-

Inherited from unreachable.__ContentOnlyElement: - text -

-

Inherited from _Element: - base, - nsmap, - prefix, - sourceline, - tail -

-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__init__(...) -
(Constructor) -

-
  -
- - x.__init__(...) initializes x; see help(type(x)) for signature -
-
Overrides: - object.__init__ -
-
-
-
- -
- -
- - -
-

__new__(T, - S, - ...) -

-
  -
- - -
-
Returns: a new object with type S, a subtype of T
-
Overrides: - object.__new__ -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree.ParseError-class.html b/doc/html/api/lxml.etree.ParseError-class.html deleted file mode 100644 index 6512c2b..0000000 --- a/doc/html/api/lxml.etree.ParseError-class.html +++ /dev/null @@ -1,292 +0,0 @@ - - - - - lxml.etree.ParseError - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class ParseError - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class ParseError

-
-              object --+                    
-                       |                    
-exceptions.BaseException --+                
-                           |                
-        exceptions.Exception --+            
-                               |            
-                           Error --+        
-                                   |        
-                           LxmlError --+    
-                                       |    
-              object --+               |    
-                       |               |    
-exceptions.BaseException --+           |    
-                           |           |    
-        exceptions.Exception --+       |    
-                               |       |    
-        exceptions.StandardError --+   |    
-                                   |   |    
-              exceptions.SyntaxError --+    
-                                       |    
-                         LxmlSyntaxError --+
-                                           |
-                                          ParseError
-
- -
Known Subclasses:
-
- -
- -
-

Syntax error while parsing an XML document.

-

For compatibility with ElementTree 1.3 and later.

- - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__init__(...)
- x.__init__(...) initializes x; see help(type(x)) for signature
- - -
- -
-

Inherited from exceptions.SyntaxError: - __new__, - __str__ -

-

Inherited from exceptions.BaseException: - __delattr__, - __getattribute__, - __getitem__, - __getslice__, - __reduce__, - __repr__, - __setattr__, - __setstate__, - __unicode__ -

-

Inherited from object: - __format__, - __hash__, - __reduce_ex__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from exceptions.SyntaxError: - filename, - lineno, - msg, - offset, - print_file_and_line, - text -

-

Inherited from exceptions.BaseException: - args, - message -

-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__init__(...) -
(Constructor) -

-
  -
- - x.__init__(...) initializes x; see help(type(x)) for signature -
-
Overrides: - object.__init__ -
(inherited documentation)
- -
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree.ParserBasedElementClassLookup-class.html b/doc/html/api/lxml.etree.ParserBasedElementClassLookup-class.html deleted file mode 100644 index 3b43eac..0000000 --- a/doc/html/api/lxml.etree.ParserBasedElementClassLookup-class.html +++ /dev/null @@ -1,258 +0,0 @@ - - - - - lxml.etree.ParserBasedElementClassLookup - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class ParserBasedElementClassLookup - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class ParserBasedElementClassLookup

-
-            object --+        
-                     |        
-    ElementClassLookup --+    
-                         |    
-FallbackElementClassLookup --+
-                             |
-                            ParserBasedElementClassLookup
-
- -
-ParserBasedElementClassLookup(self, fallback=None) -Element class lookup based on the XML parser. - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
- a new object with type S, a subtype of T - - - - - - -
__new__(T, - S, - ...) - - -
- -
-

Inherited from FallbackElementClassLookup: - __init__, - set_fallback -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __reduce__, - __reduce_ex__, - __repr__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from FallbackElementClassLookup: - fallback -

-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__new__(T, - S, - ...) -

-
  -
- - -
-
Returns: a new object with type S, a subtype of T
-
Overrides: - object.__new__ -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree.ParserError-class.html b/doc/html/api/lxml.etree.ParserError-class.html deleted file mode 100644 index 5653bdc..0000000 --- a/doc/html/api/lxml.etree.ParserError-class.html +++ /dev/null @@ -1,208 +0,0 @@ - - - - - lxml.etree.ParserError - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class ParserError - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class ParserError

-
-              object --+                
-                       |                
-exceptions.BaseException --+            
-                           |            
-        exceptions.Exception --+        
-                               |        
-                           Error --+    
-                                   |    
-                           LxmlError --+
-                                       |
-                                      ParserError
-
- -
-Internal lxml parser error. - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-

Inherited from LxmlError: - __init__ -

-

Inherited from exceptions.Exception: - __new__ -

-

Inherited from exceptions.BaseException: - __delattr__, - __getattribute__, - __getitem__, - __getslice__, - __reduce__, - __repr__, - __setattr__, - __setstate__, - __str__, - __unicode__ -

-

Inherited from object: - __format__, - __hash__, - __reduce_ex__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from exceptions.BaseException: - args, - message -

-

Inherited from object: - __class__ -

-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree.PyErrorLog-class.html b/doc/html/api/lxml.etree.PyErrorLog-class.html deleted file mode 100644 index 2a6f3f0..0000000 --- a/doc/html/api/lxml.etree.PyErrorLog-class.html +++ /dev/null @@ -1,455 +0,0 @@ - - - - - lxml.etree.PyErrorLog - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class PyErrorLog - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class PyErrorLog

-
-   object --+    
-            |    
-_BaseErrorLog --+
-                |
-               PyErrorLog
-
- -
-

PyErrorLog(self, logger_name=None, logger=None) -A global error log that connects to the Python stdlib logging package.

-

The constructor accepts an optional logger name or a readily -instantiated logger instance.

-

If you want to change the mapping between libxml2's ErrorLevels and Python -logging levels, you can modify the level_map dictionary from a subclass.

-

The default mapping is:

-
-ErrorLevels.WARNING = logging.WARNING
-ErrorLevels.ERROR   = logging.ERROR
-ErrorLevels.FATAL   = logging.CRITICAL
-
-

You can also override the method receive() that takes a LogEntry -object and calls self.log(log_entry, format_string, arg1, arg2, ...) -with appropriate data.

- - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__init__(self, - logger_name=None, - logger=None)
- x.__init__(...) initializes x; see help(type(x)) for signature
- - -
- -
- a new object with type S, a subtype of T - - - - - - -
__new__(T, - S, - ...) - - -
- -
-   - - - - - - -
copy(...)
- Dummy method that returns an empty error log.
- - -
- -
-   - - - - - - -
log(self, - log_entry, - message, - *args)
- Called by the .receive() method to log a _LogEntry instance to -the Python logging system. This handles the error level -mapping.
- - -
- -
-   - - - - - - -
receive(self, - log_entry)
- Receive a _LogEntry instance from the logging system. Calls -the .log() method with appropriate parameters:
- - -
- -
-

Inherited from _BaseErrorLog: - __repr__ -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __reduce__, - __reduce_ex__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - - - - -
- - - - - -
Properties[hide private]
-
-   - - level_map -
-

Inherited from _BaseErrorLog: - last_error -

-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__init__(self, - logger_name=None, - logger=None) -
(Constructor) -

-
  -
- - x.__init__(...) initializes x; see help(type(x)) for signature -
-
Overrides: - object.__init__ -
-
-
-
- -
- -
- - -
-

__new__(T, - S, - ...) -

-
  -
- - -
-
Returns: a new object with type S, a subtype of T
-
Overrides: - object.__new__ -
-
-
-
- -
- -
- - -
-

copy(...) -

-
  -
- - Dummy method that returns an empty error log. -
-
Overrides: - _BaseErrorLog.copy -
-
-
-
- -
- -
- - -
-

log(self, - log_entry, - message, - *args) -

-
  -
- -

Called by the .receive() method to log a _LogEntry instance to -the Python logging system. This handles the error level -mapping.

-

In the default implementation, the message argument -receives a complete log line, and there are no further -args. To change the message format, it is best to -override the .receive() method instead of this one.

-
-
-
-
- -
- -
- - -
-

receive(self, - log_entry) -

-
  -
- -

Receive a _LogEntry instance from the logging system. Calls -the .log() method with appropriate parameters:

-
-self.log(log_entry, repr(log_entry))
-
-

You can override this method to provide your own log output -format.

-
-
Overrides: - _BaseErrorLog.receive -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree.PythonElementClassLookup-class.html b/doc/html/api/lxml.etree.PythonElementClassLookup-class.html deleted file mode 100644 index cec0ead..0000000 --- a/doc/html/api/lxml.etree.PythonElementClassLookup-class.html +++ /dev/null @@ -1,311 +0,0 @@ - - - - - lxml.etree.PythonElementClassLookup - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class PythonElementClassLookup - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class PythonElementClassLookup

-
-            object --+        
-                     |        
-    ElementClassLookup --+    
-                         |    
-FallbackElementClassLookup --+
-                             |
-                            PythonElementClassLookup
-
- -
-

PythonElementClassLookup(self, fallback=None) -Element class lookup based on a subclass method.

-

This class lookup scheme allows access to the entire XML tree in -read-only mode. To use it, re-implement the lookup(self, doc, -root) method in a subclass:

-
->>> from lxml import etree, pyclasslookup
->>>
->>> class MyElementClass(etree.ElementBase):
-...     honkey = True
-...
->>> class MyLookup(pyclasslookup.PythonElementClassLookup):
-...     def lookup(self, doc, root):
-...         if root.tag == "sometag":
-...             return MyElementClass
-...         else:
-...             for child in root:
-...                 if child.tag == "someothertag":
-...                     return MyElementClass
-...         # delegate to default
-...         return None
-
-

If you return None from this method, the fallback will be called.

-

The first argument is the opaque document instance that contains -the Element. The second argument is a lightweight Element proxy -implementation that is only valid during the lookup. Do not try -to keep a reference to it. Once the lookup is done, the proxy -will be invalid.

-

Also, you cannot wrap such a read-only Element in an ElementTree, -and you must take care not to keep a reference to them outside of -the lookup() method.

-

Note that the API of the Element objects is not complete. It is -purely read-only and does not support all features of the normal -lxml.etree API (such as XPath, extended slicing or some -iteration methods).

-

See http://codespeak.net/lxml/element_classes.html

- - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
- a new object with type S, a subtype of T - - - - - - -
__new__(T, - S, - ...) - - -
- -
-   - - - - - - -
lookup(self, - doc, - element)
- Override this method to implement your own lookup scheme.
- - -
- -
-

Inherited from FallbackElementClassLookup: - __init__, - set_fallback -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __reduce__, - __reduce_ex__, - __repr__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from FallbackElementClassLookup: - fallback -

-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__new__(T, - S, - ...) -

-
  -
- - -
-
Returns: a new object with type S, a subtype of T
-
Overrides: - object.__new__ -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree.QName-class.html b/doc/html/api/lxml.etree.QName-class.html deleted file mode 100644 index 968f812..0000000 --- a/doc/html/api/lxml.etree.QName-class.html +++ /dev/null @@ -1,508 +0,0 @@ - - - - - lxml.etree.QName - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class QName - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class QName

-
-object --+
-         |
-        QName
-
- -
-

QName(text_or_uri_or_element, tag=None)

-

QName wrapper for qualified XML names.

-

Pass a tag name by itself or a namespace URI and a tag name to -create a qualified name. Alternatively, pass an Element to -extract its tag name.

-

The text property holds the qualified name in -{namespace}tagname notation. The namespace and -localname properties hold the respective parts of the tag -name.

-

You can pass QName objects wherever a tag name is expected. Also, -setting Element text from a QName will resolve the namespace -prefix and set a qualified text value. This is helpful in XML -languages like SOAP or XML-Schema that use prefixed tag names in -their text content.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__eq__(x, - y)
- x==y
- - -
- -
-   - - - - - - -
__ge__(x, - y)
- x>=y
- - -
- -
-   - - - - - - -
__gt__(x, - y)
- x>y
- - -
- -
-   - - - - - - -
__hash__(x)
- hash(x)
- - -
- -
-   - - - - - - -
__init__(text_or_uri_or_element, - tag=None)
- x.__init__(...) initializes x; see help(type(x)) for signature
- - -
- -
-   - - - - - - -
__le__(x, - y)
- x<=y
- - -
- -
-   - - - - - - -
__lt__(x, - y)
- x<y
- - -
- -
-   - - - - - - -
__ne__(x, - y)
- x!=y
- - -
- -
- a new object with type S, a subtype of T - - - - - - -
__new__(T, - S, - ...) - - -
- -
-   - - - - - - -
__str__(x)
- str(x)
- - -
- -
-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __reduce__, - __reduce_ex__, - __repr__, - __setattr__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - - - - - - - - - - -
- - - - - -
Properties[hide private]
-
-   - - localname -
-   - - namespace -
-   - - text -
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__hash__(x) -
(Hashing function) -

-
  -
- - hash(x) -
-
Overrides: - object.__hash__ -
-
-
-
- -
- -
- - -
-

__init__(text_or_uri_or_element, - tag=None) -
(Constructor) -

-
  -
- - x.__init__(...) initializes x; see help(type(x)) for signature -
-
Overrides: - object.__init__ -
-
-
-
- -
- -
- - -
-

__new__(T, - S, - ...) -

-
  -
- - -
-
Returns: a new object with type S, a subtype of T
-
Overrides: - object.__new__ -
-
-
-
- -
- -
- - -
-

__str__(x) -
(Informal representation operator) -

-
  -
- - str(x) -
-
Overrides: - object.__str__ -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree.RelaxNG-class.html b/doc/html/api/lxml.etree.RelaxNG-class.html deleted file mode 100644 index ab0cc2b..0000000 --- a/doc/html/api/lxml.etree.RelaxNG-class.html +++ /dev/null @@ -1,347 +0,0 @@ - - - - - lxml.etree.RelaxNG - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class RelaxNG - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class RelaxNG

-
-object --+    
-         |    
-_Validator --+
-             |
-            RelaxNG
-
- -
-

RelaxNG(self, etree=None, file=None) -Turn a document into a Relax NG validator.

-

Either pass a schema as Element or ElementTree, or pass a file or -filename through the file keyword argument.

- - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__call__(self, - etree)
- Validate doc using Relax NG.
- - -
- -
-   - - - - - - -
__init__(self, - etree=None, - file=None)
- x.__init__(...) initializes x; see help(type(x)) for signature
- - -
- -
- a new object with type S, a subtype of T - - - - - - -
__new__(T, - S, - ...) - - -
- -
-

Inherited from _Validator: - assertValid, - assert_, - validate -

-

Inherited from _Validator (private): - _append_log_message, - _clear_error_log -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __reduce__, - __reduce_ex__, - __repr__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from _Validator: - error_log -

-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__call__(self, - etree) -
(Call operator) -

-
  -
- -

Validate doc using Relax NG.

-

Returns true if document is valid, false if not.

-
-
-
-
- -
- -
- - -
-

__init__(self, - etree=None, - file=None) -
(Constructor) -

-
  -
- - x.__init__(...) initializes x; see help(type(x)) for signature -
-
Overrides: - object.__init__ -
-
-
-
- -
- -
- - -
-

__new__(T, - S, - ...) -

-
  -
- - -
-
Returns: a new object with type S, a subtype of T
-
Overrides: - object.__new__ -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree.RelaxNGError-class.html b/doc/html/api/lxml.etree.RelaxNGError-class.html deleted file mode 100644 index 3aa03a5..0000000 --- a/doc/html/api/lxml.etree.RelaxNGError-class.html +++ /dev/null @@ -1,214 +0,0 @@ - - - - - lxml.etree.RelaxNGError - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class RelaxNGError - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class RelaxNGError

-
-              object --+                
-                       |                
-exceptions.BaseException --+            
-                           |            
-        exceptions.Exception --+        
-                               |        
-                           Error --+    
-                                   |    
-                           LxmlError --+
-                                       |
-                                      RelaxNGError
-
- -
Known Subclasses:
-
- -
- -
-Base class for RelaxNG errors. - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-

Inherited from LxmlError: - __init__ -

-

Inherited from exceptions.Exception: - __new__ -

-

Inherited from exceptions.BaseException: - __delattr__, - __getattribute__, - __getitem__, - __getslice__, - __reduce__, - __repr__, - __setattr__, - __setstate__, - __str__, - __unicode__ -

-

Inherited from object: - __format__, - __hash__, - __reduce_ex__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from exceptions.BaseException: - args, - message -

-

Inherited from object: - __class__ -

-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree.RelaxNGErrorTypes-class.html b/doc/html/api/lxml.etree.RelaxNGErrorTypes-class.html deleted file mode 100644 index e9037da..0000000 --- a/doc/html/api/lxml.etree.RelaxNGErrorTypes-class.html +++ /dev/null @@ -1,563 +0,0 @@ - - - - - lxml.etree.RelaxNGErrorTypes - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class RelaxNGErrorTypes - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class RelaxNGErrorTypes

-
-object --+
-         |
-        RelaxNGErrorTypes
-
- -
-Libxml2 RelaxNG error types - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
- D[k] if k in D, else d - - - - - - -
_getName(D, - k, - d=...)
- d defaults to None.
- - -
- -
-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __init__, - __new__, - __reduce__, - __reduce_ex__, - __repr__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Class Variables[hide private]
-
-   - - RELAXNG_ERR_ATTREXTRANS = 20 -
-   - - RELAXNG_ERR_ATTRNAME = 14 -
-   - - RELAXNG_ERR_ATTRNONS = 16 -
-   - - RELAXNG_ERR_ATTRVALID = 24 -
-   - - RELAXNG_ERR_ATTRWRONGNS = 18 -
-   - - RELAXNG_ERR_CONTENTVALID = 25 -
-   - - RELAXNG_ERR_DATAELEM = 28 -
-   - - RELAXNG_ERR_DATATYPE = 31 -
-   - - RELAXNG_ERR_DUPID = 4 -
-   - - RELAXNG_ERR_ELEMEXTRANS = 19 -
-   - - RELAXNG_ERR_ELEMNAME = 13 -
-   - - RELAXNG_ERR_ELEMNONS = 15 -
-   - - RELAXNG_ERR_ELEMNOTEMPTY = 21 -
-   - - RELAXNG_ERR_ELEMWRONG = 38 -
-   - - RELAXNG_ERR_ELEMWRONGNS = 17 -
-   - - RELAXNG_ERR_EXTRACONTENT = 26 -
-   - - RELAXNG_ERR_EXTRADATA = 35 -
-   - - RELAXNG_ERR_INTEREXTRA = 12 -
-   - - RELAXNG_ERR_INTERNAL = 37 -
-   - - RELAXNG_ERR_INTERNODATA = 10 -
-   - - RELAXNG_ERR_INTERSEQ = 11 -
-   - - RELAXNG_ERR_INVALIDATTR = 27 -
-   - - RELAXNG_ERR_LACKDATA = 36 -
-   - - RELAXNG_ERR_LIST = 33 -
-   - - RELAXNG_ERR_LISTELEM = 30 -
-   - - RELAXNG_ERR_LISTEMPTY = 9 -
-   - - RELAXNG_ERR_LISTEXTRA = 8 -
-   - - RELAXNG_ERR_MEMORY = 1 -
-   - - RELAXNG_ERR_NODEFINE = 7 -
-   - - RELAXNG_ERR_NOELEM = 22 -
-   - - RELAXNG_ERR_NOGRAMMAR = 34 -
-   - - RELAXNG_ERR_NOSTATE = 6 -
-   - - RELAXNG_ERR_NOTELEM = 23 -
-   - - RELAXNG_ERR_TEXTWRONG = 39 -
-   - - RELAXNG_ERR_TYPE = 2 -
-   - - RELAXNG_ERR_TYPECMP = 5 -
-   - - RELAXNG_ERR_TYPEVAL = 3 -
-   - - RELAXNG_ERR_VALELEM = 29 -
-   - - RELAXNG_ERR_VALUE = 32 -
-   - - RELAXNG_OK = 0 -
-   - - _names = {0: u'RELAXNG_OK', 1: u'RELAXNG_ERR_MEMORY', 2: u'REL... -
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Class Variable Details[hide private]
-
- -
- -
-

_names

- -
-
-
-
Value:
-
-{0: u'RELAXNG_OK',
- 1: u'RELAXNG_ERR_MEMORY',
- 2: u'RELAXNG_ERR_TYPE',
- 3: u'RELAXNG_ERR_TYPEVAL',
- 4: u'RELAXNG_ERR_DUPID',
- 5: u'RELAXNG_ERR_TYPECMP',
- 6: u'RELAXNG_ERR_NOSTATE',
- 7: u'RELAXNG_ERR_NODEFINE',
-...
-
-
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree.RelaxNGParseError-class.html b/doc/html/api/lxml.etree.RelaxNGParseError-class.html deleted file mode 100644 index 9e95a43..0000000 --- a/doc/html/api/lxml.etree.RelaxNGParseError-class.html +++ /dev/null @@ -1,210 +0,0 @@ - - - - - lxml.etree.RelaxNGParseError - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class RelaxNGParseError - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class RelaxNGParseError

-
-              object --+                    
-                       |                    
-exceptions.BaseException --+                
-                           |                
-        exceptions.Exception --+            
-                               |            
-                           Error --+        
-                                   |        
-                           LxmlError --+    
-                                       |    
-                            RelaxNGError --+
-                                           |
-                                          RelaxNGParseError
-
- -
-Error while parsing an XML document as RelaxNG. - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-

Inherited from LxmlError: - __init__ -

-

Inherited from exceptions.Exception: - __new__ -

-

Inherited from exceptions.BaseException: - __delattr__, - __getattribute__, - __getitem__, - __getslice__, - __reduce__, - __repr__, - __setattr__, - __setstate__, - __str__, - __unicode__ -

-

Inherited from object: - __format__, - __hash__, - __reduce_ex__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from exceptions.BaseException: - args, - message -

-

Inherited from object: - __class__ -

-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree.RelaxNGValidateError-class.html b/doc/html/api/lxml.etree.RelaxNGValidateError-class.html deleted file mode 100644 index a206336..0000000 --- a/doc/html/api/lxml.etree.RelaxNGValidateError-class.html +++ /dev/null @@ -1,210 +0,0 @@ - - - - - lxml.etree.RelaxNGValidateError - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class RelaxNGValidateError - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class RelaxNGValidateError

-
-              object --+                    
-                       |                    
-exceptions.BaseException --+                
-                           |                
-        exceptions.Exception --+            
-                               |            
-                           Error --+        
-                                   |        
-                           LxmlError --+    
-                                       |    
-                            RelaxNGError --+
-                                           |
-                                          RelaxNGValidateError
-
- -
-Error while validating an XML document with a RelaxNG schema. - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-

Inherited from LxmlError: - __init__ -

-

Inherited from exceptions.Exception: - __new__ -

-

Inherited from exceptions.BaseException: - __delattr__, - __getattribute__, - __getitem__, - __getslice__, - __reduce__, - __repr__, - __setattr__, - __setstate__, - __str__, - __unicode__ -

-

Inherited from object: - __format__, - __hash__, - __reduce_ex__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from exceptions.BaseException: - args, - message -

-

Inherited from object: - __class__ -

-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree.Resolver-class.html b/doc/html/api/lxml.etree.Resolver-class.html deleted file mode 100644 index f9744f6..0000000 --- a/doc/html/api/lxml.etree.Resolver-class.html +++ /dev/null @@ -1,476 +0,0 @@ - - - - - lxml.etree.Resolver - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class Resolver - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class Resolver

-
-object --+
-         |
-        Resolver
-
- -
Known Subclasses:
-
- -
- -
-This is the base class of all resolvers. - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
- a new object with type S, a subtype of T - - - - - - -
__new__(T, - S, - ...) - - -
- -
-   - - - - - - -
resolve(self, - system_url, - public_id, - context)
- Override this method to resolve an external source by -system_url and public_id. The third argument is an -opaque context object.
- - -
- -
-   - - - - - - -
resolve_empty(self, - context)
- Return an empty input document.
- - -
- -
-   - - - - - - -
resolve_file(self, - f, - context, - base_url=None, - close=True)
- Return an open file-like object as input document.
- - -
- -
-   - - - - - - -
resolve_filename(self, - filename, - context)
- Return the name of a parsable file as input document.
- - -
- -
-   - - - - - - -
resolve_string(self, - string, - context, - base_url=None)
- Return a parsable string as input document.
- - -
- -
-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __init__, - __reduce__, - __reduce_ex__, - __repr__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__new__(T, - S, - ...) -

-
  -
- - -
-
Returns: a new object with type S, a subtype of T
-
Overrides: - object.__new__ -
-
-
-
- -
- -
- - -
-

resolve(self, - system_url, - public_id, - context) -

-
  -
- -

Override this method to resolve an external source by -system_url and public_id. The third argument is an -opaque context object.

-

Return the result of one of the resolve_*() methods.

-
-
-
-
- -
- -
- - -
-

resolve_empty(self, - context) -

-
  -
- -

Return an empty input document.

-

Pass context as parameter.

-
-
-
-
- -
- -
- - -
-

resolve_file(self, - f, - context, - base_url=None, - close=True) -

-
  -
- -

Return an open file-like object as input document.

-

Pass open file and context as parameters. You can pass the -base URL or filename of the file through the base_url -keyword argument. If the close flag is True (the -default), the file will be closed after reading.

-

Note that using .resolve_filename() is more efficient, -especially in threaded environments.

-
-
-
-
- -
- -
- - -
-

resolve_filename(self, - filename, - context) -

-
  -
- -

Return the name of a parsable file as input document.

-

Pass filename and context as parameters. You can also pass a -URL with an HTTP, FTP or file target.

-
-
-
-
- -
- -
- - -
-

resolve_string(self, - string, - context, - base_url=None) -

-
  -
- -

Return a parsable string as input document.

-

Pass data string and context as parameters. You can pass the -source URL or filename through the base_url keyword -argument.

-
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree.Schematron-class.html b/doc/html/api/lxml.etree.Schematron-class.html deleted file mode 100644 index 4b5760f..0000000 --- a/doc/html/api/lxml.etree.Schematron-class.html +++ /dev/null @@ -1,388 +0,0 @@ - - - - - lxml.etree.Schematron - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class Schematron - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class Schematron

-
-object --+    
-         |    
-_Validator --+
-             |
-            Schematron
-
- -
-

Schematron(self, etree=None, file=None) -A Schematron validator.

-

Pass a root Element or an ElementTree to turn it into a validator. -Alternatively, pass a filename as keyword argument 'file' to parse from -the file system.

-

Schematron is a less well known, but very powerful schema language. The main -idea is to use the capabilities of XPath to put restrictions on the structure -and the content of XML documents. Here is a simple example:

-
->>> schematron = etree.Schematron(etree.XML('''
-... <schema xmlns="http://www.ascc.net/xml/schematron" >
-...   <pattern name="id is the only permited attribute name">
-...     <rule context="*">
-...       <report test="@*[not(name()='id')]">Attribute
-...         <name path="@*[not(name()='id')]"/> is forbidden<name/>
-...       </report>
-...     </rule>
-...   </pattern>
-... </schema>
-... '''))
-
->>> xml = etree.XML('''
-... <AAA name="aaa">
-...   <BBB id="bbb"/>
-...   <CCC color="ccc"/>
-... </AAA>
-... ''')
-
->>> schematron.validate(xml)
-0
-
->>> xml = etree.XML('''
-... <AAA id="aaa">
-...   <BBB id="bbb"/>
-...   <CCC/>
-... </AAA>
-... ''')
-
->>> schematron.validate(xml)
-1
-
-

Schematron was added to libxml2 in version 2.6.21. Before version 2.6.32, -however, Schematron lacked support for error reporting other than to stderr. -This version is therefore required to retrieve validation warnings and -errors in lxml.

- - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__call__(self, - etree)
- Validate doc using Schematron.
- - -
- -
-   - - - - - - -
__init__(self, - etree=None, - file=None)
- x.__init__(...) initializes x; see help(type(x)) for signature
- - -
- -
- a new object with type S, a subtype of T - - - - - - -
__new__(T, - S, - ...) - - -
- -
-

Inherited from _Validator: - assertValid, - assert_, - validate -

-

Inherited from _Validator (private): - _append_log_message, - _clear_error_log -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __reduce__, - __reduce_ex__, - __repr__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from _Validator: - error_log -

-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__call__(self, - etree) -
(Call operator) -

-
  -
- -

Validate doc using Schematron.

-

Returns true if document is valid, false if not.

-
-
-
-
- -
- -
- - -
-

__init__(self, - etree=None, - file=None) -
(Constructor) -

-
  -
- - x.__init__(...) initializes x; see help(type(x)) for signature -
-
Overrides: - object.__init__ -
-
-
-
- -
- -
- - -
-

__new__(T, - S, - ...) -

-
  -
- - -
-
Returns: a new object with type S, a subtype of T
-
Overrides: - object.__new__ -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree.SchematronError-class.html b/doc/html/api/lxml.etree.SchematronError-class.html deleted file mode 100644 index 755743f..0000000 --- a/doc/html/api/lxml.etree.SchematronError-class.html +++ /dev/null @@ -1,214 +0,0 @@ - - - - - lxml.etree.SchematronError - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class SchematronError - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class SchematronError

-
-              object --+                
-                       |                
-exceptions.BaseException --+            
-                           |            
-        exceptions.Exception --+        
-                               |        
-                           Error --+    
-                                   |    
-                           LxmlError --+
-                                       |
-                                      SchematronError
-
- -
Known Subclasses:
-
- -
- -
-Base class of all Schematron errors. - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-

Inherited from LxmlError: - __init__ -

-

Inherited from exceptions.Exception: - __new__ -

-

Inherited from exceptions.BaseException: - __delattr__, - __getattribute__, - __getitem__, - __getslice__, - __reduce__, - __repr__, - __setattr__, - __setstate__, - __str__, - __unicode__ -

-

Inherited from object: - __format__, - __hash__, - __reduce_ex__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from exceptions.BaseException: - args, - message -

-

Inherited from object: - __class__ -

-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree.SchematronParseError-class.html b/doc/html/api/lxml.etree.SchematronParseError-class.html deleted file mode 100644 index 3a35a3c..0000000 --- a/doc/html/api/lxml.etree.SchematronParseError-class.html +++ /dev/null @@ -1,210 +0,0 @@ - - - - - lxml.etree.SchematronParseError - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class SchematronParseError - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class SchematronParseError

-
-              object --+                    
-                       |                    
-exceptions.BaseException --+                
-                           |                
-        exceptions.Exception --+            
-                               |            
-                           Error --+        
-                                   |        
-                           LxmlError --+    
-                                       |    
-                         SchematronError --+
-                                           |
-                                          SchematronParseError
-
- -
-Error while parsing an XML document as Schematron schema. - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-

Inherited from LxmlError: - __init__ -

-

Inherited from exceptions.Exception: - __new__ -

-

Inherited from exceptions.BaseException: - __delattr__, - __getattribute__, - __getitem__, - __getslice__, - __reduce__, - __repr__, - __setattr__, - __setstate__, - __str__, - __unicode__ -

-

Inherited from object: - __format__, - __hash__, - __reduce_ex__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from exceptions.BaseException: - args, - message -

-

Inherited from object: - __class__ -

-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree.SchematronValidateError-class.html b/doc/html/api/lxml.etree.SchematronValidateError-class.html deleted file mode 100644 index 28fca1f..0000000 --- a/doc/html/api/lxml.etree.SchematronValidateError-class.html +++ /dev/null @@ -1,210 +0,0 @@ - - - - - lxml.etree.SchematronValidateError - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class SchematronValidateError - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class SchematronValidateError

-
-              object --+                    
-                       |                    
-exceptions.BaseException --+                
-                           |                
-        exceptions.Exception --+            
-                               |            
-                           Error --+        
-                                   |        
-                           LxmlError --+    
-                                       |    
-                         SchematronError --+
-                                           |
-                                          SchematronValidateError
-
- -
-Error while validating an XML document with a Schematron schema. - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-

Inherited from LxmlError: - __init__ -

-

Inherited from exceptions.Exception: - __new__ -

-

Inherited from exceptions.BaseException: - __delattr__, - __getattribute__, - __getitem__, - __getslice__, - __reduce__, - __repr__, - __setattr__, - __setstate__, - __str__, - __unicode__ -

-

Inherited from object: - __format__, - __hash__, - __reduce_ex__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from exceptions.BaseException: - args, - message -

-

Inherited from object: - __class__ -

-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree.SerialisationError-class.html b/doc/html/api/lxml.etree.SerialisationError-class.html deleted file mode 100644 index e82f5ce..0000000 --- a/doc/html/api/lxml.etree.SerialisationError-class.html +++ /dev/null @@ -1,208 +0,0 @@ - - - - - lxml.etree.SerialisationError - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class SerialisationError - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class SerialisationError

-
-              object --+                
-                       |                
-exceptions.BaseException --+            
-                           |            
-        exceptions.Exception --+        
-                               |        
-                           Error --+    
-                                   |    
-                           LxmlError --+
-                                       |
-                                      SerialisationError
-
- -
-A libxml2 error that occurred during serialisation. - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-

Inherited from LxmlError: - __init__ -

-

Inherited from exceptions.Exception: - __new__ -

-

Inherited from exceptions.BaseException: - __delattr__, - __getattribute__, - __getitem__, - __getslice__, - __reduce__, - __repr__, - __setattr__, - __setstate__, - __str__, - __unicode__ -

-

Inherited from object: - __format__, - __hash__, - __reduce_ex__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from exceptions.BaseException: - args, - message -

-

Inherited from object: - __class__ -

-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree.SiblingsIterator-class.html b/doc/html/api/lxml.etree.SiblingsIterator-class.html deleted file mode 100644 index 302482c..0000000 --- a/doc/html/api/lxml.etree.SiblingsIterator-class.html +++ /dev/null @@ -1,256 +0,0 @@ - - - - - lxml.etree.SiblingsIterator - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class SiblingsIterator - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class SiblingsIterator

-
-           object --+    
-                    |    
-_ElementMatchIterator --+
-                        |
-                       SiblingsIterator
-
- -
-

SiblingsIterator(self, node, tag=None, preceding=False) -Iterates over the siblings of an element.

-

You can pass the boolean keyword preceding to specify the direction.

- - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
- a new object with type S, a subtype of T - - - - - - -
__new__(T, - S, - ...) - - -
- -
-

Inherited from _ElementMatchIterator: - __iter__, - __next__, - next -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __init__, - __reduce__, - __reduce_ex__, - __repr__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__new__(T, - S, - ...) -

-
  -
- - -
-
Returns: a new object with type S, a subtype of T
-
Overrides: - object.__new__ -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree.TreeBuilder-class.html b/doc/html/api/lxml.etree.TreeBuilder-class.html deleted file mode 100644 index 167f823..0000000 --- a/doc/html/api/lxml.etree.TreeBuilder-class.html +++ /dev/null @@ -1,404 +0,0 @@ - - - - - lxml.etree.TreeBuilder - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class TreeBuilder - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class TreeBuilder

-
-      object --+    
-               |    
-_SaxParserTarget --+
-                   |
-                  TreeBuilder
-
- -
-

TreeBuilder(self, element_factory=None, parser=None) -Parser target that builds a tree.

-

The final tree is returned by the close() method.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__init__(self, - element_factory=None, - parser=None)
- x.__init__(...) initializes x; see help(type(x)) for signature
- - -
- -
- a new object with type S, a subtype of T - - - - - - -
__new__(T, - S, - ...) - - -
- -
-   - - - - - - -
close(self)
- Flushes the builder buffers, and returns the toplevel document -element.
- - -
- -
-   - - - - - - -
comment(self, - comment) - - -
- -
-   - - - - - - -
data(self, - data)
- Adds text to the current element. The value should be either an -8-bit string containing ASCII text, or a Unicode string.
- - -
- -
-   - - - - - - -
end(self, - tag)
- Closes the current element.
- - -
- -
-   - - - - - - -
pi(self, - target, - data) - - -
- -
-   - - - - - - -
start(self, - tag, - attrs, - nsmap=None)
- Opens a new element.
- - -
- -
-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __reduce__, - __reduce_ex__, - __repr__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__init__(self, - element_factory=None, - parser=None) -
(Constructor) -

-
  -
- - x.__init__(...) initializes x; see help(type(x)) for signature -
-
Overrides: - object.__init__ -
-
-
-
- -
- -
- - -
-

__new__(T, - S, - ...) -

-
  -
- - -
-
Returns: a new object with type S, a subtype of T
-
Overrides: - object.__new__ -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree.XInclude-class.html b/doc/html/api/lxml.etree.XInclude-class.html deleted file mode 100644 index 55acfc8..0000000 --- a/doc/html/api/lxml.etree.XInclude-class.html +++ /dev/null @@ -1,313 +0,0 @@ - - - - - lxml.etree.XInclude - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class XInclude - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class XInclude

-
-object --+
-         |
-        XInclude
-
- -
-

XInclude(self) -XInclude processor.

-

Create an instance and call it on an Element to run XInclude -processing.

- - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__call__(self, - node) - - -
- -
-   - - - - - - -
__init__(self)
- x.__init__(...) initializes x; see help(type(x)) for signature
- - -
- -
- a new object with type S, a subtype of T - - - - - - -
__new__(T, - S, - ...) - - -
- -
-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __reduce__, - __reduce_ex__, - __repr__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - - - - -
- - - - - -
Properties[hide private]
-
-   - - error_log -
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__init__(self) -
(Constructor) -

-
  -
- - x.__init__(...) initializes x; see help(type(x)) for signature -
-
Overrides: - object.__init__ -
-
-
-
- -
- -
- - -
-

__new__(T, - S, - ...) -

-
  -
- - -
-
Returns: a new object with type S, a subtype of T
-
Overrides: - object.__new__ -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree.XIncludeError-class.html b/doc/html/api/lxml.etree.XIncludeError-class.html deleted file mode 100644 index a9089a2..0000000 --- a/doc/html/api/lxml.etree.XIncludeError-class.html +++ /dev/null @@ -1,208 +0,0 @@ - - - - - lxml.etree.XIncludeError - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class XIncludeError - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class XIncludeError

-
-              object --+                
-                       |                
-exceptions.BaseException --+            
-                           |            
-        exceptions.Exception --+        
-                               |        
-                           Error --+    
-                                   |    
-                           LxmlError --+
-                                       |
-                                      XIncludeError
-
- -
-Error during XInclude processing. - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-

Inherited from LxmlError: - __init__ -

-

Inherited from exceptions.Exception: - __new__ -

-

Inherited from exceptions.BaseException: - __delattr__, - __getattribute__, - __getitem__, - __getslice__, - __reduce__, - __repr__, - __setattr__, - __setstate__, - __str__, - __unicode__ -

-

Inherited from object: - __format__, - __hash__, - __reduce_ex__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from exceptions.BaseException: - args, - message -

-

Inherited from object: - __class__ -

-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree.XMLParser-class.html b/doc/html/api/lxml.etree.XMLParser-class.html deleted file mode 100644 index 1122da1..0000000 --- a/doc/html/api/lxml.etree.XMLParser-class.html +++ /dev/null @@ -1,398 +0,0 @@ - - - - - lxml.etree.XMLParser - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class XMLParser - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class XMLParser

-
- object --+        
-          |        
-_BaseParser --+    
-              |    
-    _FeedParser --+
-                  |
-                 XMLParser
-
- -
Known Subclasses:
-
- -
- -
-

XMLParser(self, encoding=None, attribute_defaults=False, dtd_validation=False, load_dtd=False, no_network=True, ns_clean=False, recover=False, XMLSchema schema=None, remove_blank_text=False, resolve_entities=True, remove_comments=False, remove_pis=False, strip_cdata=True, target=None, compact=True)

-

The XML parser.

-

Parsers can be supplied as additional argument to various parse -functions of the lxml API. A default parser is always available -and can be replaced by a call to the global function -'set_default_parser'. New parsers can be created at any time -without a major run-time overhead.

-

The keyword arguments in the constructor are mainly based on the -libxml2 parser configuration. A DTD will also be loaded if DTD -validation or attribute default values are requested (unless you -additionally provide an XMLSchema from which the default -attributes can be read).

-

Available boolean keyword arguments:

- -

Other keyword arguments:

- -

Note that you should avoid sharing parsers between threads. While this is -not harmful, it is more efficient to use separate parsers. This does not -apply to the default parser.

- - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__init__(self, - encoding=None, - attribute_defaults=False, - dtd_validation=False, - load_dtd=False, - no_network=True, - ns_clean=False, - recover=False, - XMLSchema schema=None, - remove_blank_text=False, - resolve_entities=True, - remove_comments=False, - remove_pis=False, - strip_cdata=True, - target=None, - compact=True)
- x.__init__(...) initializes x; see help(type(x)) for signature
- - -
- -
- a new object with type S, a subtype of T - - - - - - -
__new__(T, - S, - ...) - - -
- -
-

Inherited from _FeedParser: - close, - feed -

-

Inherited from _BaseParser: - copy, - makeelement, - setElementClassLookup, - set_element_class_lookup -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __reduce__, - __reduce_ex__, - __repr__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from _FeedParser: - feed_error_log -

-

Inherited from _BaseParser: - error_log, - resolvers, - target, - version -

-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__init__(self, - encoding=None, - attribute_defaults=False, - dtd_validation=False, - load_dtd=False, - no_network=True, - ns_clean=False, - recover=False, - XMLSchema schema=None, - remove_blank_text=False, - resolve_entities=True, - remove_comments=False, - remove_pis=False, - strip_cdata=True, - target=None, - compact=True) -
(Constructor) -

-
  -
- - x.__init__(...) initializes x; see help(type(x)) for signature -
-
Overrides: - object.__init__ -
-
-
-
- -
- -
- - -
-

__new__(T, - S, - ...) -

-
  -
- - -
-
Returns: a new object with type S, a subtype of T
-
Overrides: - object.__new__ -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree.XMLSchema-class.html b/doc/html/api/lxml.etree.XMLSchema-class.html deleted file mode 100644 index 765b253..0000000 --- a/doc/html/api/lxml.etree.XMLSchema-class.html +++ /dev/null @@ -1,349 +0,0 @@ - - - - - lxml.etree.XMLSchema - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class XMLSchema - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class XMLSchema

-
-object --+    
-         |    
-_Validator --+
-             |
-            XMLSchema
-
- -
-

XMLSchema(self, etree=None, file=None) -Turn a document into an XML Schema validator.

-

Either pass a schema as Element or ElementTree, or pass a file or -filename through the file keyword argument.

-

Passing the attribute_defaults boolean option will make the -schema insert default/fixed attributes into validated documents.

- - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__call__(self, - etree)
- Validate doc using XML Schema.
- - -
- -
-   - - - - - - -
__init__(self, - etree=None, - file=None)
- x.__init__(...) initializes x; see help(type(x)) for signature
- - -
- -
- a new object with type S, a subtype of T - - - - - - -
__new__(T, - S, - ...) - - -
- -
-

Inherited from _Validator: - assertValid, - assert_, - validate -

-

Inherited from _Validator (private): - _append_log_message, - _clear_error_log -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __reduce__, - __reduce_ex__, - __repr__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from _Validator: - error_log -

-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__call__(self, - etree) -
(Call operator) -

-
  -
- -

Validate doc using XML Schema.

-

Returns true if document is valid, false if not.

-
-
-
-
- -
- -
- - -
-

__init__(self, - etree=None, - file=None) -
(Constructor) -

-
  -
- - x.__init__(...) initializes x; see help(type(x)) for signature -
-
Overrides: - object.__init__ -
-
-
-
- -
- -
- - -
-

__new__(T, - S, - ...) -

-
  -
- - -
-
Returns: a new object with type S, a subtype of T
-
Overrides: - object.__new__ -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree.XMLSchemaError-class.html b/doc/html/api/lxml.etree.XMLSchemaError-class.html deleted file mode 100644 index 2897a10..0000000 --- a/doc/html/api/lxml.etree.XMLSchemaError-class.html +++ /dev/null @@ -1,214 +0,0 @@ - - - - - lxml.etree.XMLSchemaError - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class XMLSchemaError - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class XMLSchemaError

-
-              object --+                
-                       |                
-exceptions.BaseException --+            
-                           |            
-        exceptions.Exception --+        
-                               |        
-                           Error --+    
-                                   |    
-                           LxmlError --+
-                                       |
-                                      XMLSchemaError
-
- -
Known Subclasses:
-
- -
- -
-Base class of all XML Schema errors - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-

Inherited from LxmlError: - __init__ -

-

Inherited from exceptions.Exception: - __new__ -

-

Inherited from exceptions.BaseException: - __delattr__, - __getattribute__, - __getitem__, - __getslice__, - __reduce__, - __repr__, - __setattr__, - __setstate__, - __str__, - __unicode__ -

-

Inherited from object: - __format__, - __hash__, - __reduce_ex__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from exceptions.BaseException: - args, - message -

-

Inherited from object: - __class__ -

-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree.XMLSchemaParseError-class.html b/doc/html/api/lxml.etree.XMLSchemaParseError-class.html deleted file mode 100644 index 3c89390..0000000 --- a/doc/html/api/lxml.etree.XMLSchemaParseError-class.html +++ /dev/null @@ -1,210 +0,0 @@ - - - - - lxml.etree.XMLSchemaParseError - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class XMLSchemaParseError - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class XMLSchemaParseError

-
-              object --+                    
-                       |                    
-exceptions.BaseException --+                
-                           |                
-        exceptions.Exception --+            
-                               |            
-                           Error --+        
-                                   |        
-                           LxmlError --+    
-                                       |    
-                          XMLSchemaError --+
-                                           |
-                                          XMLSchemaParseError
-
- -
-Error while parsing an XML document as XML Schema. - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-

Inherited from LxmlError: - __init__ -

-

Inherited from exceptions.Exception: - __new__ -

-

Inherited from exceptions.BaseException: - __delattr__, - __getattribute__, - __getitem__, - __getslice__, - __reduce__, - __repr__, - __setattr__, - __setstate__, - __str__, - __unicode__ -

-

Inherited from object: - __format__, - __hash__, - __reduce_ex__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from exceptions.BaseException: - args, - message -

-

Inherited from object: - __class__ -

-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree.XMLSchemaValidateError-class.html b/doc/html/api/lxml.etree.XMLSchemaValidateError-class.html deleted file mode 100644 index ee45942..0000000 --- a/doc/html/api/lxml.etree.XMLSchemaValidateError-class.html +++ /dev/null @@ -1,210 +0,0 @@ - - - - - lxml.etree.XMLSchemaValidateError - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class XMLSchemaValidateError - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class XMLSchemaValidateError

-
-              object --+                    
-                       |                    
-exceptions.BaseException --+                
-                           |                
-        exceptions.Exception --+            
-                               |            
-                           Error --+        
-                                   |        
-                           LxmlError --+    
-                                       |    
-                          XMLSchemaError --+
-                                           |
-                                          XMLSchemaValidateError
-
- -
-Error while validating an XML document with an XML Schema. - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-

Inherited from LxmlError: - __init__ -

-

Inherited from exceptions.Exception: - __new__ -

-

Inherited from exceptions.BaseException: - __delattr__, - __getattribute__, - __getitem__, - __getslice__, - __reduce__, - __repr__, - __setattr__, - __setstate__, - __str__, - __unicode__ -

-

Inherited from object: - __format__, - __hash__, - __reduce_ex__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from exceptions.BaseException: - args, - message -

-

Inherited from object: - __class__ -

-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree.XMLSyntaxError-class.html b/doc/html/api/lxml.etree.XMLSyntaxError-class.html deleted file mode 100644 index dd039f2..0000000 --- a/doc/html/api/lxml.etree.XMLSyntaxError-class.html +++ /dev/null @@ -1,230 +0,0 @@ - - - - - lxml.etree.XMLSyntaxError - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class XMLSyntaxError - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class XMLSyntaxError

-
-              object --+                        
-                       |                        
-exceptions.BaseException --+                    
-                           |                    
-        exceptions.Exception --+                
-                               |                
-                           Error --+            
-                                   |            
-                           LxmlError --+        
-                                       |        
-              object --+               |        
-                       |               |        
-exceptions.BaseException --+           |        
-                           |           |        
-        exceptions.Exception --+       |        
-                               |       |        
-        exceptions.StandardError --+   |        
-                                   |   |        
-              exceptions.SyntaxError --+        
-                                       |        
-                         LxmlSyntaxError --+    
-                                           |    
-                                  ParseError --+
-                                               |
-                                              XMLSyntaxError
-
- -
-Syntax error while parsing an XML document. - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-

Inherited from ParseError: - __init__ -

-

Inherited from exceptions.SyntaxError: - __new__, - __str__ -

-

Inherited from exceptions.BaseException: - __delattr__, - __getattribute__, - __getitem__, - __getslice__, - __reduce__, - __repr__, - __setattr__, - __setstate__, - __unicode__ -

-

Inherited from object: - __format__, - __hash__, - __reduce_ex__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from exceptions.SyntaxError: - filename, - lineno, - msg, - offset, - print_file_and_line, - text -

-

Inherited from exceptions.BaseException: - args, - message -

-

Inherited from object: - __class__ -

-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree.XPath-class.html b/doc/html/api/lxml.etree.XPath-class.html deleted file mode 100644 index 6b16d39..0000000 --- a/doc/html/api/lxml.etree.XPath-class.html +++ /dev/null @@ -1,383 +0,0 @@ - - - - - lxml.etree.XPath - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class XPath - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class XPath

-
-         object --+    
-                  |    
-_XPathEvaluatorBase --+
-                      |
-                     XPath
-
- -
Known Subclasses:
-
- -
- -
-

XPath(self, path, namespaces=None, extensions=None, regexp=True, smart_strings=True) -A compiled XPath expression that can be called on Elements and ElementTrees.

-

Besides the XPath expression, you can pass prefix-namespace -mappings and extension functions to the constructor through the -keyword arguments namespaces and extensions. EXSLT -regular expression support can be disabled with the 'regexp' -boolean keyword (defaults to True). Smart strings will be -returned for string results unless you pass -smart_strings=False.

- - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__call__(self, - _etree_or_element, - **_variables) - - -
- -
-   - - - - - - -
__init__(self, - path, - namespaces=None, - extensions=None, - regexp=True, - smart_strings=True)
- x.__init__(...) initializes x; see help(type(x)) for signature
- - -
- -
- a new object with type S, a subtype of T - - - - - - -
__new__(T, - S, - ...) - - -
- -
-   - - - - - - -
__repr__(x)
- repr(x)
- - -
- -
-

Inherited from _XPathEvaluatorBase: - evaluate -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __reduce__, - __reduce_ex__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - - - - -
- - - - - -
Properties[hide private]
-
-   - - path
- The literal XPath expression. -
-

Inherited from _XPathEvaluatorBase: - error_log -

-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__init__(self, - path, - namespaces=None, - extensions=None, - regexp=True, - smart_strings=True) -
(Constructor) -

-
  -
- - x.__init__(...) initializes x; see help(type(x)) for signature -
-
Overrides: - object.__init__ -
-
-
-
- -
- -
- - -
-

__new__(T, - S, - ...) -

-
  -
- - -
-
Returns: a new object with type S, a subtype of T
-
Overrides: - object.__new__ -
-
-
-
- -
- -
- - -
-

__repr__(x) -
(Representation operator) -

-
  -
- - repr(x) -
-
Overrides: - object.__repr__ -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree.XPathDocumentEvaluator-class.html b/doc/html/api/lxml.etree.XPathDocumentEvaluator-class.html deleted file mode 100644 index 5419a06..0000000 --- a/doc/html/api/lxml.etree.XPathDocumentEvaluator-class.html +++ /dev/null @@ -1,362 +0,0 @@ - - - - - lxml.etree.XPathDocumentEvaluator - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class XPathDocumentEvaluator - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class XPathDocumentEvaluator

-
-         object --+        
-                  |        
-_XPathEvaluatorBase --+    
-                      |    
-  XPathElementEvaluator --+
-                          |
-                         XPathDocumentEvaluator
-
- -
-

XPathDocumentEvaluator(self, etree, namespaces=None, extensions=None, regexp=True, smart_strings=True) -Create an XPath evaluator for an ElementTree.

-

Additional namespace declarations can be passed with the -'namespace' keyword argument. EXSLT regular expression support -can be disabled with the 'regexp' boolean keyword (defaults to -True). Smart strings will be returned for string results unless -you pass smart_strings=False.

- - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__call__(self, - _path, - **_variables)
- Evaluate an XPath expression on the document.
- - -
- -
-   - - - - - - -
__init__(self, - etree, - namespaces=None, - extensions=None, - regexp=True, - smart_strings=True)
- x.__init__(...) initializes x; see help(type(x)) for signature
- - -
- -
- a new object with type S, a subtype of T - - - - - - -
__new__(T, - S, - ...) - - -
- -
-

Inherited from XPathElementEvaluator: - register_namespace, - register_namespaces -

-

Inherited from _XPathEvaluatorBase: - evaluate -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __reduce__, - __reduce_ex__, - __repr__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from _XPathEvaluatorBase: - error_log -

-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__call__(self, - _path, - **_variables) -
(Call operator) -

-
  -
- -

Evaluate an XPath expression on the document.

-

Variables may be provided as keyword arguments. Note that namespaces -are currently not supported for variables.

-
-
Overrides: - XPathElementEvaluator.__call__ -
-
-
-
- -
- -
- - -
-

__init__(self, - etree, - namespaces=None, - extensions=None, - regexp=True, - smart_strings=True) -
(Constructor) -

-
  -
- - x.__init__(...) initializes x; see help(type(x)) for signature -
-
Overrides: - object.__init__ -
-
-
-
- -
- -
- - -
-

__new__(T, - S, - ...) -

-
  -
- - -
-
Returns: a new object with type S, a subtype of T
-
Overrides: - object.__new__ -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree.XPathElementEvaluator-class.html b/doc/html/api/lxml.etree.XPathElementEvaluator-class.html deleted file mode 100644 index 8f2af66..0000000 --- a/doc/html/api/lxml.etree.XPathElementEvaluator-class.html +++ /dev/null @@ -1,397 +0,0 @@ - - - - - lxml.etree.XPathElementEvaluator - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class XPathElementEvaluator - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class XPathElementEvaluator

-
-         object --+    
-                  |    
-_XPathEvaluatorBase --+
-                      |
-                     XPathElementEvaluator
-
- -
Known Subclasses:
-
- -
- -
-

XPathElementEvaluator(self, element, namespaces=None, extensions=None, regexp=True, smart_strings=True) -Create an XPath evaluator for an element.

-

Absolute XPath expressions (starting with '/') will be evaluated against -the ElementTree as returned by getroottree().

-

Additional namespace declarations can be passed with the -'namespace' keyword argument. EXSLT regular expression support -can be disabled with the 'regexp' boolean keyword (defaults to -True). Smart strings will be returned for string results unless -you pass smart_strings=False.

- - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__call__(self, - _path, - **_variables)
- Evaluate an XPath expression on the document.
- - -
- -
-   - - - - - - -
__init__(self, - element, - namespaces=None, - extensions=None, - regexp=True, - smart_strings=True)
- x.__init__(...) initializes x; see help(type(x)) for signature
- - -
- -
- a new object with type S, a subtype of T - - - - - - -
__new__(T, - S, - ...) - - -
- -
-   - - - - - - -
register_namespace(...)
- Register a namespace with the XPath context.
- - -
- -
-   - - - - - - -
register_namespaces(...)
- Register a prefix -> uri dict.
- - -
- -
-

Inherited from _XPathEvaluatorBase: - evaluate -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __reduce__, - __reduce_ex__, - __repr__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from _XPathEvaluatorBase: - error_log -

-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__call__(self, - _path, - **_variables) -
(Call operator) -

-
  -
- -

Evaluate an XPath expression on the document.

-

Variables may be provided as keyword arguments. Note that namespaces -are currently not supported for variables.

-

Absolute XPath expressions (starting with '/') will be evaluated -against the ElementTree as returned by getroottree().

-
-
-
-
- -
- -
- - -
-

__init__(self, - element, - namespaces=None, - extensions=None, - regexp=True, - smart_strings=True) -
(Constructor) -

-
  -
- - x.__init__(...) initializes x; see help(type(x)) for signature -
-
Overrides: - object.__init__ -
-
-
-
- -
- -
- - -
-

__new__(T, - S, - ...) -

-
  -
- - -
-
Returns: a new object with type S, a subtype of T
-
Overrides: - object.__new__ -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree.XPathError-class.html b/doc/html/api/lxml.etree.XPathError-class.html deleted file mode 100644 index 241ebfe..0000000 --- a/doc/html/api/lxml.etree.XPathError-class.html +++ /dev/null @@ -1,214 +0,0 @@ - - - - - lxml.etree.XPathError - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class XPathError - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class XPathError

-
-              object --+                
-                       |                
-exceptions.BaseException --+            
-                           |            
-        exceptions.Exception --+        
-                               |        
-                           Error --+    
-                                   |    
-                           LxmlError --+
-                                       |
-                                      XPathError
-
- -
Known Subclasses:
-
- -
- -
-Base class of all XPath errors. - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-

Inherited from LxmlError: - __init__ -

-

Inherited from exceptions.Exception: - __new__ -

-

Inherited from exceptions.BaseException: - __delattr__, - __getattribute__, - __getitem__, - __getslice__, - __reduce__, - __repr__, - __setattr__, - __setstate__, - __str__, - __unicode__ -

-

Inherited from object: - __format__, - __hash__, - __reduce_ex__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from exceptions.BaseException: - args, - message -

-

Inherited from object: - __class__ -

-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree.XPathEvalError-class.html b/doc/html/api/lxml.etree.XPathEvalError-class.html deleted file mode 100644 index eb2fda5..0000000 --- a/doc/html/api/lxml.etree.XPathEvalError-class.html +++ /dev/null @@ -1,216 +0,0 @@ - - - - - lxml.etree.XPathEvalError - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class XPathEvalError - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class XPathEvalError

-
-              object --+                    
-                       |                    
-exceptions.BaseException --+                
-                           |                
-        exceptions.Exception --+            
-                               |            
-                           Error --+        
-                                   |        
-                           LxmlError --+    
-                                       |    
-                              XPathError --+
-                                           |
-                                          XPathEvalError
-
- -
Known Subclasses:
-
- -
- -
-Error during XPath evaluation. - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-

Inherited from LxmlError: - __init__ -

-

Inherited from exceptions.Exception: - __new__ -

-

Inherited from exceptions.BaseException: - __delattr__, - __getattribute__, - __getitem__, - __getslice__, - __reduce__, - __repr__, - __setattr__, - __setstate__, - __str__, - __unicode__ -

-

Inherited from object: - __format__, - __hash__, - __reduce_ex__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from exceptions.BaseException: - args, - message -

-

Inherited from object: - __class__ -

-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree.XPathFunctionError-class.html b/doc/html/api/lxml.etree.XPathFunctionError-class.html deleted file mode 100644 index fb75663..0000000 --- a/doc/html/api/lxml.etree.XPathFunctionError-class.html +++ /dev/null @@ -1,212 +0,0 @@ - - - - - lxml.etree.XPathFunctionError - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class XPathFunctionError - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class XPathFunctionError

-
-              object --+                        
-                       |                        
-exceptions.BaseException --+                    
-                           |                    
-        exceptions.Exception --+                
-                               |                
-                           Error --+            
-                                   |            
-                           LxmlError --+        
-                                       |        
-                              XPathError --+    
-                                           |    
-                              XPathEvalError --+
-                                               |
-                                              XPathFunctionError
-
- -
-Internal error looking up an XPath extension function. - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-

Inherited from LxmlError: - __init__ -

-

Inherited from exceptions.Exception: - __new__ -

-

Inherited from exceptions.BaseException: - __delattr__, - __getattribute__, - __getitem__, - __getslice__, - __reduce__, - __repr__, - __setattr__, - __setstate__, - __str__, - __unicode__ -

-

Inherited from object: - __format__, - __hash__, - __reduce_ex__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from exceptions.BaseException: - args, - message -

-

Inherited from object: - __class__ -

-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree.XPathResultError-class.html b/doc/html/api/lxml.etree.XPathResultError-class.html deleted file mode 100644 index 3507196..0000000 --- a/doc/html/api/lxml.etree.XPathResultError-class.html +++ /dev/null @@ -1,212 +0,0 @@ - - - - - lxml.etree.XPathResultError - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class XPathResultError - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class XPathResultError

-
-              object --+                        
-                       |                        
-exceptions.BaseException --+                    
-                           |                    
-        exceptions.Exception --+                
-                               |                
-                           Error --+            
-                                   |            
-                           LxmlError --+        
-                                       |        
-                              XPathError --+    
-                                           |    
-                              XPathEvalError --+
-                                               |
-                                              XPathResultError
-
- -
-Error handling an XPath result. - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-

Inherited from LxmlError: - __init__ -

-

Inherited from exceptions.Exception: - __new__ -

-

Inherited from exceptions.BaseException: - __delattr__, - __getattribute__, - __getitem__, - __getslice__, - __reduce__, - __repr__, - __setattr__, - __setstate__, - __str__, - __unicode__ -

-

Inherited from object: - __format__, - __hash__, - __reduce_ex__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from exceptions.BaseException: - args, - message -

-

Inherited from object: - __class__ -

-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree.XPathSyntaxError-class.html b/doc/html/api/lxml.etree.XPathSyntaxError-class.html deleted file mode 100644 index b684f45..0000000 --- a/doc/html/api/lxml.etree.XPathSyntaxError-class.html +++ /dev/null @@ -1,238 +0,0 @@ - - - - - lxml.etree.XPathSyntaxError - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class XPathSyntaxError - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class XPathSyntaxError

-
-              object --+                    
-                       |                    
-exceptions.BaseException --+                
-                           |                
-        exceptions.Exception --+            
-                               |            
-                           Error --+        
-                                   |        
-                           LxmlError --+    
-                                       |    
-              object --+               |    
-                       |               |    
-exceptions.BaseException --+           |    
-                           |           |    
-        exceptions.Exception --+       |    
-                               |       |    
-        exceptions.StandardError --+   |    
-                                   |   |    
-              exceptions.SyntaxError --+    
-                                       |    
-                         LxmlSyntaxError --+
-                                           |
-              object --+                   |
-                       |                   |
-exceptions.BaseException --+               |
-                           |               |
-        exceptions.Exception --+           |
-                               |           |
-                           Error --+       |
-                                   |       |
-                           LxmlError --+   |
-                                       |   |
-                              XPathError --+
-                                           |
-                                          XPathSyntaxError
-
- -
- - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-

Inherited from LxmlError: - __init__ -

-

Inherited from exceptions.SyntaxError: - __new__, - __str__ -

-

Inherited from exceptions.BaseException: - __delattr__, - __getattribute__, - __getitem__, - __getslice__, - __reduce__, - __repr__, - __setattr__, - __setstate__, - __unicode__ -

-

Inherited from object: - __format__, - __hash__, - __reduce_ex__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from exceptions.SyntaxError: - filename, - lineno, - msg, - offset, - print_file_and_line, - text -

-

Inherited from exceptions.BaseException: - args, - message -

-

Inherited from object: - __class__ -

-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree.XSLT-class.html b/doc/html/api/lxml.etree.XSLT-class.html deleted file mode 100644 index 255c8da..0000000 --- a/doc/html/api/lxml.etree.XSLT-class.html +++ /dev/null @@ -1,597 +0,0 @@ - - - - - lxml.etree.XSLT - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class XSLT - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class XSLT

-
-object --+
-         |
-        XSLT
-
- -
-

XSLT(self, xslt_input, extensions=None, regexp=True, access_control=None)

-

Turn an XSL document into an XSLT object.

-

Calling this object on a tree or Element will execute the XSLT:

-
->>> transform = etree.XSLT(xsl_tree)
->>> result = transform(xml_tree)
-
-

Keyword arguments of the constructor:

- -

Keyword arguments of the XSLT call:

- -

Other keyword arguments of the call are passed to the stylesheet -as parameters.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__call__(self, - _input, - profile_run=False, - **kw)
- Execute the XSL transformation on a tree or Element.
- - -
- -
-   - - - - - - -
__copy__(...) - - -
- -
-   - - - - - - -
__deepcopy__(...) - - -
- -
-   - - - - - - -
__init__(self, - xslt_input, - extensions=None, - regexp=True, - access_control=None)
- x.__init__(...) initializes x; see help(type(x)) for signature
- - -
- -
- a new object with type S, a subtype of T - - - - - - -
__new__(T, - S, - ...) - - -
- -
-   - - - - - - -
apply(self, - _input, - profile_run=False, - **kw) - - -
- -
-   - - - - - - -
tostring(self, - result_tree)
- Save result doc to string based on stylesheet output method.
- - -
- -
-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __reduce__, - __reduce_ex__, - __repr__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - - - - -
- - - - - -
Static Methods[hide private]
-
-   - - - - - - -
set_global_max_depth(max_depth)
- The maximum traversal depth that the stylesheet engine will allow. -This does not only count the template recursion depth but also takes -the number of variables/parameters into account. The required setting -for a run depends on both the stylesheet and the input data.
- - -
- -
-   - - - - - - -
strparam(strval)
- Mark an XSLT string parameter that requires quote escaping -before passing it into the transformation. Use it like this:
- - -
- -
- - - - - - - - - - - - -
- - - - - -
Properties[hide private]
-
-   - - error_log
- The log of errors and warnings of an XSLT execution. -
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__call__(self, - _input, - profile_run=False, - **kw) -
(Call operator) -

-
  -
- -

Execute the XSL transformation on a tree or Element.

-

Pass the profile_run option to get profile information -about the XSLT. The result of the XSLT will have a property -xslt_profile that holds an XML tree with profiling data.

-
-
-
-
- -
- -
- - -
-

__init__(self, - xslt_input, - extensions=None, - regexp=True, - access_control=None) -
(Constructor) -

-
  -
- - x.__init__(...) initializes x; see help(type(x)) for signature -
-
Overrides: - object.__init__ -
-
-
-
- -
- -
- - -
-

__new__(T, - S, - ...) -

-
  -
- - -
-
Returns: a new object with type S, a subtype of T
-
Overrides: - object.__new__ -
-
-
-
- -
- -
- - -
-

apply(self, - _input, - profile_run=False, - **kw) -

-
  -
- - -
-
-

Deprecated: - call the object, not this method. -

-
-
- -
- -
- - -
-

set_global_max_depth(max_depth) -
Static Method -

-
  -
- -

The maximum traversal depth that the stylesheet engine will allow. -This does not only count the template recursion depth but also takes -the number of variables/parameters into account. The required setting -for a run depends on both the stylesheet and the input data.

-

Example:

-
-XSLT.set_global_max_depth(5000)
-
-

Note that this is currently a global, module-wide setting because -libxslt does not support it at a per-stylesheet level.

-
-
-
-
- -
- -
- - -
-

strparam(strval) -
Static Method -

-
  -
- -

Mark an XSLT string parameter that requires quote escaping -before passing it into the transformation. Use it like this:

-
-result = transform(doc, some_strval = XSLT.strparam(
-    '''it's "Monty Python's" ...'''))
-
-

Escaped string parameters can be reused without restriction.

-
-
-
-
- -
- -
- - -
-

tostring(self, - result_tree) -

-
  -
- - Save result doc to string based on stylesheet output method. -
-
-

Deprecated: - use str(result_tree) instead. -

-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree.XSLTAccessControl-class.html b/doc/html/api/lxml.etree.XSLTAccessControl-class.html deleted file mode 100644 index 1444804..0000000 --- a/doc/html/api/lxml.etree.XSLTAccessControl-class.html +++ /dev/null @@ -1,450 +0,0 @@ - - - - - lxml.etree.XSLTAccessControl - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class XSLTAccessControl - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class XSLTAccessControl

-
-object --+
-         |
-        XSLTAccessControl
-
- -
-

XSLTAccessControl(self, read_file=True, write_file=True, create_dir=True, read_network=True, write_network=True)

-

Access control for XSLT: reading/writing files, directories and -network I/O. Access to a type of resource is granted or denied by -passing any of the following boolean keyword arguments. All of -them default to True to allow access.

- -

For convenience, there is also a class member DENY_ALL that -provides an XSLTAccessControl instance that is readily configured -to deny everything, and a DENY_WRITE member that denies all -write access but allows read access.

-

See XSLT.

- - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__init__(self, - read_file=True, - write_file=True, - create_dir=True, - read_network=True, - write_network=True)
- x.__init__(...) initializes x; see help(type(x)) for signature
- - -
- -
- a new object with type S, a subtype of T - - - - - - -
__new__(T, - S, - ...) - - -
- -
-   - - - - - - -
__repr__(x)
- repr(x)
- - -
- -
-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __reduce__, - __reduce_ex__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - - - - -
- - - - - -
Class Variables[hide private]
-
-   - - DENY_ALL = XSLTAccessControl(create_dir=False, read_file=False... -
-   - - DENY_WRITE = XSLTAccessControl(create_dir=False, read_file=Tru... -
- - - - - - - - - - - - -
- - - - - -
Properties[hide private]
-
-   - - options
- The access control configuration as a map of options. -
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__init__(self, - read_file=True, - write_file=True, - create_dir=True, - read_network=True, - write_network=True) -
(Constructor) -

-
  -
- - x.__init__(...) initializes x; see help(type(x)) for signature -
-
Overrides: - object.__init__ -
-
-
-
- -
- -
- - -
-

__new__(T, - S, - ...) -

-
  -
- - -
-
Returns: a new object with type S, a subtype of T
-
Overrides: - object.__new__ -
-
-
-
- -
- -
- - -
-

__repr__(x) -
(Representation operator) -

-
  -
- - repr(x) -
-
Overrides: - object.__repr__ -
-
-
-
-
- - - - - - -
- - - - - -
Class Variable Details[hide private]
-
- -
- -
-

DENY_ALL

- -
-
-
-
Value:
-
-XSLTAccessControl(create_dir=False, read_file=False, read_network=Fals\
-e, write_file=False, write_network=False)
-
-
-
-
-
- -
- -
-

DENY_WRITE

- -
-
-
-
Value:
-
-XSLTAccessControl(create_dir=False, read_file=True, read_network=True,\
- write_file=False, write_network=False)
-
-
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree.XSLTApplyError-class.html b/doc/html/api/lxml.etree.XSLTApplyError-class.html deleted file mode 100644 index ef13160..0000000 --- a/doc/html/api/lxml.etree.XSLTApplyError-class.html +++ /dev/null @@ -1,210 +0,0 @@ - - - - - lxml.etree.XSLTApplyError - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class XSLTApplyError - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class XSLTApplyError

-
-              object --+                    
-                       |                    
-exceptions.BaseException --+                
-                           |                
-        exceptions.Exception --+            
-                               |            
-                           Error --+        
-                                   |        
-                           LxmlError --+    
-                                       |    
-                               XSLTError --+
-                                           |
-                                          XSLTApplyError
-
- -
-Error running an XSL transformation. - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-

Inherited from LxmlError: - __init__ -

-

Inherited from exceptions.Exception: - __new__ -

-

Inherited from exceptions.BaseException: - __delattr__, - __getattribute__, - __getitem__, - __getslice__, - __reduce__, - __repr__, - __setattr__, - __setstate__, - __str__, - __unicode__ -

-

Inherited from object: - __format__, - __hash__, - __reduce_ex__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from exceptions.BaseException: - args, - message -

-

Inherited from object: - __class__ -

-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree.XSLTError-class.html b/doc/html/api/lxml.etree.XSLTError-class.html deleted file mode 100644 index 715e09e..0000000 --- a/doc/html/api/lxml.etree.XSLTError-class.html +++ /dev/null @@ -1,214 +0,0 @@ - - - - - lxml.etree.XSLTError - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class XSLTError - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class XSLTError

-
-              object --+                
-                       |                
-exceptions.BaseException --+            
-                           |            
-        exceptions.Exception --+        
-                               |        
-                           Error --+    
-                                   |    
-                           LxmlError --+
-                                       |
-                                      XSLTError
-
- -
Known Subclasses:
-
- -
- -
-Base class of all XSLT errors. - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-

Inherited from LxmlError: - __init__ -

-

Inherited from exceptions.Exception: - __new__ -

-

Inherited from exceptions.BaseException: - __delattr__, - __getattribute__, - __getitem__, - __getslice__, - __reduce__, - __repr__, - __setattr__, - __setstate__, - __str__, - __unicode__ -

-

Inherited from object: - __format__, - __hash__, - __reduce_ex__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from exceptions.BaseException: - args, - message -

-

Inherited from object: - __class__ -

-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree.XSLTExtension-class.html b/doc/html/api/lxml.etree.XSLTExtension-class.html deleted file mode 100644 index e5520c4..0000000 --- a/doc/html/api/lxml.etree.XSLTExtension-class.html +++ /dev/null @@ -1,399 +0,0 @@ - - - - - lxml.etree.XSLTExtension - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class XSLTExtension - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class XSLTExtension

-
-object --+
-         |
-        XSLTExtension
-
- -
-Base class of an XSLT extension element. - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
- a new object with type S, a subtype of T - - - - - - -
__new__(T, - S, - ...) - - -
- -
-   - - - - - - -
apply_templates(self, - context, - node, - output_parent=None)
- Call this method to retrieve the result of applying templates -to an element.
- - -
- -
-   - - - - - - -
execute(self, - context, - self_node, - input_node, - output_parent)
- Execute this extension element.
- - -
- -
-   - - - - - - -
process_children(self, - context, - output_parent=None)
- Call this method to process the XSLT content of the extension -element itself.
- - -
- -
-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __init__, - __reduce__, - __reduce_ex__, - __repr__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__new__(T, - S, - ...) -

-
  -
- - -
-
Returns: a new object with type S, a subtype of T
-
Overrides: - object.__new__ -
-
-
-
- -
- -
- - -
-

apply_templates(self, - context, - node, - output_parent=None) -

-
  -
- -

Call this method to retrieve the result of applying templates -to an element.

-

The return value is a list of elements or text strings that -were generated by the XSLT processor.

-

If you pass an Element as output_parent parameter, the result -will instead be appended to the element (including attributes -etc.) and the return value will be None. This is a safe way -to generate content into the output document directly, without -having to take care of special values like text or attributes.

-
-
-
-
- -
- -
- - -
-

execute(self, - context, - self_node, - input_node, - output_parent) -

-
  -
- -

Execute this extension element.

-

Subclasses must override this method. They may append -elements to the output_parent element here, or set its text -content. To this end, the input_node provides read-only -access to the current node in the input document, and the -self_node points to the extension element in the stylesheet.

-

Note that the output_parent parameter may be None if there -is no parent element in the current context (e.g. no content -was added to the output tree yet).

-
-
-
-
- -
- -
- - -
-

process_children(self, - context, - output_parent=None) -

-
  -
- -

Call this method to process the XSLT content of the extension -element itself.

-

The return value is a list of elements or text strings that -were generated by the XSLT processor.

-

If you pass an Element as output_parent parameter, the result -will instead be appended to the element (including attributes -etc.) and the return value will be None. This is a safe way -to generate content into the output document directly, without -having to take care of special values like text or attributes.

-
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree.XSLTExtensionError-class.html b/doc/html/api/lxml.etree.XSLTExtensionError-class.html deleted file mode 100644 index a0a7a6d..0000000 --- a/doc/html/api/lxml.etree.XSLTExtensionError-class.html +++ /dev/null @@ -1,210 +0,0 @@ - - - - - lxml.etree.XSLTExtensionError - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class XSLTExtensionError - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class XSLTExtensionError

-
-              object --+                    
-                       |                    
-exceptions.BaseException --+                
-                           |                
-        exceptions.Exception --+            
-                               |            
-                           Error --+        
-                                   |        
-                           LxmlError --+    
-                                       |    
-                               XSLTError --+
-                                           |
-                                          XSLTExtensionError
-
- -
-Error registering an XSLT extension. - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-

Inherited from LxmlError: - __init__ -

-

Inherited from exceptions.Exception: - __new__ -

-

Inherited from exceptions.BaseException: - __delattr__, - __getattribute__, - __getitem__, - __getslice__, - __reduce__, - __repr__, - __setattr__, - __setstate__, - __str__, - __unicode__ -

-

Inherited from object: - __format__, - __hash__, - __reduce_ex__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from exceptions.BaseException: - args, - message -

-

Inherited from object: - __class__ -

-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree.XSLTParseError-class.html b/doc/html/api/lxml.etree.XSLTParseError-class.html deleted file mode 100644 index 645f2ec..0000000 --- a/doc/html/api/lxml.etree.XSLTParseError-class.html +++ /dev/null @@ -1,210 +0,0 @@ - - - - - lxml.etree.XSLTParseError - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class XSLTParseError - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class XSLTParseError

-
-              object --+                    
-                       |                    
-exceptions.BaseException --+                
-                           |                
-        exceptions.Exception --+            
-                               |            
-                           Error --+        
-                                   |        
-                           LxmlError --+    
-                                       |    
-                               XSLTError --+
-                                           |
-                                          XSLTParseError
-
- -
-Error parsing a stylesheet document. - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-

Inherited from LxmlError: - __init__ -

-

Inherited from exceptions.Exception: - __new__ -

-

Inherited from exceptions.BaseException: - __delattr__, - __getattribute__, - __getitem__, - __getslice__, - __reduce__, - __repr__, - __setattr__, - __setstate__, - __str__, - __unicode__ -

-

Inherited from object: - __format__, - __hash__, - __reduce_ex__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from exceptions.BaseException: - args, - message -

-

Inherited from object: - __class__ -

-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree.XSLTSaveError-class.html b/doc/html/api/lxml.etree.XSLTSaveError-class.html deleted file mode 100644 index b9c04e8..0000000 --- a/doc/html/api/lxml.etree.XSLTSaveError-class.html +++ /dev/null @@ -1,210 +0,0 @@ - - - - - lxml.etree.XSLTSaveError - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class XSLTSaveError - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class XSLTSaveError

-
-              object --+                    
-                       |                    
-exceptions.BaseException --+                
-                           |                
-        exceptions.Exception --+            
-                               |            
-                           Error --+        
-                                   |        
-                           LxmlError --+    
-                                       |    
-                               XSLTError --+
-                                           |
-                                          XSLTSaveError
-
- -
-Error serialising an XSLT result. - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-

Inherited from LxmlError: - __init__ -

-

Inherited from exceptions.Exception: - __new__ -

-

Inherited from exceptions.BaseException: - __delattr__, - __getattribute__, - __getitem__, - __getslice__, - __reduce__, - __repr__, - __setattr__, - __setstate__, - __str__, - __unicode__ -

-

Inherited from object: - __format__, - __hash__, - __reduce_ex__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from exceptions.BaseException: - args, - message -

-

Inherited from object: - __class__ -

-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree._Attrib-class.html b/doc/html/api/lxml.etree._Attrib-class.html deleted file mode 100644 index 9b1c253..0000000 --- a/doc/html/api/lxml.etree._Attrib-class.html +++ /dev/null @@ -1,694 +0,0 @@ - - - - - lxml.etree._Attrib - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class _Attrib - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class _Attrib

-
-object --+
-         |
-        _Attrib
-
- -
-A dict-like proxy for the Element.attrib property. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__contains__(x, - y)
- y in x
- - -
- -
-   - - - - - - -
__delitem__(x, - y)
- del x[y]
- - -
- -
-   - - - - - - -
__eq__(x, - y)
- x==y
- - -
- -
-   - - - - - - -
__ge__(x, - y)
- x>=y
- - -
- -
-   - - - - - - -
__getitem__(x, - y)
- x[y]
- - -
- -
-   - - - - - - -
__gt__(x, - y)
- x>y
- - -
- -
-   - - - - - - -
__iter__(x)
- iter(x)
- - -
- -
-   - - - - - - -
__le__(x, - y)
- x<=y
- - -
- -
-   - - - - - - -
__len__(x)
- len(x)
- - -
- -
-   - - - - - - -
__lt__(x, - y)
- x<y
- - -
- -
-   - - - - - - -
__ne__(x, - y)
- x!=y
- - -
- -
- a new object with type S, a subtype of T - - - - - - -
__new__(T, - S, - ...) - - -
- -
-   - - - - - - -
__nonzero__(x)
- x != 0
- - -
- -
-   - - - - - - -
__repr__(x)
- repr(x)
- - -
- -
-   - - - - - - -
__setitem__(x, - i, - y)
- x[i]=y
- - -
- -
-   - - - - - - -
clear(...) - - -
- -
-   - - - - - - -
get(...) - - -
- -
-   - - - - - - -
has_key(...) - - -
- -
-   - - - - - - -
items(...) - - -
- -
-   - - - - - - -
iteritems(...) - - -
- -
-   - - - - - - -
iterkeys(...) - - -
- -
-   - - - - - - -
itervalues(...) - - -
- -
-   - - - - - - -
keys(...) - - -
- -
-   - - - - - - -
pop(...) - - -
- -
-   - - - - - - -
update(...) - - -
- -
-   - - - - - - -
values(...) - - -
- -
-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __init__, - __reduce__, - __reduce_ex__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__new__(T, - S, - ...) -

-
  -
- - -
-
Returns: a new object with type S, a subtype of T
-
Overrides: - object.__new__ -
-
-
-
- -
- -
- - -
-

__repr__(x) -
(Representation operator) -

-
  -
- - repr(x) -
-
Overrides: - object.__repr__ -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree._BaseErrorLog-class.html b/doc/html/api/lxml.etree._BaseErrorLog-class.html deleted file mode 100644 index 03d5bf7..0000000 --- a/doc/html/api/lxml.etree._BaseErrorLog-class.html +++ /dev/null @@ -1,368 +0,0 @@ - - - - - lxml.etree._BaseErrorLog - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class _BaseErrorLog - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class _BaseErrorLog

-
-object --+
-         |
-        _BaseErrorLog
-
- -
Known Subclasses:
-
- -
- -
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__init__(...)
- x.__init__(...) initializes x; see help(type(x)) for signature
- - -
- -
- a new object with type S, a subtype of T - - - - - - -
__new__(T, - S, - ...) - - -
- -
-   - - - - - - -
__repr__(x)
- repr(x)
- - -
- -
-   - - - - - - -
copy(...) - - -
- -
-   - - - - - - -
receive(...) - - -
- -
-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __reduce__, - __reduce_ex__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - - - - -
- - - - - -
Properties[hide private]
-
-   - - last_error -
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__init__(...) -
(Constructor) -

-
  -
- - x.__init__(...) initializes x; see help(type(x)) for signature -
-
Overrides: - object.__init__ -
-
-
-
- -
- -
- - -
-

__new__(T, - S, - ...) -

-
  -
- - -
-
Returns: a new object with type S, a subtype of T
-
Overrides: - object.__new__ -
-
-
-
- -
- -
- - -
-

__repr__(x) -
(Representation operator) -

-
  -
- - repr(x) -
-
Overrides: - object.__repr__ -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree._BaseParser-class.html b/doc/html/api/lxml.etree._BaseParser-class.html deleted file mode 100644 index 88ae37a..0000000 --- a/doc/html/api/lxml.etree._BaseParser-class.html +++ /dev/null @@ -1,436 +0,0 @@ - - - - - lxml.etree._BaseParser - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class _BaseParser - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class _BaseParser

-
-object --+
-         |
-        _BaseParser
-
- -
Known Subclasses:
-
- -
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__init__(...)
- x.__init__(...) initializes x; see help(type(x)) for signature
- - -
- -
- a new object with type S, a subtype of T - - - - - - -
__new__(T, - S, - ...) - - -
- -
-   - - - - - - -
copy(self)
- Create a new parser with the same configuration.
- - -
- -
-   - - - - - - -
makeelement(self, - _tag, - attrib=None, - nsmap=None, - **_extra)
- Creates a new element associated with this parser.
- - -
- -
-   - - - - - - -
setElementClassLookup(...) - - -
- -
-   - - - - - - -
set_element_class_lookup(self, - lookup= None)
- Set a lookup scheme for element classes generated from this parser.
- - -
- -
-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __reduce__, - __reduce_ex__, - __repr__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Properties[hide private]
-
-   - - error_log
- The error log of the last parser run. -
-   - - resolvers
- The custom resolver registry of this parser. -
-   - - target -
-   - - version
- The version of the underlying XML parser. -
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__init__(...) -
(Constructor) -

-
  -
- - x.__init__(...) initializes x; see help(type(x)) for signature -
-
Overrides: - object.__init__ -
-
-
-
- -
- -
- - -
-

__new__(T, - S, - ...) -

-
  -
- - -
-
Returns: a new object with type S, a subtype of T
-
Overrides: - object.__new__ -
-
-
-
- -
- -
- - -
-

setElementClassLookup(...) -

-
  -
- - -
-
-

Deprecated: - use parser.set_element_class_lookup(lookup) instead. -

-
-
- -
- -
- - -
-

set_element_class_lookup(self, - lookup= None) -

-
  -
- -

Set a lookup scheme for element classes generated from this parser.

-

Reset it by passing None or nothing.

-
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree._Comment-class.html b/doc/html/api/lxml.etree._Comment-class.html deleted file mode 100644 index 82621f8..0000000 --- a/doc/html/api/lxml.etree._Comment-class.html +++ /dev/null @@ -1,362 +0,0 @@ - - - - - lxml.etree._Comment - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class _Comment - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class _Comment

-
-         object --+        
-                  |        
-           _Element --+    
-                      |    
-??.__ContentOnlyElement --+
-                          |
-                         _Comment
-
- -
Known Subclasses:
-
- -
- -
- - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
- a new object with type S, a subtype of T - - - - - - -
__new__(T, - S, - ...) - - -
- -
-   - - - - - - -
__repr__(x)
- repr(x)
- - -
- -
-

Inherited from unreachable.__ContentOnlyElement: - __delitem__, - __getitem__, - __len__, - __setitem__, - append, - get, - insert, - items, - keys, - set, - values -

-

Inherited from _Element: - __contains__, - __copy__, - __deepcopy__, - __iter__, - __nonzero__, - __reversed__, - addnext, - addprevious, - clear, - extend, - find, - findall, - findtext, - getchildren, - getiterator, - getnext, - getparent, - getprevious, - getroottree, - index, - iter, - iterancestors, - iterchildren, - iterdescendants, - iterfind, - itersiblings, - itertext, - makeelement, - remove, - replace, - xpath -

-

Inherited from _Element (private): - _init -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __init__, - __reduce__, - __reduce_ex__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - - - - -
- - - - - -
Properties[hide private]
-
-   - - tag
- Element tag -
-

Inherited from unreachable.__ContentOnlyElement: - attrib, - text -

-

Inherited from _Element: - base, - nsmap, - prefix, - sourceline, - tail -

-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__new__(T, - S, - ...) -

-
  -
- - -
-
Returns: a new object with type S, a subtype of T
-
Overrides: - object.__new__ -
-
-
-
- -
- -
- - -
-

__repr__(x) -
(Representation operator) -

-
  -
- - repr(x) -
-
Overrides: - object.__repr__ -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree._Document-class.html b/doc/html/api/lxml.etree._Document-class.html deleted file mode 100644 index 29a948e..0000000 --- a/doc/html/api/lxml.etree._Document-class.html +++ /dev/null @@ -1,249 +0,0 @@ - - - - - lxml.etree._Document - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class _Document - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class _Document

-
-object --+
-         |
-        _Document
-
- -
-

Internal base class to reference a libxml document.

-

When instances of this class are garbage collected, the libxml -document is cleaned up.

- - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
- a new object with type S, a subtype of T - - - - - - -
__new__(T, - S, - ...) - - -
- -
-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __init__, - __reduce__, - __reduce_ex__, - __repr__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__new__(T, - S, - ...) -

-
  -
- - -
-
Returns: a new object with type S, a subtype of T
-
Overrides: - object.__new__ -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree._DomainErrorLog-class.html b/doc/html/api/lxml.etree._DomainErrorLog-class.html deleted file mode 100644 index 1a1329e..0000000 --- a/doc/html/api/lxml.etree._DomainErrorLog-class.html +++ /dev/null @@ -1,350 +0,0 @@ - - - - - lxml.etree._DomainErrorLog - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class _DomainErrorLog - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class _DomainErrorLog

-
-   object --+            
-            |            
-_BaseErrorLog --+        
-                |        
-    _ListErrorLog --+    
-                    |    
-            _ErrorLog --+
-                        |
-                       _DomainErrorLog
-
- -
- - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__init__(...)
- x.__init__(...) initializes x; see help(type(x)) for signature
- - -
- -
- a new object with type S, a subtype of T - - - - - - -
__new__(T, - S, - ...) - - -
- -
-   - - - - - - -
receive(...) - - -
- -
-

Inherited from _ErrorLog: - __exit__, - __iter__, - clear, - copy -

-

Inherited from _ListErrorLog: - __contains__, - __getitem__, - __len__, - __nonzero__, - __repr__, - filter_domains, - filter_from_errors, - filter_from_fatals, - filter_from_level, - filter_from_warnings, - filter_levels, - filter_types -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __reduce__, - __reduce_ex__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from _BaseErrorLog: - last_error -

-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__init__(...) -
(Constructor) -

-
  -
- - x.__init__(...) initializes x; see help(type(x)) for signature -
-
Overrides: - object.__init__ -
-
-
-
- -
- -
- - -
-

__new__(T, - S, - ...) -

-
  -
- - -
-
Returns: a new object with type S, a subtype of T
-
Overrides: - object.__new__ -
-
-
-
- -
- -
- - -
-

receive(...) -

-
  -
- - -
-
Overrides: - _BaseErrorLog.receive -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree._Element-class.html b/doc/html/api/lxml.etree._Element-class.html deleted file mode 100644 index e36d644..0000000 --- a/doc/html/api/lxml.etree._Element-class.html +++ /dev/null @@ -1,1621 +0,0 @@ - - - - - lxml.etree._Element - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class _Element - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class _Element

-
-object --+
-         |
-        _Element
-
- -
Known Subclasses:
-
- -
- -
-

Element class.

-

References a document object and a libxml node.

-

By pointing to a Document instance, a reference is kept to -_Document as long as there is some pointer to a node in it.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__contains__(self, - element) - - -
- -
-   - - - - - - -
__copy__(self) - - -
- -
-   - - - - - - -
__deepcopy__(self, - memo) - - -
- -
-   - - - - - - -
__delitem__(self, - x)
- Deletes the given subelement or a slice.
- - -
- -
-   - - - - - - -
__getitem__(...)
- Returns the subelement at the given position or the requested -slice.
- - -
- -
-   - - - - - - -
__iter__(self) - - -
- -
-   - - - - - - -
__len__(self)
- Returns the number of subelements.
- - -
- -
- a new object with type S, a subtype of T - - - - - - -
__new__(T, - S, - ...) - - -
- -
-   - - - - - - -
__nonzero__(x)
- x != 0
- - -
- -
-   - - - - - - -
__repr__(self)
- repr(x)
- - -
- -
-   - - - - - - -
__reversed__(self) - - -
- -
-   - - - - - - -
__setitem__(self, - x, - value)
- Replaces the given subelement index or slice.
- - -
- -
-   - - - - - - -
_init(self)
- Called after object initialisation. Custom subclasses may override -this if they recursively call _init() in the superclasses.
- - -
- -
-   - - - - - - -
addnext(self, - element)
- Adds the element as a following sibling directly after this -element.
- - -
- -
-   - - - - - - -
addprevious(self, - element)
- Adds the element as a preceding sibling directly before this -element.
- - -
- -
-   - - - - - - -
append(self, - element)
- Adds a subelement to the end of this element.
- - -
- -
-   - - - - - - -
clear(self)
- Resets an element. This function removes all subelements, clears -all attributes and sets the text and tail properties to None.
- - -
- -
-   - - - - - - -
extend(self, - elements)
- Extends the current children by the elements in the iterable.
- - -
- -
-   - - - - - - -
find(self, - path, - namespaces=None)
- Finds the first matching subelement, by tag name or path.
- - -
- -
-   - - - - - - -
findall(self, - path, - namespaces=None)
- Finds all matching subelements, by tag name or path.
- - -
- -
-   - - - - - - -
findtext(self, - path, - default=None, - namespaces=None)
- Finds text for the first matching subelement, by tag name or path.
- - -
- -
-   - - - - - - -
get(self, - key, - default=None)
- Gets an element attribute.
- - -
- -
-   - - - - - - -
getchildren(self)
- Returns all direct children. The elements are returned in document -order.
- - -
- -
-   - - - - - - -
getiterator(self, - tag=None, - *tags)
- Returns a sequence or iterator of all elements in the subtree in -document order (depth first pre-order), starting with this -element.
- - -
- -
-   - - - - - - -
getnext(self)
- Returns the following sibling of this element or None.
- - -
- -
-   - - - - - - -
getparent(self)
- Returns the parent of this element or None for the root element.
- - -
- -
-   - - - - - - -
getprevious(self)
- Returns the preceding sibling of this element or None.
- - -
- -
-   - - - - - - -
getroottree(self)
- Return an ElementTree for the root node of the document that -contains this element.
- - -
- -
-   - - - - - - -
index(self, - child, - start=None, - stop=None)
- Find the position of the child within the parent.
- - -
- -
-   - - - - - - -
insert(self, - index, - element)
- Inserts a subelement at the given position in this element
- - -
- -
-   - - - - - - -
items(self)
- Gets element attributes, as a sequence. The attributes are returned in -an arbitrary order.
- - -
- -
-   - - - - - - -
iter(self, - tag=None, - *tags)
- Iterate over all elements in the subtree in document order (depth -first pre-order), starting with this element.
- - -
- -
-   - - - - - - -
iterancestors(self, - tag=None, - *tags)
- Iterate over the ancestors of this element (from parent to parent).
- - -
- -
-   - - - - - - -
iterchildren(self, - tag=None, - reversed=False, - *tags)
- Iterate over the children of this element.
- - -
- -
-   - - - - - - -
iterdescendants(self, - tag=None, - *tags)
- Iterate over the descendants of this element in document order.
- - -
- -
-   - - - - - - -
iterfind(self, - path, - namespaces=None)
- Iterates over all matching subelements, by tag name or path.
- - -
- -
-   - - - - - - -
itersiblings(self, - tag=None, - preceding=False, - *tags)
- Iterate over the following or preceding siblings of this element.
- - -
- -
-   - - - - - - -
itertext(self, - tag=None, - with_tail=True, - *tags)
- Iterates over the text content of a subtree.
- - -
- -
-   - - - - - - -
keys(self)
- Gets a list of attribute names. The names are returned in an -arbitrary order (just like for an ordinary Python dictionary).
- - -
- -
-   - - - - - - -
makeelement(self, - _tag, - attrib=None, - nsmap=None, - **_extra)
- Creates a new element associated with the same document.
- - -
- -
-   - - - - - - -
remove(self, - element)
- Removes a matching subelement. Unlike the find methods, this -method compares elements based on identity, not on tag value -or contents.
- - -
- -
-   - - - - - - -
replace(self, - old_element, - new_element)
- Replaces a subelement with the element passed as second argument.
- - -
- -
-   - - - - - - -
set(self, - key, - value)
- Sets an element attribute.
- - -
- -
-   - - - - - - -
values(self)
- Gets element attribute values as a sequence of strings. The -attributes are returned in an arbitrary order.
- - -
- -
-   - - - - - - -
xpath(self, - _path, - namespaces=None, - extensions=None, - smart_strings=True, - **_variables)
- Evaluate an xpath expression using the element as context node.
- - -
- -
-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __init__, - __reduce__, - __reduce_ex__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Properties[hide private]
-
-   - - attrib
- Element attribute dictionary. Where possible, use get(), set(), -keys(), values() and items() to access element attributes. -
-   - - base
- The base URI of the Element (xml:base or HTML base URL). -None if the base URI is unknown. -
-   - - nsmap
- Namespace prefix->URI mapping known in the context of this -Element. This includes all namespace declarations of the -parents. -
-   - - prefix
- Namespace prefix or None. -
-   - - sourceline
- Original line number as found by the parser or None if unknown. -
-   - - tag
- Element tag -
-   - - tail
- Text after this element's end tag, but before the next sibling -element's start tag. This is either a string or the value None, if -there was no text. -
-   - - text
- Text before the first subelement. This is either a string or -the value None, if there was no text. -
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__new__(T, - S, - ...) -

-
  -
- - -
-
Returns: a new object with type S, a subtype of T
-
Overrides: - object.__new__ -
-
-
-
- -
- -
- - -
-

__repr__(self) -
(Representation operator) -

-
  -
- - repr(x) -
-
Overrides: - object.__repr__ -
-
-
-
- -
- -
- - -
-

addnext(self, - element) -

-
  -
- -

Adds the element as a following sibling directly after this -element.

-

This is normally used to set a processing instruction or comment after -the root node of a document. Note that tail text is automatically -discarded when adding at the root level.

-
-
-
-
- -
- -
- - -
-

addprevious(self, - element) -

-
  -
- -

Adds the element as a preceding sibling directly before this -element.

-

This is normally used to set a processing instruction or comment -before the root node of a document. Note that tail text is -automatically discarded when adding at the root level.

-
-
-
-
- -
- -
- - -
-

find(self, - path, - namespaces=None) -

-
  -
- -

Finds the first matching subelement, by tag name or path.

-

The optional namespaces argument accepts a -prefix-to-namespace mapping that allows the usage of XPath -prefixes in the path expression.

-
-
-
-
- -
- -
- - -
-

findall(self, - path, - namespaces=None) -

-
  -
- -

Finds all matching subelements, by tag name or path.

-

The optional namespaces argument accepts a -prefix-to-namespace mapping that allows the usage of XPath -prefixes in the path expression.

-
-
-
-
- -
- -
- - -
-

findtext(self, - path, - default=None, - namespaces=None) -

-
  -
- -

Finds text for the first matching subelement, by tag name or path.

-

The optional namespaces argument accepts a -prefix-to-namespace mapping that allows the usage of XPath -prefixes in the path expression.

-
-
-
-
- -
- -
- - -
-

getchildren(self) -

-
  -
- - Returns all direct children. The elements are returned in document -order. -
-
-

Deprecated: - Note that this method has been deprecated as of -ElementTree 1.3 and lxml 2.0. New code should use -list(element) or simply iterate over elements. -

-
-
- -
- -
- - -
-

getiterator(self, - tag=None, - *tags) -

-
  -
- -

Returns a sequence or iterator of all elements in the subtree in -document order (depth first pre-order), starting with this -element.

-

Can be restricted to find only elements with a specific tag, -see iter.

-
-
-

Deprecated: - Note that this method is deprecated as of -ElementTree 1.3 and lxml 2.0. It returns an iterator in -lxml, which diverges from the original ElementTree -behaviour. If you want an efficient iterator, use the -element.iter() method instead. You should only use this -method in new code if you require backwards compatibility -with older versions of lxml or ElementTree. -

-
-
- -
- -
- - -
-

getroottree(self) -

-
  -
- -

Return an ElementTree for the root node of the document that -contains this element.

-

This is the same as following element.getparent() up the tree until it -returns None (for the root element) and then build an ElementTree for -the last parent that was returned.

-
-
-
-
- -
- -
- - -
-

index(self, - child, - start=None, - stop=None) -

-
  -
- -

Find the position of the child within the parent.

-

This method is not part of the original ElementTree API.

-
-
-
-
- -
- -
- - -
-

iter(self, - tag=None, - *tags) -

-
  -
- -

Iterate over all elements in the subtree in document order (depth -first pre-order), starting with this element.

-

Can be restricted to find only elements with a specific tag: -pass "{ns}localname" as tag. Either or both of ns and -localname can be * for a wildcard; ns can be empty -for no namespace. "localname" is equivalent to "{}localname" -but "*" is "{*}*", not "{}*".

-

You can also pass the Element, Comment, ProcessingInstruction and -Entity factory functions to look only for the specific element type.

-

Passing a sequence of tags will let the iterator return all -elements matching any of these tags, in document order.

-
-
-
-
- -
- -
- - -
-

iterancestors(self, - tag=None, - *tags) -

-
  -
- -

Iterate over the ancestors of this element (from parent to parent).

-

Can be restricted to find only elements with a specific tag, -see iter.

-
-
-
-
- -
- -
- - -
-

iterchildren(self, - tag=None, - reversed=False, - *tags) -

-
  -
- -

Iterate over the children of this element.

-

As opposed to using normal iteration on this element, the returned -elements can be reversed with the 'reversed' keyword and restricted -to find only elements with a specific tag, see iter.

-
-
-
-
- -
- -
- - -
-

iterdescendants(self, - tag=None, - *tags) -

-
  -
- -

Iterate over the descendants of this element in document order.

-

As opposed to el.iter(), this iterator does not yield the element -itself. The returned elements can be restricted to find only elements -with a specific tag, see iter.

-
-
-
-
- -
- -
- - -
-

iterfind(self, - path, - namespaces=None) -

-
  -
- -

Iterates over all matching subelements, by tag name or path.

-

The optional namespaces argument accepts a -prefix-to-namespace mapping that allows the usage of XPath -prefixes in the path expression.

-
-
-
-
- -
- -
- - -
-

itersiblings(self, - tag=None, - preceding=False, - *tags) -

-
  -
- -

Iterate over the following or preceding siblings of this element.

-

The direction is determined by the 'preceding' keyword which -defaults to False, i.e. forward iteration over the following -siblings. When True, the iterator yields the preceding -siblings in reverse document order, i.e. starting right before -the current element and going backwards.

-

Can be restricted to find only elements with a specific tag, -see iter.

-
-
-
-
- -
- -
- - -
-

itertext(self, - tag=None, - with_tail=True, - *tags) -

-
  -
- -

Iterates over the text content of a subtree.

-

You can pass a tag name to restrict text content to specific elements, -see iter.

-

You can set the with_tail keyword argument to False to skip -over tail text.

-
-
-
-
-
- - - - - - -
- - - - - -
Property Details[hide private]
-
- -
- -
-

base

-

The base URI of the Element (xml:base or HTML base URL). -None if the base URI is unknown.

-

Note that the value depends on the URL of the document that -holds the Element if there is no xml:base attribute on the -Element or its ancestors.

-

Setting this property will set an xml:base attribute on the -Element, regardless of the document type (XML or HTML).

-
-
-
-
- -
- -
-

nsmap

-

Namespace prefix->URI mapping known in the context of this -Element. This includes all namespace declarations of the -parents.

-

Note that changing the returned dict has no effect on the Element.

-
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree._ElementIterator-class.html b/doc/html/api/lxml.etree._ElementIterator-class.html deleted file mode 100644 index 2881667..0000000 --- a/doc/html/api/lxml.etree._ElementIterator-class.html +++ /dev/null @@ -1,298 +0,0 @@ - - - - - lxml.etree._ElementIterator - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class _ElementIterator - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class _ElementIterator

-
-        object --+    
-                 |    
-_ElementTagMatcher --+
-                     |
-                    _ElementIterator
-
- -
-Dead but public. :) - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__iter__(x)
- iter(x)
- - -
- -
- a new object with type S, a subtype of T - - - - - - -
__new__(T, - S, - ...) - - -
- -
-   - - - - - - -
__next__(...) - - -
- -
- the next value, or raise StopIteration - - - - - - -
next(x) - - -
- -
-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __init__, - __reduce__, - __reduce_ex__, - __repr__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__new__(T, - S, - ...) -

-
  -
- - -
-
Returns: a new object with type S, a subtype of T
-
Overrides: - object.__new__ -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree._ElementMatchIterator-class.html b/doc/html/api/lxml.etree._ElementMatchIterator-class.html deleted file mode 100644 index ec475fe..0000000 --- a/doc/html/api/lxml.etree._ElementMatchIterator-class.html +++ /dev/null @@ -1,300 +0,0 @@ - - - - - lxml.etree._ElementMatchIterator - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class _ElementMatchIterator - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class _ElementMatchIterator

-
-object --+
-         |
-        _ElementMatchIterator
-
- -
Known Subclasses:
-
- -
- -
- - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__iter__(x)
- iter(x)
- - -
- -
- a new object with type S, a subtype of T - - - - - - -
__new__(T, - S, - ...) - - -
- -
-   - - - - - - -
__next__(...) - - -
- -
- the next value, or raise StopIteration - - - - - - -
next(x) - - -
- -
-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __init__, - __reduce__, - __reduce_ex__, - __repr__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__new__(T, - S, - ...) -

-
  -
- - -
-
Returns: a new object with type S, a subtype of T
-
Overrides: - object.__new__ -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree._ElementStringResult-class.html b/doc/html/api/lxml.etree._ElementStringResult-class.html deleted file mode 100644 index 61d8626..0000000 --- a/doc/html/api/lxml.etree._ElementStringResult-class.html +++ /dev/null @@ -1,264 +0,0 @@ - - - - - lxml.etree._ElementStringResult - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class _ElementStringResult - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class _ElementStringResult

-
-object --+        
-         |        
-basestring --+    
-             |    
-           str --+
-                 |
-                _ElementStringResult
-
- -
- - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
getparent(...) - - -
- -
-

Inherited from str: - __add__, - __contains__, - __eq__, - __format__, - __ge__, - __getattribute__, - __getitem__, - __getnewargs__, - __getslice__, - __gt__, - __hash__, - __le__, - __len__, - __lt__, - __mod__, - __mul__, - __ne__, - __new__, - __repr__, - __rmod__, - __rmul__, - __sizeof__, - __str__, - capitalize, - center, - count, - decode, - encode, - endswith, - expandtabs, - find, - format, - index, - isalnum, - isalpha, - isdigit, - islower, - isspace, - istitle, - isupper, - join, - ljust, - lower, - lstrip, - partition, - replace, - rfind, - rindex, - rjust, - rpartition, - rsplit, - rstrip, - split, - splitlines, - startswith, - strip, - swapcase, - title, - translate, - upper, - zfill -

-

Inherited from str (private): - _formatter_field_name_split, - _formatter_parser -

-

Inherited from object: - __delattr__, - __init__, - __reduce__, - __reduce_ex__, - __setattr__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree._ElementTagMatcher-class.html b/doc/html/api/lxml.etree._ElementTagMatcher-class.html deleted file mode 100644 index ad43dd3..0000000 --- a/doc/html/api/lxml.etree._ElementTagMatcher-class.html +++ /dev/null @@ -1,253 +0,0 @@ - - - - - lxml.etree._ElementTagMatcher - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class _ElementTagMatcher - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class _ElementTagMatcher

-
-object --+
-         |
-        _ElementTagMatcher
-
- -
Known Subclasses:
-
- -
- -
-Dead but public. :) - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
- a new object with type S, a subtype of T - - - - - - -
__new__(T, - S, - ...) - - -
- -
-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __init__, - __reduce__, - __reduce_ex__, - __repr__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__new__(T, - S, - ...) -

-
  -
- - -
-
Returns: a new object with type S, a subtype of T
-
Overrides: - object.__new__ -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree._ElementTree-class.html b/doc/html/api/lxml.etree._ElementTree-class.html deleted file mode 100644 index 3c2b85e..0000000 --- a/doc/html/api/lxml.etree._ElementTree-class.html +++ /dev/null @@ -1,1020 +0,0 @@ - - - - - lxml.etree._ElementTree - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class _ElementTree - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class _ElementTree

-
-object --+
-         |
-        _ElementTree
-
- -
Known Subclasses:
-
- -
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__copy__(...) - - -
- -
-   - - - - - - -
__deepcopy__(...) - - -
- -
- a new object with type S, a subtype of T - - - - - - -
__new__(T, - S, - ...) - - -
- -
-   - - - - - - -
_setroot(self, - root)
- Relocate the ElementTree to a new root node.
- - -
- -
-   - - - - - - -
find(self, - path, - namespaces=None)
- Finds the first toplevel element with given tag. Same as -tree.getroot().find(path).
- - -
- -
-   - - - - - - -
findall(self, - path, - namespaces=None)
- Finds all elements matching the ElementPath expression. Same as -getroot().findall(path).
- - -
- -
-   - - - - - - -
findtext(self, - path, - default=None, - namespaces=None)
- Finds the text for the first element matching the ElementPath -expression. Same as getroot().findtext(path)
- - -
- -
-   - - - - - - -
getiterator(self, - tag=None, - *tags)
- Returns a sequence or iterator of all elements in document order -(depth first pre-order), starting with the root element.
- - -
- -
-   - - - - - - -
getpath(self, - element)
- Returns a structural, absolute XPath expression to find that element.
- - -
- -
-   - - - - - - -
getroot(self)
- Gets the root element for this tree.
- - -
- -
-   - - - - - - -
iter(self, - tag=None, - *tags)
- Creates an iterator for the root element. The iterator loops over -all elements in this tree, in document order.
- - -
- -
-   - - - - - - -
iterfind(self, - path, - namespaces=None)
- Iterates over all elements matching the ElementPath expression. -Same as getroot().iterfind(path).
- - -
- -
-   - - - - - - -
parse(self, - source, - parser=None, - base_url=None)
- Updates self with the content of source and returns its root
- - -
- -
-   - - - - - - -
relaxng(self, - relaxng)
- Validate this document using other document.
- - -
- -
-   - - - - - - -
write(self, - file, - encoding=None, - method="xml", - pretty_print=False, - xml_declaration=None, - with_tail=True, - standalone=None, - compression=0, - exclusive=False, - with_comments=True, - inclusive_ns_prefixes=None)
- Write the tree to a filename, file or file-like object.
- - -
- -
-   - - - - - - -
write_c14n(self, - file, - exclusive=False, - with_comments=True, - compression=0, - inclusive_ns_prefixes=None)
- C14N write of document. Always writes UTF-8.
- - -
- -
-   - - - - - - -
xinclude(self)
- Process the XInclude nodes in this document and include the -referenced XML fragments.
- - -
- -
-   - - - - - - -
xmlschema(self, - xmlschema)
- Validate this document using other document.
- - -
- -
-   - - - - - - -
xpath(self, - _path, - namespaces=None, - extensions=None, - smart_strings=True, - **_variables)
- XPath evaluate in context of document.
- - -
- -
-   - - - - - - -
xslt(self, - _xslt, - extensions=None, - access_control=None, - **_kw)
- Transform this document using other document.
- - -
- -
-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __init__, - __reduce__, - __reduce_ex__, - __repr__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - - - - - - - -
- - - - - -
Properties[hide private]
-
-   - - docinfo
- Information about the document provided by parser and DTD. This -value is only defined for ElementTree objects based on the root node -of a parsed document (e.g. those returned by the parse functions), -not for trees that were built manually. -
-   - - parser
- The parser that was used to parse the document in this ElementTree. -
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__new__(T, - S, - ...) -

-
  -
- - -
-
Returns: a new object with type S, a subtype of T
-
Overrides: - object.__new__ -
-
-
-
- -
- -
- - -
-

find(self, - path, - namespaces=None) -

-
  -
- -

Finds the first toplevel element with given tag. Same as -tree.getroot().find(path).

-

The optional namespaces argument accepts a -prefix-to-namespace mapping that allows the usage of XPath -prefixes in the path expression.

-
-
-
-
- -
- -
- - -
-

findall(self, - path, - namespaces=None) -

-
  -
- -

Finds all elements matching the ElementPath expression. Same as -getroot().findall(path).

-

The optional namespaces argument accepts a -prefix-to-namespace mapping that allows the usage of XPath -prefixes in the path expression.

-
-
-
-
- -
- -
- - -
-

findtext(self, - path, - default=None, - namespaces=None) -

-
  -
- -

Finds the text for the first element matching the ElementPath -expression. Same as getroot().findtext(path)

-

The optional namespaces argument accepts a -prefix-to-namespace mapping that allows the usage of XPath -prefixes in the path expression.

-
-
-
-
- -
- -
- - -
-

getiterator(self, - tag=None, - *tags) -

-
  -
- -

Returns a sequence or iterator of all elements in document order -(depth first pre-order), starting with the root element.

-

Can be restricted to find only elements with a specific tag, -see _Element.iter.

-
-
-

Deprecated: - Note that this method is deprecated as of -ElementTree 1.3 and lxml 2.0. It returns an iterator in -lxml, which diverges from the original ElementTree -behaviour. If you want an efficient iterator, use the -tree.iter() method instead. You should only use this -method in new code if you require backwards compatibility -with older versions of lxml or ElementTree. -

-
-
- -
- -
- - -
-

iter(self, - tag=None, - *tags) -

-
  -
- -

Creates an iterator for the root element. The iterator loops over -all elements in this tree, in document order.

-

Can be restricted to find only elements with a specific tag, -see _Element.iter.

-
-
-
-
- -
- -
- - -
-

iterfind(self, - path, - namespaces=None) -

-
  -
- -

Iterates over all elements matching the ElementPath expression. -Same as getroot().iterfind(path).

-

The optional namespaces argument accepts a -prefix-to-namespace mapping that allows the usage of XPath -prefixes in the path expression.

-
-
-
-
- -
- -
- - -
-

relaxng(self, - relaxng) -

-
  -
- -

Validate this document using other document.

-

The relaxng argument is a tree that should contain a Relax NG schema.

-

Returns True or False, depending on whether validation -succeeded.

-

Note: if you are going to apply the same Relax NG schema against -multiple documents, it is more efficient to use the RelaxNG -class directly.

-
-
-
-
- -
- -
- - -
-

write(self, - file, - encoding=None, - method="xml", - pretty_print=False, - xml_declaration=None, - with_tail=True, - standalone=None, - compression=0, - exclusive=False, - with_comments=True, - inclusive_ns_prefixes=None) -

-
  -
- -

Write the tree to a filename, file or file-like object.

-

Defaults to ASCII encoding and writing a declaration as needed.

-

The keyword argument 'method' selects the output method: -'xml', 'html', 'text' or 'c14n'. Default is 'xml'.

-

The exclusive and with_comments arguments are only -used with C14N output, where they request exclusive and -uncommented C14N serialisation respectively.

-

Passing a boolean value to the standalone option will -output an XML declaration with the corresponding -standalone flag.

-

The compression option enables GZip compression level 1-9.

-

The inclusive_ns_prefixes should be a list of namespace strings -(i.e. ['xs', 'xsi']) that will be promoted to the top-level element -during exclusive C14N serialisation. This parameter is ignored if -exclusive mode=False.

-

If exclusive=True and no list is provided, a namespace will only be -rendered if it is used by the immediate parent or one of its attributes -and its prefix and values have not already been rendered by an ancestor -of the namespace node's parent element.

-
-
-
-
- -
- -
- - -
-

write_c14n(self, - file, - exclusive=False, - with_comments=True, - compression=0, - inclusive_ns_prefixes=None) -

-
  -
- -

C14N write of document. Always writes UTF-8.

-

The compression option enables GZip compression level 1-9.

-

The inclusive_ns_prefixes should be a list of namespace strings -(i.e. ['xs', 'xsi']) that will be promoted to the top-level element -during exclusive C14N serialisation. This parameter is ignored if -exclusive mode=False.

-

If exclusive=True and no list is provided, a namespace will only be -rendered if it is used by the immediate parent or one of its attributes -and its prefix and values have not already been rendered by an ancestor -of the namespace node's parent element.

-
-
-
-
- -
- -
- - -
-

xinclude(self) -

-
  -
- -

Process the XInclude nodes in this document and include the -referenced XML fragments.

-

There is support for loading files through the file system, HTTP and -FTP.

-

Note that XInclude does not support custom resolvers in Python space -due to restrictions of libxml2 <= 2.6.29.

-
-
-
-
- -
- -
- - -
-

xmlschema(self, - xmlschema) -

-
  -
- -

Validate this document using other document.

-

The xmlschema argument is a tree that should contain an XML Schema.

-

Returns True or False, depending on whether validation -succeeded.

-

Note: If you are going to apply the same XML Schema against -multiple documents, it is more efficient to use the XMLSchema -class directly.

-
-
-
-
- -
- -
- - -
-

xpath(self, - _path, - namespaces=None, - extensions=None, - smart_strings=True, - **_variables) -

-
  -
- -

XPath evaluate in context of document.

-

namespaces is an optional dictionary with prefix to namespace URI -mappings, used by XPath. extensions defines additional extension -functions.

-

Returns a list (nodeset), or bool, float or string.

-

In case of a list result, return Element for element nodes, -string for text and attribute values.

-

Note: if you are going to apply multiple XPath expressions -against the same document, it is more efficient to use -XPathEvaluator directly.

-
-
-
-
- -
- -
- - -
-

xslt(self, - _xslt, - extensions=None, - access_control=None, - **_kw) -

-
  -
- -

Transform this document using other document.

-

xslt is a tree that should be XSLT -keyword parameters are XSLT transformation parameters.

-

Returns the transformed tree.

-

Note: if you are going to apply the same XSLT stylesheet against -multiple documents, it is more efficient to use the XSLT -class directly.

-
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree._ElementUnicodeResult-class.html b/doc/html/api/lxml.etree._ElementUnicodeResult-class.html deleted file mode 100644 index 8ce5538..0000000 --- a/doc/html/api/lxml.etree._ElementUnicodeResult-class.html +++ /dev/null @@ -1,355 +0,0 @@ - - - - - lxml.etree._ElementUnicodeResult - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class _ElementUnicodeResult - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class _ElementUnicodeResult

-
-object --+        
-         |        
-basestring --+    
-             |    
-       unicode --+
-                 |
-                _ElementUnicodeResult
-
- -
- - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
- a new object with type S, a subtype of T - - - - - - -
__new__(T, - S, - ...) - - -
- -
-   - - - - - - -
getparent(...) - - -
- -
-

Inherited from unicode: - __add__, - __contains__, - __eq__, - __format__, - __ge__, - __getattribute__, - __getitem__, - __getnewargs__, - __getslice__, - __gt__, - __hash__, - __le__, - __len__, - __lt__, - __mod__, - __mul__, - __ne__, - __repr__, - __rmod__, - __rmul__, - __sizeof__, - __str__, - capitalize, - center, - count, - decode, - encode, - endswith, - expandtabs, - find, - format, - index, - isalnum, - isalpha, - isdecimal, - isdigit, - islower, - isnumeric, - isspace, - istitle, - isupper, - join, - ljust, - lower, - lstrip, - partition, - replace, - rfind, - rindex, - rjust, - rpartition, - rsplit, - rstrip, - split, - splitlines, - startswith, - strip, - swapcase, - title, - translate, - upper, - zfill -

-

Inherited from unicode (private): - _formatter_field_name_split, - _formatter_parser -

-

Inherited from object: - __delattr__, - __init__, - __reduce__, - __reduce_ex__, - __setattr__, - __subclasshook__ -

-
- - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Properties[hide private]
-
-   - - attrname -
-   - - is_attribute -
-   - - is_tail -
-   - - is_text -
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__new__(T, - S, - ...) -

-
  -
- - -
-
Returns: a new object with type S, a subtype of T
-
Overrides: - object.__new__ -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree._Entity-class.html b/doc/html/api/lxml.etree._Entity-class.html deleted file mode 100644 index 86621c6..0000000 --- a/doc/html/api/lxml.etree._Entity-class.html +++ /dev/null @@ -1,377 +0,0 @@ - - - - - lxml.etree._Entity - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class _Entity - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class _Entity

-
-         object --+        
-                  |        
-           _Element --+    
-                      |    
-??.__ContentOnlyElement --+
-                          |
-                         _Entity
-
- -
Known Subclasses:
-
- -
- -
- - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
- a new object with type S, a subtype of T - - - - - - -
__new__(T, - S, - ...) - - -
- -
-   - - - - - - -
__repr__(x)
- repr(x)
- - -
- -
-

Inherited from unreachable.__ContentOnlyElement: - __delitem__, - __getitem__, - __len__, - __setitem__, - append, - get, - insert, - items, - keys, - set, - values -

-

Inherited from _Element: - __contains__, - __copy__, - __deepcopy__, - __iter__, - __nonzero__, - __reversed__, - addnext, - addprevious, - clear, - extend, - find, - findall, - findtext, - getchildren, - getiterator, - getnext, - getparent, - getprevious, - getroottree, - index, - iter, - iterancestors, - iterchildren, - iterdescendants, - iterfind, - itersiblings, - itertext, - makeelement, - remove, - replace, - xpath -

-

Inherited from _Element (private): - _init -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __init__, - __reduce__, - __reduce_ex__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - - - - - - - - - - -
- - - - - -
Properties[hide private]
-
-   - - name -
-   - - tag
- Element tag -
-   - - text
- Text before the first subelement. This is either a string or -the value None, if there was no text. -
-

Inherited from unreachable.__ContentOnlyElement: - attrib -

-

Inherited from _Element: - base, - nsmap, - prefix, - sourceline, - tail -

-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__new__(T, - S, - ...) -

-
  -
- - -
-
Returns: a new object with type S, a subtype of T
-
Overrides: - object.__new__ -
-
-
-
- -
- -
- - -
-

__repr__(x) -
(Representation operator) -

-
  -
- - repr(x) -
-
Overrides: - object.__repr__ -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree._ErrorLog-class.html b/doc/html/api/lxml.etree._ErrorLog-class.html deleted file mode 100644 index 08f2c64..0000000 --- a/doc/html/api/lxml.etree._ErrorLog-class.html +++ /dev/null @@ -1,458 +0,0 @@ - - - - - lxml.etree._ErrorLog - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class _ErrorLog - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class _ErrorLog

-
-   object --+        
-            |        
-_BaseErrorLog --+    
-                |    
-    _ListErrorLog --+
-                    |
-                   _ErrorLog
-
- -
Known Subclasses:
-
- -
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__exit__(...) - - -
- -
-   - - - - - - -
__init__(...)
- x.__init__(...) initializes x; see help(type(x)) for signature
- - -
- -
-   - - - - - - -
__iter__(x)
- iter(x)
- - -
- -
- a new object with type S, a subtype of T - - - - - - -
__new__(T, - S, - ...) - - -
- -
-   - - - - - - -
clear(...) - - -
- -
-   - - - - - - -
copy(...)
- Creates a shallow copy of this error log and the list of entries.
- - -
- -
-   - - - - - - -
receive(...) - - -
- -
-

Inherited from _ListErrorLog: - __contains__, - __getitem__, - __len__, - __nonzero__, - __repr__, - filter_domains, - filter_from_errors, - filter_from_fatals, - filter_from_level, - filter_from_warnings, - filter_levels, - filter_types -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __reduce__, - __reduce_ex__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from _BaseErrorLog: - last_error -

-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__init__(...) -
(Constructor) -

-
  -
- - x.__init__(...) initializes x; see help(type(x)) for signature -
-
Overrides: - object.__init__ -
-
-
-
- -
- -
- - -
-

__iter__(x) -

-
  -
- - iter(x) -
-
Overrides: - _ListErrorLog.__iter__ -
-
-
-
- -
- -
- - -
-

__new__(T, - S, - ...) -

-
  -
- - -
-
Returns: a new object with type S, a subtype of T
-
Overrides: - object.__new__ -
-
-
-
- -
- -
- - -
-

copy(...) -

-
  -
- - Creates a shallow copy of this error log and the list of entries. -
-
Overrides: - _BaseErrorLog.copy -
-
-
-
- -
- -
- - -
-

receive(...) -

-
  -
- - -
-
Overrides: - _BaseErrorLog.receive -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree._FeedParser-class.html b/doc/html/api/lxml.etree._FeedParser-class.html deleted file mode 100644 index aad0e0b..0000000 --- a/doc/html/api/lxml.etree._FeedParser-class.html +++ /dev/null @@ -1,399 +0,0 @@ - - - - - lxml.etree._FeedParser - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class _FeedParser - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class _FeedParser

-
- object --+    
-          |    
-_BaseParser --+
-              |
-             _FeedParser
-
- -
Known Subclasses:
-
- -
- -
- - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
- a new object with type S, a subtype of T - - - - - - -
__new__(T, - S, - ...) - - -
- -
-   - - - - - - -
close(self)
- Terminates feeding data to this parser. This tells the parser to -process any remaining data in the feed buffer, and then returns the -root Element of the tree that was parsed.
- - -
- -
-   - - - - - - -
feed(self, - data)
- Feeds data to the parser. The argument should be an 8-bit string -buffer containing encoded data, although Unicode is supported as long -as both string types are not mixed.
- - -
- -
-

Inherited from _BaseParser: - __init__, - copy, - makeelement, - setElementClassLookup, - set_element_class_lookup -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __reduce__, - __reduce_ex__, - __repr__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - - - - -
- - - - - -
Properties[hide private]
-
-   - - feed_error_log
- The error log of the last (or current) run of the feed parser. -
-

Inherited from _BaseParser: - error_log, - resolvers, - target, - version -

-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__new__(T, - S, - ...) -

-
  -
- - -
-
Returns: a new object with type S, a subtype of T
-
Overrides: - object.__new__ -
-
-
-
- -
- -
- - -
-

close(self) -

-
  -
- -

Terminates feeding data to this parser. This tells the parser to -process any remaining data in the feed buffer, and then returns the -root Element of the tree that was parsed.

-

This method must be called after passing the last chunk of data into -the feed() method. It should only be called when using the feed -parser interface, all other usage is undefined.

-
-
-
-
- -
- -
- - -
-

feed(self, - data) -

-
  -
- -

Feeds data to the parser. The argument should be an 8-bit string -buffer containing encoded data, although Unicode is supported as long -as both string types are not mixed.

-

This is the main entry point to the consumer interface of a -parser. The parser will parse as much of the XML stream as it -can on each call. To finish parsing or to reset the parser, -call the close() method. Both methods may raise -ParseError if errors occur in the input data. If an error is -raised, there is no longer a need to call close().

-

The feed parser interface is independent of the normal parser -usage. You can use the same parser as a feed parser and in -the parse() function concurrently.

-
-
-
-
-
- - - - - - -
- - - - - -
Property Details[hide private]
-
- -
- -
-

feed_error_log

-

The error log of the last (or current) run of the feed parser.

-

Note that this is local to the feed parser and thus is -different from what the error_log property returns.

-
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree._IDDict-class.html b/doc/html/api/lxml.etree._IDDict-class.html deleted file mode 100644 index 3ea7f1d..0000000 --- a/doc/html/api/lxml.etree._IDDict-class.html +++ /dev/null @@ -1,504 +0,0 @@ - - - - - lxml.etree._IDDict - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class _IDDict - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class _IDDict

-
-object --+
-         |
-        _IDDict
-
- -
-

IDDict(self, etree) -A dictionary-like proxy class that mapps ID attributes to elements.

-

The dictionary must be instantiated with the root element of a parsed XML -document, otherwise the behaviour is undefined. Elements and XML trees -that were created or modified 'by hand' are not supported.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__contains__(x, - y)
- y in x
- - -
- -
-   - - - - - - -
__getitem__(x, - y)
- x[y]
- - -
- -
-   - - - - - - -
__iter__(x)
- iter(x)
- - -
- -
-   - - - - - - -
__len__(x)
- len(x)
- - -
- -
- a new object with type S, a subtype of T - - - - - - -
__new__(T, - S, - ...) - - -
- -
-   - - - - - - -
__repr__(x)
- repr(x)
- - -
- -
-   - - - - - - -
copy(...) - - -
- -
-   - - - - - - -
get(...) - - -
- -
-   - - - - - - -
has_key(...) - - -
- -
-   - - - - - - -
items(...) - - -
- -
-   - - - - - - -
iteritems(...) - - -
- -
-   - - - - - - -
iterkeys(...) - - -
- -
-   - - - - - - -
itervalues(...) - - -
- -
-   - - - - - - -
keys(...) - - -
- -
-   - - - - - - -
values(...) - - -
- -
-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __init__, - __reduce__, - __reduce_ex__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__new__(T, - S, - ...) -

-
  -
- - -
-
Returns: a new object with type S, a subtype of T
-
Overrides: - object.__new__ -
-
-
-
- -
- -
- - -
-

__repr__(x) -
(Representation operator) -

-
  -
- - repr(x) -
-
Overrides: - object.__repr__ -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree._ListErrorLog-class.html b/doc/html/api/lxml.etree._ListErrorLog-class.html deleted file mode 100644 index cc9c909..0000000 --- a/doc/html/api/lxml.etree._ListErrorLog-class.html +++ /dev/null @@ -1,592 +0,0 @@ - - - - - lxml.etree._ListErrorLog - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class _ListErrorLog - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class _ListErrorLog

-
-   object --+    
-            |    
-_BaseErrorLog --+
-                |
-               _ListErrorLog
-
- -
Known Subclasses:
-
- -
- -
-Immutable base version of a list based error log. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__contains__(x, - y)
- y in x
- - -
- -
-   - - - - - - -
__getitem__(x, - y)
- x[y]
- - -
- -
-   - - - - - - -
__init__(...)
- x.__init__(...) initializes x; see help(type(x)) for signature
- - -
- -
-   - - - - - - -
__iter__(x)
- iter(x)
- - -
- -
-   - - - - - - -
__len__(x)
- len(x)
- - -
- -
- a new object with type S, a subtype of T - - - - - - -
__new__(T, - S, - ...) - - -
- -
-   - - - - - - -
__nonzero__(x)
- x != 0
- - -
- -
-   - - - - - - -
__repr__(x)
- repr(x)
- - -
- -
-   - - - - - - -
copy(...)
- Creates a shallow copy of this error log. Reuses the list of -entries.
- - -
- -
-   - - - - - - -
filter_domains(...)
- Filter the errors by the given domains and return a new error log -containing the matches.
- - -
- -
-   - - - - - - -
filter_from_errors(self)
- Convenience method to get all error messages or worse.
- - -
- -
-   - - - - - - -
filter_from_fatals(self)
- Convenience method to get all fatal error messages.
- - -
- -
-   - - - - - - -
filter_from_level(self, - level)
- Return a log with all messages of the requested level of worse.
- - -
- -
-   - - - - - - -
filter_from_warnings(self)
- Convenience method to get all warnings or worse.
- - -
- -
-   - - - - - - -
filter_levels(self, - levels)
- Filter the errors by the given error levels and return a new -error log containing the matches.
- - -
- -
-   - - - - - - -
filter_types(self, - types)
- Filter the errors by the given types and return a new error -log containing the matches.
- - -
- -
-

Inherited from _BaseErrorLog: - receive -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __reduce__, - __reduce_ex__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from _BaseErrorLog: - last_error -

-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__init__(...) -
(Constructor) -

-
  -
- - x.__init__(...) initializes x; see help(type(x)) for signature -
-
Overrides: - object.__init__ -
-
-
-
- -
- -
- - -
-

__new__(T, - S, - ...) -

-
  -
- - -
-
Returns: a new object with type S, a subtype of T
-
Overrides: - object.__new__ -
-
-
-
- -
- -
- - -
-

__repr__(x) -
(Representation operator) -

-
  -
- - repr(x) -
-
Overrides: - object.__repr__ -
-
-
-
- -
- -
- - -
-

copy(...) -

-
  -
- - Creates a shallow copy of this error log. Reuses the list of -entries. -
-
Overrides: - _BaseErrorLog.copy -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree._LogEntry-class.html b/doc/html/api/lxml.etree._LogEntry-class.html deleted file mode 100644 index 8259016..0000000 --- a/doc/html/api/lxml.etree._LogEntry-class.html +++ /dev/null @@ -1,369 +0,0 @@ - - - - - lxml.etree._LogEntry - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class _LogEntry - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class _LogEntry

-
-object --+
-         |
-        _LogEntry
-
- -
-

A log message entry from an error log.

-

Attributes:

- - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
- a new object with type S, a subtype of T - - - - - - -
__new__(T, - S, - ...) - - -
- -
-   - - - - - - -
__repr__(x)
- repr(x)
- - -
- -
-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __init__, - __reduce__, - __reduce_ex__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Properties[hide private]
-
-   - - column -
-   - - domain -
-   - - domain_name
- The name of the error domain. See lxml.etree.ErrorDomains -
-   - - filename -
-   - - level -
-   - - level_name
- The name of the error level. See lxml.etree.ErrorLevels -
-   - - line -
-   - - message -
-   - - type -
-   - - type_name
- The name of the error type. See lxml.etree.ErrorTypes -
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__new__(T, - S, - ...) -

-
  -
- - -
-
Returns: a new object with type S, a subtype of T
-
Overrides: - object.__new__ -
-
-
-
- -
- -
- - -
-

__repr__(x) -
(Representation operator) -

-
  -
- - repr(x) -
-
Overrides: - object.__repr__ -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree._ProcessingInstruction-class.html b/doc/html/api/lxml.etree._ProcessingInstruction-class.html deleted file mode 100644 index 5caa58e..0000000 --- a/doc/html/api/lxml.etree._ProcessingInstruction-class.html +++ /dev/null @@ -1,429 +0,0 @@ - - - - - lxml.etree._ProcessingInstruction - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class _ProcessingInstruction - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class _ProcessingInstruction

-
-         object --+        
-                  |        
-           _Element --+    
-                      |    
-??.__ContentOnlyElement --+
-                          |
-                         _ProcessingInstruction
-
- -
Known Subclasses:
-
- -
- -
- - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
- a new object with type S, a subtype of T - - - - - - -
__new__(T, - S, - ...) - - -
- -
-   - - - - - - -
__repr__(x)
- repr(x)
- - -
- -
-   - - - - - - -
get(self, - key, - default=None)
- Try to parse pseudo-attributes from the text content of the -processing instruction, search for one with the given key as -name and return its associated value.
- - -
- -
-

Inherited from unreachable.__ContentOnlyElement: - __delitem__, - __getitem__, - __len__, - __setitem__, - append, - insert, - items, - keys, - set, - values -

-

Inherited from _Element: - __contains__, - __copy__, - __deepcopy__, - __iter__, - __nonzero__, - __reversed__, - addnext, - addprevious, - clear, - extend, - find, - findall, - findtext, - getchildren, - getiterator, - getnext, - getparent, - getprevious, - getroottree, - index, - iter, - iterancestors, - iterchildren, - iterdescendants, - iterfind, - itersiblings, - itertext, - makeelement, - remove, - replace, - xpath -

-

Inherited from _Element (private): - _init -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __init__, - __reduce__, - __reduce_ex__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - - - - - - - - - - -
- - - - - -
Properties[hide private]
-
-   - - attrib
- Returns a dict containing all pseudo-attributes that can be -parsed from the text content of this processing instruction. -Note that modifying the dict currently has no effect on the -XML node, although this is not guaranteed to stay this way. -
-   - - tag
- Element tag -
-   - - target -
-

Inherited from unreachable.__ContentOnlyElement: - text -

-

Inherited from _Element: - base, - nsmap, - prefix, - sourceline, - tail -

-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__new__(T, - S, - ...) -

-
  -
- - -
-
Returns: a new object with type S, a subtype of T
-
Overrides: - object.__new__ -
-
-
-
- -
- -
- - -
-

__repr__(x) -
(Representation operator) -

-
  -
- - repr(x) -
-
Overrides: - object.__repr__ -
-
-
-
- -
- -
- - -
-

get(self, - key, - default=None) -

-
  -
- -

Try to parse pseudo-attributes from the text content of the -processing instruction, search for one with the given key as -name and return its associated value.

-

Note that this is only a convenience method for the most -common case that all text content is structured in -attribute-like name-value pairs with properly quoted values. -It is not guaranteed to work for all possible text content.

-
-
Overrides: - _Element.get -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree._RotatingErrorLog-class.html b/doc/html/api/lxml.etree._RotatingErrorLog-class.html deleted file mode 100644 index 0e04b49..0000000 --- a/doc/html/api/lxml.etree._RotatingErrorLog-class.html +++ /dev/null @@ -1,350 +0,0 @@ - - - - - lxml.etree._RotatingErrorLog - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class _RotatingErrorLog - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class _RotatingErrorLog

-
-   object --+            
-            |            
-_BaseErrorLog --+        
-                |        
-    _ListErrorLog --+    
-                    |    
-            _ErrorLog --+
-                        |
-                       _RotatingErrorLog
-
- -
- - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__init__(...)
- x.__init__(...) initializes x; see help(type(x)) for signature
- - -
- -
- a new object with type S, a subtype of T - - - - - - -
__new__(T, - S, - ...) - - -
- -
-   - - - - - - -
receive(...) - - -
- -
-

Inherited from _ErrorLog: - __exit__, - __iter__, - clear, - copy -

-

Inherited from _ListErrorLog: - __contains__, - __getitem__, - __len__, - __nonzero__, - __repr__, - filter_domains, - filter_from_errors, - filter_from_fatals, - filter_from_level, - filter_from_warnings, - filter_levels, - filter_types -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __reduce__, - __reduce_ex__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from _BaseErrorLog: - last_error -

-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__init__(...) -
(Constructor) -

-
  -
- - x.__init__(...) initializes x; see help(type(x)) for signature -
-
Overrides: - object.__init__ -
-
-
-
- -
- -
- - -
-

__new__(T, - S, - ...) -

-
  -
- - -
-
Returns: a new object with type S, a subtype of T
-
Overrides: - object.__new__ -
-
-
-
- -
- -
- - -
-

receive(...) -

-
  -
- - -
-
Overrides: - _BaseErrorLog.receive -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree._SaxParserTarget-class.html b/doc/html/api/lxml.etree._SaxParserTarget-class.html deleted file mode 100644 index 746c2cf..0000000 --- a/doc/html/api/lxml.etree._SaxParserTarget-class.html +++ /dev/null @@ -1,251 +0,0 @@ - - - - - lxml.etree._SaxParserTarget - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class _SaxParserTarget - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class _SaxParserTarget

-
-object --+
-         |
-        _SaxParserTarget
-
- -
Known Subclasses:
-
- -
- -
- - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
- a new object with type S, a subtype of T - - - - - - -
__new__(T, - S, - ...) - - -
- -
-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __init__, - __reduce__, - __reduce_ex__, - __repr__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__new__(T, - S, - ...) -

-
  -
- - -
-
Returns: a new object with type S, a subtype of T
-
Overrides: - object.__new__ -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree._TargetParserResult-class.html b/doc/html/api/lxml.etree._TargetParserResult-class.html deleted file mode 100644 index 31b6a60..0000000 --- a/doc/html/api/lxml.etree._TargetParserResult-class.html +++ /dev/null @@ -1,259 +0,0 @@ - - - - - lxml.etree._TargetParserResult - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class _TargetParserResult - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class _TargetParserResult

-
-              object --+        
-                       |        
-exceptions.BaseException --+    
-                           |    
-        exceptions.Exception --+
-                               |
-                              _TargetParserResult
-
- -
- - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__init__(...)
- x.__init__(...) initializes x; see help(type(x)) for signature
- - -
- -
-

Inherited from exceptions.Exception: - __new__ -

-

Inherited from exceptions.BaseException: - __delattr__, - __getattribute__, - __getitem__, - __getslice__, - __reduce__, - __repr__, - __setattr__, - __setstate__, - __str__, - __unicode__ -

-

Inherited from object: - __format__, - __hash__, - __reduce_ex__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from exceptions.BaseException: - args, - message -

-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__init__(...) -
(Constructor) -

-
  -
- - x.__init__(...) initializes x; see help(type(x)) for signature -
-
Overrides: - object.__init__ -
(inherited documentation)
- -
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree._Validator-class.html b/doc/html/api/lxml.etree._Validator-class.html deleted file mode 100644 index c66799a..0000000 --- a/doc/html/api/lxml.etree._Validator-class.html +++ /dev/null @@ -1,368 +0,0 @@ - - - - - lxml.etree._Validator - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class _Validator - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class _Validator

-
-object --+
-         |
-        _Validator
-
- -
Known Subclasses:
-
- -
- -
-Base class for XML validators. - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
- a new object with type S, a subtype of T - - - - - - -
__new__(T, - S, - ...) - - -
- -
-   - - - - - - -
_append_log_message(...) - - -
- -
-   - - - - - - -
_clear_error_log(...) - - -
- -
-   - - - - - - -
assertValid(self, - etree)
- Raises DocumentInvalid if the document does not comply with the schema.
- - -
- -
-   - - - - - - -
assert_(self, - etree)
- Raises AssertionError if the document does not comply with the schema.
- - -
- -
-   - - - - - - -
validate(self, - etree)
- Validate the document using this schema.
- - -
- -
-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __init__, - __reduce__, - __reduce_ex__, - __repr__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - - - - -
- - - - - -
Properties[hide private]
-
-   - - error_log
- The log of validation errors and warnings. -
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__new__(T, - S, - ...) -

-
  -
- - -
-
Returns: a new object with type S, a subtype of T
-
Overrides: - object.__new__ -
-
-
-
- -
- -
- - -
-

validate(self, - etree) -

-
  -
- -

Validate the document using this schema.

-

Returns true if document is valid, false if not.

-
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree._XPathEvaluatorBase-class.html b/doc/html/api/lxml.etree._XPathEvaluatorBase-class.html deleted file mode 100644 index 4135dd3..0000000 --- a/doc/html/api/lxml.etree._XPathEvaluatorBase-class.html +++ /dev/null @@ -1,344 +0,0 @@ - - - - - lxml.etree._XPathEvaluatorBase - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class _XPathEvaluatorBase - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class _XPathEvaluatorBase

-
-object --+
-         |
-        _XPathEvaluatorBase
-
- -
Known Subclasses:
-
- -
- -
- - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__init__(...)
- x.__init__(...) initializes x; see help(type(x)) for signature
- - -
- -
- a new object with type S, a subtype of T - - - - - - -
__new__(T, - S, - ...) - - -
- -
-   - - - - - - -
evaluate(self, - _eval_arg, - **_variables)
- Evaluate an XPath expression.
- - -
- -
-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __reduce__, - __reduce_ex__, - __repr__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - - - - -
- - - - - -
Properties[hide private]
-
-   - - error_log -
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__init__(...) -
(Constructor) -

-
  -
- - x.__init__(...) initializes x; see help(type(x)) for signature -
-
Overrides: - object.__init__ -
-
-
-
- -
- -
- - -
-

__new__(T, - S, - ...) -

-
  -
- - -
-
Returns: a new object with type S, a subtype of T
-
Overrides: - object.__new__ -
-
-
-
- -
- -
- - -
-

evaluate(self, - _eval_arg, - **_variables) -

-
  -
- -

Evaluate an XPath expression.

-

Instead of calling this method, you can also call the evaluator object -itself.

-

Variables may be provided as keyword arguments. Note that namespaces -are currently not supported for variables.

-
-
-

Deprecated: - call the object, not its method. -

-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree._XSLTProcessingInstruction-class.html b/doc/html/api/lxml.etree._XSLTProcessingInstruction-class.html deleted file mode 100644 index d0ff1e4..0000000 --- a/doc/html/api/lxml.etree._XSLTProcessingInstruction-class.html +++ /dev/null @@ -1,411 +0,0 @@ - - - - - lxml.etree._XSLTProcessingInstruction - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class _XSLTProcessingInstruction - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class _XSLTProcessingInstruction

-
-         object --+                
-                  |                
-           _Element --+            
-                      |            
-??.__ContentOnlyElement --+        
-                          |        
-     _ProcessingInstruction --+    
-                              |    
-                         PIBase --+
-                                  |
-                                 _XSLTProcessingInstruction
-
- -
- - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
- a new object with type S, a subtype of T - - - - - - -
__new__(T, - S, - ...) - - -
- -
-   - - - - - - -
parseXSL(self, - parser=None)
- Try to parse the stylesheet referenced by this PI and return -an ElementTree for it. If the stylesheet is embedded in the -same document (referenced via xml:id), find and return an -ElementTree for the stylesheet Element.
- - -
- -
-   - - - - - - -
set(self, - key, - value)
- Supports setting the 'href' pseudo-attribute in the text of -the processing instruction.
- - -
- -
-

Inherited from PIBase: - __init__ -

-

Inherited from _ProcessingInstruction: - __repr__, - get -

-

Inherited from unreachable.__ContentOnlyElement: - __delitem__, - __getitem__, - __len__, - __setitem__, - append, - insert, - items, - keys, - values -

-

Inherited from _Element: - __contains__, - __copy__, - __deepcopy__, - __iter__, - __nonzero__, - __reversed__, - addnext, - addprevious, - clear, - extend, - find, - findall, - findtext, - getchildren, - getiterator, - getnext, - getparent, - getprevious, - getroottree, - index, - iter, - iterancestors, - iterchildren, - iterdescendants, - iterfind, - itersiblings, - itertext, - makeelement, - remove, - replace, - xpath -

-

Inherited from _Element (private): - _init -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __reduce__, - __reduce_ex__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from _ProcessingInstruction: - attrib, - tag, - target -

-

Inherited from unreachable.__ContentOnlyElement: - text -

-

Inherited from _Element: - base, - nsmap, - prefix, - sourceline, - tail -

-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__new__(T, - S, - ...) -

-
  -
- - -
-
Returns: a new object with type S, a subtype of T
-
Overrides: - object.__new__ -
-
-
-
- -
- -
- - -
-

parseXSL(self, - parser=None) -

-
  -
- -

Try to parse the stylesheet referenced by this PI and return -an ElementTree for it. If the stylesheet is embedded in the -same document (referenced via xml:id), find and return an -ElementTree for the stylesheet Element.

-

The optional parser keyword argument can be passed to specify the -parser used to read from external stylesheet URLs.

-
-
-
-
- -
- -
- - -
-

set(self, - key, - value) -

-
  -
- - Supports setting the 'href' pseudo-attribute in the text of -the processing instruction. -
-
Overrides: - _Element.set -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree._XSLTResultTree-class.html b/doc/html/api/lxml.etree._XSLTResultTree-class.html deleted file mode 100644 index acc7391..0000000 --- a/doc/html/api/lxml.etree._XSLTResultTree-class.html +++ /dev/null @@ -1,337 +0,0 @@ - - - - - lxml.etree._XSLTResultTree - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class _XSLTResultTree - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class _XSLTResultTree

-
-  object --+    
-           |    
-_ElementTree --+
-               |
-              _XSLTResultTree
-
- -
- - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
- a new object with type S, a subtype of T - - - - - - -
__new__(T, - S, - ...) - - -
- -
-   - - - - - - -
__str__(x)
- str(x)
- - -
- -
-   - - - - - - -
__unicode__(...) - - -
- -
-

Inherited from _ElementTree: - __copy__, - __deepcopy__, - find, - findall, - findtext, - getiterator, - getpath, - getroot, - iter, - iterfind, - parse, - relaxng, - write, - write_c14n, - xinclude, - xmlschema, - xpath, - xslt -

-

Inherited from _ElementTree (private): - _setroot -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __init__, - __reduce__, - __reduce_ex__, - __repr__, - __setattr__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - - - - -
- - - - - -
Properties[hide private]
-
-   - - xslt_profile
- Return an ElementTree with profiling data for the stylesheet run. -
-

Inherited from _ElementTree: - docinfo, - parser -

-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__new__(T, - S, - ...) -

-
  -
- - -
-
Returns: a new object with type S, a subtype of T
-
Overrides: - object.__new__ -
-
-
-
- -
- -
- - -
-

__str__(x) -
(Informal representation operator) -

-
  -
- - str(x) -
-
Overrides: - object.__str__ -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree.iterparse-class.html b/doc/html/api/lxml.etree.iterparse-class.html deleted file mode 100644 index a0e7b0b..0000000 --- a/doc/html/api/lxml.etree.iterparse-class.html +++ /dev/null @@ -1,488 +0,0 @@ - - - - - lxml.etree.iterparse - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class iterparse - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class iterparse

-
- object --+    
-          |    
-_BaseParser --+
-              |
-             iterparse
-
- -
-

iterparse(self, source, events=("end",), tag=None, attribute_defaults=False, dtd_validation=False, load_dtd=False, no_network=True, remove_blank_text=False, remove_comments=False, remove_pis=False, encoding=None, html=False, huge_tree=False, schema=None)

-

Incremental parser.

-

Parses XML into a tree and generates tuples (event, element) in a -SAX-like fashion. event is any of 'start', 'end', 'start-ns', -'end-ns'.

-

For 'start' and 'end', element is the Element that the parser just -found opening or closing. For 'start-ns', it is a tuple (prefix, URI) of -a new namespace declaration. For 'end-ns', it is simply None. Note that -all start and end events are guaranteed to be properly nested.

-

The keyword argument events specifies a sequence of event type names -that should be generated. By default, only 'end' events will be -generated.

-

The additional tag argument restricts the 'start' and 'end' events to -those elements that match the given tag. By default, events are generated -for all elements. Note that the 'start-ns' and 'end-ns' events are not -impacted by this restriction.

-

The other keyword arguments in the constructor are mainly based on the -libxml2 parser configuration. A DTD will also be loaded if validation or -attribute default values are requested.

-
-
Available boolean keyword arguments:
-
    -
  • attribute_defaults: read default attributes from DTD

    -
  • -
  • dtd_validation: validate (if DTD is available)

    -
  • -
  • load_dtd: use DTD for parsing

    -
  • -
  • no_network: prevent network access for related files

    -
  • -
  • remove_blank_text: discard blank text nodes

    -
  • -
  • remove_comments: discard comments

    -
  • -
  • remove_pis: discard processing instructions

    -
  • -
  • strip_cdata: replace CDATA sections by normal text content (default: True)

    -
  • -
  • compact: safe memory for short text content (default: True)

    -
  • -
  • resolve_entities: replace entities by their text value (default: True)

    -
  • -
  • -
    huge_tree: disable security restrictions and support very deep trees
    -

    and very long text content (only affects libxml2 2.7+)

    -
    -
    -
  • -
-
-
Other keyword arguments:
-
    -
  • encoding: override the document encoding
  • -
  • schema: an XMLSchema to validate against
  • -
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__init__(self, - source, - events=("end", - ), - tag=None, - attribute_defaults=False, - dtd_validation=False, - load_dtd=False, - no_network=True, - remove_blank_text=False, - remove_comments=False, - remove_pis=False, - encoding=None, - html=False, - huge_tree=False, - schema=None)
- x.__init__(...) initializes x; see help(type(x)) for signature
- - -
- -
-   - - - - - - -
__iter__(x)
- iter(x)
- - -
- -
- a new object with type S, a subtype of T - - - - - - -
__new__(T, - S, - ...) - - -
- -
-   - - - - - - -
__next__(...) - - -
- -
-   - - - - - - -
copy(self)
- Create a new parser with the same configuration.
- - -
- -
- the next value, or raise StopIteration - - - - - - -
next(x) - - -
- -
-

Inherited from _BaseParser: - makeelement, - setElementClassLookup, - set_element_class_lookup -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __reduce__, - __reduce_ex__, - __repr__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - - - - - - - -
- - - - - -
Properties[hide private]
-
-   - - error_log
- The error log of the last (or current) parser run. -
-   - - root -
-

Inherited from _BaseParser: - resolvers, - target, - version -

-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__init__(self, - source, - events=("end", - ), - tag=None, - attribute_defaults=False, - dtd_validation=False, - load_dtd=False, - no_network=True, - remove_blank_text=False, - remove_comments=False, - remove_pis=False, - encoding=None, - html=False, - huge_tree=False, - schema=None) -
(Constructor) -

-
  -
- - x.__init__(...) initializes x; see help(type(x)) for signature -
-
Overrides: - object.__init__ -
-
-
-
- -
- -
- - -
-

__new__(T, - S, - ...) -

-
  -
- - -
-
Returns: a new object with type S, a subtype of T
-
Overrides: - object.__new__ -
-
-
-
- -
- -
- - -
-

copy(self) -

-
  -
- - Create a new parser with the same configuration. -
-
Overrides: - _BaseParser.copy -
(inherited documentation)
- -
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.etree.iterwalk-class.html b/doc/html/api/lxml.etree.iterwalk-class.html deleted file mode 100644 index 35fac80..0000000 --- a/doc/html/api/lxml.etree.iterwalk-class.html +++ /dev/null @@ -1,345 +0,0 @@ - - - - - lxml.etree.iterwalk - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module etree :: - Class iterwalk - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class iterwalk

-
-object --+
-         |
-        iterwalk
-
- -
-

iterwalk(self, element_or_tree, events=("end",), tag=None)

-

A tree walker that generates events from an existing tree as if it -was parsing XML data with iterparse().

- - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__init__(self, - element_or_tree, - events=("end", - ), - tag=None)
- x.__init__(...) initializes x; see help(type(x)) for signature
- - -
- -
-   - - - - - - -
__iter__(x)
- iter(x)
- - -
- -
- a new object with type S, a subtype of T - - - - - - -
__new__(T, - S, - ...) - - -
- -
-   - - - - - - -
__next__(...) - - -
- -
- the next value, or raise StopIteration - - - - - - -
next(x) - - -
- -
-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __reduce__, - __reduce_ex__, - __repr__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__init__(self, - element_or_tree, - events=("end", - ), - tag=None) -
(Constructor) -

-
  -
- - x.__init__(...) initializes x; see help(type(x)) for signature -
-
Overrides: - object.__init__ -
-
-
-
- -
- -
- - -
-

__new__(T, - S, - ...) -

-
  -
- - -
-
Returns: a new object with type S, a subtype of T
-
Overrides: - object.__new__ -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.html-module.html b/doc/html/api/lxml.html-module.html deleted file mode 100644 index 60cfc36..0000000 --- a/doc/html/api/lxml.html-module.html +++ /dev/null @@ -1,1311 +0,0 @@ - - - - - lxml.html - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package html - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Package html

source code

-The lxml.html tool set for HTML handling. - - - - - - - - -
- - - - - -
Submodules[hide private]
-
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Classes[hide private]
-
-   - - bytes
- str(object) -> string -
-   - - unicode
- str(object) -> string -
-   - - HtmlMixin -
-   - - _MethodFunc
- An object that represents a method on an element as a function; -the function takes either an element or an HTML string. It -returns whatever the function normally returns, or if the function -works in-place (and so returns None) it returns a serialized form -of the resulting document. -
-   - - HtmlComment -
-   - - HtmlElement -
-   - - HtmlProcessingInstruction -
-   - - HtmlEntity -
-   - - HtmlElementClassLookup
- A lookup scheme for HTML Element classes. -
-   - - FormElement
- Represents a <form> element. -
-   - - FieldsDict -
-   - - InputGetter
- An accessor that represents all the input fields in a form. -
-   - - InputMixin
- Mix-in for all input elements (input, select, and textarea) -
-   - - TextareaElement
- <textarea> element. You can get the name with .name and -get/set the value with .value -
-   - - SelectElement
- <select> element. You can get the name with .name. -
-   - - MultipleSelectOptions
- Represents all the selected options in a <select multiple> element. -
-   - - RadioGroup
- This object represents several <input type=radio> elements -that have the same name. -
-   - - CheckboxGroup
- Represents a group of checkboxes (<input type=checkbox>) that -have the same name. -
-   - - CheckboxValues
- Represents the values of the checked checkboxes in a group of -checkboxes with the same name. -
-   - - InputElement
- Represents an <input> element. -
-   - - LabelElement
- Represents a <label> element. -
-   - - HTMLParser
- An HTML parser that is configured to return lxml.html Element -objects. -
-   - - XHTMLParser
- An XML parser that is configured to return lxml.html Element -objects. -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Functions[hide private]
-
-   - - - - - - -
__fix_docstring(s) - source code - -
- -
-   - - - - - - -
_unquote_match(s, - pos) - source code - -
- -
-   - - - - - - -
_transform_result(typ, - result)
- Convert the result back into the input type.
- source code - -
- -
-   - - - - - - -
_nons(tag) - source code - -
- -
-   - - - - - - -
document_fromstring(html, - parser=None, - **kw) - source code - -
- -
-   - - - - - - -
fragments_fromstring(html, - no_leading_text=False, - base_url=None, - parser=None, - **kw)
- Parses several HTML elements, returning a list of elements.
- source code - -
- -
-   - - - - - - -
fragment_fromstring(html, - create_parent=False, - base_url=None, - parser=None, - **kw)
- Parses a single HTML element; it is an error if there is more than -one element, or if anything but whitespace precedes or follows the -element.
- source code - -
- -
-   - - - - - - -
fromstring(html, - base_url=None, - parser=None, - **kw)
- Parse the html, returning a single element/document.
- source code - -
- -
-   - - - - - - -
parse(filename_or_url, - parser=None, - base_url=None, - **kw)
- Parse a filename, URL, or file-like object into an HTML document -tree. Note: this returns a tree, not an element. Use -parse(...).getroot() to get the document root.
- source code - -
- -
-   - - - - - - -
_contains_block_level_tag(el) - source code - -
- -
-   - - - - - - -
_element_name(el) - source code - -
- -
-   - - - - - - -
submit_form(form, - extra_values=None, - open_http=None)
- Helper function to submit a form. Returns a file-like object, as from -urllib.urlopen(). This object also has a .geturl() function, -which shows the URL if there were any redirects.
- source code - -
- -
-   - - - - - - -
open_http_urllib(method, - url, - values) - source code - -
- -
-   - - - - - - -
html_to_xhtml(html)
- Convert all tags in an HTML tree to XHTML by moving them to the -XHTML namespace.
- source code - -
- -
-   - - - - - - -
xhtml_to_html(xhtml)
- Convert all tags in an XHTML tree to HTML by removing their -XHTML namespace.
- source code - -
- -
-   - - - - - - -
__str_replace_meta_content_type(...)
- sub(repl, string[, count = 0]) --> newstring -Return the string obtained by replacing the leftmost non-overlapping -occurrences of pattern in string by the replacement repl.
- source code - -
- -
-   - - - - - - -
__bytes_replace_meta_content_type(...)
- sub(repl, string[, count = 0]) --> newstring -Return the string obtained by replacing the leftmost non-overlapping -occurrences of pattern in string by the replacement repl.
- source code - -
- -
-   - - - - - - -
tostring(doc, - pretty_print=False, - include_meta_content_type=False, - encoding=None, - method='html', - with_tail=True, - doctype=None)
- Return an HTML string representation of the document.
- source code - -
- -
-   - - - - - - -
open_in_browser(doc, - encoding=None)
- Open the HTML document in a web browser, saving it to a temporary -file to open it. Note that this does not delete the file after -use. This is mainly meant for debugging.
- source code - -
- -
-   - - - - - - -
Element(*args, - **kw)
- Create a new HTML Element.
- source code - -
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Variables[hide private]
-
-   - - basestring = str, bytes -
-   - - XHTML_NAMESPACE = 'http://www.w3.org/1999/xhtml' -
-   - - _rel_links_xpath = descendant-or-self::a[@rel]|descendant-or-s... -
-   - - _options_xpath = descendant-or-self::option|descendant-or-self... -
-   - - _forms_xpath = descendant-or-self::form|descendant-or-self::x:... -
-   - - _class_xpath = descendant-or-self::*[@class and contains(conca... -
-   - - _id_xpath = descendant-or-self::*[@id=$id] -
-   - - _collect_string_content = string() -
-   - - _css_url_re = re.compile(r'(?i)url\(("[^"]*"|\'[^\']*\'|[^\)]*... -
-   - - _css_import_re = re.compile(r'@import "(.*?)"') -
-   - - _label_xpath = //label[@for=$id]|//x:label[@for=$id] -
-   - - _archive_re = re.compile(r'[^ ]+') -
-   - - find_rel_links = _MethodFunc('find_rel_links', copy= False) -
-   - - find_class = _MethodFunc('find_class', copy= False) -
-   - - make_links_absolute = _MethodFunc('make_links_absolute', copy=... -
-   - - resolve_base_href = _MethodFunc('resolve_base_href', copy= True) -
-   - - iterlinks = _MethodFunc('iterlinks', copy= False) -
-   - - rewrite_links = _MethodFunc('rewrite_links', copy= True) -
-   - - html_parser = HTMLParser() -
-   - - xhtml_parser = XHTMLParser() -
-   - - __package__ = 'lxml.html' -
- - - - - - -
- - - - - -
Function Details[hide private]
-
- -
- -
- - -
-

fragments_fromstring(html, - no_leading_text=False, - base_url=None, - parser=None, - **kw) -

-
source code  -
- -

Parses several HTML elements, returning a list of elements.

-

The first item in the list may be a string (though leading -whitespace is removed). If no_leading_text is true, then it will -be an error if there is leading text, and it will always be a list -of only elements.

-

base_url will set the document's base_url attribute (and the tree's docinfo.URL)

-
-
-
-
- -
- -
- - -
-

fragment_fromstring(html, - create_parent=False, - base_url=None, - parser=None, - **kw) -

-
source code  -
- -

Parses a single HTML element; it is an error if there is more than -one element, or if anything but whitespace precedes or follows the -element.

-

If create_parent is true (or is a tag name) then a parent node -will be created to encapsulate the HTML in a single element. In -this case, leading or trailing text is allowed.

-

base_url will set the document's base_url attribute (and the tree's docinfo.URL)

-
-
-
-
- -
- -
- - -
-

fromstring(html, - base_url=None, - parser=None, - **kw) -

-
source code  -
- -

Parse the html, returning a single element/document.

-

This tries to minimally parse the chunk of text, without knowing if it -is a fragment or a document.

-

base_url will set the document's base_url attribute (and the tree's docinfo.URL)

-
-
-
-
- -
- -
- - -
-

parse(filename_or_url, - parser=None, - base_url=None, - **kw) -

-
source code  -
- -

Parse a filename, URL, or file-like object into an HTML document -tree. Note: this returns a tree, not an element. Use -parse(...).getroot() to get the document root.

-

You can override the base URL with the base_url keyword. This -is most useful when parsing from a file-like object.

-
-
-
-
- -
- -
- - -
-

submit_form(form, - extra_values=None, - open_http=None) -

-
source code  -
- -

Helper function to submit a form. Returns a file-like object, as from -urllib.urlopen(). This object also has a .geturl() function, -which shows the URL if there were any redirects.

-

You can use this like:

-
-form = doc.forms[0]
-form.inputs['foo'].value = 'bar' # etc
-response = form.submit()
-doc = parse(response)
-doc.make_links_absolute(response.geturl())
-
-

To change the HTTP requester, pass a function as open_http keyword -argument that opens the URL for you. The function must have the following -signature:

-
-open_http(method, URL, values)
-
-

The action is one of 'GET' or 'POST', the URL is the target URL as a -string, and the values are a sequence of (name, value) tuples with the -form data.

-
-
-
-
- -
- -
- - -
-

tostring(doc, - pretty_print=False, - include_meta_content_type=False, - encoding=None, - method='html', - with_tail=True, - doctype=None) -

-
source code  -
- -

Return an HTML string representation of the document.

-

Note: if include_meta_content_type is true this will create a -<meta http-equiv="Content-Type" ...> tag in the head; -regardless of the value of include_meta_content_type any existing -<meta http-equiv="Content-Type" ...> tag will be removed

-

The encoding argument controls the output encoding (defauts to -ASCII, with &#...; character references for any characters outside -of ASCII). Note that you can pass the name 'unicode' as -encoding argument to serialise to a unicode string.

-

The method argument defines the output method. It defaults to -'html', but can also be 'xml' for xhtml output, or 'text' to -serialise to plain text without markup.

-

To leave out the tail text of the top-level element that is being -serialised, pass with_tail=False.

-

The doctype option allows passing in a plain string that will -be serialised before the XML tree. Note that passing in non -well-formed content here will make the XML output non well-formed. -Also, an existing doctype in the document tree will not be removed -when serialising an ElementTree instance.

-

Example:

-
->>> from lxml import html
->>> root = html.fragment_fromstring('<p>Hello<br>world!</p>')
-
->>> html.tostring(root)
-'<p>Hello<br>world!</p>'
->>> html.tostring(root, method='html')
-'<p>Hello<br>world!</p>'
-
->>> html.tostring(root, method='xml')
-'<p>Hello<br/>world!</p>'
-
->>> html.tostring(root, method='text')
-'Helloworld!'
-
->>> html.tostring(root, method='text', encoding=unicode)
-u'Helloworld!'
-
->>> root = html.fragment_fromstring('<div><p>Hello<br>world!</p>TAIL</div>')
->>> html.tostring(root[0], method='text', encoding=unicode)
-u'Helloworld!TAIL'
-
->>> html.tostring(root[0], method='text', encoding=unicode, with_tail=False)
-u'Helloworld!'
-
->>> doc = html.document_fromstring('<p>Hello<br>world!</p>')
->>> html.tostring(doc, method='html', encoding=unicode)
-u'<html><body><p>Hello<br>world!</p></body></html>'
-
->>> print(html.tostring(doc, method='html', encoding=unicode,
-...          doctype='<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"'
-...                  ' "http://www.w3.org/TR/html4/strict.dtd">'))
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
-<html><body><p>Hello<br>world!</p></body></html>
-
-
-
-
-
- -
- -
- - -
-

Element(*args, - **kw) -

-
source code  -
- -

Create a new HTML Element.

-

This can also be used for XHTML documents.

-
-
-
-
-
- - - - - - -
- - - - - -
Variables Details[hide private]
-
- -
- -
-

_rel_links_xpath

- -
-
-
-
Value:
-
-descendant-or-self::a[@rel]|descendant-or-self::x:a[@rel]
-
-
-
-
-
- -
- -
-

_options_xpath

- -
-
-
-
Value:
-
-descendant-or-self::option|descendant-or-self::x:option
-
-
-
-
-
- -
- -
-

_forms_xpath

- -
-
-
-
Value:
-
-descendant-or-self::form|descendant-or-self::x:form
-
-
-
-
-
- -
- -
-

_class_xpath

- -
-
-
-
Value:
-
-descendant-or-self::*[@class and contains(concat(' ', normalize-space(\
-@class), ' '), concat(' ', $class_name, ' '))]
-
-
-
-
-
- -
- -
-

_css_url_re

- -
-
-
-
Value:
-
-re.compile(r'(?i)url\(("[^"]*"|\'[^\']*\'|[^\)]*)\)')
-
-
-
-
-
- -
- -
-

make_links_absolute

- -
-
-
-
Value:
-
-_MethodFunc('make_links_absolute', copy= True)
-
-
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.html-pysrc.html b/doc/html/api/lxml.html-pysrc.html deleted file mode 100644 index 294d420..0000000 --- a/doc/html/api/lxml.html-pysrc.html +++ /dev/null @@ -1,3609 +0,0 @@ - - - - - lxml.html - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package html - - - - - - -
[hide private]
[frames] | no frames]
-
-

Source Code for Package lxml.html

-
-   1  # Copyright (c) 2004 Ian Bicking. All rights reserved. 
-   2  # 
-   3  # Redistribution and use in source and binary forms, with or without 
-   4  # modification, are permitted provided that the following conditions are 
-   5  # met: 
-   6  # 
-   7  # 1. Redistributions of source code must retain the above copyright 
-   8  # notice, this list of conditions and the following disclaimer. 
-   9  # 
-  10  # 2. Redistributions in binary form must reproduce the above copyright 
-  11  # notice, this list of conditions and the following disclaimer in 
-  12  # the documentation and/or other materials provided with the 
-  13  # distribution. 
-  14  # 
-  15  # 3. Neither the name of Ian Bicking nor the names of its contributors may 
-  16  # be used to endorse or promote products derived from this software 
-  17  # without specific prior written permission. 
-  18  # 
-  19  # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 
-  20  # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 
-  21  # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 
-  22  # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL IAN BICKING OR 
-  23  # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 
-  24  # EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 
-  25  # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 
-  26  # PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 
-  27  # LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 
-  28  # NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
-  29  # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
-  30   
-  31  """The ``lxml.html`` tool set for HTML handling. 
-  32  """ 
-  33   
-  34  import threading 
-  35  import re 
-  36  try: 
-  37      from urlparse import urljoin 
-  38  except ImportError: 
-  39      # Python 3 
-  40      from urllib.parse import urljoin 
-  41  import copy 
-  42  from lxml import etree 
-  43  from lxml.html import defs 
-  44  from lxml.html._setmixin import SetMixin 
-  45  try: 
-  46      from collections import MutableMapping as DictMixin 
-  47  except ImportError: 
-  48      # Python < 2.6 
-  49      from UserDict import DictMixin 
-  50  try: 
-  51      set 
-  52  except NameError: 
-  53      # Python 2.3 
-  54      from sets import Set as set 
-  55  try: 
-  56      bytes 
-  57  except NameError: 
-  58      # Python < 2.6 
-  59      bytes = str 
-  60  try: 
-  61      unicode 
-  62  except NameError: 
-  63      # Python 3 
-  64      unicode = str 
-  65  try: 
-  66      basestring 
-  67  except NameError: 
-  68      # Python 3 
-  69      basestring = (str, bytes) 
-  70   
-
71 -def __fix_docstring(s): -
72 if not s: - 73 return s - 74 import sys - 75 if sys.version_info[0] >= 3: - 76 sub = re.compile(r"^(\s*)u'", re.M).sub - 77 else: - 78 sub = re.compile(r"^(\s*)b'", re.M).sub - 79 return sub(r"\1'", s) -
80 - 81 __all__ = [ - 82 'document_fromstring', 'fragment_fromstring', 'fragments_fromstring', 'fromstring', - 83 'tostring', 'Element', 'defs', 'open_in_browser', 'submit_form', - 84 'find_rel_links', 'find_class', 'make_links_absolute', - 85 'resolve_base_href', 'iterlinks', 'rewrite_links', 'open_in_browser', 'parse'] - 86 - 87 XHTML_NAMESPACE = "http://www.w3.org/1999/xhtml" - 88 - 89 _rel_links_xpath = etree.XPath("descendant-or-self::a[@rel]|descendant-or-self::x:a[@rel]", - 90 namespaces={'x':XHTML_NAMESPACE}) - 91 _options_xpath = etree.XPath("descendant-or-self::option|descendant-or-self::x:option", - 92 namespaces={'x':XHTML_NAMESPACE}) - 93 _forms_xpath = etree.XPath("descendant-or-self::form|descendant-or-self::x:form", - 94 namespaces={'x':XHTML_NAMESPACE}) - 95 #_class_xpath = etree.XPath(r"descendant-or-self::*[regexp:match(@class, concat('\b', $class_name, '\b'))]", {'regexp': 'http://exslt.org/regular-expressions'}) - 96 _class_xpath = etree.XPath("descendant-or-self::*[@class and contains(concat(' ', normalize-space(@class), ' '), concat(' ', $class_name, ' '))]") - 97 _id_xpath = etree.XPath("descendant-or-self::*[@id=$id]") - 98 _collect_string_content = etree.XPath("string()") - 99 _css_url_re = re.compile(r'url\(('+'["][^"]*["]|'+"['][^']*[']|"+r'[^)]*)\)', re.I) - 100 _css_import_re = re.compile(r'@import "(.*?)"') - 101 _label_xpath = etree.XPath("//label[@for=$id]|//x:label[@for=$id]", - 102 namespaces={'x':XHTML_NAMESPACE}) - 103 _archive_re = re.compile(r'[^ ]+') - 104 -
105 -def _unquote_match(s, pos): -
106 if s[:1] == '"' and s[-1:] == '"' or s[:1] == "'" and s[-1:] == "'": - 107 return s[1:-1], pos+1 - 108 else: - 109 return s,pos -
110 -
111 -def _transform_result(typ, result): -
112 """Convert the result back into the input type. - 113 """ - 114 if issubclass(typ, bytes): - 115 return tostring(result, encoding='utf-8') - 116 elif issubclass(typ, unicode): - 117 return tostring(result, encoding=unicode) - 118 else: - 119 return result -
120 -
121 -def _nons(tag): -
122 if isinstance(tag, basestring): - 123 if tag[0] == '{' and tag[1:len(XHTML_NAMESPACE)+1] == XHTML_NAMESPACE: - 124 return tag.split('}')[-1] - 125 return tag -
126 -
127 -class HtmlMixin(object): -
128 -
129 - def base_url(self): -
130 """ - 131 Returns the base URL, given when the page was parsed. - 132 - 133 Use with ``urlparse.urljoin(el.base_url, href)`` to get - 134 absolute URLs. - 135 """ - 136 return self.getroottree().docinfo.URL -
137 base_url = property(base_url, doc=base_url.__doc__) - 138 -
139 - def forms(self): -
140 """ - 141 Return a list of all the forms - 142 """ - 143 return _forms_xpath(self) -
144 forms = property(forms, doc=forms.__doc__) - 145 -
146 - def body(self): -
147 """ - 148 Return the <body> element. Can be called from a child element - 149 to get the document's head. - 150 """ - 151 return self.xpath('//body|//x:body', namespaces={'x':XHTML_NAMESPACE})[0] -
152 body = property(body, doc=body.__doc__) - 153 -
154 - def head(self): -
155 """ - 156 Returns the <head> element. Can be called from a child - 157 element to get the document's head. - 158 """ - 159 return self.xpath('//head|//x:head', namespaces={'x':XHTML_NAMESPACE})[0] -
160 head = property(head, doc=head.__doc__) - 161 -
162 - def _label__get(self): -
163 """ - 164 Get or set any <label> element associated with this element. - 165 """ - 166 id = self.get('id') - 167 if not id: - 168 return None - 169 result = _label_xpath(self, id=id) - 170 if not result: - 171 return None - 172 else: - 173 return result[0] -
174 - def _label__set(self, label): -
175 id = self.get('id') - 176 if not id: - 177 raise TypeError( - 178 "You cannot set a label for an element (%r) that has no id" - 179 % self) - 180 if _nons(label.tag) != 'label': - 181 raise TypeError( - 182 "You can only assign label to a label element (not %r)" - 183 % label) - 184 label.set('for', id) -
185 - def _label__del(self): -
186 label = self.label - 187 if label is not None: - 188 del label.attrib['for'] -
189 label = property(_label__get, _label__set, _label__del, doc=_label__get.__doc__) - 190 -
191 - def drop_tree(self): -
192 """ - 193 Removes this element from the tree, including its children and - 194 text. The tail text is joined to the previous element or - 195 parent. - 196 """ - 197 parent = self.getparent() - 198 assert parent is not None - 199 if self.tail: - 200 previous = self.getprevious() - 201 if previous is None: - 202 parent.text = (parent.text or '') + self.tail - 203 else: - 204 previous.tail = (previous.tail or '') + self.tail - 205 parent.remove(self) -
206 -
207 - def drop_tag(self): -
208 """ - 209 Remove the tag, but not its children or text. The children and text - 210 are merged into the parent. - 211 - 212 Example:: - 213 - 214 >>> h = fragment_fromstring('<div>Hello <b>World!</b></div>') - 215 >>> h.find('.//b').drop_tag() - 216 >>> print(tostring(h, encoding=unicode)) - 217 <div>Hello World!</div> - 218 """ - 219 parent = self.getparent() - 220 assert parent is not None - 221 previous = self.getprevious() - 222 if self.text and isinstance(self.tag, basestring): - 223 # not a Comment, etc. - 224 if previous is None: - 225 parent.text = (parent.text or '') + self.text - 226 else: - 227 previous.tail = (previous.tail or '') + self.text - 228 if self.tail: - 229 if len(self): - 230 last = self[-1] - 231 last.tail = (last.tail or '') + self.tail - 232 elif previous is None: - 233 parent.text = (parent.text or '') + self.tail - 234 else: - 235 previous.tail = (previous.tail or '') + self.tail - 236 index = parent.index(self) - 237 parent[index:index+1] = self[:] -
238 - 246 -
247 - def find_class(self, class_name): -
248 """ - 249 Find any elements with the given class name. - 250 """ - 251 return _class_xpath(self, class_name=class_name) -
252 -
253 - def get_element_by_id(self, id, *default): -
254 """ - 255 Get the first element in a document with the given id. If none is - 256 found, return the default argument if provided or raise KeyError - 257 otherwise. - 258 - 259 Note that there can be more than one element with the same id, - 260 and this isn't uncommon in HTML documents found in the wild. - 261 Browsers return only the first match, and this function does - 262 the same. - 263 """ - 264 try: - 265 # FIXME: should this check for multiple matches? - 266 # browsers just return the first one - 267 return _id_xpath(self, id=id)[0] - 268 except IndexError: - 269 if default: - 270 return default[0] - 271 else: - 272 raise KeyError(id) -
273 -
274 - def text_content(self): -
275 """ - 276 Return the text content of the tag (and the text in any children). - 277 """ - 278 return _collect_string_content(self) -
279 -
280 - def cssselect(self, expr, translator='html'): -
281 """ - 282 Run the CSS expression on this element and its children, - 283 returning a list of the results. - 284 - 285 Equivalent to lxml.cssselect.CSSSelect(expr, translator='html')(self) - 286 -- note that pre-compiling the expression can provide a substantial - 287 speedup. - 288 """ - 289 # Do the import here to make the dependency optional. - 290 from lxml.cssselect import CSSSelector - 291 return CSSSelector(expr, translator=translator)(self) -
292 - 293 ######################################## - 294 ## Link functions - 295 ######################################## - 296 - 316 self.rewrite_links(link_repl) -
317 -
318 - def resolve_base_href(self): -
319 """ - 320 Find any ``<base href>`` tag in the document, and apply its - 321 values to all links found in the document. Also remove the - 322 tag once it has been applied. - 323 """ - 324 base_href = None - 325 basetags = self.xpath('//base[@href]|//x:base[@href]', namespaces={'x':XHTML_NAMESPACE}) - 326 for b in basetags: - 327 base_href = b.get('href') - 328 b.drop_tree() - 329 if not base_href: - 330 return - 331 self.make_links_absolute(base_href, resolve_base_href=False) -
332 - 411 - 458 - 459 -
460 -class _MethodFunc(object): -
461 """ - 462 An object that represents a method on an element as a function; - 463 the function takes either an element or an HTML string. It - 464 returns whatever the function normally returns, or if the function - 465 works in-place (and so returns None) it returns a serialized form - 466 of the resulting document. - 467 """ -
468 - def __init__(self, name, copy=False, source_class=HtmlMixin): -
469 self.name = name - 470 self.copy = copy - 471 self.__doc__ = getattr(source_class, self.name).__doc__ -
472 - def __call__(self, doc, *args, **kw): -
473 result_type = type(doc) - 474 if isinstance(doc, basestring): - 475 if 'copy' in kw: - 476 raise TypeError( - 477 "The keyword 'copy' can only be used with element inputs to %s, not a string input" % self.name) - 478 doc = fromstring(doc, **kw) - 479 else: - 480 if 'copy' in kw: - 481 make_a_copy = kw.pop('copy') - 482 else: - 483 make_a_copy = self.copy - 484 if make_a_copy: - 485 doc = copy.deepcopy(doc) - 486 meth = getattr(doc, self.name) - 487 result = meth(*args, **kw) - 488 # FIXME: this None test is a bit sloppy - 489 if result is None: - 490 # Then return what we got in - 491 return _transform_result(result_type, doc) - 492 else: - 493 return result -
494 - 495 find_rel_links = _MethodFunc('find_rel_links', copy=False) - 496 find_class = _MethodFunc('find_class', copy=False) - 497 make_links_absolute = _MethodFunc('make_links_absolute', copy=True) - 498 resolve_base_href = _MethodFunc('resolve_base_href', copy=True) - 499 iterlinks = _MethodFunc('iterlinks', copy=False) - 500 rewrite_links = _MethodFunc('rewrite_links', copy=True) - 501 -
502 -class HtmlComment(etree.CommentBase, HtmlMixin): -
503 pass -
504 -
505 -class HtmlElement(etree.ElementBase, HtmlMixin): -
506 pass -
507 -
508 -class HtmlProcessingInstruction(etree.PIBase, HtmlMixin): -
509 pass -
510 -
511 -class HtmlEntity(etree.EntityBase, HtmlMixin): -
512 pass -
513 - 514 -
515 -class HtmlElementClassLookup(etree.CustomElementClassLookup): -
516 """A lookup scheme for HTML Element classes. - 517 - 518 To create a lookup instance with different Element classes, pass a tag - 519 name mapping of Element classes in the ``classes`` keyword argument and/or - 520 a tag name mapping of Mixin classes in the ``mixins`` keyword argument. - 521 The special key '*' denotes a Mixin class that should be mixed into all - 522 Element classes. - 523 """ - 524 _default_element_classes = {} - 525 -
526 - def __init__(self, classes=None, mixins=None): -
527 etree.CustomElementClassLookup.__init__(self) - 528 if classes is None: - 529 classes = self._default_element_classes.copy() - 530 if mixins: - 531 mixers = {} - 532 for name, value in mixins: - 533 if name == '*': - 534 for n in classes.keys(): - 535 mixers.setdefault(n, []).append(value) - 536 else: - 537 mixers.setdefault(name, []).append(value) - 538 for name, mix_bases in mixers.items(): - 539 cur = classes.get(name, HtmlElement) - 540 bases = tuple(mix_bases + [cur]) - 541 classes[name] = type(cur.__name__, bases, {}) - 542 self._element_classes = classes -
543 -
544 - def lookup(self, node_type, document, namespace, name): -
545 if node_type == 'element': - 546 return self._element_classes.get(name.lower(), HtmlElement) - 547 elif node_type == 'comment': - 548 return HtmlComment - 549 elif node_type == 'PI': - 550 return HtmlProcessingInstruction - 551 elif node_type == 'entity': - 552 return HtmlEntity - 553 # Otherwise normal lookup - 554 return None -
555 - 556 ################################################################################ - 557 # parsing - 558 ################################################################################ - 559 -
560 -def document_fromstring(html, parser=None, **kw): -
561 if parser is None: - 562 parser = html_parser - 563 value = etree.fromstring(html, parser, **kw) - 564 if value is None: - 565 raise etree.ParserError( - 566 "Document is empty") - 567 return value -
568 -
569 -def fragments_fromstring(html, no_leading_text=False, base_url=None, - 570 parser=None, **kw): -
571 """ - 572 Parses several HTML elements, returning a list of elements. - 573 - 574 The first item in the list may be a string (though leading - 575 whitespace is removed). If no_leading_text is true, then it will - 576 be an error if there is leading text, and it will always be a list - 577 of only elements. - 578 - 579 base_url will set the document's base_url attribute (and the tree's docinfo.URL) - 580 """ - 581 if parser is None: - 582 parser = html_parser - 583 # FIXME: check what happens when you give html with a body, head, etc. - 584 start = html[:20].lstrip().lower() - 585 if not start.startswith('<html') and not start.startswith('<!doctype'): - 586 html = '<html><body>%s</body></html>' % html - 587 doc = document_fromstring(html, parser=parser, base_url=base_url, **kw) - 588 assert _nons(doc.tag) == 'html' - 589 bodies = [e for e in doc if _nons(e.tag) == 'body'] - 590 assert len(bodies) == 1, ("too many bodies: %r in %r" % (bodies, html)) - 591 body = bodies[0] - 592 elements = [] - 593 if no_leading_text and body.text and body.text.strip(): - 594 raise etree.ParserError( - 595 "There is leading text: %r" % body.text) - 596 if body.text and body.text.strip(): - 597 elements.append(body.text) - 598 elements.extend(body) - 599 # FIXME: removing the reference to the parent artificial document - 600 # would be nice - 601 return elements -
602 -
603 -def fragment_fromstring(html, create_parent=False, base_url=None, - 604 parser=None, **kw): -
605 """ - 606 Parses a single HTML element; it is an error if there is more than - 607 one element, or if anything but whitespace precedes or follows the - 608 element. - 609 - 610 If create_parent is true (or is a tag name) then a parent node - 611 will be created to encapsulate the HTML in a single element. In - 612 this case, leading or trailing text is allowed. - 613 - 614 base_url will set the document's base_url attribute (and the tree's docinfo.URL) - 615 """ - 616 if parser is None: - 617 parser = html_parser - 618 - 619 accept_leading_text = bool(create_parent) - 620 - 621 elements = fragments_fromstring( - 622 html, parser=parser, no_leading_text=not accept_leading_text, - 623 base_url=base_url, **kw) - 624 - 625 if create_parent: - 626 if not isinstance(create_parent, basestring): - 627 create_parent = 'div' - 628 new_root = Element(create_parent) - 629 if elements: - 630 if isinstance(elements[0], basestring): - 631 new_root.text = elements[0] - 632 del elements[0] - 633 new_root.extend(elements) - 634 return new_root - 635 - 636 if not elements: - 637 raise etree.ParserError('No elements found') - 638 if len(elements) > 1: - 639 raise etree.ParserError( - 640 "Multiple elements found (%s)" - 641 % ', '.join([_element_name(e) for e in elements])) - 642 el = elements[0] - 643 if el.tail and el.tail.strip(): - 644 raise etree.ParserError( - 645 "Element followed by text: %r" % el.tail) - 646 el.tail = None - 647 return el -
648 -
649 -def fromstring(html, base_url=None, parser=None, **kw): -
650 """ - 651 Parse the html, returning a single element/document. - 652 - 653 This tries to minimally parse the chunk of text, without knowing if it - 654 is a fragment or a document. - 655 - 656 base_url will set the document's base_url attribute (and the tree's docinfo.URL) - 657 """ - 658 if parser is None: - 659 parser = html_parser - 660 start = html[:10].lstrip().lower() - 661 if start.startswith('<html') or start.startswith('<!doctype'): - 662 # Looks like a full HTML document - 663 return document_fromstring(html, parser=parser, base_url=base_url, **kw) - 664 # otherwise, lets parse it out... - 665 doc = document_fromstring(html, parser=parser, base_url=base_url, **kw) - 666 bodies = doc.findall('body') - 667 if not bodies: - 668 bodies = doc.findall('{%s}body' % XHTML_NAMESPACE) - 669 if bodies: - 670 body = bodies[0] - 671 if len(bodies) > 1: - 672 # Somehow there are multiple bodies, which is bad, but just - 673 # smash them into one body - 674 for other_body in bodies[1:]: - 675 if other_body.text: - 676 if len(body): - 677 body[-1].tail = (body[-1].tail or '') + other_body.text - 678 else: - 679 body.text = (body.text or '') + other_body.text - 680 body.extend(other_body) - 681 # We'll ignore tail - 682 # I guess we are ignoring attributes too - 683 other_body.drop_tree() - 684 else: - 685 body = None - 686 heads = doc.findall('head') - 687 if not heads: - 688 heads = doc.findall('{%s}head' % XHTML_NAMESPACE) - 689 if heads: - 690 # Well, we have some sort of structure, so lets keep it all - 691 head = heads[0] - 692 if len(heads) > 1: - 693 for other_head in heads[1:]: - 694 head.extend(other_head) - 695 # We don't care about text or tail in a head - 696 other_head.drop_tree() - 697 return doc - 698 if (len(body) == 1 and (not body.text or not body.text.strip()) - 699 and (not body[-1].tail or not body[-1].tail.strip())): - 700 # The body has just one element, so it was probably a single - 701 # element passed in - 702 return body[0] - 703 # Now we have a body which represents a bunch of tags which have the - 704 # content that was passed in. We will create a fake container, which - 705 # is the body tag, except <body> implies too much structure. - 706 if _contains_block_level_tag(body): - 707 body.tag = 'div' - 708 else: - 709 body.tag = 'span' - 710 return body -
711 -
712 -def parse(filename_or_url, parser=None, base_url=None, **kw): -
713 """ - 714 Parse a filename, URL, or file-like object into an HTML document - 715 tree. Note: this returns a tree, not an element. Use - 716 ``parse(...).getroot()`` to get the document root. - 717 - 718 You can override the base URL with the ``base_url`` keyword. This - 719 is most useful when parsing from a file-like object. - 720 """ - 721 if parser is None: - 722 parser = html_parser - 723 return etree.parse(filename_or_url, parser, base_url=base_url, **kw) -
724 -
726 # FIXME: I could do this with XPath, but would that just be - 727 # unnecessarily slow? - 728 for el in el.iter(): - 729 if _nons(el.tag) in defs.block_tags: - 730 return True - 731 return False -
732 -
733 -def _element_name(el): -
734 if isinstance(el, etree.CommentBase): - 735 return 'comment' - 736 elif isinstance(el, basestring): - 737 return 'string' - 738 else: - 739 return _nons(el.tag) -
740 - 741 ################################################################################ - 742 # form handling - 743 ################################################################################ - 744 -
745 -class FormElement(HtmlElement): -
746 """ - 747 Represents a <form> element. - 748 """ - 749 -
750 - def inputs(self): -
751 """ - 752 Returns an accessor for all the input elements in the form. - 753 - 754 See `InputGetter` for more information about the object. - 755 """ - 756 return InputGetter(self) -
757 inputs = property(inputs, doc=inputs.__doc__) - 758 -
759 - def _fields__get(self): -
760 """ - 761 Dictionary-like object that represents all the fields in this - 762 form. You can set values in this dictionary to effect the - 763 form. - 764 """ - 765 return FieldsDict(self.inputs) -
766 - def _fields__set(self, value): -
767 prev_keys = self.fields.keys() - 768 for key, value in value.iteritems(): - 769 if key in prev_keys: - 770 prev_keys.remove(key) - 771 self.fields[key] = value - 772 for key in prev_keys: - 773 if key is None: - 774 # Case of an unnamed input; these aren't really - 775 # expressed in form_values() anyway. - 776 continue - 777 self.fields[key] = None -
778 - 779 fields = property(_fields__get, _fields__set, doc=_fields__get.__doc__) - 780 -
781 - def _name(self): -
782 if self.get('name'): - 783 return self.get('name') - 784 elif self.get('id'): - 785 return '#' + self.get('id') - 786 forms = list(self.body.iter('form')) - 787 if not forms: - 788 forms = list(self.body.iter('{%s}form' % XHTML_NAMESPACE)) - 789 return str(forms.index(self)) -
790 -
791 - def form_values(self): -
792 """ - 793 Return a list of tuples of the field values for the form. - 794 This is suitable to be passed to ``urllib.urlencode()``. - 795 """ - 796 results = [] - 797 for el in self.inputs: - 798 name = el.name - 799 if not name: - 800 continue - 801 tag = _nons(el.tag) - 802 if tag == 'textarea': - 803 results.append((name, el.value)) - 804 elif tag == 'select': - 805 value = el.value - 806 if el.multiple: - 807 for v in value: - 808 results.append((name, v)) - 809 elif value is not None: - 810 results.append((name, el.value)) - 811 else: - 812 assert tag == 'input', ( - 813 "Unexpected tag: %r" % el) - 814 if el.checkable and not el.checked: - 815 continue - 816 if el.type in ('submit', 'image', 'reset'): - 817 continue - 818 value = el.value - 819 if value is not None: - 820 results.append((name, el.value)) - 821 return results -
822 -
823 - def _action__get(self): -
824 """ - 825 Get/set the form's ``action`` attribute. - 826 """ - 827 base_url = self.base_url - 828 action = self.get('action') - 829 if base_url and action is not None: - 830 return urljoin(base_url, action) - 831 else: - 832 return action -
833 - def _action__set(self, value): -
834 self.set('action', value) -
835 - def _action__del(self): -
836 if 'action' in self.attrib: - 837 del self.attrib['action'] -
838 action = property(_action__get, _action__set, _action__del, doc=_action__get.__doc__) - 839 -
840 - def _method__get(self): -
841 """ - 842 Get/set the form's method. Always returns a capitalized - 843 string, and defaults to ``'GET'`` - 844 """ - 845 return self.get('method', 'GET').upper() -
846 - def _method__set(self, value): -
847 self.set('method', value.upper()) -
848 method = property(_method__get, _method__set, doc=_method__get.__doc__) -
849 - 850 HtmlElementClassLookup._default_element_classes['form'] = FormElement - 851 -
852 -def submit_form(form, extra_values=None, open_http=None): -
853 """ - 854 Helper function to submit a form. Returns a file-like object, as from - 855 ``urllib.urlopen()``. This object also has a ``.geturl()`` function, - 856 which shows the URL if there were any redirects. - 857 - 858 You can use this like:: - 859 - 860 form = doc.forms[0] - 861 form.inputs['foo'].value = 'bar' # etc - 862 response = form.submit() - 863 doc = parse(response) - 864 doc.make_links_absolute(response.geturl()) - 865 - 866 To change the HTTP requester, pass a function as ``open_http`` keyword - 867 argument that opens the URL for you. The function must have the following - 868 signature:: - 869 - 870 open_http(method, URL, values) - 871 - 872 The action is one of 'GET' or 'POST', the URL is the target URL as a - 873 string, and the values are a sequence of ``(name, value)`` tuples with the - 874 form data. - 875 """ - 876 values = form.form_values() - 877 if extra_values: - 878 if hasattr(extra_values, 'items'): - 879 extra_values = extra_values.items() - 880 values.extend(extra_values) - 881 if open_http is None: - 882 open_http = open_http_urllib - 883 if form.action: - 884 url = form.action - 885 else: - 886 url = form.base_url - 887 return open_http(form.method, url, values) -
888 -
889 -def open_http_urllib(method, url, values): -
890 if not url: - 891 raise ValueError("cannot submit, no URL provided") - 892 ## FIXME: should test that it's not a relative URL or something - 893 try: - 894 from urllib import urlencode, urlopen - 895 except ImportError: # Python 3 - 896 from urllib.request import urlopen - 897 from urllib.parse import urlencode - 898 if method == 'GET': - 899 if '?' in url: - 900 url += '&' - 901 else: - 902 url += '?' - 903 url += urlencode(values) - 904 data = None - 905 else: - 906 data = urlencode(values) - 907 return urlopen(url, data) -
908 -
909 -class FieldsDict(DictMixin): -
910 -
911 - def __init__(self, inputs): -
912 self.inputs = inputs -
913 - def __getitem__(self, item): -
914 return self.inputs[item].value -
915 - def __setitem__(self, item, value): -
916 self.inputs[item].value = value -
917 - def __delitem__(self, item): -
918 raise KeyError( - 919 "You cannot remove keys from ElementDict") -
920 - def keys(self): -
921 return self.inputs.keys() -
922 - def __contains__(self, item): -
923 return item in self.inputs -
924 - def __iter__(self): -
925 return iter(self.inputs.keys()) -
926 - def __len__(self): -
927 return len(self.inputs) -
928 -
929 - def __repr__(self): -
930 return '<%s for form %s>' % ( - 931 self.__class__.__name__, - 932 self.inputs.form._name()) -
933 -
934 -class InputGetter(object): -
935 - 936 """ - 937 An accessor that represents all the input fields in a form. - 938 - 939 You can get fields by name from this, with - 940 ``form.inputs['field_name']``. If there are a set of checkboxes - 941 with the same name, they are returned as a list (a `CheckboxGroup` - 942 which also allows value setting). Radio inputs are handled - 943 similarly. - 944 - 945 You can also iterate over this to get all input elements. This - 946 won't return the same thing as if you get all the names, as - 947 checkboxes and radio elements are returned individually. - 948 """ - 949 - 950 _name_xpath = etree.XPath(".//*[@name = $name and (local-name(.) = 'select' or local-name(.) = 'input' or local-name(.) = 'textarea')]") - 951 _all_xpath = etree.XPath(".//*[local-name() = 'select' or local-name() = 'input' or local-name() = 'textarea']") - 952 -
953 - def __init__(self, form): -
954 self.form = form -
955 -
956 - def __repr__(self): -
957 return '<%s for form %s>' % ( - 958 self.__class__.__name__, - 959 self.form._name()) -
960 - 961 ## FIXME: there should be more methods, and it's unclear if this is - 962 ## a dictionary-like object or list-like object - 963 -
964 - def __getitem__(self, name): -
965 results = self._name_xpath(self.form, name=name) - 966 if results: - 967 type = results[0].get('type') - 968 if type == 'radio' and len(results) > 1: - 969 group = RadioGroup(results) - 970 group.name = name - 971 return group - 972 elif type == 'checkbox' and len(results) > 1: - 973 group = CheckboxGroup(results) - 974 group.name = name - 975 return group - 976 else: - 977 # I don't like throwing away elements like this - 978 return results[0] - 979 else: - 980 raise KeyError( - 981 "No input element with the name %r" % name) -
982 -
983 - def __contains__(self, name): -
984 results = self._name_xpath(self.form, name=name) - 985 return bool(results) -
986 -
987 - def keys(self): -
988 names = set() - 989 for el in self: - 990 names.add(el.name) - 991 if None in names: - 992 names.remove(None) - 993 return list(names) -
994 -
995 - def __iter__(self): -
996 ## FIXME: kind of dumb to turn a list into an iterator, only - 997 ## to have it likely turned back into a list again :( - 998 return iter(self._all_xpath(self.form)) -
999 -
1000 -class InputMixin(object): -
1001 -1002 """ -1003 Mix-in for all input elements (input, select, and textarea) -1004 """ -1005 -1006 -
1007 - def _name__get(self): -
1008 """ -1009 Get/set the name of the element -1010 """ -1011 return self.get('name') -
1012 - def _name__set(self, value): -
1013 self.set('name', value) -
1014 - def _name__del(self): -
1015 if 'name' in self.attrib: -1016 del self.attrib['name'] -
1017 name = property(_name__get, _name__set, _name__del, doc=_name__get.__doc__) -1018 -
1019 - def __repr__(self): -
1020 type = getattr(self, 'type', None) -1021 if type: -1022 type = ' type=%r' % type -1023 else: -1024 type = '' -1025 return '<%s %x name=%r%s>' % ( -1026 self.__class__.__name__, id(self), self.name, type) -
1027 -
1028 -class TextareaElement(InputMixin, HtmlElement): -
1029 """ -1030 ``<textarea>`` element. You can get the name with ``.name`` and -1031 get/set the value with ``.value`` -1032 """ -1033 -
1034 - def _value__get(self): -
1035 """ -1036 Get/set the value (which is the contents of this element) -1037 """ -1038 content = self.text or '' -1039 if self.tag.startswith("{%s}" % XHTML_NAMESPACE): -1040 serialisation_method = 'xml' -1041 else: -1042 serialisation_method = 'html' -1043 for el in self: -1044 # it's rare that we actually get here, so let's not use ''.join() -1045 content += etree.tostring(el, method=serialisation_method, encoding=unicode) -1046 return content -
1047 - def _value__set(self, value): -
1048 del self[:] -1049 self.text = value -
1050 - def _value__del(self): -
1051 self.text = '' -1052 del self[:] -
1053 value = property(_value__get, _value__set, _value__del, doc=_value__get.__doc__) -
1054 -1055 HtmlElementClassLookup._default_element_classes['textarea'] = TextareaElement -1056 -
1057 -class SelectElement(InputMixin, HtmlElement): -
1058 """ -1059 ``<select>`` element. You can get the name with ``.name``. -1060 -1061 ``.value`` will be the value of the selected option, unless this -1062 is a multi-select element (``<select multiple>``), in which case -1063 it will be a set-like object. In either case ``.value_options`` -1064 gives the possible values. -1065 -1066 The boolean attribute ``.multiple`` shows if this is a -1067 multi-select. -1068 """ -1069 -
1070 - def _value__get(self): -
1071 """ -1072 Get/set the value of this select (the selected option). -1073 -1074 If this is a multi-select, this is a set-like object that -1075 represents all the selected options. -1076 """ -1077 if self.multiple: -1078 return MultipleSelectOptions(self) -1079 for el in _options_xpath(self): -1080 if el.get('selected') is not None: -1081 value = el.get('value') -1082 if value is None: -1083 value = el.text or '' -1084 if value: -1085 value = value.strip() -1086 return value -1087 return None -
1088 -
1089 - def _value__set(self, value): -
1090 if self.multiple: -1091 if isinstance(value, basestring): -1092 raise TypeError( -1093 "You must pass in a sequence") -1094 self.value.clear() -1095 self.value.update(value) -1096 return -1097 if value is not None: -1098 value = value.strip() -1099 for el in _options_xpath(self): -1100 opt_value = el.get('value') -1101 if opt_value is None: -1102 opt_value = el.text or '' -1103 if opt_value: -1104 opt_value = opt_value.strip() -1105 if opt_value == value: -1106 checked_option = el -1107 break -1108 else: -1109 raise ValueError( -1110 "There is no option with the value of %r" % value) -1111 for el in _options_xpath(self): -1112 if 'selected' in el.attrib: -1113 del el.attrib['selected'] -1114 if value is not None: -1115 checked_option.set('selected', '') -
1116 -
1117 - def _value__del(self): -
1118 # FIXME: should del be allowed at all? -1119 if self.multiple: -1120 self.value.clear() -1121 else: -1122 self.value = None -
1123 -1124 value = property(_value__get, _value__set, _value__del, doc=_value__get.__doc__) -1125 -
1126 - def value_options(self): -
1127 """ -1128 All the possible values this select can have (the ``value`` -1129 attribute of all the ``<option>`` elements. -1130 """ -1131 options = [] -1132 for el in _options_xpath(self): -1133 value = el.get('value') -1134 if value is None: -1135 value = el.text or '' -1136 if value: -1137 value = value.strip() -1138 options.append(value) -1139 return options -
1140 value_options = property(value_options, doc=value_options.__doc__) -1141 -
1142 - def _multiple__get(self): -
1143 """ -1144 Boolean attribute: is there a ``multiple`` attribute on this element. -1145 """ -1146 return 'multiple' in self.attrib -
1147 - def _multiple__set(self, value): -
1148 if value: -1149 self.set('multiple', '') -1150 elif 'multiple' in self.attrib: -1151 del self.attrib['multiple'] -
1152 multiple = property(_multiple__get, _multiple__set, doc=_multiple__get.__doc__) -
1153 -1154 HtmlElementClassLookup._default_element_classes['select'] = SelectElement -1155 -
1156 -class MultipleSelectOptions(SetMixin): -
1157 """ -1158 Represents all the selected options in a ``<select multiple>`` element. -1159 -1160 You can add to this set-like option to select an option, or remove -1161 to unselect the option. -1162 """ -1163 -
1164 - def __init__(self, select): -
1165 self.select = select -
1166 -
1167 - def options(self): -
1168 """ -1169 Iterator of all the ``<option>`` elements. -1170 """ -1171 return iter(_options_xpath(self.select)) -
1172 options = property(options) -1173 -
1174 - def __iter__(self): -
1175 for option in self.options: -1176 if 'selected' in option.attrib: -1177 opt_value = option.get('value') -1178 if opt_value is None: -1179 opt_value = option.text or '' -1180 if opt_value: -1181 opt_value = opt_value.strip() -1182 yield opt_value -
1183 -
1184 - def add(self, item): -
1185 for option in self.options: -1186 opt_value = option.get('value') -1187 if opt_value is None: -1188 opt_value = option.text or '' -1189 if opt_value: -1190 opt_value = opt_value.strip() -1191 if opt_value == item: -1192 option.set('selected', '') -1193 break -1194 else: -1195 raise ValueError( -1196 "There is no option with the value %r" % item) -
1197 -
1198 - def remove(self, item): -
1199 for option in self.options: -1200 opt_value = option.get('value') -1201 if opt_value is None: -1202 opt_value = option.text or '' -1203 if opt_value: -1204 opt_value = opt_value.strip() -1205 if opt_value == item: -1206 if 'selected' in option.attrib: -1207 del option.attrib['selected'] -1208 else: -1209 raise ValueError( -1210 "The option %r is not currently selected" % item) -1211 break -1212 else: -1213 raise ValueError( -1214 "There is not option with the value %r" % item) -
1215 -
1216 - def __repr__(self): -
1217 return '<%s {%s} for select name=%r>' % ( -1218 self.__class__.__name__, -1219 ', '.join([repr(v) for v in self]), -1220 self.select.name) -
1221 -
1222 -class RadioGroup(list): -
1223 """ -1224 This object represents several ``<input type=radio>`` elements -1225 that have the same name. -1226 -1227 You can use this like a list, but also use the property -1228 ``.value`` to check/uncheck inputs. Also you can use -1229 ``.value_options`` to get the possible values. -1230 """ -1231 -
1232 - def _value__get(self): -
1233 """ -1234 Get/set the value, which checks the radio with that value (and -1235 unchecks any other value). -1236 """ -1237 for el in self: -1238 if 'checked' in el.attrib: -1239 return el.get('value') -1240 return None -
1241 -
1242 - def _value__set(self, value): -
1243 if value is not None: -1244 for el in self: -1245 if el.get('value') == value: -1246 checked_option = el -1247 break -1248 else: -1249 raise ValueError( -1250 "There is no radio input with the value %r" % value) -1251 for el in self: -1252 if 'checked' in el.attrib: -1253 del el.attrib['checked'] -1254 if value is not None: -1255 checked_option.set('checked', '') -
1256 -
1257 - def _value__del(self): -
1258 self.value = None -
1259 -1260 value = property(_value__get, _value__set, _value__del, doc=_value__get.__doc__) -1261 -
1262 - def value_options(self): -
1263 """ -1264 Returns a list of all the possible values. -1265 """ -1266 return [el.get('value') for el in self] -
1267 value_options = property(value_options, doc=value_options.__doc__) -1268 -
1269 - def __repr__(self): -
1270 return '%s(%s)' % ( -1271 self.__class__.__name__, -1272 list.__repr__(self)) -
1273 -
1274 -class CheckboxGroup(list): -
1275 """ -1276 Represents a group of checkboxes (``<input type=checkbox>``) that -1277 have the same name. -1278 -1279 In addition to using this like a list, the ``.value`` attribute -1280 returns a set-like object that you can add to or remove from to -1281 check and uncheck checkboxes. You can also use ``.value_options`` -1282 to get the possible values. -1283 """ -1284 -
1285 - def _value__get(self): -
1286 """ -1287 Return a set-like object that can be modified to check or -1288 uncheck individual checkboxes according to their value. -1289 """ -1290 return CheckboxValues(self) -
1291 - def _value__set(self, value): -
1292 self.value.clear() -1293 if not hasattr(value, '__iter__'): -1294 raise ValueError( -1295 "A CheckboxGroup (name=%r) must be set to a sequence (not %r)" -1296 % (self[0].name, value)) -1297 self.value.update(value) -
1298 - def _value__del(self): -
1299 self.value.clear() -
1300 value = property(_value__get, _value__set, _value__del, doc=_value__get.__doc__) -1301 -
1302 - def value_options(self): -
1303 """ -1304 Returns a list of all the possible values. -1305 """ -1306 return [el.get('value') for el in self] -
1307 value_options = property(value_options, doc=value_options.__doc__) -1308 -
1309 - def __repr__(self): -
1310 return '%s(%s)' % ( -1311 self.__class__.__name__, list.__repr__(self)) -
1312 -
1313 -class CheckboxValues(SetMixin): -
1314 -1315 """ -1316 Represents the values of the checked checkboxes in a group of -1317 checkboxes with the same name. -1318 """ -1319 -
1320 - def __init__(self, group): -
1321 self.group = group -
1322 -
1323 - def __iter__(self): -
1324 return iter([ -1325 el.get('value') -1326 for el in self.group -1327 if 'checked' in el.attrib]) -
1328 -
1329 - def add(self, value): -
1330 for el in self.group: -1331 if el.get('value') == value: -1332 el.set('checked', '') -1333 break -1334 else: -1335 raise KeyError("No checkbox with value %r" % value) -
1336 -
1337 - def remove(self, value): -
1338 for el in self.group: -1339 if el.get('value') == value: -1340 if 'checked' in el.attrib: -1341 del el.attrib['checked'] -1342 else: -1343 raise KeyError( -1344 "The checkbox with value %r was already unchecked" % value) -1345 break -1346 else: -1347 raise KeyError( -1348 "No checkbox with value %r" % value) -
1349 -
1350 - def __repr__(self): -
1351 return '<%s {%s} for checkboxes name=%r>' % ( -1352 self.__class__.__name__, -1353 ', '.join([repr(v) for v in self]), -1354 self.group.name) -
1355 -
1356 -class InputElement(InputMixin, HtmlElement): -
1357 """ -1358 Represents an ``<input>`` element. -1359 -1360 You can get the type with ``.type`` (which is lower-cased and -1361 defaults to ``'text'``). -1362 -1363 Also you can get and set the value with ``.value`` -1364 -1365 Checkboxes and radios have the attribute ``input.checkable == -1366 True`` (for all others it is false) and a boolean attribute -1367 ``.checked``. -1368 -1369 """ -1370 -1371 ## FIXME: I'm a little uncomfortable with the use of .checked -
1372 - def _value__get(self): -
1373 """ -1374 Get/set the value of this element, using the ``value`` attribute. -1375 -1376 Also, if this is a checkbox and it has no value, this defaults -1377 to ``'on'``. If it is a checkbox or radio that is not -1378 checked, this returns None. -1379 """ -1380 if self.checkable: -1381 if self.checked: -1382 return self.get('value') or 'on' -1383 else: -1384 return None -1385 return self.get('value') -
1386 - def _value__set(self, value): -
1387 if self.checkable: -1388 if not value: -1389 self.checked = False -1390 else: -1391 self.checked = True -1392 if isinstance(value, basestring): -1393 self.set('value', value) -1394 else: -1395 self.set('value', value) -
1396 - def _value__del(self): -
1397 if self.checkable: -1398 self.checked = False -1399 else: -1400 if 'value' in self.attrib: -1401 del self.attrib['value'] -
1402 value = property(_value__get, _value__set, _value__del, doc=_value__get.__doc__) -1403 -
1404 - def _type__get(self): -
1405 """ -1406 Return the type of this element (using the type attribute). -1407 """ -1408 return self.get('type', 'text').lower() -
1409 - def _type__set(self, value): -
1410 self.set('type', value) -
1411 type = property(_type__get, _type__set, doc=_type__get.__doc__) -1412 -
1413 - def checkable(self): -
1414 """ -1415 Boolean: can this element be checked? -1416 """ -1417 return self.type in ['checkbox', 'radio'] -
1418 checkable = property(checkable, doc=checkable.__doc__) -1419 -
1420 - def _checked__get(self): -
1421 """ -1422 Boolean attribute to get/set the presence of the ``checked`` -1423 attribute. -1424 -1425 You can only use this on checkable input types. -1426 """ -1427 if not self.checkable: -1428 raise AttributeError('Not a checkable input type') -1429 return 'checked' in self.attrib -
1430 - def _checked__set(self, value): -
1431 if not self.checkable: -1432 raise AttributeError('Not a checkable input type') -1433 if value: -1434 self.set('checked', '') -1435 else: -1436 if 'checked' in self.attrib: -1437 del self.attrib['checked'] -
1438 checked = property(_checked__get, _checked__set, doc=_checked__get.__doc__) -
1439 -1440 HtmlElementClassLookup._default_element_classes['input'] = InputElement -1441 -
1442 -class LabelElement(HtmlElement): -
1443 """ -1444 Represents a ``<label>`` element. -1445 -1446 Label elements are linked to other elements with their ``for`` -1447 attribute. You can access this element with ``label.for_element``. -1448 """ -1449 -
1450 - def _for_element__get(self): -
1451 """ -1452 Get/set the element this label points to. Return None if it -1453 can't be found. -1454 """ -1455 id = self.get('for') -1456 if not id: -1457 return None -1458 return self.body.get_element_by_id(id) -
1459 - def _for_element__set(self, other): -
1460 id = other.get('id') -1461 if not id: -1462 raise TypeError( -1463 "Element %r has no id attribute" % other) -1464 self.set('for', id) -
1465 - def _for_element__del(self): -
1466 if 'id' in self.attrib: -1467 del self.attrib['id'] -
1468 for_element = property(_for_element__get, _for_element__set, _for_element__del, -1469 doc=_for_element__get.__doc__) -
1470 -1471 HtmlElementClassLookup._default_element_classes['label'] = LabelElement -1472 -1473 ############################################################ -1474 ## Serialization -1475 ############################################################ -1476 -
1477 -def html_to_xhtml(html): -
1478 """Convert all tags in an HTML tree to XHTML by moving them to the -1479 XHTML namespace. -1480 """ -1481 try: -1482 html = html.getroot() -1483 except AttributeError: -1484 pass -1485 prefix = "{%s}" % XHTML_NAMESPACE -1486 for el in html.iter(): -1487 tag = el.tag -1488 if isinstance(tag, basestring): -1489 if tag[0] != '{': -1490 el.tag = prefix + tag -
1491 -
1492 -def xhtml_to_html(xhtml): -
1493 """Convert all tags in an XHTML tree to HTML by removing their -1494 XHTML namespace. -1495 """ -1496 try: -1497 xhtml = xhtml.getroot() -1498 except AttributeError: -1499 pass -1500 prefix = "{%s}" % XHTML_NAMESPACE -1501 prefix_len = len(prefix) -1502 for el in xhtml.iter(prefix + "*"): -1503 el.tag = el.tag[prefix_len:] -
1504 -1505 # This isn't a general match, but it's a match for what libxml2 -1506 # specifically serialises: -1507 __str_replace_meta_content_type = re.compile( -1508 r'<meta http-equiv="Content-Type"[^>]*>').sub -1509 __bytes_replace_meta_content_type = re.compile( -1510 r'<meta http-equiv="Content-Type"[^>]*>'.encode('ASCII')).sub -1511 -
1512 -def tostring(doc, pretty_print=False, include_meta_content_type=False, -1513 encoding=None, method="html", with_tail=True, doctype=None): -
1514 """Return an HTML string representation of the document. -1515 -1516 Note: if include_meta_content_type is true this will create a -1517 ``<meta http-equiv="Content-Type" ...>`` tag in the head; -1518 regardless of the value of include_meta_content_type any existing -1519 ``<meta http-equiv="Content-Type" ...>`` tag will be removed -1520 -1521 The ``encoding`` argument controls the output encoding (defauts to -1522 ASCII, with &#...; character references for any characters outside -1523 of ASCII). Note that you can pass the name ``'unicode'`` as -1524 ``encoding`` argument to serialise to a unicode string. -1525 -1526 The ``method`` argument defines the output method. It defaults to -1527 'html', but can also be 'xml' for xhtml output, or 'text' to -1528 serialise to plain text without markup. -1529 -1530 To leave out the tail text of the top-level element that is being -1531 serialised, pass ``with_tail=False``. -1532 -1533 The ``doctype`` option allows passing in a plain string that will -1534 be serialised before the XML tree. Note that passing in non -1535 well-formed content here will make the XML output non well-formed. -1536 Also, an existing doctype in the document tree will not be removed -1537 when serialising an ElementTree instance. -1538 -1539 Example:: -1540 -1541 >>> from lxml import html -1542 >>> root = html.fragment_fromstring('<p>Hello<br>world!</p>') -1543 -1544 >>> html.tostring(root) -1545 b'<p>Hello<br>world!</p>' -1546 >>> html.tostring(root, method='html') -1547 b'<p>Hello<br>world!</p>' -1548 -1549 >>> html.tostring(root, method='xml') -1550 b'<p>Hello<br/>world!</p>' -1551 -1552 >>> html.tostring(root, method='text') -1553 b'Helloworld!' -1554 -1555 >>> html.tostring(root, method='text', encoding=unicode) -1556 u'Helloworld!' -1557 -1558 >>> root = html.fragment_fromstring('<div><p>Hello<br>world!</p>TAIL</div>') -1559 >>> html.tostring(root[0], method='text', encoding=unicode) -1560 u'Helloworld!TAIL' -1561 -1562 >>> html.tostring(root[0], method='text', encoding=unicode, with_tail=False) -1563 u'Helloworld!' -1564 -1565 >>> doc = html.document_fromstring('<p>Hello<br>world!</p>') -1566 >>> html.tostring(doc, method='html', encoding=unicode) -1567 u'<html><body><p>Hello<br>world!</p></body></html>' -1568 -1569 >>> print(html.tostring(doc, method='html', encoding=unicode, -1570 ... doctype='<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"' -1571 ... ' "http://www.w3.org/TR/html4/strict.dtd">')) -1572 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> -1573 <html><body><p>Hello<br>world!</p></body></html> -1574 """ -1575 html = etree.tostring(doc, method=method, pretty_print=pretty_print, -1576 encoding=encoding, with_tail=with_tail, -1577 doctype=doctype) -1578 if method == 'html' and not include_meta_content_type: -1579 if isinstance(html, str): -1580 html = __str_replace_meta_content_type('', html) -1581 else: -1582 html = __bytes_replace_meta_content_type(bytes(), html) -1583 return html -
1584 -1585 tostring.__doc__ = __fix_docstring(tostring.__doc__) -1586 -
1587 -def open_in_browser(doc, encoding=None): -
1588 """ -1589 Open the HTML document in a web browser, saving it to a temporary -1590 file to open it. Note that this does not delete the file after -1591 use. This is mainly meant for debugging. -1592 """ -1593 import os -1594 import webbrowser -1595 import tempfile -1596 if not isinstance(doc, etree._ElementTree): -1597 doc = etree.ElementTree(doc) -1598 handle, fn = tempfile.mkstemp(suffix='.html') -1599 f = os.fdopen(handle, 'wb') -1600 try: -1601 doc.write(f, method="html", encoding=encoding or doc.docinfo.encoding or "UTF-8") -1602 finally: -1603 # we leak the file itself here, but we should at least close it -1604 f.close() -1605 url = 'file://' + fn.replace(os.path.sep, '/') -1606 print(url) -1607 webbrowser.open(url) -
1608 -1609 ################################################################################ -1610 # configure Element class lookup -1611 ################################################################################ -1612 -
1613 -class HTMLParser(etree.HTMLParser): -
1614 """An HTML parser that is configured to return lxml.html Element -1615 objects. -1616 """ -
1617 - def __init__(self, **kwargs): -
1618 super(HTMLParser, self).__init__(**kwargs) -1619 self.set_element_class_lookup(HtmlElementClassLookup()) -
1620 -
1621 -class XHTMLParser(etree.XMLParser): -
1622 """An XML parser that is configured to return lxml.html Element -1623 objects. -1624 -1625 Note that this parser is not really XHTML aware unless you let it -1626 load a DTD that declares the HTML entities. To do this, make sure -1627 you have the XHTML DTDs installed in your catalogs, and create the -1628 parser like this:: -1629 -1630 >>> parser = XHTMLParser(load_dtd=True) -1631 -1632 If you additionally want to validate the document, use this:: -1633 -1634 >>> parser = XHTMLParser(dtd_validation=True) -1635 -1636 For catalog support, see http://www.xmlsoft.org/catalog.html. -1637 """ -
1638 - def __init__(self, **kwargs): -
1639 super(XHTMLParser, self).__init__(**kwargs) -1640 self.set_element_class_lookup(HtmlElementClassLookup()) -
1641 -
1642 -def Element(*args, **kw): -
1643 """Create a new HTML Element. -1644 -1645 This can also be used for XHTML documents. -1646 """ -1647 v = html_parser.makeelement(*args, **kw) -1648 return v -
1649 -1650 html_parser = HTMLParser() -1651 xhtml_parser = XHTMLParser() -1652 -
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.html.CheckboxGroup-class.html b/doc/html/api/lxml.html.CheckboxGroup-class.html deleted file mode 100644 index b9ad842..0000000 --- a/doc/html/api/lxml.html.CheckboxGroup-class.html +++ /dev/null @@ -1,435 +0,0 @@ - - - - - lxml.html.CheckboxGroup - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - lxml :: - html :: - CheckboxGroup :: - Class CheckboxGroup - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class CheckboxGroup

source code

-
-object --+    
-         |    
-      list --+
-             |
-            CheckboxGroup
-
- -
-

Represents a group of checkboxes (<input type=checkbox>) that -have the same name.

-

In addition to using this like a list, the .value attribute -returns a set-like object that you can add to or remove from to -check and uncheck checkboxes. You can also use .value_options -to get the possible values.

- - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
_value__get(self)
- Return a set-like object that can be modified to check or -uncheck individual checkboxes according to their value.
- source code - -
- -
-   - - - - - - -
_value__set(self, - value) - source code - -
- -
-   - - - - - - -
_value__del(self) - source code - -
- -
-   - - - - - - -
__repr__(self)
- repr(x)
- source code - -
- -
-

Inherited from list: - __add__, - __contains__, - __delitem__, - __delslice__, - __eq__, - __ge__, - __getattribute__, - __getitem__, - __getslice__, - __gt__, - __iadd__, - __imul__, - __init__, - __iter__, - __le__, - __len__, - __lt__, - __mul__, - __ne__, - __new__, - __reversed__, - __rmul__, - __setitem__, - __setslice__, - __sizeof__, - append, - count, - extend, - index, - insert, - pop, - remove, - reverse, - sort -

-

Inherited from object: - __delattr__, - __format__, - __reduce__, - __reduce_ex__, - __setattr__, - __str__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Class Variables[hide private]
-
-

Inherited from list: - __hash__ -

-
- - - - - - - - - - - - - - - -
- - - - - -
Properties[hide private]
-
-   - - value
- Return a set-like object that can be modified to check or -uncheck individual checkboxes according to their value. -
-   - - value_options
- Returns a list of all the possible values. -
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__repr__(self) -
(Representation operator) -

-
source code  -
- - repr(x) -
-
Overrides: - object.__repr__ -
(inherited documentation)
- -
-
-
-
- - - - - - -
- - - - - -
Property Details[hide private]
-
- -
- -
-

value

- Return a set-like object that can be modified to check or -uncheck individual checkboxes according to their value. -
-
Get Method:
-
_value__get(self) - - Return a set-like object that can be modified to check or -uncheck individual checkboxes according to their value. -
-
Set Method:
-
_value__set(self, - value) -
-
Delete Method:
-
_value__del(self) -
-
-
-
- -
- -
-

value_options

- Returns a list of all the possible values. -
-
Get Method:
-
unreachable.value_options(self) - - Returns a list of all the possible values. -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.html.CheckboxValues-class.html b/doc/html/api/lxml.html.CheckboxValues-class.html deleted file mode 100644 index 3bc501e..0000000 --- a/doc/html/api/lxml.html.CheckboxValues-class.html +++ /dev/null @@ -1,368 +0,0 @@ - - - - - lxml.html.CheckboxValues - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - lxml :: - html :: - CheckboxValues :: - Class CheckboxValues - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class CheckboxValues

source code

-
-        object --+    
-                 |    
-_setmixin.SetMixin --+
-                     |
-                    CheckboxValues
-
- -
-Represents the values of the checked checkboxes in a group of -checkboxes with the same name. - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__init__(self, - group)
- x.__init__(...) initializes x; see help(type(x)) for signature
- source code - -
- -
-   - - - - - - -
__iter__(self) - source code - -
- -
-   - - - - - - -
add(self, - value) - source code - -
- -
-   - - - - - - -
remove(self, - value) - source code - -
- -
-   - - - - - - -
__repr__(self)
- repr(x)
- source code - -
- -
-

Inherited from _setmixin.SetMixin: - __and__, - __contains__, - __ge__, - __iand__, - __ior__, - __isub__, - __ixor__, - __le__, - __len__, - __or__, - __sub__, - __xor__, - clear, - copy, - difference, - difference_update, - discard, - intersection, - intersection_update, - issubset, - issuperset, - symmetric_difference, - symmetric_difference_update, - union, - update -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __new__, - __reduce__, - __reduce_ex__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__init__(self, - group) -
(Constructor) -

-
source code  -
- - x.__init__(...) initializes x; see help(type(x)) for signature -
-
Overrides: - object.__init__ -
(inherited documentation)
- -
-
-
- -
- -
- - -
-

__repr__(self) -
(Representation operator) -

-
source code  -
- - repr(x) -
-
Overrides: - object.__repr__ -
(inherited documentation)
- -
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.html.ElementSoup-module.html b/doc/html/api/lxml.html.ElementSoup-module.html deleted file mode 100644 index ea46a8e..0000000 --- a/doc/html/api/lxml.html.ElementSoup-module.html +++ /dev/null @@ -1,285 +0,0 @@ - - - - - lxml.html.ElementSoup - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package html :: - Module ElementSoup - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Module ElementSoup

source code

-Legacy interface to the BeautifulSoup HTML parser. - - - - - - - - - - - - - -
- - - - - -
Functions[hide private]
-
-   - - - - - - -
convert_tree(beautiful_soup_tree, - makeelement=None)
- Convert a BeautifulSoup tree to a list of Element trees.
- source code - -
- -
-   - - - - - - -
parse(file, - beautifulsoup=None, - makeelement=None) - source code - -
- -
- - - - - - - - - - - - -
- - - - - -
Variables[hide private]
-
-   - - __doc__ = """Legacy interface to the BeautifulSoup HTML pars... -
-   - - __package__ = 'lxml.html' -
- - - - - - -
- - - - - -
Function Details[hide private]
-
- -
- -
- - -
-

convert_tree(beautiful_soup_tree, - makeelement=None) -

-
source code  -
- -

Convert a BeautifulSoup tree to a list of Element trees.

-

Returns a list instead of a single root Element to support -HTML-like soup with more than one root element.

-

You can pass a different Element factory through the makeelement -keyword.

-
-
-
-
-
- - - - - - -
- - - - - -
Variables Details[hide private]
-
- -
- -
-

__doc__

- -
-
-
-
Value:
-
-"""Legacy interface to the BeautifulSoup HTML parser.
-"""
-
-
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.html.ElementSoup-pysrc.html b/doc/html/api/lxml.html.ElementSoup-pysrc.html deleted file mode 100644 index 33308cc..0000000 --- a/doc/html/api/lxml.html.ElementSoup-pysrc.html +++ /dev/null @@ -1,141 +0,0 @@ - - - - - lxml.html.ElementSoup - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package html :: - Module ElementSoup - - - - - - -
[hide private]
[frames] | no frames]
-
-

Source Code for Module lxml.html.ElementSoup

-
- 1  __doc__ = """Legacy interface to the BeautifulSoup HTML parser. 
- 2  """ 
- 3   
- 4  __all__ = ["parse", "convert_tree"] 
- 5   
- 6  from soupparser import convert_tree, parse as _parse 
- 7   
-
8 -def parse(file, beautifulsoup=None, makeelement=None): -
9 root = _parse(file, beautifulsoup=beautifulsoup, makeelement=makeelement) -10 return root.getroot() -
11 -
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.html.FieldsDict-class.html b/doc/html/api/lxml.html.FieldsDict-class.html deleted file mode 100644 index b63a08d..0000000 --- a/doc/html/api/lxml.html.FieldsDict-class.html +++ /dev/null @@ -1,702 +0,0 @@ - - - - - lxml.html.FieldsDict - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - lxml :: - html :: - FieldsDict :: - Class FieldsDict - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class FieldsDict

source code

-
-       object --+            
-                |            
-    _abcoll.Sized --+        
-                    |        
-       object --+   |        
-                |   |        
- _abcoll.Iterable --+        
-                    |        
-       object --+   |        
-                |   |        
-_abcoll.Container --+        
-                    |        
-      _abcoll.Mapping --+    
-                        |    
-   _abcoll.MutableMapping --+
-                            |
-                           FieldsDict
-
- -
- - - - - - - - - -
- - - - - -
Nested Classes[hide private]
-
-

Inherited from _abcoll.Sized: - __metaclass__ -

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__init__(self, - inputs)
- x.__init__(...) initializes x; see help(type(x)) for signature
- source code - -
- -
-   - - - - - - -
__getitem__(self, - item) - source code - -
- -
-   - - - - - - -
__setitem__(self, - item, - value) - source code - -
- -
-   - - - - - - -
__delitem__(self, - item) - source code - -
- -
-   - - - - - - -
keys(self) - source code - -
- -
-   - - - - - - -
__contains__(self, - item) - source code - -
- -
-   - - - - - - -
__iter__(self) - source code - -
- -
-   - - - - - - -
__len__(self) - source code - -
- -
-   - - - - - - -
__repr__(self)
- repr(x)
- source code - -
- -
-

Inherited from _abcoll.MutableMapping: - clear, - pop, - popitem, - setdefault, - update -

-

Inherited from _abcoll.Mapping: - __eq__, - __ne__, - get, - items, - iteritems, - iterkeys, - itervalues, - values -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __new__, - __reduce__, - __reduce_ex__, - __setattr__, - __sizeof__, - __str__ -

-
- - - - - - - - - -
- - - - - -
Class Methods[hide private]
-
-

Inherited from _abcoll.Sized: - __subclasshook__ -

-
- - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Class Variables[hide private]
-
-   - - __abstractmethods__ = frozenset([]) -
-   - - _abc_negative_cache = <_weakrefset.WeakSet object at 0x33aead0> -
-   - - _abc_negative_cache_version = 18 -
-   - - _abc_registry = <_weakrefset.WeakSet object at 0x33ae990> -
-

Inherited from _abcoll.Mapping: - __hash__ -

-

Inherited from _abcoll.Sized (private): - _abc_cache -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__init__(self, - inputs) -
(Constructor) -

-
source code  -
- - x.__init__(...) initializes x; see help(type(x)) for signature -
-
Overrides: - object.__init__ -
(inherited documentation)
- -
-
-
- -
- -
- - -
-

__getitem__(self, - item) -
(Indexing operator) -

-
source code  -
- - -
-
Overrides: - _abcoll.Mapping.__getitem__ -
-
-
-
- -
- -
- - -
-

__setitem__(self, - item, - value) -
(Index assignment operator) -

-
source code  -
- - -
-
Overrides: - _abcoll.MutableMapping.__setitem__ -
-
-
-
- -
- -
- - -
-

__delitem__(self, - item) -
(Index deletion operator) -

-
source code  -
- - -
-
Overrides: - _abcoll.MutableMapping.__delitem__ -
-
-
-
- -
- -
- - -
-

keys(self) -

-
source code  -
- - -
-
Overrides: - _abcoll.Mapping.keys -
-
-
-
- -
- -
- - -
-

__contains__(self, - item) -
(In operator) -

-
source code  -
- - -
-
Overrides: - _abcoll.Container.__contains__ -
-
-
-
- -
- -
- - -
-

__iter__(self) -

-
source code  -
- - -
-
Overrides: - _abcoll.Iterable.__iter__ -
-
-
-
- -
- -
- - -
-

__len__(self) -
(Length operator) -

-
source code  -
- - -
-
Overrides: - _abcoll.Sized.__len__ -
-
-
-
- -
- -
- - -
-

__repr__(self) -
(Representation operator) -

-
source code  -
- - repr(x) -
-
Overrides: - object.__repr__ -
(inherited documentation)
- -
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.html.FormElement-class.html b/doc/html/api/lxml.html.FormElement-class.html deleted file mode 100644 index ac7ae15..0000000 --- a/doc/html/api/lxml.html.FormElement-class.html +++ /dev/null @@ -1,572 +0,0 @@ - - - - - lxml.html.FormElement - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - lxml :: - html :: - FormElement :: - Class FormElement - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class FormElement

source code

-
-    object --+            
-             |            
-etree._Element --+        
-                 |        
- etree.ElementBase --+    
-                     |    
-        object --+   |    
-                 |   |    
-         HtmlMixin --+    
-                     |    
-           HtmlElement --+
-                         |
-                        FormElement
-
- -
-Represents a <form> element. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
_fields__get(self)
- Dictionary-like object that represents all the fields in this -form. You can set values in this dictionary to effect the -form.
- source code - -
- -
-   - - - - - - -
_fields__set(self, - value) - source code - -
- -
-   - - - - - - -
_name(self) - source code - -
- -
-   - - - - - - -
form_values(self)
- Return a list of tuples of the field values for the form. -This is suitable to be passed to urllib.urlencode().
- source code - -
- -
-   - - - - - - -
_action__get(self)
- Get/set the form's action attribute.
- source code - -
- -
-   - - - - - - -
_action__set(self, - value) - source code - -
- -
-   - - - - - - -
_action__del(self) - source code - -
- -
-   - - - - - - -
_method__get(self)
- Get/set the form's method. Always returns a capitalized -string, and defaults to 'GET'
- source code - -
- -
-   - - - - - - -
_method__set(self, - value) - source code - -
- -
-

Inherited from etree.ElementBase: - __init__, - __new__ -

-

Inherited from etree._Element: - __contains__, - __copy__, - __deepcopy__, - __delitem__, - __getitem__, - __iter__, - __len__, - __nonzero__, - __repr__, - __reversed__, - __setitem__, - addnext, - addprevious, - append, - clear, - extend, - find, - findall, - findtext, - get, - getchildren, - getiterator, - getnext, - getparent, - getprevious, - getroottree, - index, - insert, - items, - iter, - iterancestors, - iterchildren, - iterdescendants, - iterfind, - itersiblings, - itertext, - keys, - makeelement, - remove, - replace, - set, - values, - xpath -

-

Inherited from etree._Element (private): - _init -

-

Inherited from HtmlMixin: - cssselect, - drop_tag, - drop_tree, - find_class, - find_rel_links, - get_element_by_id, - iterlinks, - make_links_absolute, - resolve_base_href, - rewrite_links, - text_content -

-

Inherited from HtmlMixin (private): - _label__del, - _label__get, - _label__set -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __reduce__, - __reduce_ex__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Properties[hide private]
-
-   - - inputs
- Returns an accessor for all the input elements in the form. -
-   - - fields
- Dictionary-like object that represents all the fields in this -form. You can set values in this dictionary to effect the -form. -
-   - - action
- Get/set the form's action attribute. -
-   - - method
- Get/set the form's method. Always returns a capitalized -string, and defaults to 'GET' -
-

Inherited from etree._Element: - attrib, - base, - nsmap, - prefix, - sourceline, - tag, - tail, - text -

-

Inherited from HtmlMixin: - base_url, - body, - forms, - head, - label -

-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Property Details[hide private]
-
- -
- -
-

inputs

-

Returns an accessor for all the input elements in the form.

-

See InputGetter for more information about the object.

-
-
Get Method:
-
unreachable.inputs(self) - - Returns an accessor for all the input elements in the form. -
-
-
-
- -
- -
-

fields

- Dictionary-like object that represents all the fields in this -form. You can set values in this dictionary to effect the -form. -
-
Get Method:
-
_fields__get(self) - - Dictionary-like object that represents all the fields in this -form. You can set values in this dictionary to effect the -form. -
-
Set Method:
-
_fields__set(self, - value) -
-
-
-
- -
- -
-

action

- Get/set the form's action attribute. -
-
Get Method:
-
_action__get(self) - - Get/set the form's action attribute. -
-
Set Method:
-
_action__set(self, - value) -
-
Delete Method:
-
_action__del(self) -
-
-
-
- -
- -
-

method

- Get/set the form's method. Always returns a capitalized -string, and defaults to 'GET' -
-
Get Method:
-
_method__get(self) - - Get/set the form's method. Always returns a capitalized -string, and defaults to 'GET' -
-
Set Method:
-
_method__set(self, - value) -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.html.HTMLParser-class.html b/doc/html/api/lxml.html.HTMLParser-class.html deleted file mode 100644 index efda0d3..0000000 --- a/doc/html/api/lxml.html.HTMLParser-class.html +++ /dev/null @@ -1,276 +0,0 @@ - - - - - lxml.html.HTMLParser - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - lxml :: - html :: - HTMLParser :: - Class HTMLParser - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class HTMLParser

source code

-
-       object --+            
-                |            
-etree._BaseParser --+        
-                    |        
-    etree._FeedParser --+    
-                        |    
-         etree.HTMLParser --+
-                            |
-                           HTMLParser
-
- -
-An HTML parser that is configured to return lxml.html Element -objects. - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__init__(self, - **kwargs)
- x.__init__(...) initializes x; see help(type(x)) for signature
- source code - -
- -
-

Inherited from etree.HTMLParser: - __new__ -

-

Inherited from etree._FeedParser: - close, - feed -

-

Inherited from etree._BaseParser: - copy, - makeelement, - setElementClassLookup, - set_element_class_lookup -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __reduce__, - __reduce_ex__, - __repr__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from etree._FeedParser: - feed_error_log -

-

Inherited from etree._BaseParser: - error_log, - resolvers, - target, - version -

-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__init__(self, - **kwargs) -
(Constructor) -

-
source code  -
- - x.__init__(...) initializes x; see help(type(x)) for signature -
-
Overrides: - object.__init__ -
(inherited documentation)
- -
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.html.HtmlComment-class.html b/doc/html/api/lxml.html.HtmlComment-class.html deleted file mode 100644 index a6d2630..0000000 --- a/doc/html/api/lxml.html.HtmlComment-class.html +++ /dev/null @@ -1,289 +0,0 @@ - - - - - lxml.html.HtmlComment - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - lxml :: - html :: - HtmlComment :: - Class HtmlComment - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class HtmlComment

source code

-
-         object --+                
-                  |                
-     etree._Element --+            
-                      |            
-??.__ContentOnlyElement --+        
-                          |        
-             etree._Comment --+    
-                              |    
-              etree.CommentBase --+
-                                  |
-                     object --+   |
-                              |   |
-                      HtmlMixin --+
-                                  |
-                                 HtmlComment
-
- -
- - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-

Inherited from etree.CommentBase: - __init__, - __new__ -

-

Inherited from etree._Comment: - __repr__ -

-

Inherited from unreachable.__ContentOnlyElement: - __delitem__, - __getitem__, - __len__, - __setitem__, - append, - get, - insert, - items, - keys, - set, - values -

-

Inherited from etree._Element: - __contains__, - __copy__, - __deepcopy__, - __iter__, - __nonzero__, - __reversed__, - addnext, - addprevious, - clear, - extend, - find, - findall, - findtext, - getchildren, - getiterator, - getnext, - getparent, - getprevious, - getroottree, - index, - iter, - iterancestors, - iterchildren, - iterdescendants, - iterfind, - itersiblings, - itertext, - makeelement, - remove, - replace, - xpath -

-

Inherited from etree._Element (private): - _init -

-

Inherited from HtmlMixin: - cssselect, - drop_tag, - drop_tree, - find_class, - find_rel_links, - get_element_by_id, - iterlinks, - make_links_absolute, - resolve_base_href, - rewrite_links, - text_content -

-

Inherited from HtmlMixin (private): - _label__del, - _label__get, - _label__set -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __reduce__, - __reduce_ex__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from etree._Comment: - tag -

-

Inherited from unreachable.__ContentOnlyElement: - attrib, - text -

-

Inherited from etree._Element: - base, - nsmap, - prefix, - sourceline, - tail -

-

Inherited from HtmlMixin: - base_url, - body, - forms, - head, - label -

-

Inherited from object: - __class__ -

-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.html.HtmlElement-class.html b/doc/html/api/lxml.html.HtmlElement-class.html deleted file mode 100644 index 6c614ec..0000000 --- a/doc/html/api/lxml.html.HtmlElement-class.html +++ /dev/null @@ -1,283 +0,0 @@ - - - - - lxml.html.HtmlElement - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - lxml :: - html :: - HtmlElement :: - Class HtmlElement - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class HtmlElement

source code

-
-    object --+        
-             |        
-etree._Element --+    
-                 |    
- etree.ElementBase --+
-                     |
-        object --+   |
-                 |   |
-         HtmlMixin --+
-                     |
-                    HtmlElement
-
- -
Known Subclasses:
-
- -
- -
- - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-

Inherited from etree.ElementBase: - __init__, - __new__ -

-

Inherited from etree._Element: - __contains__, - __copy__, - __deepcopy__, - __delitem__, - __getitem__, - __iter__, - __len__, - __nonzero__, - __repr__, - __reversed__, - __setitem__, - addnext, - addprevious, - append, - clear, - extend, - find, - findall, - findtext, - get, - getchildren, - getiterator, - getnext, - getparent, - getprevious, - getroottree, - index, - insert, - items, - iter, - iterancestors, - iterchildren, - iterdescendants, - iterfind, - itersiblings, - itertext, - keys, - makeelement, - remove, - replace, - set, - values, - xpath -

-

Inherited from etree._Element (private): - _init -

-

Inherited from HtmlMixin: - cssselect, - drop_tag, - drop_tree, - find_class, - find_rel_links, - get_element_by_id, - iterlinks, - make_links_absolute, - resolve_base_href, - rewrite_links, - text_content -

-

Inherited from HtmlMixin (private): - _label__del, - _label__get, - _label__set -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __reduce__, - __reduce_ex__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from etree._Element: - attrib, - base, - nsmap, - prefix, - sourceline, - tag, - tail, - text -

-

Inherited from HtmlMixin: - base_url, - body, - forms, - head, - label -

-

Inherited from object: - __class__ -

-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.html.HtmlElementClassLookup-class.html b/doc/html/api/lxml.html.HtmlElementClassLookup-class.html deleted file mode 100644 index eefe4a7..0000000 --- a/doc/html/api/lxml.html.HtmlElementClassLookup-class.html +++ /dev/null @@ -1,386 +0,0 @@ - - - - - lxml.html.HtmlElementClassLookup - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - lxml :: - html :: - HtmlElementClassLookup :: - Class HtmlElementClassLookup - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class HtmlElementClassLookup

source code

-
-                  object --+            
-                           |            
-    etree.ElementClassLookup --+        
-                               |        
-etree.FallbackElementClassLookup --+    
-                                   |    
-      etree.CustomElementClassLookup --+
-                                       |
-                                      HtmlElementClassLookup
-
- -
-

A lookup scheme for HTML Element classes.

-

To create a lookup instance with different Element classes, pass a tag -name mapping of Element classes in the classes keyword argument and/or -a tag name mapping of Mixin classes in the mixins keyword argument. -The special key '*' denotes a Mixin class that should be mixed into all -Element classes.

- - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__init__(self, - classes=None, - mixins=None)
- x.__init__(...) initializes x; see help(type(x)) for signature
- source code - -
- -
-   - - - - - - -
lookup(self, - node_type, - document, - namespace, - name) - source code - -
- -
-

Inherited from etree.CustomElementClassLookup: - __new__ -

-

Inherited from etree.FallbackElementClassLookup: - set_fallback -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __reduce__, - __reduce_ex__, - __repr__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Class Variables[hide private]
-
-   - - _default_element_classes = {'form': <class 'lxml.html.FormElem... -
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from etree.FallbackElementClassLookup: - fallback -

-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__init__(self, - classes=None, - mixins=None) -
(Constructor) -

-
source code  -
- - x.__init__(...) initializes x; see help(type(x)) for signature -
-
Overrides: - object.__init__ -
(inherited documentation)
- -
-
-
- -
- -
- - -
-

lookup(self, - node_type, - document, - namespace, - name) -

-
source code  -
- - -
-
Overrides: - etree.CustomElementClassLookup.lookup -
(inherited documentation)
- -
-
-
-
- - - - - - -
- - - - - -
Class Variable Details[hide private]
-
- -
- -
-

_default_element_classes

- -
-
-
-
Value:
-
-{'form': <class 'lxml.html.FormElement'>,
- 'input': <class 'lxml.html.InputElement'>,
- 'label': <class 'lxml.html.LabelElement'>,
- 'select': <class 'lxml.html.SelectElement'>,
- 'textarea': <class 'lxml.html.TextareaElement'>}
-
-
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.html.HtmlEntity-class.html b/doc/html/api/lxml.html.HtmlEntity-class.html deleted file mode 100644 index 941938d..0000000 --- a/doc/html/api/lxml.html.HtmlEntity-class.html +++ /dev/null @@ -1,290 +0,0 @@ - - - - - lxml.html.HtmlEntity - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - lxml :: - html :: - HtmlEntity :: - Class HtmlEntity - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class HtmlEntity

source code

-
-         object --+                
-                  |                
-     etree._Element --+            
-                      |            
-??.__ContentOnlyElement --+        
-                          |        
-              etree._Entity --+    
-                              |    
-               etree.EntityBase --+
-                                  |
-                     object --+   |
-                              |   |
-                      HtmlMixin --+
-                                  |
-                                 HtmlEntity
-
- -
- - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-

Inherited from etree.EntityBase: - __init__, - __new__ -

-

Inherited from etree._Entity: - __repr__ -

-

Inherited from unreachable.__ContentOnlyElement: - __delitem__, - __getitem__, - __len__, - __setitem__, - append, - get, - insert, - items, - keys, - set, - values -

-

Inherited from etree._Element: - __contains__, - __copy__, - __deepcopy__, - __iter__, - __nonzero__, - __reversed__, - addnext, - addprevious, - clear, - extend, - find, - findall, - findtext, - getchildren, - getiterator, - getnext, - getparent, - getprevious, - getroottree, - index, - iter, - iterancestors, - iterchildren, - iterdescendants, - iterfind, - itersiblings, - itertext, - makeelement, - remove, - replace, - xpath -

-

Inherited from etree._Element (private): - _init -

-

Inherited from HtmlMixin: - cssselect, - drop_tag, - drop_tree, - find_class, - find_rel_links, - get_element_by_id, - iterlinks, - make_links_absolute, - resolve_base_href, - rewrite_links, - text_content -

-

Inherited from HtmlMixin (private): - _label__del, - _label__get, - _label__set -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __reduce__, - __reduce_ex__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from etree._Entity: - name, - tag, - text -

-

Inherited from unreachable.__ContentOnlyElement: - attrib -

-

Inherited from etree._Element: - base, - nsmap, - prefix, - sourceline, - tail -

-

Inherited from HtmlMixin: - base_url, - body, - forms, - head, - label -

-

Inherited from object: - __class__ -

-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.html.HtmlMixin-class.html b/doc/html/api/lxml.html.HtmlMixin-class.html deleted file mode 100644 index adc5ab6..0000000 --- a/doc/html/api/lxml.html.HtmlMixin-class.html +++ /dev/null @@ -1,789 +0,0 @@ - - - - - lxml.html.HtmlMixin - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - lxml :: - html :: - HtmlMixin :: - Class HtmlMixin - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class HtmlMixin

source code

-
-object --+
-         |
-        HtmlMixin
-
- -
Known Subclasses:
-
- -
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
_label__get(self)
- Get or set any <label> element associated with this element.
- source code - -
- -
-   - - - - - - -
_label__set(self, - label) - source code - -
- -
-   - - - - - - -
_label__del(self) - source code - -
- -
-   - - - - - - -
drop_tree(self)
- Removes this element from the tree, including its children and -text. The tail text is joined to the previous element or -parent.
- source code - -
- -
-   - - - - - - -
drop_tag(self)
- Remove the tag, but not its children or text. The children and text -are merged into the parent.
- source code - -
- -
-   - - - - - - -
find_rel_links(self, - rel)
- Find any links like <a rel="{rel}">...</a>; returns a list of elements.
- source code - -
- -
-   - - - - - - -
find_class(self, - class_name)
- Find any elements with the given class name.
- source code - -
- -
-   - - - - - - -
get_element_by_id(self, - id, - *default)
- Get the first element in a document with the given id. If none is -found, return the default argument if provided or raise KeyError -otherwise.
- source code - -
- -
-   - - - - - - -
text_content(self)
- Return the text content of the tag (and the text in any children).
- source code - -
- -
-   - - - - - - -
cssselect(self, - expr, - translator='html')
- Run the CSS expression on this element and its children, -returning a list of the results.
- source code - -
- -
-   - - - - - - -
make_links_absolute(self, - base_url=None, - resolve_base_href=True)
- Make all links in the document absolute, given the -base_url for the document (the full URL where the document -came from), or if no base_url is given, then the .base_url of the document.
- source code - -
- -
-   - - - - - - -
resolve_base_href(self)
- Find any <base href> tag in the document, and apply its -values to all links found in the document. Also remove the -tag once it has been applied.
- source code - -
- -
-   - - - - - - -
iterlinks(self)
- Yield (element, attribute, link, pos), where attribute may be None -(indicating the link is in the text). pos is the position -where the link occurs; often 0, but sometimes something else in -the case of links in stylesheets or style tags.
- source code - -
- -
-   - - - - - - -
rewrite_links(self, - link_repl_func, - resolve_base_href=True, - base_href=None)
- Rewrite all the links in the document. For each link -link_repl_func(link) will be called, and the return value -will replace the old link.
- source code - -
- -
-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __init__, - __new__, - __reduce__, - __reduce_ex__, - __repr__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Properties[hide private]
-
-   - - base_url
- Returns the base URL, given when the page was parsed. -
-   - - forms
- Return a list of all the forms -
-   - - body
- Return the <body> element. Can be called from a child element -to get the document's head. -
-   - - head
- Returns the <head> element. Can be called from a child -element to get the document's head. -
-   - - label
- Get or set any <label> element associated with this element. -
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

drop_tag(self) -

-
source code  -
- -

Remove the tag, but not its children or text. The children and text -are merged into the parent.

-

Example:

-
->>> h = fragment_fromstring('<div>Hello <b>World!</b></div>')
->>> h.find('.//b').drop_tag()
->>> print(tostring(h, encoding=unicode))
-<div>Hello World!</div>
-
-
-
-
-
- -
- -
- - -
-

get_element_by_id(self, - id, - *default) -

-
source code  -
- -

Get the first element in a document with the given id. If none is -found, return the default argument if provided or raise KeyError -otherwise.

-

Note that there can be more than one element with the same id, -and this isn't uncommon in HTML documents found in the wild. -Browsers return only the first match, and this function does -the same.

-
-
-
-
- -
- -
- - -
-

cssselect(self, - expr, - translator='html') -

-
source code  -
- -

Run the CSS expression on this element and its children, -returning a list of the results.

-

Equivalent to lxml.cssselect.CSSSelect(expr, translator='html')(self) --- note that pre-compiling the expression can provide a substantial -speedup.

-
-
-
-
- -
- -
- - -
-

make_links_absolute(self, - base_url=None, - resolve_base_href=True) -

-
source code  -
- -

Make all links in the document absolute, given the -base_url for the document (the full URL where the document -came from), or if no base_url is given, then the .base_url of the document.

-

If resolve_base_href is true, then any <base href> -tags in the document are used and removed from the document. -If it is false then any such tag is ignored.

-
-
-
-
- -
- -
- - -
-

iterlinks(self) -

-
source code  -
- -

Yield (element, attribute, link, pos), where attribute may be None -(indicating the link is in the text). pos is the position -where the link occurs; often 0, but sometimes something else in -the case of links in stylesheets or style tags.

-

Note: <base href> is not taken into account in any way. The -link you get is exactly the link in the document.

-

Note: multiple links inside of a single text string or -attribute value are returned in reversed order. This makes it -possible to replace or delete them from the text string value -based on their reported text positions. Otherwise, a -modification at one text position can change the positions of -links reported later on.

-
-
-
-
- -
- -
- - -
-

rewrite_links(self, - link_repl_func, - resolve_base_href=True, - base_href=None) -

-
source code  -
- -

Rewrite all the links in the document. For each link -link_repl_func(link) will be called, and the return value -will replace the old link.

-

Note that links may not be absolute (unless you first called -make_links_absolute()), and may be internal (e.g., -'#anchor'). They can also be values like -'mailto:email' or 'javascript:expr'.

-

If you give base_href then all links passed to -link_repl_func() will take that into account.

-

If the link_repl_func returns None, the attribute or -tag text will be removed completely.

-
-
-
-
-
- - - - - - -
- - - - - -
Property Details[hide private]
-
- -
- -
-

base_url

-

Returns the base URL, given when the page was parsed.

-

Use with urlparse.urljoin(el.base_url, href) to get -absolute URLs.

-
-
Get Method:
-
unreachable.base_url(self) - - Returns the base URL, given when the page was parsed. -
-
-
-
- -
- -
-

forms

- Return a list of all the forms -
-
Get Method:
-
unreachable.forms(self) - - Return a list of all the forms -
-
-
-
- -
- -
-

body

- Return the <body> element. Can be called from a child element -to get the document's head. -
-
Get Method:
-
unreachable.body(self) - - Return the <body> element. Can be called from a child element -to get the document's head. -
-
-
-
- -
- -
-

head

- Returns the <head> element. Can be called from a child -element to get the document's head. -
-
Get Method:
-
unreachable.head(self) - - Returns the <head> element. Can be called from a child -element to get the document's head. -
-
-
-
- -
- -
-

label

- Get or set any <label> element associated with this element. -
-
Get Method:
-
_label__get(self) - - Get or set any <label> element associated with this element. -
-
Set Method:
-
_label__set(self, - label) -
-
Delete Method:
-
_label__del(self) -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.html.HtmlProcessingInstruction-class.html b/doc/html/api/lxml.html.HtmlProcessingInstruction-class.html deleted file mode 100644 index 66625dc..0000000 --- a/doc/html/api/lxml.html.HtmlProcessingInstruction-class.html +++ /dev/null @@ -1,290 +0,0 @@ - - - - - lxml.html.HtmlProcessingInstruction - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - lxml :: - html :: - HtmlProcessingInstruction :: - Class HtmlProcessingInstruction - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class HtmlProcessingInstruction

source code

-
-          object --+                
-                   |                
-      etree._Element --+            
-                       |            
- ??.__ContentOnlyElement --+        
-                           |        
-etree._ProcessingInstruction --+    
-                               |    
-                    etree.PIBase --+
-                                   |
-                      object --+   |
-                               |   |
-                       HtmlMixin --+
-                                   |
-                                  HtmlProcessingInstruction
-
- -
- - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-

Inherited from etree.PIBase: - __init__, - __new__ -

-

Inherited from etree._ProcessingInstruction: - __repr__, - get -

-

Inherited from unreachable.__ContentOnlyElement: - __delitem__, - __getitem__, - __len__, - __setitem__, - append, - insert, - items, - keys, - set, - values -

-

Inherited from etree._Element: - __contains__, - __copy__, - __deepcopy__, - __iter__, - __nonzero__, - __reversed__, - addnext, - addprevious, - clear, - extend, - find, - findall, - findtext, - getchildren, - getiterator, - getnext, - getparent, - getprevious, - getroottree, - index, - iter, - iterancestors, - iterchildren, - iterdescendants, - iterfind, - itersiblings, - itertext, - makeelement, - remove, - replace, - xpath -

-

Inherited from etree._Element (private): - _init -

-

Inherited from HtmlMixin: - cssselect, - drop_tag, - drop_tree, - find_class, - find_rel_links, - get_element_by_id, - iterlinks, - make_links_absolute, - resolve_base_href, - rewrite_links, - text_content -

-

Inherited from HtmlMixin (private): - _label__del, - _label__get, - _label__set -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __reduce__, - __reduce_ex__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from etree._ProcessingInstruction: - attrib, - tag, - target -

-

Inherited from unreachable.__ContentOnlyElement: - text -

-

Inherited from etree._Element: - base, - nsmap, - prefix, - sourceline, - tail -

-

Inherited from HtmlMixin: - base_url, - body, - forms, - head, - label -

-

Inherited from object: - __class__ -

-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.html.InputElement-class.html b/doc/html/api/lxml.html.InputElement-class.html deleted file mode 100644 index e735d9e..0000000 --- a/doc/html/api/lxml.html.InputElement-class.html +++ /dev/null @@ -1,615 +0,0 @@ - - - - - lxml.html.InputElement - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - lxml :: - html :: - InputElement :: - Class InputElement - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class InputElement

source code

-
-            object --+    
-                     |    
-            InputMixin --+
-                         |
-    object --+           |
-             |           |
-etree._Element --+       |
-                 |       |
- etree.ElementBase --+   |
-                     |   |
-        object --+   |   |
-                 |   |   |
-         HtmlMixin --+   |
-                     |   |
-           HtmlElement --+
-                         |
-                        InputElement
-
- -
-

Represents an <input> element.

-

You can get the type with .type (which is lower-cased and -defaults to 'text').

-

Also you can get and set the value with .value

-

Checkboxes and radios have the attribute input.checkable == -True (for all others it is false) and a boolean attribute -.checked.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
_value__get(self)
- Get/set the value of this element, using the value attribute.
- source code - -
- -
-   - - - - - - -
_value__set(self, - value) - source code - -
- -
-   - - - - - - -
_value__del(self) - source code - -
- -
-   - - - - - - -
_type__get(self)
- Return the type of this element (using the type attribute).
- source code - -
- -
-   - - - - - - -
_type__set(self, - value) - source code - -
- -
-   - - - - - - -
_checked__get(self)
- Boolean attribute to get/set the presence of the checked -attribute.
- source code - -
- -
-   - - - - - - -
_checked__set(self, - value) - source code - -
- -
-

Inherited from InputMixin: - __repr__ -

-

Inherited from InputMixin (private): - _name__del, - _name__get, - _name__set -

-

Inherited from etree.ElementBase: - __init__, - __new__ -

-

Inherited from etree._Element: - __contains__, - __copy__, - __deepcopy__, - __delitem__, - __getitem__, - __iter__, - __len__, - __nonzero__, - __reversed__, - __setitem__, - addnext, - addprevious, - append, - clear, - extend, - find, - findall, - findtext, - get, - getchildren, - getiterator, - getnext, - getparent, - getprevious, - getroottree, - index, - insert, - items, - iter, - iterancestors, - iterchildren, - iterdescendants, - iterfind, - itersiblings, - itertext, - keys, - makeelement, - remove, - replace, - set, - values, - xpath -

-

Inherited from etree._Element (private): - _init -

-

Inherited from HtmlMixin: - cssselect, - drop_tag, - drop_tree, - find_class, - find_rel_links, - get_element_by_id, - iterlinks, - make_links_absolute, - resolve_base_href, - rewrite_links, - text_content -

-

Inherited from HtmlMixin (private): - _label__del, - _label__get, - _label__set -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __reduce__, - __reduce_ex__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Properties[hide private]
-
-   - - value
- Get/set the value of this element, using the value attribute. -
-   - - type
- Return the type of this element (using the type attribute). -
-   - - checkable
- Boolean: can this element be checked? -
-   - - checked
- Boolean attribute to get/set the presence of the checked -attribute. -
-

Inherited from InputMixin: - name -

-

Inherited from etree._Element: - attrib, - base, - nsmap, - prefix, - sourceline, - tag, - tail, - text -

-

Inherited from HtmlMixin: - base_url, - body, - forms, - head, - label -

-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

_value__get(self) -

-
source code  -
- -

Get/set the value of this element, using the value attribute.

-

Also, if this is a checkbox and it has no value, this defaults -to 'on'. If it is a checkbox or radio that is not -checked, this returns None.

-
-
-
-
- -
- -
- - -
-

_checked__get(self) -

-
source code  -
- -

Boolean attribute to get/set the presence of the checked -attribute.

-

You can only use this on checkable input types.

-
-
-
-
-
- - - - - - -
- - - - - -
Property Details[hide private]
-
- -
- -
-

value

-

Get/set the value of this element, using the value attribute.

-

Also, if this is a checkbox and it has no value, this defaults -to 'on'. If it is a checkbox or radio that is not -checked, this returns None.

-
-
Get Method:
-
_value__get(self) - - Get/set the value of this element, using the value attribute. -
-
Set Method:
-
_value__set(self, - value) -
-
Delete Method:
-
_value__del(self) -
-
-
-
- -
- -
-

type

- Return the type of this element (using the type attribute). -
-
Get Method:
-
_type__get(self) - - Return the type of this element (using the type attribute). -
-
Set Method:
-
_type__set(self, - value) -
-
-
-
- -
- -
-

checkable

- Boolean: can this element be checked? -
-
Get Method:
-
unreachable.checkable(self) - - Boolean: can this element be checked? -
-
-
-
- -
- -
-

checked

-

Boolean attribute to get/set the presence of the checked -attribute.

-

You can only use this on checkable input types.

-
-
Get Method:
-
_checked__get(self) - - Boolean attribute to get/set the presence of the checked -attribute. -
-
Set Method:
-
_checked__set(self, - value) -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.html.InputGetter-class.html b/doc/html/api/lxml.html.InputGetter-class.html deleted file mode 100644 index eb811a6..0000000 --- a/doc/html/api/lxml.html.InputGetter-class.html +++ /dev/null @@ -1,453 +0,0 @@ - - - - - lxml.html.InputGetter - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - lxml :: - html :: - InputGetter :: - Class InputGetter - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class InputGetter

source code

-
-object --+
-         |
-        InputGetter
-
- -
-

An accessor that represents all the input fields in a form.

-

You can get fields by name from this, with -form.inputs['field_name']. If there are a set of checkboxes -with the same name, they are returned as a list (a CheckboxGroup -which also allows value setting). Radio inputs are handled -similarly.

-

You can also iterate over this to get all input elements. This -won't return the same thing as if you get all the names, as -checkboxes and radio elements are returned individually.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__init__(self, - form)
- x.__init__(...) initializes x; see help(type(x)) for signature
- source code - -
- -
-   - - - - - - -
__repr__(self)
- repr(x)
- source code - -
- -
-   - - - - - - -
__getitem__(self, - name) - source code - -
- -
-   - - - - - - -
__contains__(self, - name) - source code - -
- -
-   - - - - - - -
keys(self) - source code - -
- -
-   - - - - - - -
__iter__(self) - source code - -
- -
-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __new__, - __reduce__, - __reduce_ex__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - - - - -
- - - - - -
Class Variables[hide private]
-
-   - - _name_xpath = .//*[@name = $name and (local-name(.) = 'select'... -
-   - - _all_xpath = .//*[local-name() = 'select' or local-name() = 'i... -
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__init__(self, - form) -
(Constructor) -

-
source code  -
- - x.__init__(...) initializes x; see help(type(x)) for signature -
-
Overrides: - object.__init__ -
(inherited documentation)
- -
-
-
- -
- -
- - -
-

__repr__(self) -
(Representation operator) -

-
source code  -
- - repr(x) -
-
Overrides: - object.__repr__ -
(inherited documentation)
- -
-
-
-
- - - - - - -
- - - - - -
Class Variable Details[hide private]
-
- -
- -
-

_name_xpath

- -
-
-
-
Value:
-
-.//*[@name = $name and (local-name(.) = 'select' or local-name(.) = 'i\
-nput' or local-name(.) = 'textarea')]
-
-
-
-
-
- -
- -
-

_all_xpath

- -
-
-
-
Value:
-
-.//*[local-name() = 'select' or local-name() = 'input' or local-name()\
- = 'textarea']
-
-
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.html.InputMixin-class.html b/doc/html/api/lxml.html.InputMixin-class.html deleted file mode 100644 index c98d297..0000000 --- a/doc/html/api/lxml.html.InputMixin-class.html +++ /dev/null @@ -1,351 +0,0 @@ - - - - - lxml.html.InputMixin - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - lxml :: - html :: - InputMixin :: - Class InputMixin - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class InputMixin

source code

-
-object --+
-         |
-        InputMixin
-
- -
Known Subclasses:
-
- -
- -
-Mix-in for all input elements (input, select, and textarea) - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
_name__get(self)
- Get/set the name of the element
- source code - -
- -
-   - - - - - - -
_name__set(self, - value) - source code - -
- -
-   - - - - - - -
_name__del(self) - source code - -
- -
-   - - - - - - -
__repr__(self)
- repr(x)
- source code - -
- -
-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __init__, - __new__, - __reduce__, - __reduce_ex__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - - - - -
- - - - - -
Properties[hide private]
-
-   - - name
- Get/set the name of the element -
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__repr__(self) -
(Representation operator) -

-
source code  -
- - repr(x) -
-
Overrides: - object.__repr__ -
(inherited documentation)
- -
-
-
-
- - - - - - -
- - - - - -
Property Details[hide private]
-
- -
- -
-

name

- Get/set the name of the element -
-
Get Method:
-
_name__get(self) - - Get/set the name of the element -
-
Set Method:
-
_name__set(self, - value) -
-
Delete Method:
-
_name__del(self) -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.html.LabelElement-class.html b/doc/html/api/lxml.html.LabelElement-class.html deleted file mode 100644 index c392ef9..0000000 --- a/doc/html/api/lxml.html.LabelElement-class.html +++ /dev/null @@ -1,386 +0,0 @@ - - - - - lxml.html.LabelElement - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - lxml :: - html :: - LabelElement :: - Class LabelElement - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class LabelElement

source code

-
-    object --+            
-             |            
-etree._Element --+        
-                 |        
- etree.ElementBase --+    
-                     |    
-        object --+   |    
-                 |   |    
-         HtmlMixin --+    
-                     |    
-           HtmlElement --+
-                         |
-                        LabelElement
-
- -
-

Represents a <label> element.

-

Label elements are linked to other elements with their for -attribute. You can access this element with label.for_element.

- - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
_for_element__get(self)
- Get/set the element this label points to. Return None if it -can't be found.
- source code - -
- -
-   - - - - - - -
_for_element__set(self, - other) - source code - -
- -
-   - - - - - - -
_for_element__del(self) - source code - -
- -
-

Inherited from etree.ElementBase: - __init__, - __new__ -

-

Inherited from etree._Element: - __contains__, - __copy__, - __deepcopy__, - __delitem__, - __getitem__, - __iter__, - __len__, - __nonzero__, - __repr__, - __reversed__, - __setitem__, - addnext, - addprevious, - append, - clear, - extend, - find, - findall, - findtext, - get, - getchildren, - getiterator, - getnext, - getparent, - getprevious, - getroottree, - index, - insert, - items, - iter, - iterancestors, - iterchildren, - iterdescendants, - iterfind, - itersiblings, - itertext, - keys, - makeelement, - remove, - replace, - set, - values, - xpath -

-

Inherited from etree._Element (private): - _init -

-

Inherited from HtmlMixin: - cssselect, - drop_tag, - drop_tree, - find_class, - find_rel_links, - get_element_by_id, - iterlinks, - make_links_absolute, - resolve_base_href, - rewrite_links, - text_content -

-

Inherited from HtmlMixin (private): - _label__del, - _label__get, - _label__set -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __reduce__, - __reduce_ex__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - - - - -
- - - - - -
Properties[hide private]
-
-   - - for_element
- Get/set the element this label points to. Return None if it -can't be found. -
-

Inherited from etree._Element: - attrib, - base, - nsmap, - prefix, - sourceline, - tag, - tail, - text -

-

Inherited from HtmlMixin: - base_url, - body, - forms, - head, - label -

-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Property Details[hide private]
-
- -
- -
-

for_element

- Get/set the element this label points to. Return None if it -can't be found. -
-
Get Method:
-
_for_element__get(self) - - Get/set the element this label points to. Return None if it -can't be found. -
-
Set Method:
-
_for_element__set(self, - other) -
-
Delete Method:
-
_for_element__del(self) -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.html.MultipleSelectOptions-class.html b/doc/html/api/lxml.html.MultipleSelectOptions-class.html deleted file mode 100644 index 2f894d3..0000000 --- a/doc/html/api/lxml.html.MultipleSelectOptions-class.html +++ /dev/null @@ -1,411 +0,0 @@ - - - - - lxml.html.MultipleSelectOptions - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - lxml :: - html :: - MultipleSelectOptions :: - Class MultipleSelectOptions - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class MultipleSelectOptions

source code

-
-        object --+    
-                 |    
-_setmixin.SetMixin --+
-                     |
-                    MultipleSelectOptions
-
- -
-

Represents all the selected options in a <select multiple> element.

-

You can add to this set-like option to select an option, or remove -to unselect the option.

- - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__init__(self, - select)
- x.__init__(...) initializes x; see help(type(x)) for signature
- source code - -
- -
-   - - - - - - -
__iter__(self) - source code - -
- -
-   - - - - - - -
add(self, - item) - source code - -
- -
-   - - - - - - -
remove(self, - item) - source code - -
- -
-   - - - - - - -
__repr__(self)
- repr(x)
- source code - -
- -
-

Inherited from _setmixin.SetMixin: - __and__, - __contains__, - __ge__, - __iand__, - __ior__, - __isub__, - __ixor__, - __le__, - __len__, - __or__, - __sub__, - __xor__, - clear, - copy, - difference, - difference_update, - discard, - intersection, - intersection_update, - issubset, - issuperset, - symmetric_difference, - symmetric_difference_update, - union, - update -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __new__, - __reduce__, - __reduce_ex__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - - - - -
- - - - - -
Properties[hide private]
-
-   - - options
- Iterator of all the <option> elements. -
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__init__(self, - select) -
(Constructor) -

-
source code  -
- - x.__init__(...) initializes x; see help(type(x)) for signature -
-
Overrides: - object.__init__ -
(inherited documentation)
- -
-
-
- -
- -
- - -
-

__repr__(self) -
(Representation operator) -

-
source code  -
- - repr(x) -
-
Overrides: - object.__repr__ -
(inherited documentation)
- -
-
-
-
- - - - - - -
- - - - - -
Property Details[hide private]
-
- -
- -
-

options

- Iterator of all the <option> elements. -
-
Get Method:
-
unreachable.options(self) - - Iterator of all the <option> elements. -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.html.RadioGroup-class.html b/doc/html/api/lxml.html.RadioGroup-class.html deleted file mode 100644 index ffd33d9..0000000 --- a/doc/html/api/lxml.html.RadioGroup-class.html +++ /dev/null @@ -1,434 +0,0 @@ - - - - - lxml.html.RadioGroup - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - lxml :: - html :: - RadioGroup :: - Class RadioGroup - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class RadioGroup

source code

-
-object --+    
-         |    
-      list --+
-             |
-            RadioGroup
-
- -
-

This object represents several <input type=radio> elements -that have the same name.

-

You can use this like a list, but also use the property -.value to check/uncheck inputs. Also you can use -.value_options to get the possible values.

- - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
_value__get(self)
- Get/set the value, which checks the radio with that value (and -unchecks any other value).
- source code - -
- -
-   - - - - - - -
_value__set(self, - value) - source code - -
- -
-   - - - - - - -
_value__del(self) - source code - -
- -
-   - - - - - - -
__repr__(self)
- repr(x)
- source code - -
- -
-

Inherited from list: - __add__, - __contains__, - __delitem__, - __delslice__, - __eq__, - __ge__, - __getattribute__, - __getitem__, - __getslice__, - __gt__, - __iadd__, - __imul__, - __init__, - __iter__, - __le__, - __len__, - __lt__, - __mul__, - __ne__, - __new__, - __reversed__, - __rmul__, - __setitem__, - __setslice__, - __sizeof__, - append, - count, - extend, - index, - insert, - pop, - remove, - reverse, - sort -

-

Inherited from object: - __delattr__, - __format__, - __reduce__, - __reduce_ex__, - __setattr__, - __str__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Class Variables[hide private]
-
-

Inherited from list: - __hash__ -

-
- - - - - - - - - - - - - - - -
- - - - - -
Properties[hide private]
-
-   - - value
- Get/set the value, which checks the radio with that value (and -unchecks any other value). -
-   - - value_options
- Returns a list of all the possible values. -
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__repr__(self) -
(Representation operator) -

-
source code  -
- - repr(x) -
-
Overrides: - object.__repr__ -
(inherited documentation)
- -
-
-
-
- - - - - - -
- - - - - -
Property Details[hide private]
-
- -
- -
-

value

- Get/set the value, which checks the radio with that value (and -unchecks any other value). -
-
Get Method:
-
_value__get(self) - - Get/set the value, which checks the radio with that value (and -unchecks any other value). -
-
Set Method:
-
_value__set(self, - value) -
-
Delete Method:
-
_value__del(self) -
-
-
-
- -
- -
-

value_options

- Returns a list of all the possible values. -
-
Get Method:
-
unreachable.value_options(self) - - Returns a list of all the possible values. -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.html.SelectElement-class.html b/doc/html/api/lxml.html.SelectElement-class.html deleted file mode 100644 index 3db394c..0000000 --- a/doc/html/api/lxml.html.SelectElement-class.html +++ /dev/null @@ -1,529 +0,0 @@ - - - - - lxml.html.SelectElement - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - lxml :: - html :: - SelectElement :: - Class SelectElement - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class SelectElement

source code

-
-            object --+    
-                     |    
-            InputMixin --+
-                         |
-    object --+           |
-             |           |
-etree._Element --+       |
-                 |       |
- etree.ElementBase --+   |
-                     |   |
-        object --+   |   |
-                 |   |   |
-         HtmlMixin --+   |
-                     |   |
-           HtmlElement --+
-                         |
-                        SelectElement
-
- -
-

<select> element. You can get the name with .name.

-

.value will be the value of the selected option, unless this -is a multi-select element (<select multiple>), in which case -it will be a set-like object. In either case .value_options -gives the possible values.

-

The boolean attribute .multiple shows if this is a -multi-select.

- - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
_value__get(self)
- Get/set the value of this select (the selected option).
- source code - -
- -
-   - - - - - - -
_value__set(self, - value) - source code - -
- -
-   - - - - - - -
_value__del(self) - source code - -
- -
-   - - - - - - -
_multiple__get(self)
- Boolean attribute: is there a multiple attribute on this element.
- source code - -
- -
-   - - - - - - -
_multiple__set(self, - value) - source code - -
- -
-

Inherited from InputMixin: - __repr__ -

-

Inherited from InputMixin (private): - _name__del, - _name__get, - _name__set -

-

Inherited from etree.ElementBase: - __init__, - __new__ -

-

Inherited from etree._Element: - __contains__, - __copy__, - __deepcopy__, - __delitem__, - __getitem__, - __iter__, - __len__, - __nonzero__, - __reversed__, - __setitem__, - addnext, - addprevious, - append, - clear, - extend, - find, - findall, - findtext, - get, - getchildren, - getiterator, - getnext, - getparent, - getprevious, - getroottree, - index, - insert, - items, - iter, - iterancestors, - iterchildren, - iterdescendants, - iterfind, - itersiblings, - itertext, - keys, - makeelement, - remove, - replace, - set, - values, - xpath -

-

Inherited from etree._Element (private): - _init -

-

Inherited from HtmlMixin: - cssselect, - drop_tag, - drop_tree, - find_class, - find_rel_links, - get_element_by_id, - iterlinks, - make_links_absolute, - resolve_base_href, - rewrite_links, - text_content -

-

Inherited from HtmlMixin (private): - _label__del, - _label__get, - _label__set -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __reduce__, - __reduce_ex__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - - - - - - - - - - -
- - - - - -
Properties[hide private]
-
-   - - value
- Get/set the value of this select (the selected option). -
-   - - value_options
- All the possible values this select can have (the value -attribute of all the <option> elements. -
-   - - multiple
- Boolean attribute: is there a multiple attribute on this element. -
-

Inherited from InputMixin: - name -

-

Inherited from etree._Element: - attrib, - base, - nsmap, - prefix, - sourceline, - tag, - tail, - text -

-

Inherited from HtmlMixin: - base_url, - body, - forms, - head, - label -

-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

_value__get(self) -

-
source code  -
- -

Get/set the value of this select (the selected option).

-

If this is a multi-select, this is a set-like object that -represents all the selected options.

-
-
-
-
-
- - - - - - -
- - - - - -
Property Details[hide private]
-
- -
- -
-

value

-

Get/set the value of this select (the selected option).

-

If this is a multi-select, this is a set-like object that -represents all the selected options.

-
-
Get Method:
-
_value__get(self) - - Get/set the value of this select (the selected option). -
-
Set Method:
-
_value__set(self, - value) -
-
Delete Method:
-
_value__del(self) -
-
-
-
- -
- -
-

value_options

- All the possible values this select can have (the value -attribute of all the <option> elements. -
-
Get Method:
-
unreachable.value_options(self) - - All the possible values this select can have (the value -attribute of all the <option> elements. -
-
-
-
- -
- -
-

multiple

- Boolean attribute: is there a multiple attribute on this element. -
-
Get Method:
-
_multiple__get(self) - - Boolean attribute: is there a multiple attribute on this element. -
-
Set Method:
-
_multiple__set(self, - value) -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.html.TextareaElement-class.html b/doc/html/api/lxml.html.TextareaElement-class.html deleted file mode 100644 index 2924173..0000000 --- a/doc/html/api/lxml.html.TextareaElement-class.html +++ /dev/null @@ -1,395 +0,0 @@ - - - - - lxml.html.TextareaElement - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - lxml :: - html :: - TextareaElement :: - Class TextareaElement - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class TextareaElement

source code

-
-            object --+    
-                     |    
-            InputMixin --+
-                         |
-    object --+           |
-             |           |
-etree._Element --+       |
-                 |       |
- etree.ElementBase --+   |
-                     |   |
-        object --+   |   |
-                 |   |   |
-         HtmlMixin --+   |
-                     |   |
-           HtmlElement --+
-                         |
-                        TextareaElement
-
- -
-<textarea> element. You can get the name with .name and -get/set the value with .value - - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
_value__get(self)
- Get/set the value (which is the contents of this element)
- source code - -
- -
-   - - - - - - -
_value__set(self, - value) - source code - -
- -
-   - - - - - - -
_value__del(self) - source code - -
- -
-

Inherited from InputMixin: - __repr__ -

-

Inherited from InputMixin (private): - _name__del, - _name__get, - _name__set -

-

Inherited from etree.ElementBase: - __init__, - __new__ -

-

Inherited from etree._Element: - __contains__, - __copy__, - __deepcopy__, - __delitem__, - __getitem__, - __iter__, - __len__, - __nonzero__, - __reversed__, - __setitem__, - addnext, - addprevious, - append, - clear, - extend, - find, - findall, - findtext, - get, - getchildren, - getiterator, - getnext, - getparent, - getprevious, - getroottree, - index, - insert, - items, - iter, - iterancestors, - iterchildren, - iterdescendants, - iterfind, - itersiblings, - itertext, - keys, - makeelement, - remove, - replace, - set, - values, - xpath -

-

Inherited from etree._Element (private): - _init -

-

Inherited from HtmlMixin: - cssselect, - drop_tag, - drop_tree, - find_class, - find_rel_links, - get_element_by_id, - iterlinks, - make_links_absolute, - resolve_base_href, - rewrite_links, - text_content -

-

Inherited from HtmlMixin (private): - _label__del, - _label__get, - _label__set -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __reduce__, - __reduce_ex__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - - - - -
- - - - - -
Properties[hide private]
-
-   - - value
- Get/set the value (which is the contents of this element) -
-

Inherited from InputMixin: - name -

-

Inherited from etree._Element: - attrib, - base, - nsmap, - prefix, - sourceline, - tag, - tail, - text -

-

Inherited from HtmlMixin: - base_url, - body, - forms, - head, - label -

-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Property Details[hide private]
-
- -
- -
-

value

- Get/set the value (which is the contents of this element) -
-
Get Method:
-
_value__get(self) - - Get/set the value (which is the contents of this element) -
-
Set Method:
-
_value__set(self, - value) -
-
Delete Method:
-
_value__del(self) -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.html.XHTMLParser-class.html b/doc/html/api/lxml.html.XHTMLParser-class.html deleted file mode 100644 index 10ad14c..0000000 --- a/doc/html/api/lxml.html.XHTMLParser-class.html +++ /dev/null @@ -1,288 +0,0 @@ - - - - - lxml.html.XHTMLParser - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - lxml :: - html :: - XHTMLParser :: - Class XHTMLParser - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class XHTMLParser

source code

-
-       object --+            
-                |            
-etree._BaseParser --+        
-                    |        
-    etree._FeedParser --+    
-                        |    
-          etree.XMLParser --+
-                            |
-                           XHTMLParser
-
- -
-

An XML parser that is configured to return lxml.html Element -objects.

-

Note that this parser is not really XHTML aware unless you let it -load a DTD that declares the HTML entities. To do this, make sure -you have the XHTML DTDs installed in your catalogs, and create the -parser like this:

-
->>> parser = XHTMLParser(load_dtd=True)
-
-

If you additionally want to validate the document, use this:

-
->>> parser = XHTMLParser(dtd_validation=True)
-
-

For catalog support, see http://www.xmlsoft.org/catalog.html.

- - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__init__(self, - **kwargs)
- x.__init__(...) initializes x; see help(type(x)) for signature
- source code - -
- -
-

Inherited from etree.XMLParser: - __new__ -

-

Inherited from etree._FeedParser: - close, - feed -

-

Inherited from etree._BaseParser: - copy, - makeelement, - setElementClassLookup, - set_element_class_lookup -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __reduce__, - __reduce_ex__, - __repr__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from etree._FeedParser: - feed_error_log -

-

Inherited from etree._BaseParser: - error_log, - resolvers, - target, - version -

-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__init__(self, - **kwargs) -
(Constructor) -

-
source code  -
- - x.__init__(...) initializes x; see help(type(x)) for signature -
-
Overrides: - object.__init__ -
(inherited documentation)
- -
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.html._MethodFunc-class.html b/doc/html/api/lxml.html._MethodFunc-class.html deleted file mode 100644 index 7697e8e..0000000 --- a/doc/html/api/lxml.html._MethodFunc-class.html +++ /dev/null @@ -1,275 +0,0 @@ - - - - - lxml.html._MethodFunc - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - lxml :: - html :: - _MethodFunc :: - Class _MethodFunc - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class _MethodFunc

source code

-
-object --+
-         |
-        _MethodFunc
-
- -
-An object that represents a method on an element as a function; -the function takes either an element or an HTML string. It -returns whatever the function normally returns, or if the function -works in-place (and so returns None) it returns a serialized form -of the resulting document. - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__init__(self, - name, - copy=False, - source_class=<class 'lxml.html.HtmlMixin'>)
- x.__init__(...) initializes x; see help(type(x)) for signature
- source code - -
- -
-   - - - - - - -
__call__(self, - doc, - *args, - **kw) - source code - -
- -
-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __new__, - __reduce__, - __reduce_ex__, - __repr__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__init__(self, - name, - copy=False, - source_class=<class 'lxml.html.HtmlMixin'>) -
(Constructor) -

-
source code  -
- - x.__init__(...) initializes x; see help(type(x)) for signature -
-
Overrides: - object.__init__ -
(inherited documentation)
- -
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.html.builder-module.html b/doc/html/api/lxml.html.builder-module.html deleted file mode 100644 index 4596076..0000000 --- a/doc/html/api/lxml.html.builder-module.html +++ /dev/null @@ -1,857 +0,0 @@ - - - - - lxml.html.builder - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package html :: - Module builder - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Module builder

source code

-

A set of HTML generator tags for building HTML documents.

-

Usage:

-
->>> from lxml.html.builder import *
->>> html = HTML(
-...            HEAD( TITLE("Hello World") ),
-...            BODY( CLASS("main"),
-...                  H1("Hello World !")
-...            )
-...        )
-
->>> import lxml.etree
->>> print lxml.etree.tostring(html, pretty_print=True)
-<html>
-  <head>
-    <title>Hello World</title>
-  </head>
-  <body class="main">
-    <h1>Hello World !</h1>
-  </body>
-</html>
-
- - - - - - - - - - - - - -
- - - - - -
Functions[hide private]
-
-   - - - - - - -
CLASS(v) - source code - -
- -
-   - - - - - - -
FOR(v) - source code - -
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Variables[hide private]
-
-   - - E = ElementMaker(makeelement= html_parser.makeelement) -
-   - - A = E.a -
-   - - ABBR = E.abbr -
-   - - ACRONYM = E.acronym -
-   - - ADDRESS = E.address -
-   - - APPLET = E.applet -
-   - - AREA = E.area -
-   - - B = E.b -
-   - - BASE = E.base -
-   - - BASEFONT = E.basefont -
-   - - BDO = E.bdo -
-   - - BIG = E.big -
-   - - BLOCKQUOTE = E.blockquote -
-   - - BODY = E.body -
-   - - BR = E.br -
-   - - BUTTON = E.button -
-   - - CAPTION = E.caption -
-   - - CENTER = E.center -
-   - - CITE = E.cite -
-   - - CODE = E.code -
-   - - COL = E.col -
-   - - COLGROUP = E.colgroup -
-   - - DD = E.dd -
-   - - DEL = getattr(E, 'del') -
-   - - DFN = E.dfn -
-   - - DIR = E.dir -
-   - - DIV = E.div -
-   - - DL = E.dl -
-   - - DT = E.dt -
-   - - EM = E.em -
-   - - FIELDSET = E.fieldset -
-   - - FONT = E.font -
-   - - FORM = E.form -
-   - - FRAME = E.frame -
-   - - FRAMESET = E.frameset -
-   - - H1 = E.h1 -
-   - - H2 = E.h2 -
-   - - H3 = E.h3 -
-   - - H4 = E.h4 -
-   - - H5 = E.h5 -
-   - - H6 = E.h6 -
-   - - HEAD = E.head -
-   - - HR = E.hr -
-   - - HTML = E.html -
-   - - I = E.i -
-   - - IFRAME = E.iframe -
-   - - IMG = E.img -
-   - - INPUT = E.input -
-   - - INS = E.ins -
-   - - ISINDEX = E.isindex -
-   - - KBD = E.kbd -
-   - - LABEL = E.label -
-   - - LEGEND = E.legend -
-   - - LI = E.li -
-   - - LINK = E.link -
-   - - MAP = E.map -
-   - - MENU = E.menu -
-   - - META = E.meta -
-   - - NOFRAMES = E.noframes -
-   - - NOSCRIPT = E.noscript -
-   - - OBJECT = E.object -
-   - - OL = E.ol -
-   - - OPTGROUP = E.optgroup -
-   - - OPTION = E.option -
-   - - P = E.p -
-   - - PARAM = E.param -
-   - - PRE = E.pre -
-   - - Q = E.q -
-   - - S = E.s -
-   - - SAMP = E.samp -
-   - - SCRIPT = E.script -
-   - - SELECT = E.select -
-   - - SMALL = E.small -
-   - - SPAN = E.span -
-   - - STRIKE = E.strike -
-   - - STRONG = E.strong -
-   - - STYLE = E.style -
-   - - SUB = E.sub -
-   - - SUP = E.sup -
-   - - TABLE = E.table -
-   - - TBODY = E.tbody -
-   - - TD = E.td -
-   - - TEXTAREA = E.textarea -
-   - - TFOOT = E.tfoot -
-   - - TH = E.th -
-   - - THEAD = E.thead -
-   - - TITLE = E.title -
-   - - TR = E.tr -
-   - - TT = E.tt -
-   - - U = E.u -
-   - - UL = E.ul -
-   - - VAR = E.var -
-   - - __package__ = 'lxml.html' -
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.html.builder-pysrc.html b/doc/html/api/lxml.html.builder-pysrc.html deleted file mode 100644 index ca3944d..0000000 --- a/doc/html/api/lxml.html.builder-pysrc.html +++ /dev/null @@ -1,455 +0,0 @@ - - - - - lxml.html.builder - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package html :: - Module builder - - - - - - -
[hide private]
[frames] | no frames]
-
-

Source Code for Module lxml.html.builder

-
-  1  # -------------------------------------------------------------------- 
-  2  # The ElementTree toolkit is 
-  3  # Copyright (c) 1999-2004 by Fredrik Lundh 
-  4  # -------------------------------------------------------------------- 
-  5   
-  6  """ 
-  7  A set of HTML generator tags for building HTML documents. 
-  8   
-  9  Usage:: 
- 10   
- 11      >>> from lxml.html.builder import * 
- 12      >>> html = HTML( 
- 13      ...            HEAD( TITLE("Hello World") ), 
- 14      ...            BODY( CLASS("main"), 
- 15      ...                  H1("Hello World !") 
- 16      ...            ) 
- 17      ...        ) 
- 18   
- 19      >>> import lxml.etree 
- 20      >>> print lxml.etree.tostring(html, pretty_print=True) 
- 21      <html> 
- 22        <head> 
- 23          <title>Hello World</title> 
- 24        </head> 
- 25        <body class="main"> 
- 26          <h1>Hello World !</h1> 
- 27        </body> 
- 28      </html> 
- 29   
- 30  """ 
- 31   
- 32  from lxml.builder import ElementMaker 
- 33  from lxml.html import html_parser 
- 34   
- 35  E = ElementMaker(makeelement=html_parser.makeelement) 
- 36   
- 37  # elements 
- 38  A = E.a # anchor 
- 39  ABBR = E.abbr # abbreviated form (e.g., WWW, HTTP, etc.) 
- 40  ACRONYM = E.acronym #  
- 41  ADDRESS = E.address # information on author 
- 42  APPLET = E.applet # Java applet (DEPRECATED) 
- 43  AREA = E.area # client-side image map area 
- 44  B = E.b # bold text style 
- 45  BASE = E.base # document base URI 
- 46  BASEFONT = E.basefont # base font size (DEPRECATED) 
- 47  BDO = E.bdo # I18N BiDi over-ride 
- 48  BIG = E.big # large text style 
- 49  BLOCKQUOTE = E.blockquote # long quotation 
- 50  BODY = E.body # document body 
- 51  BR = E.br # forced line break 
- 52  BUTTON = E.button # push button 
- 53  CAPTION = E.caption # table caption 
- 54  CENTER = E.center # shorthand for DIV align=center (DEPRECATED) 
- 55  CITE = E.cite # citation 
- 56  CODE = E.code # computer code fragment 
- 57  COL = E.col # table column 
- 58  COLGROUP = E.colgroup # table column group 
- 59  DD = E.dd # definition description 
- 60  DEL = getattr(E, 'del') # deleted text 
- 61  DFN = E.dfn # instance definition 
- 62  DIR = E.dir # directory list (DEPRECATED) 
- 63  DIV = E.div # generic language/style container 
- 64  DL = E.dl # definition list 
- 65  DT = E.dt # definition term 
- 66  EM = E.em # emphasis 
- 67  FIELDSET = E.fieldset # form control group 
- 68  FONT = E.font # local change to font (DEPRECATED) 
- 69  FORM = E.form # interactive form 
- 70  FRAME = E.frame # subwindow 
- 71  FRAMESET = E.frameset # window subdivision 
- 72  H1 = E.h1 # heading 
- 73  H2 = E.h2 # heading 
- 74  H3 = E.h3 # heading 
- 75  H4 = E.h4 # heading 
- 76  H5 = E.h5 # heading 
- 77  H6 = E.h6 # heading 
- 78  HEAD = E.head # document head 
- 79  HR = E.hr # horizontal rule 
- 80  HTML = E.html # document root element 
- 81  I = E.i # italic text style 
- 82  IFRAME = E.iframe # inline subwindow 
- 83  IMG = E.img # Embedded image 
- 84  INPUT = E.input # form control 
- 85  INS = E.ins # inserted text 
- 86  ISINDEX = E.isindex # single line prompt (DEPRECATED) 
- 87  KBD = E.kbd # text to be entered by the user 
- 88  LABEL = E.label # form field label text 
- 89  LEGEND = E.legend # fieldset legend 
- 90  LI = E.li # list item 
- 91  LINK = E.link # a media-independent link 
- 92  MAP = E.map # client-side image map 
- 93  MENU = E.menu # menu list (DEPRECATED) 
- 94  META = E.meta # generic metainformation 
- 95  NOFRAMES = E.noframes # alternate content container for non frame-based rendering 
- 96  NOSCRIPT = E.noscript # alternate content container for non script-based rendering 
- 97  OBJECT = E.object # generic embedded object 
- 98  OL = E.ol # ordered list 
- 99  OPTGROUP = E.optgroup # option group 
-100  OPTION = E.option # selectable choice 
-101  P = E.p # paragraph 
-102  PARAM = E.param # named property value 
-103  PRE = E.pre # preformatted text 
-104  Q = E.q # short inline quotation 
-105  S = E.s # strike-through text style (DEPRECATED) 
-106  SAMP = E.samp # sample program output, scripts, etc. 
-107  SCRIPT = E.script # script statements 
-108  SELECT = E.select # option selector 
-109  SMALL = E.small # small text style 
-110  SPAN = E.span # generic language/style container 
-111  STRIKE = E.strike # strike-through text (DEPRECATED) 
-112  STRONG = E.strong # strong emphasis 
-113  STYLE = E.style # style info 
-114  SUB = E.sub # subscript 
-115  SUP = E.sup # superscript 
-116  TABLE = E.table #  
-117  TBODY = E.tbody # table body 
-118  TD = E.td # table data cell 
-119  TEXTAREA = E.textarea # multi-line text field 
-120  TFOOT = E.tfoot # table footer 
-121  TH = E.th # table header cell 
-122  THEAD = E.thead # table header 
-123  TITLE = E.title # document title 
-124  TR = E.tr # table row 
-125  TT = E.tt # teletype or monospaced text style 
-126  U = E.u # underlined text style (DEPRECATED) 
-127  UL = E.ul # unordered list 
-128  VAR = E.var # instance of a variable or program argument 
-129   
-130  # attributes (only reserved words are included here) 
-131  ATTR = dict 
-
132 -def CLASS(v): return {'class': v} -
133 -def FOR(v): return {'for': v} -
134 -
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.html.clean-module.html b/doc/html/api/lxml.html.clean-module.html deleted file mode 100644 index a24a68e..0000000 --- a/doc/html/api/lxml.html.clean-module.html +++ /dev/null @@ -1,749 +0,0 @@ - - - - - lxml.html.clean - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package html :: - Module clean - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Module clean

source code

-

A cleanup tool for HTML.

-

Removes unwanted tags and content. See the Cleaner class for -details.

- - - - - - - - - - - - - - - - -
- - - - - -
Classes[hide private]
-
-   - - unicode
- str(object) -> string -
-   - - bytes
- str(object) -> string -
-   - - Cleaner
- Instances cleans the document of each of the possible offending -elements. The cleaning is controlled by attributes; you can -override attributes in a subclass, or set them in the constructor. -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Functions[hide private]
-
- character - - - - - - -
unichr(i)
- Return a string of one character with ordinal i; 0 <= i < 256.
- - -
- -
-   - - - - - - -
_substitute_whitespace(...)
- sub(repl, string[, count = 0]) --> newstring -Return the string obtained by replacing the leftmost non-overlapping -occurrences of pattern in string by the replacement repl.
- source code - -
- -
-   - - - - - - -
clean_html(html) - source code - -
- -
-   - - - - - - -
autolink(el, - link_regexes=[re.compile(r'(?i)(?P<body>https?://(?P<host>[a-z0-9\._-]+)(?:..., - avoid_elements=['textarea', 'pre', 'code', 'head', 'select', 'a'], - avoid_hosts=[re.compile(r'(?i)^localhost'), re.compile(r'(?i)\bexample\.(?..., - avoid_classes=['nolink'])
- Turn any URLs into links.
- source code - -
- -
-   - - - - - - -
_link_text(text, - link_regexes, - avoid_hosts, - factory) - source code - -
- -
-   - - - - - - -
autolink_html(html, - *args, - **kw)
- Turn any URLs into links.
- source code - -
- -
-   - - - - - - -
word_break(el, - max_width=40, - avoid_elements=['pre', 'textarea', 'code'], - avoid_classes=['nobreak'], - break_character=u'')
- Breaks any long words found in the body of the text (not attributes).
- source code - -
- -
-   - - - - - - -
word_break_html(html, - *args, - **kw) - source code - -
- -
-   - - - - - - -
_break_text(text, - max_width, - break_character) - source code - -
- -
-   - - - - - - -
_insert_break(word, - width, - break_character) - source code - -
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Variables[hide private]
-
-   - - basestring = str, bytes -
-   - - _css_javascript_re = re.compile(r'(?is)expression\s*\(.*?\)') -
-   - - _css_import_re = re.compile(r'(?i)@\s*import') -
-   - - _javascript_scheme_re = re.compile(r'(?i)\s*(?:javascript|jscr... -
-   - - _conditional_comment_re = re.compile(r'(?is)\[if[\s\n\r]+.*?\]... -
-   - - _find_styled_elements = descendant-or-self::*[@style] -
-   - - _find_external_links = descendant-or-self::a [normalize-space... -
-   - - clean = Cleaner() -
-   - - _link_regexes = [re.compile(r'(?i)(?P<body>https?://(?P<host>[... -
-   - - _avoid_elements = ['textarea', 'pre', 'code', 'head', 'select'... -
-   - - _avoid_hosts = [re.compile(r'(?i)^localhost'), re.compile(r'(?... -
-   - - _avoid_classes = ['nolink'] -
-   - - _avoid_word_break_elements = ['pre', 'textarea', 'code'] -
-   - - _avoid_word_break_classes = ['nobreak'] -
-   - - _break_prefer_re = re.compile(r'(?i)[^a-z]') -
-   - - __package__ = 'lxml.html' -
- - - - - - -
- - - - - -
Function Details[hide private]
-
- -
- -
- - -
-

autolink(el, - link_regexes=[re.compile(r'(?i)(?P<body>https?://(?P<host>[a-z0-9\._-]+)(?:..., - avoid_elements=['textarea', 'pre', 'code', 'head', 'select', 'a'], - avoid_hosts=[re.compile(r'(?i)^localhost'), re.compile(r'(?i)\bexample\.(?..., - avoid_classes=['nolink']) -

-
source code  -
- -

Turn any URLs into links.

-

It will search for links identified by the given regular -expressions (by default mailto and http(s) links).

-

It won't link text in an element in avoid_elements, or an element -with a class in avoid_classes. It won't link to anything with a -host that matches one of the regular expressions in avoid_hosts -(default localhost and 127.0.0.1).

-

If you pass in an element, the element's tail will not be -substituted, only the contents of the element.

-
-
-
-
- -
- -
- - -
-

autolink_html(html, - *args, - **kw) -

-
source code  -
- -

Turn any URLs into links.

-

It will search for links identified by the given regular -expressions (by default mailto and http(s) links).

-

It won't link text in an element in avoid_elements, or an element -with a class in avoid_classes. It won't link to anything with a -host that matches one of the regular expressions in avoid_hosts -(default localhost and 127.0.0.1).

-

If you pass in an element, the element's tail will not be -substituted, only the contents of the element.

-
-
-
-
- -
- -
- - -
-

word_break(el, - max_width=40, - avoid_elements=['pre', 'textarea', 'code'], - avoid_classes=['nobreak'], - break_character=u'') -

-
source code  -
- -

Breaks any long words found in the body of the text (not attributes).

-

Doesn't effect any of the tags in avoid_elements, by default -<textarea> and <pre>

-

Breaks words by inserting &#8203;, which is a unicode character -for Zero Width Space character. This generally takes up no space -in rendering, but does copy as a space, and in monospace contexts -usually takes up space.

-

See http://www.cs.tut.fi/~jkorpela/html/nobr.html for a discussion

-
-
-
-
-
- - - - - - -
- - - - - -
Variables Details[hide private]
-
- -
- -
-

_javascript_scheme_re

- -
-
-
-
Value:
-
-re.compile(r'(?i)\s*(?:javascript|jscript|livescript|vbscript|data|abo\
-ut|mocha):')
-
-
-
-
-
- -
- -
-

_conditional_comment_re

- -
-
-
-
Value:
-
-re.compile(r'(?is)\[if[\s\n\r]+.*?\][\s\n\r]*>')
-
-
-
-
-
- -
- -
-

_find_external_links

- -
-
-
-
Value:
-
-descendant-or-self::a  [normalize-space(@href) and substring(normalize\
--space(@href),1,1) != '#'] |descendant-or-self::x:a[normalize-space(@h\
-ref) and substring(normalize-space(@href),1,1) != '#']
-
-
-
-
-
- -
- -
-

_link_regexes

- -
-
-
-
Value:
-
-[re.compile(r'(?i)(?P<body>https?://(?P<host>[a-z0-9\._-]+)(?:/[/-_\.,\
-a-z0-9%&\?;=~]*)?(?:\([/-_\.,a-z0-9%&\?;=~]*\))?)'),
- re.compile(r'(?i)mailto:(?P<body>[a-z0-9\._-]+@(?P<host>[a-z0-9_\._]+\
-[a-z]))')]
-
-
-
-
-
- -
- -
-

_avoid_elements

- -
-
-
-
Value:
-
-['textarea', 'pre', 'code', 'head', 'select', 'a']
-
-
-
-
-
- -
- -
-

_avoid_hosts

- -
-
-
-
Value:
-
-[re.compile(r'(?i)^localhost'),
- re.compile(r'(?i)\bexample\.(?:com|org|net)$'),
- re.compile(r'^127\.0\.0\.1$')]
-
-
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.html.clean-pysrc.html b/doc/html/api/lxml.html.clean-pysrc.html deleted file mode 100644 index 628d494..0000000 --- a/doc/html/api/lxml.html.clean-pysrc.html +++ /dev/null @@ -1,1246 +0,0 @@ - - - - - lxml.html.clean - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package html :: - Module clean - - - - - - -
[hide private]
[frames] | no frames]
-
-

Source Code for Module lxml.html.clean

-
-  1  """A cleanup tool for HTML. 
-  2   
-  3  Removes unwanted tags and content.  See the `Cleaner` class for 
-  4  details. 
-  5  """ 
-  6   
-  7  import re 
-  8  import copy 
-  9  try: 
- 10      from urlparse import urlsplit 
- 11  except ImportError: 
- 12      # Python 3 
- 13      from urllib.parse import urlsplit 
- 14  from lxml import etree 
- 15  from lxml.html import defs 
- 16  from lxml.html import fromstring, tostring, XHTML_NAMESPACE 
- 17  from lxml.html import xhtml_to_html, _transform_result 
- 18   
- 19  try: 
- 20      unichr 
- 21  except NameError: 
- 22      # Python 3 
- 23      unichr = chr 
- 24  try: 
- 25      unicode 
- 26  except NameError: 
- 27      # Python 3 
- 28      unicode = str 
- 29  try: 
- 30      bytes 
- 31  except NameError: 
- 32      # Python < 2.6 
- 33      bytes = str 
- 34  try: 
- 35      basestring 
- 36  except NameError: 
- 37      basestring = (str, bytes) 
- 38   
- 39   
- 40  __all__ = ['clean_html', 'clean', 'Cleaner', 'autolink', 'autolink_html', 
- 41             'word_break', 'word_break_html'] 
- 42   
- 43  # Look at http://code.sixapart.com/trac/livejournal/browser/trunk/cgi-bin/cleanhtml.pl 
- 44  #   Particularly the CSS cleaning; most of the tag cleaning is integrated now 
- 45  # I have multiple kinds of schemes searched; but should schemes be 
- 46  #   whitelisted instead? 
- 47  # max height? 
- 48  # remove images?  Also in CSS?  background attribute? 
- 49  # Some way to whitelist object, iframe, etc (e.g., if you want to 
- 50  #   allow *just* embedded YouTube movies) 
- 51  # Log what was deleted and why? 
- 52  # style="behavior: ..." might be bad in IE? 
- 53  # Should we have something for just <meta http-equiv>?  That's the worst of the 
- 54  #   metas. 
- 55  # UTF-7 detections?  Example: 
- 56  #     <HEAD><META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=UTF-7"> </HEAD>+ADw-SCRIPT+AD4-alert('XSS');+ADw-/SCRIPT+AD4- 
- 57  #   you don't always have to have the charset set, if the page has no charset 
- 58  #   and there's UTF7-like code in it. 
- 59  # Look at these tests: http://htmlpurifier.org/live/smoketests/xssAttacks.php 
- 60   
- 61   
- 62  # This is an IE-specific construct you can have in a stylesheet to 
- 63  # run some Javascript: 
- 64  _css_javascript_re = re.compile( 
- 65      r'expression\s*\(.*?\)', re.S|re.I) 
- 66   
- 67  # Do I have to worry about @\nimport? 
- 68  _css_import_re = re.compile( 
- 69      r'@\s*import', re.I) 
- 70   
- 71  # All kinds of schemes besides just javascript: that can cause 
- 72  # execution: 
- 73  _javascript_scheme_re = re.compile( 
- 74      r'\s*(?:javascript|jscript|livescript|vbscript|data|about|mocha):', re.I) 
- 75  _substitute_whitespace = re.compile(r'\s+').sub 
- 76  # FIXME: should data: be blocked? 
- 77   
- 78  # FIXME: check against: http://msdn2.microsoft.com/en-us/library/ms537512.aspx 
- 79  _conditional_comment_re = re.compile( 
- 80      r'\[if[\s\n\r]+.*?][\s\n\r]*>', re.I|re.S) 
- 81   
- 82  _find_styled_elements = etree.XPath( 
- 83      "descendant-or-self::*[@style]") 
- 84   
- 85  _find_external_links = etree.XPath( 
- 86      ("descendant-or-self::a  [normalize-space(@href) and substring(normalize-space(@href),1,1) != '#'] |" 
- 87       "descendant-or-self::x:a[normalize-space(@href) and substring(normalize-space(@href),1,1) != '#']"), 
- 88      namespaces={'x':XHTML_NAMESPACE}) 
- 89   
-
90 -class Cleaner(object): -
91 """ - 92 Instances cleans the document of each of the possible offending - 93 elements. The cleaning is controlled by attributes; you can - 94 override attributes in a subclass, or set them in the constructor. - 95 - 96 ``scripts``: - 97 Removes any ``<script>`` tags. - 98 - 99 ``javascript``: -100 Removes any Javascript, like an ``onclick`` attribute. -101 -102 ``comments``: -103 Removes any comments. -104 -105 ``style``: -106 Removes any style tags or attributes. -107 -108 ``links``: -109 Removes any ``<link>`` tags -110 -111 ``meta``: -112 Removes any ``<meta>`` tags -113 -114 ``page_structure``: -115 Structural parts of a page: ``<head>``, ``<html>``, ``<title>``. -116 -117 ``processing_instructions``: -118 Removes any processing instructions. -119 -120 ``embedded``: -121 Removes any embedded objects (flash, iframes) -122 -123 ``frames``: -124 Removes any frame-related tags -125 -126 ``forms``: -127 Removes any form tags -128 -129 ``annoying_tags``: -130 Tags that aren't *wrong*, but are annoying. ``<blink>`` and ``<marquee>`` -131 -132 ``remove_tags``: -133 A list of tags to remove. Only the tags will be removed, -134 their content will get pulled up into the parent tag. -135 -136 ``kill_tags``: -137 A list of tags to kill. Killing also removes the tag's content, -138 i.e. the whole subtree, not just the tag itself. -139 -140 ``allow_tags``: -141 A list of tags to include (default include all). -142 -143 ``remove_unknown_tags``: -144 Remove any tags that aren't standard parts of HTML. -145 -146 ``safe_attrs_only``: -147 If true, only include 'safe' attributes (specifically the list -148 from the feedparser HTML sanitisation web site). -149 -150 ``add_nofollow``: -151 If true, then any <a> tags will have ``rel="nofollow"`` added to them. -152 -153 ``host_whitelist``: -154 A list or set of hosts that you can use for embedded content -155 (for content like ``<object>``, ``<link rel="stylesheet">``, etc). -156 You can also implement/override the method -157 ``allow_embedded_url(el, url)`` or ``allow_element(el)`` to -158 implement more complex rules for what can be embedded. -159 Anything that passes this test will be shown, regardless of -160 the value of (for instance) ``embedded``. -161 -162 Note that this parameter might not work as intended if you do not -163 make the links absolute before doing the cleaning. -164 -165 ``whitelist_tags``: -166 A set of tags that can be included with ``host_whitelist``. -167 The default is ``iframe`` and ``embed``; you may wish to -168 include other tags like ``script``, or you may want to -169 implement ``allow_embedded_url`` for more control. Set to None to -170 include all tags. -171 -172 This modifies the document *in place*. -173 """ -174 -175 scripts = True -176 javascript = True -177 comments = True -178 style = False -179 links = True -180 meta = True -181 page_structure = True -182 processing_instructions = True -183 embedded = True -184 frames = True -185 forms = True -186 annoying_tags = True -187 remove_tags = None -188 allow_tags = None -189 kill_tags = None -190 remove_unknown_tags = True -191 safe_attrs_only = True -192 add_nofollow = False -193 host_whitelist = () -194 whitelist_tags = set(['iframe', 'embed']) -195 -
196 - def __init__(self, **kw): -
197 for name, value in kw.items(): -198 if not hasattr(self, name): -199 raise TypeError( -200 "Unknown parameter: %s=%r" % (name, value)) -201 setattr(self, name, value) -
202 -203 # Used to lookup the primary URL for a given tag that is up for -204 # removal: -205 _tag_link_attrs = dict( -206 script='src', -207 link='href', -208 # From: http://java.sun.com/j2se/1.4.2/docs/guide/misc/applet.html -209 # From what I can tell, both attributes can contain a link: -210 applet=['code', 'object'], -211 iframe='src', -212 embed='src', -213 layer='src', -214 # FIXME: there doesn't really seem like a general way to figure out what -215 # links an <object> tag uses; links often go in <param> tags with values -216 # that we don't really know. You'd have to have knowledge about specific -217 # kinds of plugins (probably keyed off classid), and match against those. -218 ##object=?, -219 # FIXME: not looking at the action currently, because it is more complex -220 # than than -- if you keep the form, you should keep the form controls. -221 ##form='action', -222 a='href', -223 ) -224 -
225 - def __call__(self, doc): -
226 """ -227 Cleans the document. -228 """ -229 if hasattr(doc, 'getroot'): -230 # ElementTree instance, instead of an element -231 doc = doc.getroot() -232 # convert XHTML to HTML -233 xhtml_to_html(doc) -234 # Normalize a case that IE treats <image> like <img>, and that -235 # can confuse either this step or later steps. -236 for el in doc.iter('image'): -237 el.tag = 'img' -238 if not self.comments: -239 # Of course, if we were going to kill comments anyway, we don't -240 # need to worry about this -241 self.kill_conditional_comments(doc) -242 -243 kill_tags = set(self.kill_tags or ()) -244 remove_tags = set(self.remove_tags or ()) -245 allow_tags = set(self.allow_tags or ()) -246 -247 if self.scripts: -248 kill_tags.add('script') -249 if self.safe_attrs_only: -250 safe_attrs = set(defs.safe_attrs) -251 for el in doc.iter(): -252 attrib = el.attrib -253 for aname in attrib.keys(): -254 if aname not in safe_attrs: -255 del attrib[aname] -256 if self.javascript: -257 if not self.safe_attrs_only: -258 # safe_attrs handles events attributes itself -259 for el in doc.iter(): -260 attrib = el.attrib -261 for aname in attrib.keys(): -262 if aname.startswith('on'): -263 del attrib[aname] -264 doc.rewrite_links(self._remove_javascript_link, -265 resolve_base_href=False) -266 if not self.style: -267 # If we're deleting style then we don't have to remove JS links -268 # from styles, otherwise... -269 for el in _find_styled_elements(doc): -270 old = el.get('style') -271 new = _css_javascript_re.sub('', old) -272 new = _css_import_re.sub('', old) -273 if self._has_sneaky_javascript(new): -274 # Something tricky is going on... -275 del el.attrib['style'] -276 elif new != old: -277 el.set('style', new) -278 for el in list(doc.iter('style')): -279 if el.get('type', '').lower().strip() == 'text/javascript': -280 el.drop_tree() -281 continue -282 old = el.text or '' -283 new = _css_javascript_re.sub('', old) -284 # The imported CSS can do anything; we just can't allow: -285 new = _css_import_re.sub('', old) -286 if self._has_sneaky_javascript(new): -287 # Something tricky is going on... -288 el.text = '/* deleted */' -289 elif new != old: -290 el.text = new -291 if self.comments or self.processing_instructions: -292 # FIXME: why either? I feel like there's some obscure reason -293 # because you can put PIs in comments...? But I've already -294 # forgotten it -295 kill_tags.add(etree.Comment) -296 if self.processing_instructions: -297 kill_tags.add(etree.ProcessingInstruction) -298 if self.style: -299 kill_tags.add('style') -300 etree.strip_attributes(doc, 'style') -301 if self.links: -302 kill_tags.add('link') -303 elif self.style or self.javascript: -304 # We must get rid of included stylesheets if Javascript is not -305 # allowed, as you can put Javascript in them -306 for el in list(doc.iter('link')): -307 if 'stylesheet' in el.get('rel', '').lower(): -308 # Note this kills alternate stylesheets as well -309 el.drop_tree() -310 if self.meta: -311 kill_tags.add('meta') -312 if self.page_structure: -313 remove_tags.update(('head', 'html', 'title')) -314 if self.embedded: -315 # FIXME: is <layer> really embedded? -316 # We should get rid of any <param> tags not inside <applet>; -317 # These are not really valid anyway. -318 for el in list(doc.iter('param')): -319 found_parent = False -320 parent = el.getparent() -321 while parent is not None and parent.tag not in ('applet', 'object'): -322 parent = parent.getparent() -323 if parent is None: -324 el.drop_tree() -325 kill_tags.update(('applet',)) -326 # The alternate contents that are in an iframe are a good fallback: -327 remove_tags.update(('iframe', 'embed', 'layer', 'object', 'param')) -328 if self.frames: -329 # FIXME: ideally we should look at the frame links, but -330 # generally frames don't mix properly with an HTML -331 # fragment anyway. -332 kill_tags.update(defs.frame_tags) -333 if self.forms: -334 remove_tags.add('form') -335 kill_tags.update(('button', 'input', 'select', 'textarea')) -336 if self.annoying_tags: -337 remove_tags.update(('blink', 'marquee')) -338 -339 _remove = [] -340 _kill = [] -341 for el in doc.iter(): -342 if el.tag in kill_tags: -343 if self.allow_element(el): -344 continue -345 _kill.append(el) -346 elif el.tag in remove_tags: -347 if self.allow_element(el): -348 continue -349 _remove.append(el) -350 -351 if _remove and _remove[0] == doc: -352 # We have to drop the parent-most tag, which we can't -353 # do. Instead we'll rewrite it: -354 el = _remove.pop(0) -355 el.tag = 'div' -356 el.attrib.clear() -357 elif _kill and _kill[0] == doc: -358 # We have to drop the parent-most element, which we can't -359 # do. Instead we'll clear it: -360 el = _kill.pop(0) -361 if el.tag != 'html': -362 el.tag = 'div' -363 el.clear() -364 -365 _kill.reverse() # start with innermost tags -366 for el in _kill: -367 el.drop_tree() -368 for el in _remove: -369 el.drop_tag() -370 -371 allow_tags = self.allow_tags -372 if self.remove_unknown_tags: -373 if allow_tags: -374 raise ValueError( -375 "It does not make sense to pass in both allow_tags and remove_unknown_tags") -376 allow_tags = set(defs.tags) -377 if allow_tags: -378 bad = [] -379 for el in doc.iter(): -380 if el.tag not in allow_tags: -381 bad.append(el) -382 if bad: -383 if bad[0] is doc: -384 el = bad.pop(0) -385 el.tag = 'div' -386 el.attrib.clear() -387 for el in bad: -388 el.drop_tag() -389 if self.add_nofollow: -390 for el in _find_external_links(doc): -391 if not self.allow_follow(el): -392 el.set('rel', 'nofollow') -
393 -
394 - def allow_follow(self, anchor): -
395 """ -396 Override to suppress rel="nofollow" on some anchors. -397 """ -398 return False -
399 -
400 - def allow_element(self, el): -
401 if el.tag not in self._tag_link_attrs: -402 return False -403 attr = self._tag_link_attrs[el.tag] -404 if isinstance(attr, (list, tuple)): -405 for one_attr in attr: -406 url = el.get(one_attr) -407 if not url: -408 return False -409 if not self.allow_embedded_url(el, url): -410 return False -411 return True -412 else: -413 url = el.get(attr) -414 if not url: -415 return False -416 return self.allow_embedded_url(el, url) -
417 -
418 - def allow_embedded_url(self, el, url): -
419 if (self.whitelist_tags is not None -420 and el.tag not in self.whitelist_tags): -421 return False -422 scheme, netloc, path, query, fragment = urlsplit(url) -423 netloc = netloc.lower().split(':', 1)[0] -424 if scheme not in ('http', 'https'): -425 return False -426 if netloc in self.host_whitelist: -427 return True -428 return False -
429 -
430 - def kill_conditional_comments(self, doc): -
431 """ -432 IE conditional comments basically embed HTML that the parser -433 doesn't normally see. We can't allow anything like that, so -434 we'll kill any comments that could be conditional. -435 """ -436 bad = [] -437 self._kill_elements( -438 doc, lambda el: _conditional_comment_re.search(el.text), -439 etree.Comment) -
440 -
441 - def _kill_elements(self, doc, condition, iterate=None): -
442 bad = [] -443 for el in doc.iter(iterate): -444 if condition(el): -445 bad.append(el) -446 for el in bad: -447 el.drop_tree() -
448 -456 -457 _substitute_comments = re.compile(r'/\*.*?\*/', re.S).sub -458 -
459 - def _has_sneaky_javascript(self, style): -
460 """ -461 Depending on the browser, stuff like ``e x p r e s s i o n(...)`` -462 can get interpreted, or ``expre/* stuff */ssion(...)``. This -463 checks for attempt to do stuff like this. -464 -465 Typically the response will be to kill the entire style; if you -466 have just a bit of Javascript in the style another rule will catch -467 that and remove only the Javascript from the style; this catches -468 more sneaky attempts. -469 """ -470 style = self._substitute_comments('', style) -471 style = style.replace('\\', '') -472 style = _substitute_whitespace('', style) -473 style = style.lower() -474 if 'javascript:' in style: -475 return True -476 if 'expression(' in style: -477 return True -478 return False -
479 -
480 - def clean_html(self, html): -
481 result_type = type(html) -482 if isinstance(html, basestring): -483 doc = fromstring(html) -484 else: -485 doc = copy.deepcopy(html) -486 self(doc) -487 return _transform_result(result_type, doc) -
488 -489 clean = Cleaner() -490 clean_html = clean.clean_html -491 -492 ############################################################ -493 ## Autolinking -494 ############################################################ -495 -496 _link_regexes = [ -497 re.compile(r'(?P<body>https?://(?P<host>[a-z0-9._-]+)(?:/[/\-_.,a-z0-9%&?;=~]*)?(?:\([/\-_.,a-z0-9%&?;=~]*\))?)', re.I), -498 # This is conservative, but autolinking can be a bit conservative: -499 re.compile(r'mailto:(?P<body>[a-z0-9._-]+@(?P<host>[a-z0-9_._]+[a-z]))', re.I), -500 ] -501 -502 _avoid_elements = ['textarea', 'pre', 'code', 'head', 'select', 'a'] -503 -504 _avoid_hosts = [ -505 re.compile(r'^localhost', re.I), -506 re.compile(r'\bexample\.(?:com|org|net)$', re.I), -507 re.compile(r'^127\.0\.0\.1$'), -508 ] -509 -510 _avoid_classes = ['nolink'] -511 -556 -614 -623 -624 autolink_html.__doc__ = autolink.__doc__ -625 -626 ############################################################ -627 ## Word wrapping -628 ############################################################ -629 -630 _avoid_word_break_elements = ['pre', 'textarea', 'code'] -631 _avoid_word_break_classes = ['nobreak'] -632 -
633 -def word_break(el, max_width=40, -634 avoid_elements=_avoid_word_break_elements, -635 avoid_classes=_avoid_word_break_classes, -636 break_character=unichr(0x200b)): -
637 """ -638 Breaks any long words found in the body of the text (not attributes). -639 -640 Doesn't effect any of the tags in avoid_elements, by default -641 ``<textarea>`` and ``<pre>`` -642 -643 Breaks words by inserting &#8203;, which is a unicode character -644 for Zero Width Space character. This generally takes up no space -645 in rendering, but does copy as a space, and in monospace contexts -646 usually takes up space. -647 -648 See http://www.cs.tut.fi/~jkorpela/html/nobr.html for a discussion -649 """ -650 # Character suggestion of &#8203 comes from: -651 # http://www.cs.tut.fi/~jkorpela/html/nobr.html -652 if el.tag in _avoid_word_break_elements: -653 return -654 class_name = el.get('class') -655 if class_name: -656 dont_break = False -657 class_name = class_name.split() -658 for avoid in avoid_classes: -659 if avoid in class_name: -660 dont_break = True -661 break -662 if dont_break: -663 return -664 if el.text: -665 el.text = _break_text(el.text, max_width, break_character) -666 for child in el: -667 word_break(child, max_width=max_width, -668 avoid_elements=avoid_elements, -669 avoid_classes=avoid_classes, -670 break_character=break_character) -671 if child.tail: -672 child.tail = _break_text(child.tail, max_width, break_character) -
673 -
674 -def word_break_html(html, *args, **kw): -
675 result_type = type(html) -676 doc = fromstring(html) -677 word_break(doc, *args, **kw) -678 return _transform_result(result_type, doc) -
679 -
680 -def _break_text(text, max_width, break_character): -
681 words = text.split() -682 for word in words: -683 if len(word) > max_width: -684 replacement = _insert_break(word, max_width, break_character) -685 text = text.replace(word, replacement) -686 return text -
687 -688 _break_prefer_re = re.compile(r'[^a-z]', re.I) -689 -
690 -def _insert_break(word, width, break_character): -
691 orig_word = word -692 result = '' -693 while len(word) > width: -694 start = word[:width] -695 breaks = list(_break_prefer_re.finditer(start)) -696 if breaks: -697 last_break = breaks[-1] -698 # Only walk back up to 10 characters to find a nice break: -699 if last_break.end() > width-10: -700 # FIXME: should the break character be at the end of the -701 # chunk, or the beginning of the next chunk? -702 start = word[:last_break.end()] -703 result += start + break_character -704 word = word[len(start):] -705 result += word -706 return result -
707 -
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.html.clean.Cleaner-class.html b/doc/html/api/lxml.html.clean.Cleaner-class.html deleted file mode 100644 index d9af9c5..0000000 --- a/doc/html/api/lxml.html.clean.Cleaner-class.html +++ /dev/null @@ -1,735 +0,0 @@ - - - - - lxml.html.clean.Cleaner - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package html :: - Module clean :: - Class Cleaner - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class Cleaner

source code

-
-object --+
-         |
-        Cleaner
-
- -
-

Instances cleans the document of each of the possible offending -elements. The cleaning is controlled by attributes; you can -override attributes in a subclass, or set them in the constructor.

-
-
scripts:
-
Removes any <script> tags.
-
javascript:
-
Removes any Javascript, like an onclick attribute.
-
comments:
-
Removes any comments.
-
style:
-
Removes any style tags or attributes.
-
links:
-
Removes any <link> tags
-
meta:
-
Removes any <meta> tags
-
page_structure:
-
Structural parts of a page: <head>, <html>, <title>.
-
processing_instructions:
-
Removes any processing instructions.
-
embedded:
-
Removes any embedded objects (flash, iframes)
-
frames:
-
Removes any frame-related tags
-
forms:
-
Removes any form tags
-
annoying_tags:
-
Tags that aren't wrong, but are annoying. <blink> and <marquee>
-
remove_tags:
-
A list of tags to remove. Only the tags will be removed, -their content will get pulled up into the parent tag.
-
kill_tags:
-
A list of tags to kill. Killing also removes the tag's content, -i.e. the whole subtree, not just the tag itself.
-
allow_tags:
-
A list of tags to include (default include all).
-
remove_unknown_tags:
-
Remove any tags that aren't standard parts of HTML.
-
safe_attrs_only:
-
If true, only include 'safe' attributes (specifically the list -from the feedparser HTML sanitisation web site).
-
add_nofollow:
-
If true, then any <a> tags will have rel="nofollow" added to them.
-
host_whitelist:
-

A list or set of hosts that you can use for embedded content -(for content like <object>, <link rel="stylesheet">, etc). -You can also implement/override the method -allow_embedded_url(el, url) or allow_element(el) to -implement more complex rules for what can be embedded. -Anything that passes this test will be shown, regardless of -the value of (for instance) embedded.

-

Note that this parameter might not work as intended if you do not -make the links absolute before doing the cleaning.

-
-
whitelist_tags:
-
A set of tags that can be included with host_whitelist. -The default is iframe and embed; you may wish to -include other tags like script, or you may want to -implement allow_embedded_url for more control. Set to None to -include all tags.
-
-

This modifies the document in place.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__init__(self, - **kw)
- x.__init__(...) initializes x; see help(type(x)) for signature
- source code - -
- -
-   - - - - - - -
__call__(self, - doc)
- Cleans the document.
- source code - -
- -
-   - - - - - - -
allow_follow(self, - anchor)
- Override to suppress rel="nofollow" on some anchors.
- source code - -
- -
-   - - - - - - -
allow_element(self, - el) - source code - -
- -
-   - - - - - - -
allow_embedded_url(self, - el, - url) - source code - -
- -
-   - - - - - - -
kill_conditional_comments(self, - doc)
- IE conditional comments basically embed HTML that the parser -doesn't normally see. We can't allow anything like that, so -we'll kill any comments that could be conditional.
- source code - -
- -
-   - - - - - - -
_kill_elements(self, - doc, - condition, - iterate=None) - source code - -
- -
-   - - - - - - -
_remove_javascript_link(self, - link) - source code - -
- -
-   - - - - - - -
_substitute_comments(...)
- sub(repl, string[, count = 0]) --> newstring -Return the string obtained by replacing the leftmost non-overlapping -occurrences of pattern in string by the replacement repl.
- source code - -
- -
-   - - - - - - -
_has_sneaky_javascript(self, - style)
- Depending on the browser, stuff like e x p r e s s i o n(...) -can get interpreted, or expre/* stuff */ssion(...). This -checks for attempt to do stuff like this.
- source code - -
- -
-   - - - - - - -
clean_html(self, - html) - source code - -
- -
-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __new__, - __reduce__, - __reduce_ex__, - __repr__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Class Variables[hide private]
-
-   - - scripts = True -
-   - - javascript = True -
-   - - comments = True -
-   - - style = False -
-   - - links = True -
-   - - meta = True -
-   - - page_structure = True -
-   - - processing_instructions = True -
-   - - embedded = True -
-   - - frames = True -
-   - - forms = True -
-   - - annoying_tags = True -
-   - - remove_tags = None
- hash(x) -
-   - - allow_tags = None
- hash(x) -
-   - - kill_tags = None
- hash(x) -
-   - - remove_unknown_tags = True -
-   - - safe_attrs_only = True -
-   - - add_nofollow = False -
-   - - host_whitelist = () -
-   - - whitelist_tags = set(['embed', 'iframe']) -
-   - - _tag_link_attrs = {'a': 'href', 'applet': ['code', 'object'], ... -
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__init__(self, - **kw) -
(Constructor) -

-
source code  -
- - x.__init__(...) initializes x; see help(type(x)) for signature -
-
Overrides: - object.__init__ -
(inherited documentation)
- -
-
-
- -
- -
- - -
-

_has_sneaky_javascript(self, - style) -

-
source code  -
- -

Depending on the browser, stuff like e x p r e s s i o n(...) -can get interpreted, or expre/* stuff */ssion(...). This -checks for attempt to do stuff like this.

-

Typically the response will be to kill the entire style; if you -have just a bit of Javascript in the style another rule will catch -that and remove only the Javascript from the style; this catches -more sneaky attempts.

-
-
-
-
-
- - - - - - -
- - - - - -
Class Variable Details[hide private]
-
- -
- -
-

_tag_link_attrs

- -
-
-
-
Value:
-
-{'a': 'href',
- 'applet': ['code', 'object'],
- 'embed': 'src',
- 'iframe': 'src',
- 'layer': 'src',
- 'link': 'href',
- 'script': 'src'}
-
-
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.html.defs-module.html b/doc/html/api/lxml.html.defs-module.html deleted file mode 100644 index c6ef04b..0000000 --- a/doc/html/api/lxml.html.defs-module.html +++ /dev/null @@ -1,760 +0,0 @@ - - - - - lxml.html.defs - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package html :: - Module defs - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Module defs

source code

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Variables[hide private]
-
-   - - empty_tags = frozenset(['area', 'base', 'basefont', 'br', 'col... -
-   - - deprecated_tags = frozenset(['applet', 'basefont', 'center', '... -
-   - - link_attrs = frozenset(['action', 'archive', 'background', 'ci... -
-   - - event_attrs = frozenset(['onblur', 'onchange', 'onclick', 'ond... -
-   - - safe_attrs = frozenset(['abbr', 'accept', 'accept-charset', 'a... -
-   - - top_level_tags = frozenset(['body', 'frameset', 'head', 'html']) -
-   - - head_tags = frozenset(['base', 'isindex', 'link', 'meta', 'scr... -
-   - - general_block_tags = frozenset(['address', 'blockquote', 'cent... -
-   - - list_tags = frozenset(['dd', 'dir', 'dl', 'dt', 'li', 'menu', ... -
-   - - table_tags = frozenset(['caption', 'col', 'colgroup', 'table',... -
-   - - block_tags = frozenset(['address', 'blockquote', 'caption', 'c... -
-   - - form_tags = frozenset(['button', 'fieldset', 'form', 'input', ... -
-   - - special_inline_tags = frozenset(['a', 'applet', 'area', 'basef... -
-   - - phrase_tags = frozenset(['abbr', 'acronym', 'cite', 'code', 'd... -
-   - - font_style_tags = frozenset(['b', 'big', 'i', 's', 'small', 's... -
-   - - frame_tags = frozenset(['frame', 'frameset', 'noframes']) -
-   - - nonstandard_tags = frozenset(['blink', 'marquee']) -
-   - - tags = frozenset(['a', 'abbr', 'acronym', 'address', 'applet',... -
-   - - __package__ = None
- hash(x) -
- - - - - - -
- - - - - -
Variables Details[hide private]
-
- -
- -
-

empty_tags

- -
-
-
-
Value:
-
-frozenset(['area',
-           'base',
-           'basefont',
-           'br',
-           'col',
-           'frame',
-           'hr',
-           'img',
-...
-
-
-
-
-
- -
- -
-

deprecated_tags

- -
-
-
-
Value:
-
-frozenset(['applet',
-           'basefont',
-           'center',
-           'dir',
-           'font',
-           'isindex',
-           'menu',
-           's',
-...
-
-
-
-
-
- -
- -
-

link_attrs

- -
-
-
-
Value:
-
-frozenset(['action',
-           'archive',
-           'background',
-           'cite',
-           'classid',
-           'codebase',
-           'data',
-           'dynsrc',
-...
-
-
-
-
-
- -
- -
-

event_attrs

- -
-
-
-
Value:
-
-frozenset(['onblur',
-           'onchange',
-           'onclick',
-           'ondblclick',
-           'onerror',
-           'onfocus',
-           'onkeydown',
-           'onkeypress',
-...
-
-
-
-
-
- -
- -
-

safe_attrs

- -
-
-
-
Value:
-
-frozenset(['abbr',
-           'accept',
-           'accept-charset',
-           'accesskey',
-           'action',
-           'align',
-           'alt',
-           'axis',
-...
-
-
-
-
-
- -
- -
-

head_tags

- -
-
-
-
Value:
-
-frozenset(['base',
-           'isindex',
-           'link',
-           'meta',
-           'script',
-           'style',
-           'title'])
-
-
-
-
-
- -
- -
-

general_block_tags

- -
-
-
-
Value:
-
-frozenset(['address',
-           'blockquote',
-           'center',
-           'del',
-           'div',
-           'h1',
-           'h2',
-           'h3',
-...
-
-
-
-
-
- -
- -
-

list_tags

- -
-
-
-
Value:
-
-frozenset(['dd', 'dir', 'dl', 'dt', 'li', 'menu', 'ol', 'ul'])
-
-
-
-
-
- -
- -
-

table_tags

- -
-
-
-
Value:
-
-frozenset(['caption',
-           'col',
-           'colgroup',
-           'table',
-           'tbody',
-           'td',
-           'tfoot',
-           'th',
-...
-
-
-
-
-
- -
- -
-

block_tags

- -
-
-
-
Value:
-
-frozenset(['address',
-           'blockquote',
-           'caption',
-           'center',
-           'col',
-           'colgroup',
-           'dd',
-           'del',
-...
-
-
-
-
-
- -
- -
-

form_tags

- -
-
-
-
Value:
-
-frozenset(['button',
-           'fieldset',
-           'form',
-           'input',
-           'label',
-           'legend',
-           'optgroup',
-           'option',
-...
-
-
-
-
-
- -
- -
-

special_inline_tags

- -
-
-
-
Value:
-
-frozenset(['a',
-           'applet',
-           'area',
-           'basefont',
-           'bdo',
-           'br',
-           'embed',
-           'font',
-...
-
-
-
-
-
- -
- -
-

phrase_tags

- -
-
-
-
Value:
-
-frozenset(['abbr',
-           'acronym',
-           'cite',
-           'code',
-           'del',
-           'dfn',
-           'em',
-           'ins',
-...
-
-
-
-
-
- -
- -
-

font_style_tags

- -
-
-
-
Value:
-
-frozenset(['b', 'big', 'i', 's', 'small', 'strike', 'tt', 'u'])
-
-
-
-
-
- -
- -
-

tags

- -
-
-
-
Value:
-
-frozenset(['a',
-           'abbr',
-           'acronym',
-           'address',
-           'applet',
-           'area',
-           'b',
-           'base',
-...
-
-
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.html.defs-pysrc.html b/doc/html/api/lxml.html.defs-pysrc.html deleted file mode 100644 index 3481103..0000000 --- a/doc/html/api/lxml.html.defs-pysrc.html +++ /dev/null @@ -1,250 +0,0 @@ - - - - - lxml.html.defs - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package html :: - Module defs - - - - - - -
[hide private]
[frames] | no frames]
-
-

Source Code for Module lxml.html.defs

-
-  1  # FIXME: this should all be confirmed against what a DTD says 
-  2  # (probably in a test; this may not match the DTD exactly, but we 
-  3  # should document just how it differs). 
-  4   
-  5  # Data taken from http://www.w3.org/TR/html401/index/elements.html 
-  6   
-  7  try: 
-  8      frozenset 
-  9  except NameError: 
- 10      from sets import Set as frozenset 
- 11   
- 12   
- 13  empty_tags = frozenset([ 
- 14      'area', 'base', 'basefont', 'br', 'col', 'frame', 'hr', 
- 15      'img', 'input', 'isindex', 'link', 'meta', 'param']) 
- 16   
- 17  deprecated_tags = frozenset([ 
- 18      'applet', 'basefont', 'center', 'dir', 'font', 'isindex', 
- 19      'menu', 's', 'strike', 'u']) 
- 20   
- 21  # archive actually takes a space-separated list of URIs 
- 22  link_attrs = frozenset([ 
- 23      'action', 'archive', 'background', 'cite', 'classid', 
- 24      'codebase', 'data', 'href', 'longdesc', 'profile', 'src', 
- 25      'usemap', 
- 26      # Not standard: 
- 27      'dynsrc', 'lowsrc', 
- 28      ]) 
- 29   
- 30  # Not in the HTML 4 spec: 
- 31  # onerror, onresize 
- 32  event_attrs = frozenset([ 
- 33      'onblur', 'onchange', 'onclick', 'ondblclick', 'onerror', 
- 34      'onfocus', 'onkeydown', 'onkeypress', 'onkeyup', 'onload', 
- 35      'onmousedown', 'onmousemove', 'onmouseout', 'onmouseover', 
- 36      'onmouseup', 'onreset', 'onresize', 'onselect', 'onsubmit', 
- 37      'onunload', 
- 38      ]) 
- 39   
- 40  safe_attrs = frozenset([ 
- 41      'abbr', 'accept', 'accept-charset', 'accesskey', 'action', 'align', 
- 42      'alt', 'axis', 'border', 'cellpadding', 'cellspacing', 'char', 'charoff', 
- 43      'charset', 'checked', 'cite', 'class', 'clear', 'cols', 'colspan', 
- 44      'color', 'compact', 'coords', 'datetime', 'dir', 'disabled', 'enctype', 
- 45      'for', 'frame', 'headers', 'height', 'href', 'hreflang', 'hspace', 'id', 
- 46      'ismap', 'label', 'lang', 'longdesc', 'maxlength', 'media', 'method', 
- 47      'multiple', 'name', 'nohref', 'noshade', 'nowrap', 'prompt', 'readonly', 
- 48      'rel', 'rev', 'rows', 'rowspan', 'rules', 'scope', 'selected', 'shape', 
- 49      'size', 'span', 'src', 'start', 'summary', 'tabindex', 'target', 'title', 
- 50      'type', 'usemap', 'valign', 'value', 'vspace', 'width']) 
- 51   
- 52  # From http://htmlhelp.com/reference/html40/olist.html 
- 53  top_level_tags = frozenset([ 
- 54      'html', 'head', 'body', 'frameset', 
- 55      ]) 
- 56   
- 57  head_tags = frozenset([ 
- 58      'base', 'isindex', 'link', 'meta', 'script', 'style', 'title', 
- 59      ]) 
- 60   
- 61  general_block_tags = frozenset([ 
- 62      'address', 
- 63      'blockquote', 
- 64      'center', 
- 65      'del', 
- 66      'div', 
- 67      'h1', 
- 68      'h2', 
- 69      'h3', 
- 70      'h4', 
- 71      'h5', 
- 72      'h6', 
- 73      'hr', 
- 74      'ins', 
- 75      'isindex', 
- 76      'noscript', 
- 77      'p', 
- 78      'pre', 
- 79      ]) 
- 80   
- 81  list_tags = frozenset([ 
- 82      'dir', 'dl', 'dt', 'dd', 'li', 'menu', 'ol', 'ul', 
- 83      ]) 
- 84   
- 85  table_tags = frozenset([ 
- 86      'table', 'caption', 'colgroup', 'col', 
- 87      'thead', 'tfoot', 'tbody', 'tr', 'td', 'th', 
- 88      ]) 
- 89   
- 90  # just this one from 
- 91  # http://www.georgehernandez.com/h/XComputers/HTML/2BlockLevel.htm 
- 92  block_tags = general_block_tags | list_tags | table_tags | frozenset([ 
- 93      # Partial form tags 
- 94      'fieldset', 'form', 'legend', 'optgroup', 'option', 
- 95      ]) 
- 96   
- 97  form_tags = frozenset([ 
- 98      'form', 'button', 'fieldset', 'legend', 'input', 'label', 
- 99      'select', 'optgroup', 'option', 'textarea', 
-100      ]) 
-101   
-102  special_inline_tags = frozenset([ 
-103      'a', 'applet', 'basefont', 'bdo', 'br', 'embed', 'font', 'iframe', 
-104      'img', 'map', 'area', 'object', 'param', 'q', 'script', 
-105      'span', 'sub', 'sup', 
-106      ]) 
-107   
-108  phrase_tags = frozenset([ 
-109      'abbr', 'acronym', 'cite', 'code', 'del', 'dfn', 'em', 
-110      'ins', 'kbd', 'samp', 'strong', 'var', 
-111      ]) 
-112   
-113  font_style_tags = frozenset([ 
-114      'b', 'big', 'i', 's', 'small', 'strike', 'tt', 'u', 
-115      ]) 
-116   
-117  frame_tags = frozenset([ 
-118      'frameset', 'frame', 'noframes', 
-119      ]) 
-120   
-121  # These tags aren't standard 
-122  nonstandard_tags = frozenset(['blink', 'marquee']) 
-123   
-124  tags = (top_level_tags | head_tags | general_block_tags | list_tags 
-125          | table_tags | form_tags | special_inline_tags | phrase_tags 
-126          | font_style_tags | nonstandard_tags) 
-127   
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.html.diff-module.html b/doc/html/api/lxml.html.diff-module.html deleted file mode 100644 index f4571c7..0000000 --- a/doc/html/api/lxml.html.diff-module.html +++ /dev/null @@ -1,1346 +0,0 @@ - - - - - lxml.html.diff - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package html :: - Module diff - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Module diff

source code

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Classes[hide private]
-
-   - - basestring
- str(object) -> string -
-   - - DEL_START -
-   - - DEL_END -
-   - - NoDeletes
- Raised when the document no longer contains any pending deletes -(DEL_START/DEL_END) -
-   - - token
- Represents a diffable token, generally a word that is displayed to -the user. Opening tags are attached to this token when they are -adjacent (pre_tags) and closing tags that follow the word -(post_tags). Some exceptions occur when there are empty tags -adjacent to a word, so there may be close tags in pre_tags, or -open tags in post_tags. -
-   - - tag_token
- Represents a token that is actually a tag. Currently this is just -the <img> tag, which takes up visible space just like a word but -is only represented in a document by a tag. -
-   - - href_token
- Represents the href in an anchor tag. Unlike other words, we only -show the href when it changes. -
-   - - InsensitiveSequenceMatcher
- Acts like SequenceMatcher, but tries not to find very small equal -blocks amidst large spans of changes -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Functions[hide private]
-
-   - - - - - - -
default_markup(text, - version) - source code - -
- -
-   - - - - - - -
html_annotate(doclist, - markup=<function default_markup at 0x3b58050>)
- doclist should be ordered from oldest to newest, like:
- source code - -
- -
-   - - - - - - -
tokenize_annotated(doc, - annotation)
- Tokenize a document and add an annotation attribute to each token
- source code - -
- -
-   - - - - - - -
html_annotate_merge_annotations(tokens_old, - tokens_new)
- Merge the annotations from tokens_old into tokens_new, when the -tokens in the new document already existed in the old document.
- source code - -
- -
-   - - - - - - -
copy_annotations(src, - dest)
- Copy annotations from the tokens listed in src to the tokens in dest
- source code - -
- -
-   - - - - - - -
compress_tokens(tokens)
- Combine adjacent tokens when there is no HTML between the tokens, -and they share an annotation
- source code - -
- -
-   - - - - - - -
compress_merge_back(tokens, - tok)
- Merge tok into the last element of tokens (modifying the list of -tokens in-place).
- source code - -
- -
-   - - - - - - -
markup_serialize_tokens(tokens, - markup_func)
- Serialize the list of tokens into a list of text chunks, calling -markup_func around text to add annotations.
- source code - -
- -
-   - - - - - - -
htmldiff(old_html, - new_html)
- Do a diff of the old and new document. The documents are HTML -fragments (str/UTF8 or unicode), they are not complete documents -(i.e., no <html> tag).
- source code - -
- -
-   - - - - - - -
htmldiff_tokens(html1_tokens, - html2_tokens)
- Does a diff on the tokens themselves, returning a list of text -chunks (not tokens).
- source code - -
- -
-   - - - - - - -
expand_tokens(tokens, - equal=False)
- Given a list of tokens, return a generator of the chunks of -text for the data in the tokens.
- source code - -
- -
-   - - - - - - -
merge_insert(ins_chunks, - doc)
- doc is the already-handled document (as a list of text chunks); -here we add <ins>ins_chunks</ins> to the end of that.
- source code - -
- -
-   - - - - - - -
merge_delete(del_chunks, - doc)
- Adds the text chunks in del_chunks to the document doc (another -list of text chunks) with marker to show it is a delete. -cleanup_delete later resolves these markers into <del> tags.
- source code - -
- -
-   - - - - - - -
cleanup_delete(chunks)
- Cleans up any DEL_START/DEL_END markers in the document, replacing -them with <del></del>. To do this while keeping the document -valid, it may need to drop some tags (either start or end tags).
- source code - -
- -
-   - - - - - - -
split_unbalanced(chunks)
- Return (unbalanced_start, balanced, unbalanced_end), where each is -a list of text and tag chunks.
- source code - -
- -
-   - - - - - - -
split_delete(chunks)
- Returns (stuff_before_DEL_START, stuff_inside_DEL_START_END, -stuff_after_DEL_END). Returns the first case found (there may be -more DEL_STARTs in stuff_after_DEL_END). Raises NoDeletes if -there's no DEL_START found.
- source code - -
- -
-   - - - - - - -
locate_unbalanced_start(unbalanced_start, - pre_delete, - post_delete)
- pre_delete and post_delete implicitly point to a place in the -document (where the two were split). This moves that point (by -popping items from one and pushing them onto the other). It moves -the point to try to find a place where unbalanced_start applies.
- source code - -
- -
-   - - - - - - -
locate_unbalanced_end(unbalanced_end, - pre_delete, - post_delete)
- like locate_unbalanced_start, except handling end tags and -possibly moving the point earlier in the document.
- source code - -
- -
-   - - - - - - -
tokenize(html, - include_hrefs=True)
- Parse the given HTML and returns token objects (words with attached tags).
- source code - -
- -
-   - - - - - - -
parse_html(html, - cleanup=True)
- Parses an HTML fragment, returning an lxml element. Note that the HTML will be -wrapped in a <div> tag that was not in the original document.
- source code - -
- -
-   - - - - - - -
cleanup_html(html)
- This 'cleans' the HTML, meaning that any page structure is removed -(only the contents of <body> are used, if there is any <body). -Also <ins> and <del> tags are removed.
- source code - -
- -
-   - - - - - - -
fixup_chunks(chunks)
- This function takes a list of chunks and produces a list of tokens.
- source code - -
- -
-   - - - - - - -
flatten_el(el, - include_hrefs, - skip_tag=False)
- Takes an lxml element el, and generates all the text chunks for -that tag. Each start tag is a chunk, each word is a chunk, and each -end tag is a chunk.
- source code - -
- -
-   - - - - - - -
split_words(text)
- Splits some text into words. Includes trailing whitespace (one -space) on each word when appropriate.
- source code - -
- -
-   - - - - - - -
start_tag(el)
- The text representation of the start tag for a tag.
- source code - -
- -
-   - - - - - - -
end_tag(el)
- The text representation of an end tag for a tag. Includes -trailing whitespace when appropriate.
- source code - -
- -
-   - - - - - - -
is_word(tok) - source code - -
- -
-   - - - - - - -
is_end_tag(tok) - source code - -
- -
-   - - - - - - -
is_start_tag(tok) - source code - -
- -
-   - - - - - - -
fixup_ins_del_tags(html)
- Given an html string, move any <ins> or <del> tags inside of any -block-level elements, e.g. transform <ins><p>word</p></ins> to -<p><ins>word</ins></p>
- source code - -
- -
-   - - - - - - -
serialize_html_fragment(el, - skip_outer=False)
- Serialize a single lxml element as HTML. The serialized form -includes the elements tail.
- source code - -
- -
-   - - - - - - -
_fixup_ins_del_tags(doc)
- fixup_ins_del_tags that works on an lxml document in-place
- source code - -
- -
-   - - - - - - -
_contains_block_level_tag(el)
- True if the element contains any block-level elements, like <p>, <td>, etc.
- source code - -
- -
-   - - - - - - -
_move_el_inside_block(el, - tag)
- helper for _fixup_ins_del_tags; actually takes the <ins> etc tags -and moves them inside any block-level tags.
- source code - -
- -
-   - - - - - - -
_merge_element_contents(el)
- Removes an element, but merges its contents into its place, e.g., -given <p>Hi <i>there!</i></p>, if you remove the <i> element you get -<p>Hi there!</p>
- source code - -
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Variables[hide private]
-
-   - - _body_re = re.compile(r'(?is)<body.*?>') -
-   - - _end_body_re = re.compile(r'(?is)</body.*?>') -
-   - - _ins_del_re = re.compile(r'(?is)</?(ins|del).*?>') -
-   - - end_whitespace_re = re.compile(r'[ \t\n\r]$') -
-   - - empty_tags = ('param', 'img', 'area', 'br', 'basefont', 'input... -
-   - - block_level_tags = ('address', 'blockquote', 'center', 'dir', ... -
-   - - block_level_container_tags = ('dd', 'dt', 'frameset', 'li', 't... -
-   - - start_whitespace_re = re.compile(r'^[ \t\n\r]') -
-   - - __package__ = 'lxml.html' -
- - - - - - -
- - - - - -
Function Details[hide private]
-
- -
- -
- - -
-

html_annotate(doclist, - markup=<function default_markup at 0x3b58050>) -

-
source code  -
- -

doclist should be ordered from oldest to newest, like:

-
->>> version1 = 'Hello World'
->>> version2 = 'Goodbye World'
->>> print(html_annotate([(version1, 'version 1'),
-...                      (version2, 'version 2')]))
-<span title="version 2">Goodbye</span> <span title="version 1">World</span>
-
-

The documents must be fragments (str/UTF8 or unicode), not -complete documents

-

The markup argument is a function to markup the spans of words. -This function is called like markup('Hello', 'version 2'), and -returns HTML. The first argument is text and never includes any -markup. The default uses a span with a title:

-
-
->>> print(default_markup('Some Text', 'by Joe'))
-<span title="by Joe">Some Text</span>
-
-
-
-
-
- -
- -
- - -
-

htmldiff(old_html, - new_html) -

-
source code  -
- -

Do a diff of the old and new document. The documents are HTML -fragments (str/UTF8 or unicode), they are not complete documents -(i.e., no <html> tag).

-

Returns HTML with <ins> and <del> tags added around the -appropriate text.

-

Markup is generally ignored, with the markup from new_html -preserved, and possibly some markup from old_html (though it is -considered acceptable to lose some of the old markup). Only the -words in the HTML are diffed. The exception is <img> tags, which -are treated like words, and the href attribute of <a> tags, which -are noted inside the tag itself when there are changes.

-
-
-
-
- -
- -
- - -
-

cleanup_delete(chunks) -

-
source code  -
- -

Cleans up any DEL_START/DEL_END markers in the document, replacing -them with <del></del>. To do this while keeping the document -valid, it may need to drop some tags (either start or end tags).

-

It may also move the del into adjacent tags to try to move it to a -similar location where it was originally located (e.g., moving a -delete into preceding <div> tag, if the del looks like (DEL_START, -'Text</div>', DEL_END)

-
-
-
-
- -
- -
- - -
-

split_unbalanced(chunks) -

-
source code  -
- -

Return (unbalanced_start, balanced, unbalanced_end), where each is -a list of text and tag chunks.

-

unbalanced_start is a list of all the tags that are opened, but -not closed in this span. Similarly, unbalanced_end is a list of -tags that are closed but were not opened. Extracting these might -mean some reordering of the chunks.

-
-
-
-
- -
- -
- - -
-

locate_unbalanced_start(unbalanced_start, - pre_delete, - post_delete) -

-
source code  -
- -

pre_delete and post_delete implicitly point to a place in the -document (where the two were split). This moves that point (by -popping items from one and pushing them onto the other). It moves -the point to try to find a place where unbalanced_start applies.

-

As an example:

-
->>> unbalanced_start = ['<div>']
->>> doc = ['<p>', 'Text', '</p>', '<div>', 'More Text', '</div>']
->>> pre, post = doc[:3], doc[3:]
->>> pre, post
-(['<p>', 'Text', '</p>'], ['<div>', 'More Text', '</div>'])
->>> locate_unbalanced_start(unbalanced_start, pre, post)
->>> pre, post
-(['<p>', 'Text', '</p>', '<div>'], ['More Text', '</div>'])
-
-

As you can see, we moved the point so that the dangling <div> that -we found will be effectively replaced by the div in the original -document. If this doesn't work out, we just throw away -unbalanced_start without doing anything.

-
-
-
-
- -
- -
- - -
-

tokenize(html, - include_hrefs=True) -

-
source code  -
- -

Parse the given HTML and returns token objects (words with attached tags).

-

This parses only the content of a page; anything in the head is -ignored, and the <head> and <body> elements are themselves -optional. The content is then parsed by lxml, which ensures the -validity of the resulting parsed document (though lxml may make -incorrect guesses when the markup is particular bad).

-

<ins> and <del> tags are also eliminated from the document, as -that gets confusing.

-

If include_hrefs is true, then the href attribute of <a> tags is -included as a special kind of diffable token.

-
-
-
-
- -
- -
- - -
-

parse_html(html, - cleanup=True) -

-
source code  -
- -

Parses an HTML fragment, returning an lxml element. Note that the HTML will be -wrapped in a <div> tag that was not in the original document.

-

If cleanup is true, make sure there's no <head> or <body>, and get -rid of any <ins> and <del> tags.

-
-
-
-
- -
- -
- - -
-

flatten_el(el, - include_hrefs, - skip_tag=False) -

-
source code  -
- -

Takes an lxml element el, and generates all the text chunks for -that tag. Each start tag is a chunk, each word is a chunk, and each -end tag is a chunk.

-

If skip_tag is true, then the outermost container tag is -not returned (just its contents).

-
-
-
-
- -
- -
- - -
-

serialize_html_fragment(el, - skip_outer=False) -

-
source code  -
- -

Serialize a single lxml element as HTML. The serialized form -includes the elements tail.

-

If skip_outer is true, then don't serialize the outermost tag

-
-
-
-
-
- - - - - - -
- - - - - -
Variables Details[hide private]
-
- -
- -
-

empty_tags

- -
-
-
-
Value:
-
-('param',
- 'img',
- 'area',
- 'br',
- 'basefont',
- 'input',
- 'base',
- 'meta',
-...
-
-
-
-
-
- -
- -
-

block_level_tags

- -
-
-
-
Value:
-
-('address',
- 'blockquote',
- 'center',
- 'dir',
- 'div',
- 'dl',
- 'fieldset',
- 'form',
-...
-
-
-
-
-
- -
- -
-

block_level_container_tags

- -
-
-
-
Value:
-
-('dd',
- 'dt',
- 'frameset',
- 'li',
- 'tbody',
- 'td',
- 'tfoot',
- 'th',
-...
-
-
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.html.diff-pysrc.html b/doc/html/api/lxml.html.diff-pysrc.html deleted file mode 100644 index eb265c2..0000000 --- a/doc/html/api/lxml.html.diff-pysrc.html +++ /dev/null @@ -1,1757 +0,0 @@ - - - - - lxml.html.diff - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package html :: - Module diff - - - - - - -
[hide private]
[frames] | no frames]
-
-

Source Code for Module lxml.html.diff

-
-  1  import difflib 
-  2  from lxml import etree 
-  3  from lxml.html import fragment_fromstring 
-  4  import cgi 
-  5  import re 
-  6   
-  7  __all__ = ['html_annotate', 'htmldiff'] 
-  8   
-  9  try: 
- 10      _unicode = unicode 
- 11  except NameError: 
- 12      # Python 3 
- 13      _unicode = str 
- 14  try: 
- 15      basestring 
- 16  except NameError: 
- 17      # Python 3 
- 18      basestring = str 
- 19   
- 20  ############################################################ 
- 21  ## Annotation 
- 22  ############################################################ 
- 23   
-
24 -def default_markup(text, version): -
25 return '<span title="%s">%s</span>' % ( - 26 cgi.escape(_unicode(version), 1), text) -
27 -
28 -def html_annotate(doclist, markup=default_markup): -
29 """ - 30 doclist should be ordered from oldest to newest, like:: - 31 - 32 >>> version1 = 'Hello World' - 33 >>> version2 = 'Goodbye World' - 34 >>> print(html_annotate([(version1, 'version 1'), - 35 ... (version2, 'version 2')])) - 36 <span title="version 2">Goodbye</span> <span title="version 1">World</span> - 37 - 38 The documents must be *fragments* (str/UTF8 or unicode), not - 39 complete documents - 40 - 41 The markup argument is a function to markup the spans of words. - 42 This function is called like markup('Hello', 'version 2'), and - 43 returns HTML. The first argument is text and never includes any - 44 markup. The default uses a span with a title: - 45 - 46 >>> print(default_markup('Some Text', 'by Joe')) - 47 <span title="by Joe">Some Text</span> - 48 """ - 49 # The basic strategy we have is to split the documents up into - 50 # logical tokens (which are words with attached markup). We then - 51 # do diffs of each of the versions to track when a token first - 52 # appeared in the document; the annotation attached to the token - 53 # is the version where it first appeared. - 54 tokenlist = [tokenize_annotated(doc, version) - 55 for doc, version in doclist] - 56 cur_tokens = tokenlist[0] - 57 for tokens in tokenlist[1:]: - 58 html_annotate_merge_annotations(cur_tokens, tokens) - 59 cur_tokens = tokens - 60 - 61 # After we've tracked all the tokens, we can combine spans of text - 62 # that are adjacent and have the same annotation - 63 cur_tokens = compress_tokens(cur_tokens) - 64 # And finally add markup - 65 result = markup_serialize_tokens(cur_tokens, markup) - 66 return ''.join(result).strip() -
67 -
68 -def tokenize_annotated(doc, annotation): -
69 """Tokenize a document and add an annotation attribute to each token - 70 """ - 71 tokens = tokenize(doc, include_hrefs=False) - 72 for tok in tokens: - 73 tok.annotation = annotation - 74 return tokens - 75 -
76 -def html_annotate_merge_annotations(tokens_old, tokens_new): -
77 """Merge the annotations from tokens_old into tokens_new, when the - 78 tokens in the new document already existed in the old document. - 79 """ - 80 s = InsensitiveSequenceMatcher(a=tokens_old, b=tokens_new) - 81 commands = s.get_opcodes() - 82 - 83 for command, i1, i2, j1, j2 in commands: - 84 if command == 'equal': - 85 eq_old = tokens_old[i1:i2] - 86 eq_new = tokens_new[j1:j2] - 87 copy_annotations(eq_old, eq_new) - 88 -
89 -def copy_annotations(src, dest): -
90 """ - 91 Copy annotations from the tokens listed in src to the tokens in dest - 92 """ - 93 assert len(src) == len(dest) - 94 for src_tok, dest_tok in zip(src, dest): - 95 dest_tok.annotation = src_tok.annotation - 96 -
97 -def compress_tokens(tokens): -
98 """ - 99 Combine adjacent tokens when there is no HTML between the tokens, -100 and they share an annotation -101 """ -102 result = [tokens[0]] -103 for tok in tokens[1:]: -104 if (not result[-1].post_tags and -105 not tok.pre_tags and -106 result[-1].annotation == tok.annotation): -107 compress_merge_back(result, tok) -108 else: -109 result.append(tok) -110 return result -
111 -
112 -def compress_merge_back(tokens, tok): -
113 """ Merge tok into the last element of tokens (modifying the list of -114 tokens in-place). """ -115 last = tokens[-1] -116 if type(last) is not token or type(tok) is not token: -117 tokens.append(tok) -118 else: -119 text = _unicode(last) -120 if last.trailing_whitespace: -121 text += ' ' -122 text += tok -123 merged = token(text, -124 pre_tags=last.pre_tags, -125 post_tags=tok.post_tags, -126 trailing_whitespace=tok.trailing_whitespace) -127 merged.annotation = last.annotation -128 tokens[-1] = merged -129 -
130 -def markup_serialize_tokens(tokens, markup_func): -
131 """ -132 Serialize the list of tokens into a list of text chunks, calling -133 markup_func around text to add annotations. -134 """ -135 for token in tokens: -136 for pre in token.pre_tags: -137 yield pre -138 html = token.html() -139 html = markup_func(html, token.annotation) -140 if token.trailing_whitespace: -141 html += ' ' -142 yield html -143 for post in token.post_tags: -144 yield post -
145 -146 -147 ############################################################ -148 ## HTML Diffs -149 ############################################################ -150 -
151 -def htmldiff(old_html, new_html): -
152 ## FIXME: this should take parsed documents too, and use their body -153 ## or other content. -154 """ Do a diff of the old and new document. The documents are HTML -155 *fragments* (str/UTF8 or unicode), they are not complete documents -156 (i.e., no <html> tag). -157 -158 Returns HTML with <ins> and <del> tags added around the -159 appropriate text. -160 -161 Markup is generally ignored, with the markup from new_html -162 preserved, and possibly some markup from old_html (though it is -163 considered acceptable to lose some of the old markup). Only the -164 words in the HTML are diffed. The exception is <img> tags, which -165 are treated like words, and the href attribute of <a> tags, which -166 are noted inside the tag itself when there are changes. -167 """ -168 old_html_tokens = tokenize(old_html) -169 new_html_tokens = tokenize(new_html) -170 result = htmldiff_tokens(old_html_tokens, new_html_tokens) -171 result = ''.join(result).strip() -172 return fixup_ins_del_tags(result) -
173 -
174 -def htmldiff_tokens(html1_tokens, html2_tokens): -
175 """ Does a diff on the tokens themselves, returning a list of text -176 chunks (not tokens). -177 """ -178 # There are several passes as we do the differences. The tokens -179 # isolate the portion of the content we care to diff; difflib does -180 # all the actual hard work at that point. -181 # -182 # Then we must create a valid document from pieces of both the old -183 # document and the new document. We generally prefer to take -184 # markup from the new document, and only do a best effort attempt -185 # to keep markup from the old document; anything that we can't -186 # resolve we throw away. Also we try to put the deletes as close -187 # to the location where we think they would have been -- because -188 # we are only keeping the markup from the new document, it can be -189 # fuzzy where in the new document the old text would have gone. -190 # Again we just do a best effort attempt. -191 s = InsensitiveSequenceMatcher(a=html1_tokens, b=html2_tokens) -192 commands = s.get_opcodes() -193 result = [] -194 for command, i1, i2, j1, j2 in commands: -195 if command == 'equal': -196 result.extend(expand_tokens(html2_tokens[j1:j2], equal=True)) -197 continue -198 if command == 'insert' or command == 'replace': -199 ins_tokens = expand_tokens(html2_tokens[j1:j2]) -200 merge_insert(ins_tokens, result) -201 if command == 'delete' or command == 'replace': -202 del_tokens = expand_tokens(html1_tokens[i1:i2]) -203 merge_delete(del_tokens, result) -204 # If deletes were inserted directly as <del> then we'd have an -205 # invalid document at this point. Instead we put in special -206 # markers, and when the complete diffed document has been created -207 # we try to move the deletes around and resolve any problems. -208 result = cleanup_delete(result) -209 -210 return result -
211 -
212 -def expand_tokens(tokens, equal=False): -
213 """Given a list of tokens, return a generator of the chunks of -214 text for the data in the tokens. -215 """ -216 for token in tokens: -217 for pre in token.pre_tags: -218 yield pre -219 if not equal or not token.hide_when_equal: -220 if token.trailing_whitespace: -221 yield token.html() + ' ' -222 else: -223 yield token.html() -224 for post in token.post_tags: -225 yield post -
226 -
227 -def merge_insert(ins_chunks, doc): -
228 """ doc is the already-handled document (as a list of text chunks); -229 here we add <ins>ins_chunks</ins> to the end of that. """ -230 # Though we don't throw away unbalanced_start or unbalanced_end -231 # (we assume there is accompanying markup later or earlier in the -232 # document), we only put <ins> around the balanced portion. -233 unbalanced_start, balanced, unbalanced_end = split_unbalanced(ins_chunks) -234 doc.extend(unbalanced_start) -235 if doc and not doc[-1].endswith(' '): -236 # Fix up the case where the word before the insert didn't end with -237 # a space -238 doc[-1] += ' ' -239 doc.append('<ins>') -240 if balanced and balanced[-1].endswith(' '): -241 # We move space outside of </ins> -242 balanced[-1] = balanced[-1][:-1] -243 doc.extend(balanced) -244 doc.append('</ins> ') -245 doc.extend(unbalanced_end) -
246 -247 # These are sentinals to represent the start and end of a <del> -248 # segment, until we do the cleanup phase to turn them into proper -249 # markup: -
250 -class DEL_START: -
251 pass -
252 -class DEL_END: -
253 pass -
254 -
255 -class NoDeletes(Exception): -
256 """ Raised when the document no longer contains any pending deletes -257 (DEL_START/DEL_END) """ -
258 -
259 -def merge_delete(del_chunks, doc): -
260 """ Adds the text chunks in del_chunks to the document doc (another -261 list of text chunks) with marker to show it is a delete. -262 cleanup_delete later resolves these markers into <del> tags.""" -263 doc.append(DEL_START) -264 doc.extend(del_chunks) -265 doc.append(DEL_END) -
266 -
267 -def cleanup_delete(chunks): -
268 """ Cleans up any DEL_START/DEL_END markers in the document, replacing -269 them with <del></del>. To do this while keeping the document -270 valid, it may need to drop some tags (either start or end tags). -271 -272 It may also move the del into adjacent tags to try to move it to a -273 similar location where it was originally located (e.g., moving a -274 delete into preceding <div> tag, if the del looks like (DEL_START, -275 'Text</div>', DEL_END)""" -276 while 1: -277 # Find a pending DEL_START/DEL_END, splitting the document -278 # into stuff-preceding-DEL_START, stuff-inside, and -279 # stuff-following-DEL_END -280 try: -281 pre_delete, delete, post_delete = split_delete(chunks) -282 except NoDeletes: -283 # Nothing found, we've cleaned up the entire doc -284 break -285 # The stuff-inside-DEL_START/END may not be well balanced -286 # markup. First we figure out what unbalanced portions there are: -287 unbalanced_start, balanced, unbalanced_end = split_unbalanced(delete) -288 # Then we move the span forward and/or backward based on these -289 # unbalanced portions: -290 locate_unbalanced_start(unbalanced_start, pre_delete, post_delete) -291 locate_unbalanced_end(unbalanced_end, pre_delete, post_delete) -292 doc = pre_delete -293 if doc and not doc[-1].endswith(' '): -294 # Fix up case where the word before us didn't have a trailing space -295 doc[-1] += ' ' -296 doc.append('<del>') -297 if balanced and balanced[-1].endswith(' '): -298 # We move space outside of </del> -299 balanced[-1] = balanced[-1][:-1] -300 doc.extend(balanced) -301 doc.append('</del> ') -302 doc.extend(post_delete) -303 chunks = doc -304 return chunks -
305 -
306 -def split_unbalanced(chunks): -
307 """Return (unbalanced_start, balanced, unbalanced_end), where each is -308 a list of text and tag chunks. -309 -310 unbalanced_start is a list of all the tags that are opened, but -311 not closed in this span. Similarly, unbalanced_end is a list of -312 tags that are closed but were not opened. Extracting these might -313 mean some reordering of the chunks.""" -314 start = [] -315 end = [] -316 tag_stack = [] -317 balanced = [] -318 for chunk in chunks: -319 if not chunk.startswith('<'): -320 balanced.append(chunk) -321 continue -322 endtag = chunk[1] == '/' -323 name = chunk.split()[0].strip('<>/') -324 if name in empty_tags: -325 balanced.append(chunk) -326 continue -327 if endtag: -328 if tag_stack and tag_stack[-1][0] == name: -329 balanced.append(chunk) -330 name, pos, tag = tag_stack.pop() -331 balanced[pos] = tag -332 elif tag_stack: -333 start.extend([tag for name, pos, tag in tag_stack]) -334 tag_stack = [] -335 end.append(chunk) -336 else: -337 end.append(chunk) -338 else: -339 tag_stack.append((name, len(balanced), chunk)) -340 balanced.append(None) -341 start.extend( -342 [chunk for name, pos, chunk in tag_stack]) -343 balanced = [chunk for chunk in balanced if chunk is not None] -344 return start, balanced, end -
345 -
346 -def split_delete(chunks): -
347 """ Returns (stuff_before_DEL_START, stuff_inside_DEL_START_END, -348 stuff_after_DEL_END). Returns the first case found (there may be -349 more DEL_STARTs in stuff_after_DEL_END). Raises NoDeletes if -350 there's no DEL_START found. """ -351 try: -352 pos = chunks.index(DEL_START) -353 except ValueError: -354 raise NoDeletes -355 pos2 = chunks.index(DEL_END) -356 return chunks[:pos], chunks[pos+1:pos2], chunks[pos2+1:] -
357 -
358 -def locate_unbalanced_start(unbalanced_start, pre_delete, post_delete): -
359 """ pre_delete and post_delete implicitly point to a place in the -360 document (where the two were split). This moves that point (by -361 popping items from one and pushing them onto the other). It moves -362 the point to try to find a place where unbalanced_start applies. -363 -364 As an example:: -365 -366 >>> unbalanced_start = ['<div>'] -367 >>> doc = ['<p>', 'Text', '</p>', '<div>', 'More Text', '</div>'] -368 >>> pre, post = doc[:3], doc[3:] -369 >>> pre, post -370 (['<p>', 'Text', '</p>'], ['<div>', 'More Text', '</div>']) -371 >>> locate_unbalanced_start(unbalanced_start, pre, post) -372 >>> pre, post -373 (['<p>', 'Text', '</p>', '<div>'], ['More Text', '</div>']) -374 -375 As you can see, we moved the point so that the dangling <div> that -376 we found will be effectively replaced by the div in the original -377 document. If this doesn't work out, we just throw away -378 unbalanced_start without doing anything. -379 """ -380 while 1: -381 if not unbalanced_start: -382 # We have totally succeded in finding the position -383 break -384 finding = unbalanced_start[0] -385 finding_name = finding.split()[0].strip('<>') -386 if not post_delete: -387 break -388 next = post_delete[0] -389 if next is DEL_START or not next.startswith('<'): -390 # Reached a word, we can't move the delete text forward -391 break -392 if next[1] == '/': -393 # Reached a closing tag, can we go further? Maybe not... -394 break -395 name = next.split()[0].strip('<>') -396 if name == 'ins': -397 # Can't move into an insert -398 break -399 assert name != 'del', ( -400 "Unexpected delete tag: %r" % next) -401 if name == finding_name: -402 unbalanced_start.pop(0) -403 pre_delete.append(post_delete.pop(0)) -404 else: -405 # Found a tag that doesn't match -406 break -
407 -
408 -def locate_unbalanced_end(unbalanced_end, pre_delete, post_delete): -
409 """ like locate_unbalanced_start, except handling end tags and -410 possibly moving the point earlier in the document. """ -411 while 1: -412 if not unbalanced_end: -413 # Success -414 break -415 finding = unbalanced_end[-1] -416 finding_name = finding.split()[0].strip('<>/') -417 if not pre_delete: -418 break -419 next = pre_delete[-1] -420 if next is DEL_END or not next.startswith('</'): -421 # A word or a start tag -422 break -423 name = next.split()[0].strip('<>/') -424 if name == 'ins' or name == 'del': -425 # Can't move into an insert or delete -426 break -427 if name == finding_name: -428 unbalanced_end.pop() -429 post_delete.insert(0, pre_delete.pop()) -430 else: -431 # Found a tag that doesn't match -432 break -
433 -
434 -class token(_unicode): -
435 """ Represents a diffable token, generally a word that is displayed to -436 the user. Opening tags are attached to this token when they are -437 adjacent (pre_tags) and closing tags that follow the word -438 (post_tags). Some exceptions occur when there are empty tags -439 adjacent to a word, so there may be close tags in pre_tags, or -440 open tags in post_tags. -441 -442 We also keep track of whether the word was originally followed by -443 whitespace, even though we do not want to treat the word as -444 equivalent to a similar word that does not have a trailing -445 space.""" -446 -447 # When this is true, the token will be eliminated from the -448 # displayed diff if no change has occurred: -449 hide_when_equal = False -450 -
451 - def __new__(cls, text, pre_tags=None, post_tags=None, trailing_whitespace=False): -
452 obj = _unicode.__new__(cls, text) -453 -454 if pre_tags is not None: -455 obj.pre_tags = pre_tags -456 else: -457 obj.pre_tags = [] -458 -459 if post_tags is not None: -460 obj.post_tags = post_tags -461 else: -462 obj.post_tags = [] -463 -464 obj.trailing_whitespace = trailing_whitespace -465 -466 return obj -
467 -
468 - def __repr__(self): -
469 return 'token(%s, %r, %r)' % (_unicode.__repr__(self), self.pre_tags, self.post_tags) -
470 -
471 - def html(self): -
472 return _unicode(self) -
473 -
474 -class tag_token(token): -
475 -476 """ Represents a token that is actually a tag. Currently this is just -477 the <img> tag, which takes up visible space just like a word but -478 is only represented in a document by a tag. """ -479 -
480 - def __new__(cls, tag, data, html_repr, pre_tags=None, -481 post_tags=None, trailing_whitespace=False): -
482 obj = token.__new__(cls, "%s: %s" % (type, data), -483 pre_tags=pre_tags, -484 post_tags=post_tags, -485 trailing_whitespace=trailing_whitespace) -486 obj.tag = tag -487 obj.data = data -488 obj.html_repr = html_repr -489 return obj -
490 -
491 - def __repr__(self): -
492 return 'tag_token(%s, %s, html_repr=%s, post_tags=%r, pre_tags=%r, trailing_whitespace=%s)' % ( -493 self.tag, -494 self.data, -495 self.html_repr, -496 self.pre_tags, -497 self.post_tags, -498 self.trailing_whitespace) -
499 - def html(self): -
500 return self.html_repr -
501 -
502 -class href_token(token): -
503 -504 """ Represents the href in an anchor tag. Unlike other words, we only -505 show the href when it changes. """ -506 -507 hide_when_equal = True -508 -
509 - def html(self): -
510 return ' Link: %s' % self -
511 -
512 -def tokenize(html, include_hrefs=True): -
513 """ -514 Parse the given HTML and returns token objects (words with attached tags). -515 -516 This parses only the content of a page; anything in the head is -517 ignored, and the <head> and <body> elements are themselves -518 optional. The content is then parsed by lxml, which ensures the -519 validity of the resulting parsed document (though lxml may make -520 incorrect guesses when the markup is particular bad). -521 -522 <ins> and <del> tags are also eliminated from the document, as -523 that gets confusing. -524 -525 If include_hrefs is true, then the href attribute of <a> tags is -526 included as a special kind of diffable token.""" -527 if etree.iselement(html): -528 body_el = html -529 else: -530 body_el = parse_html(html, cleanup=True) -531 # Then we split the document into text chunks for each tag, word, and end tag: -532 chunks = flatten_el(body_el, skip_tag=True, include_hrefs=include_hrefs) -533 # Finally re-joining them into token objects: -534 return fixup_chunks(chunks) -
535 -
536 -def parse_html(html, cleanup=True): -
537 """ -538 Parses an HTML fragment, returning an lxml element. Note that the HTML will be -539 wrapped in a <div> tag that was not in the original document. -540 -541 If cleanup is true, make sure there's no <head> or <body>, and get -542 rid of any <ins> and <del> tags. -543 """ -544 if cleanup: -545 # This removes any extra markup or structure like <head>: -546 html = cleanup_html(html) -547 return fragment_fromstring(html, create_parent=True) -
548 -549 _body_re = re.compile(r'<body.*?>', re.I|re.S) -550 _end_body_re = re.compile(r'</body.*?>', re.I|re.S) -551 _ins_del_re = re.compile(r'</?(ins|del).*?>', re.I|re.S) -552 -
553 -def cleanup_html(html): -
554 """ This 'cleans' the HTML, meaning that any page structure is removed -555 (only the contents of <body> are used, if there is any <body). -556 Also <ins> and <del> tags are removed. """ -557 match = _body_re.search(html) -558 if match: -559 html = html[match.end():] -560 match = _end_body_re.search(html) -561 if match: -562 html = html[:match.start()] -563 html = _ins_del_re.sub('', html) -564 return html -
565 -566 -567 end_whitespace_re = re.compile(r'[ \t\n\r]$') -568 -
569 -def fixup_chunks(chunks): -
570 """ -571 This function takes a list of chunks and produces a list of tokens. -572 """ -573 tag_accum = [] -574 cur_word = None -575 result = [] -576 for chunk in chunks: -577 if isinstance(chunk, tuple): -578 if chunk[0] == 'img': -579 src = chunk[1] -580 tag = chunk[2] -581 if tag.endswith(' '): -582 tag = tag[:-1] -583 trailing_whitespace = True -584 else: -585 trailing_whitespace = False -586 cur_word = tag_token('img', src, html_repr=tag, -587 pre_tags=tag_accum, -588 trailing_whitespace=trailing_whitespace) -589 tag_accum = [] -590 result.append(cur_word) -591 elif chunk[0] == 'href': -592 href = chunk[1] -593 cur_word = href_token(href, pre_tags=tag_accum, trailing_whitespace=True) -594 tag_accum = [] -595 result.append(cur_word) -596 continue -597 if is_word(chunk): -598 if chunk.endswith(' '): -599 chunk = chunk[:-1] -600 trailing_whitespace = True -601 else: -602 trailing_whitespace = False -603 cur_word = token(chunk, pre_tags=tag_accum, trailing_whitespace=trailing_whitespace) -604 tag_accum = [] -605 result.append(cur_word) -606 elif is_start_tag(chunk): -607 tag_accum.append(chunk) -608 elif is_end_tag(chunk): -609 if tag_accum: -610 tag_accum.append(chunk) -611 else: -612 assert cur_word, ( -613 "Weird state, cur_word=%r, result=%r, chunks=%r of %r" -614 % (cur_word, result, chunk, chunks)) -615 cur_word.post_tags.append(chunk) -616 else: -617 assert(0) -618 -619 if not result: -620 return [token('', pre_tags=tag_accum)] -621 else: -622 result[-1].post_tags.extend(tag_accum) -623 -624 return result -
625 -626 -627 # All the tags in HTML that don't require end tags: -628 empty_tags = ( -629 'param', 'img', 'area', 'br', 'basefont', 'input', -630 'base', 'meta', 'link', 'col') -631 -632 block_level_tags = ( -633 'address', -634 'blockquote', -635 'center', -636 'dir', -637 'div', -638 'dl', -639 'fieldset', -640 'form', -641 'h1', -642 'h2', -643 'h3', -644 'h4', -645 'h5', -646 'h6', -647 'hr', -648 'isindex', -649 'menu', -650 'noframes', -651 'noscript', -652 'ol', -653 'p', -654 'pre', -655 'table', -656 'ul', -657 ) -658 -659 block_level_container_tags = ( -660 'dd', -661 'dt', -662 'frameset', -663 'li', -664 'tbody', -665 'td', -666 'tfoot', -667 'th', -668 'thead', -669 'tr', -670 ) -671 -672 -
673 -def flatten_el(el, include_hrefs, skip_tag=False): -
674 """ Takes an lxml element el, and generates all the text chunks for -675 that tag. Each start tag is a chunk, each word is a chunk, and each -676 end tag is a chunk. -677 -678 If skip_tag is true, then the outermost container tag is -679 not returned (just its contents).""" -680 if not skip_tag: -681 if el.tag == 'img': -682 yield ('img', el.get('src'), start_tag(el)) -683 else: -684 yield start_tag(el) -685 if el.tag in empty_tags and not el.text and not len(el) and not el.tail: -686 return -687 start_words = split_words(el.text) -688 for word in start_words: -689 yield cgi.escape(word) -690 for child in el: -691 for item in flatten_el(child, include_hrefs=include_hrefs): -692 yield item -693 if el.tag == 'a' and el.get('href') and include_hrefs: -694 yield ('href', el.get('href')) -695 if not skip_tag: -696 yield end_tag(el) -697 end_words = split_words(el.tail) -698 for word in end_words: -699 yield cgi.escape(word) -
700 -
701 -def split_words(text): -
702 """ Splits some text into words. Includes trailing whitespace (one -703 space) on each word when appropriate. """ -704 if not text or not text.strip(): -705 return [] -706 words = [w + ' ' for w in text.strip().split()] -707 if not end_whitespace_re.search(text): -708 words[-1] = words[-1][:-1] -709 return words -
710 -711 start_whitespace_re = re.compile(r'^[ \t\n\r]') -712 -
713 -def start_tag(el): -
714 """ -715 The text representation of the start tag for a tag. -716 """ -717 return '<%s%s>' % ( -718 el.tag, ''.join([' %s="%s"' % (name, cgi.escape(value, True)) -719 for name, value in el.attrib.items()])) -
720 -
721 -def end_tag(el): -
722 """ The text representation of an end tag for a tag. Includes -723 trailing whitespace when appropriate. """ -724 if el.tail and start_whitespace_re.search(el.tail): -725 extra = ' ' -726 else: -727 extra = '' -728 return '</%s>%s' % (el.tag, extra) -
729 -
730 -def is_word(tok): -
731 return not tok.startswith('<') -
732 -
733 -def is_end_tag(tok): -
734 return tok.startswith('</') -
735 -
736 -def is_start_tag(tok): -
737 return tok.startswith('<') and not tok.startswith('</') -
738 -
739 -def fixup_ins_del_tags(html): -
740 """ Given an html string, move any <ins> or <del> tags inside of any -741 block-level elements, e.g. transform <ins><p>word</p></ins> to -742 <p><ins>word</ins></p> """ -743 doc = parse_html(html, cleanup=False) -744 _fixup_ins_del_tags(doc) -745 html = serialize_html_fragment(doc, skip_outer=True) -746 return html -
747 -
748 -def serialize_html_fragment(el, skip_outer=False): -
749 """ Serialize a single lxml element as HTML. The serialized form -750 includes the elements tail. -751 -752 If skip_outer is true, then don't serialize the outermost tag -753 """ -754 assert not isinstance(el, basestring), ( -755 "You should pass in an element, not a string like %r" % el) -756 html = etree.tostring(el, method="html", encoding=_unicode) -757 if skip_outer: -758 # Get rid of the extra starting tag: -759 html = html[html.find('>')+1:] -760 # Get rid of the extra end tag: -761 html = html[:html.rfind('<')] -762 return html.strip() -763 else: -764 return html -
765 -
766 -def _fixup_ins_del_tags(doc): -
767 """fixup_ins_del_tags that works on an lxml document in-place -768 """ -769 for tag in ['ins', 'del']: -770 for el in doc.xpath('descendant-or-self::%s' % tag): -771 if not _contains_block_level_tag(el): -772 continue -773 _move_el_inside_block(el, tag=tag) -774 el.drop_tag() -
775 #_merge_element_contents(el) -776 -
778 """True if the element contains any block-level elements, like <p>, <td>, etc. -779 """ -780 if el.tag in block_level_tags or el.tag in block_level_container_tags: -781 return True -782 for child in el: -783 if _contains_block_level_tag(child): -784 return True -785 return False -
786 -
787 -def _move_el_inside_block(el, tag): -
788 """ helper for _fixup_ins_del_tags; actually takes the <ins> etc tags -789 and moves them inside any block-level tags. """ -790 for child in el: -791 if _contains_block_level_tag(child): -792 break -793 else: -794 import sys -795 # No block-level tags in any child -796 children_tag = etree.Element(tag) -797 children_tag.text = el.text -798 el.text = None -799 children_tag.extend(list(el)) -800 el[:] = [children_tag] -801 return -802 for child in list(el): -803 if _contains_block_level_tag(child): -804 _move_el_inside_block(child, tag) -805 if child.tail: -806 tail_tag = etree.Element(tag) -807 tail_tag.text = child.tail -808 child.tail = None -809 el.insert(el.index(child)+1, tail_tag) -810 else: -811 child_tag = etree.Element(tag) -812 el.replace(child, child_tag) -813 child_tag.append(child) -814 if el.text: -815 text_tag = etree.Element(tag) -816 text_tag.text = el.text -817 el.text = None -818 el.insert(0, text_tag) -
819 -
821 """ -822 Removes an element, but merges its contents into its place, e.g., -823 given <p>Hi <i>there!</i></p>, if you remove the <i> element you get -824 <p>Hi there!</p> -825 """ -826 parent = el.getparent() -827 text = el.text or '' -828 if el.tail: -829 if not len(el): -830 text += el.tail -831 else: -832 if el[-1].tail: -833 el[-1].tail += el.tail -834 else: -835 el[-1].tail = el.tail -836 index = parent.index(el) -837 if text: -838 if index == 0: -839 previous = None -840 else: -841 previous = parent[index-1] -842 if previous is None: -843 if parent.text: -844 parent.text += text -845 else: -846 parent.text = text -847 else: -848 if previous.tail: -849 previous.tail += text -850 else: -851 previous.tail = text -852 parent[index:index+1] = el.getchildren() -
853 -
854 -class InsensitiveSequenceMatcher(difflib.SequenceMatcher): -
855 """ -856 Acts like SequenceMatcher, but tries not to find very small equal -857 blocks amidst large spans of changes -858 """ -859 -860 threshold = 2 -861 -
862 - def get_matching_blocks(self): -
863 size = min(len(self.b), len(self.b)) -864 threshold = min(self.threshold, size / 4) -865 actual = difflib.SequenceMatcher.get_matching_blocks(self) -866 return [item for item in actual -867 if item[2] > threshold -868 or not item[2]] -
869 -870 if __name__ == '__main__': -871 from lxml.html import _diffcommand -872 _diffcommand.main() -873 -
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.html.diff.DEL_END-class.html b/doc/html/api/lxml.html.diff.DEL_END-class.html deleted file mode 100644 index 5159727..0000000 --- a/doc/html/api/lxml.html.diff.DEL_END-class.html +++ /dev/null @@ -1,116 +0,0 @@ - - - - - lxml.html.diff.DEL_END - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package html :: - Module diff :: - Class DEL_END - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class DEL_END

source code

- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.html.diff.DEL_START-class.html b/doc/html/api/lxml.html.diff.DEL_START-class.html deleted file mode 100644 index 0cc9ceb..0000000 --- a/doc/html/api/lxml.html.diff.DEL_START-class.html +++ /dev/null @@ -1,116 +0,0 @@ - - - - - lxml.html.diff.DEL_START - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package html :: - Module diff :: - Class DEL_START - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class DEL_START

source code

- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.html.diff.InsensitiveSequenceMatcher-class.html b/doc/html/api/lxml.html.diff.InsensitiveSequenceMatcher-class.html deleted file mode 100644 index b4affc7..0000000 --- a/doc/html/api/lxml.html.diff.InsensitiveSequenceMatcher-class.html +++ /dev/null @@ -1,257 +0,0 @@ - - - - - lxml.html.diff.InsensitiveSequenceMatcher - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package html :: - Module diff :: - Class InsensitiveSequenceMatcher - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class InsensitiveSequenceMatcher

source code

-
-difflib.SequenceMatcher --+
-                          |
-                         InsensitiveSequenceMatcher
-
- -
-Acts like SequenceMatcher, but tries not to find very small equal -blocks amidst large spans of changes - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
get_matching_blocks(self)
- Return list of triples describing matching subsequences.
- source code - -
- -
-

Inherited from difflib.SequenceMatcher: - __init__, - find_longest_match, - get_grouped_opcodes, - get_opcodes, - quick_ratio, - ratio, - real_quick_ratio, - set_seq1, - set_seq2, - set_seqs -

-
- - - - - - - - - -
- - - - - -
Class Variables[hide private]
-
-   - - threshold = 2 -
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

get_matching_blocks(self) -

-
source code  -
- -

Return list of triples describing matching subsequences.

-

Each triple is of the form (i, j, n), and means that -a[i:i+n] == b[j:j+n]. The triples are monotonically increasing in -i and in j. New in Python 2.5, it's also guaranteed that if -(i, j, n) and (i', j', n') are adjacent triples in the list, and -the second is not the last triple in the list, then i+n != i' or -j+n != j'. IOW, adjacent triples never describe adjacent equal -blocks.

-

The last triple is a dummy, (len(a), len(b), 0), and is the only -triple with n==0.

-
->>> s = SequenceMatcher(None, "abxcd", "abcd")
->>> s.get_matching_blocks()
-[Match(a=0, b=0, size=2), Match(a=3, b=2, size=2), Match(a=5, b=4, size=0)]
-
-
Overrides: - difflib.SequenceMatcher.get_matching_blocks -
(inherited documentation)
- -
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.html.diff.NoDeletes-class.html b/doc/html/api/lxml.html.diff.NoDeletes-class.html deleted file mode 100644 index c728583..0000000 --- a/doc/html/api/lxml.html.diff.NoDeletes-class.html +++ /dev/null @@ -1,204 +0,0 @@ - - - - - lxml.html.diff.NoDeletes - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package html :: - Module diff :: - Class NoDeletes - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class NoDeletes

source code

-
-              object --+        
-                       |        
-exceptions.BaseException --+    
-                           |    
-        exceptions.Exception --+
-                               |
-                              NoDeletes
-
- -
-Raised when the document no longer contains any pending deletes -(DEL_START/DEL_END) - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-

Inherited from exceptions.Exception: - __init__, - __new__ -

-

Inherited from exceptions.BaseException: - __delattr__, - __getattribute__, - __getitem__, - __getslice__, - __reduce__, - __repr__, - __setattr__, - __setstate__, - __str__, - __unicode__ -

-

Inherited from object: - __format__, - __hash__, - __reduce_ex__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from exceptions.BaseException: - args, - message -

-

Inherited from object: - __class__ -

-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.html.diff.href_token-class.html b/doc/html/api/lxml.html.diff.href_token-class.html deleted file mode 100644 index c143245..0000000 --- a/doc/html/api/lxml.html.diff.href_token-class.html +++ /dev/null @@ -1,364 +0,0 @@ - - - - - lxml.html.diff.href_token - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package html :: - Module diff :: - Class href_token - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class href_token

source code

-
-object --+            
-         |            
-basestring --+        
-             |        
-       unicode --+    
-                 |    
-             token --+
-                     |
-                    href_token
-
- -
-Represents the href in an anchor tag. Unlike other words, we only -show the href when it changes. - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
html(self) - source code - -
- -
-

Inherited from token: - __repr__ -

-

Inherited from unicode: - __add__, - __contains__, - __eq__, - __format__, - __ge__, - __getattribute__, - __getitem__, - __getnewargs__, - __getslice__, - __gt__, - __hash__, - __le__, - __len__, - __lt__, - __mod__, - __mul__, - __ne__, - __rmod__, - __rmul__, - __sizeof__, - __str__, - capitalize, - center, - count, - decode, - encode, - endswith, - expandtabs, - find, - format, - index, - isalnum, - isalpha, - isdecimal, - isdigit, - islower, - isnumeric, - isspace, - istitle, - isupper, - join, - ljust, - lower, - lstrip, - partition, - replace, - rfind, - rindex, - rjust, - rpartition, - rsplit, - rstrip, - split, - splitlines, - startswith, - strip, - swapcase, - title, - translate, - upper, - zfill -

-

Inherited from unicode (private): - _formatter_field_name_split, - _formatter_parser -

-

Inherited from object: - __delattr__, - __init__, - __reduce__, - __reduce_ex__, - __setattr__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Static Methods[hide private]
-
-

Inherited from token: - __new__ -

-
- - - - - - - - - -
- - - - - -
Class Variables[hide private]
-
-   - - hide_when_equal = True -
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

html(self) -

-
source code  -
- - -
-
Overrides: - token.html -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.html.diff.tag_token-class.html b/doc/html/api/lxml.html.diff.tag_token-class.html deleted file mode 100644 index be6dd1e..0000000 --- a/doc/html/api/lxml.html.diff.tag_token-class.html +++ /dev/null @@ -1,449 +0,0 @@ - - - - - lxml.html.diff.tag_token - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package html :: - Module diff :: - Class tag_token - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class tag_token

source code

-
-object --+            
-         |            
-basestring --+        
-             |        
-       unicode --+    
-                 |    
-             token --+
-                     |
-                    tag_token
-
- -
-Represents a token that is actually a tag. Currently this is just -the <img> tag, which takes up visible space just like a word but -is only represented in a document by a tag. - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__repr__(self)
- repr(x)
- source code - -
- -
-   - - - - - - -
html(self) - source code - -
- -
-

Inherited from unicode: - __add__, - __contains__, - __eq__, - __format__, - __ge__, - __getattribute__, - __getitem__, - __getnewargs__, - __getslice__, - __gt__, - __hash__, - __le__, - __len__, - __lt__, - __mod__, - __mul__, - __ne__, - __rmod__, - __rmul__, - __sizeof__, - __str__, - capitalize, - center, - count, - decode, - encode, - endswith, - expandtabs, - find, - format, - index, - isalnum, - isalpha, - isdecimal, - isdigit, - islower, - isnumeric, - isspace, - istitle, - isupper, - join, - ljust, - lower, - lstrip, - partition, - replace, - rfind, - rindex, - rjust, - rpartition, - rsplit, - rstrip, - split, - splitlines, - startswith, - strip, - swapcase, - title, - translate, - upper, - zfill -

-

Inherited from unicode (private): - _formatter_field_name_split, - _formatter_parser -

-

Inherited from object: - __delattr__, - __init__, - __reduce__, - __reduce_ex__, - __setattr__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Static Methods[hide private]
-
- a new object with type S, a subtype of T - - - - - - -
__new__(cls, - tag, - data, - html_repr, - pre_tags=None, - post_tags=None, - trailing_whitespace=False) - source code - -
- -
- - - - - - - - - -
- - - - - -
Class Variables[hide private]
-
-

Inherited from token: - hide_when_equal -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__new__(cls, - tag, - data, - html_repr, - pre_tags=None, - post_tags=None, - trailing_whitespace=False) -
Static Method -

-
source code  -
- - -
-
Returns: a new object with type S, a subtype of T
-
Overrides: - object.__new__ -
(inherited documentation)
- -
-
-
- -
- -
- - -
-

__repr__(self) -
(Representation operator) -

-
source code  -
- - repr(x) -
-
Overrides: - object.__repr__ -
(inherited documentation)
- -
-
-
- -
- -
- - -
-

html(self) -

-
source code  -
- - -
-
Overrides: - token.html -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.html.diff.token-class.html b/doc/html/api/lxml.html.diff.token-class.html deleted file mode 100644 index c7d6ecc..0000000 --- a/doc/html/api/lxml.html.diff.token-class.html +++ /dev/null @@ -1,434 +0,0 @@ - - - - - lxml.html.diff.token - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package html :: - Module diff :: - Class token - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class token

source code

-
-object --+        
-         |        
-basestring --+    
-             |    
-       unicode --+
-                 |
-                token
-
- -
Known Subclasses:
-
- -
- -
-

Represents a diffable token, generally a word that is displayed to -the user. Opening tags are attached to this token when they are -adjacent (pre_tags) and closing tags that follow the word -(post_tags). Some exceptions occur when there are empty tags -adjacent to a word, so there may be close tags in pre_tags, or -open tags in post_tags.

-

We also keep track of whether the word was originally followed by -whitespace, even though we do not want to treat the word as -equivalent to a similar word that does not have a trailing -space.

- - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__repr__(self)
- repr(x)
- source code - -
- -
-   - - - - - - -
html(self) - source code - -
- -
-

Inherited from unicode: - __add__, - __contains__, - __eq__, - __format__, - __ge__, - __getattribute__, - __getitem__, - __getnewargs__, - __getslice__, - __gt__, - __hash__, - __le__, - __len__, - __lt__, - __mod__, - __mul__, - __ne__, - __rmod__, - __rmul__, - __sizeof__, - __str__, - capitalize, - center, - count, - decode, - encode, - endswith, - expandtabs, - find, - format, - index, - isalnum, - isalpha, - isdecimal, - isdigit, - islower, - isnumeric, - isspace, - istitle, - isupper, - join, - ljust, - lower, - lstrip, - partition, - replace, - rfind, - rindex, - rjust, - rpartition, - rsplit, - rstrip, - split, - splitlines, - startswith, - strip, - swapcase, - title, - translate, - upper, - zfill -

-

Inherited from unicode (private): - _formatter_field_name_split, - _formatter_parser -

-

Inherited from object: - __delattr__, - __init__, - __reduce__, - __reduce_ex__, - __setattr__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Static Methods[hide private]
-
- a new object with type S, a subtype of T - - - - - - -
__new__(cls, - text, - pre_tags=None, - post_tags=None, - trailing_whitespace=False) - source code - -
- -
- - - - - - - - - -
- - - - - -
Class Variables[hide private]
-
-   - - hide_when_equal = False -
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__new__(cls, - text, - pre_tags=None, - post_tags=None, - trailing_whitespace=False) -
Static Method -

-
source code  -
- - -
-
Returns: a new object with type S, a subtype of T
-
Overrides: - object.__new__ -
(inherited documentation)
- -
-
-
- -
- -
- - -
-

__repr__(self) -
(Representation operator) -

-
source code  -
- - repr(x) -
-
Overrides: - object.__repr__ -
(inherited documentation)
- -
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.html.formfill-module.html b/doc/html/api/lxml.html.formfill-module.html deleted file mode 100644 index d597352..0000000 --- a/doc/html/api/lxml.html.formfill-module.html +++ /dev/null @@ -1,568 +0,0 @@ - - - - - lxml.html.formfill - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package html :: - Module formfill - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Module formfill

source code

- - - - - - - - - - - - - - - -
- - - - - -
Classes[hide private]
-
-   - - basestring
- str(object) -> string -
-   - - FormNotFound
- Raised when no form can be found -
-   - - DefaultErrorCreator -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Functions[hide private]
-
-   - - - - - - -
fill_form(el, - values, - form_id=None, - form_index=None) - source code - -
- -
-   - - - - - - -
fill_form_html(html, - values, - form_id=None, - form_index=None) - source code - -
- -
-   - - - - - - -
_fill_form(el, - values) - source code - -
- -
-   - - - - - - -
_takes_multiple(input) - source code - -
- -
-   - - - - - - -
_fill_multiple(input, - value) - source code - -
- -
-   - - - - - - -
_check(el, - check) - source code - -
- -
-   - - - - - - -
_select(el, - select) - source code - -
- -
-   - - - - - - -
_fill_single(input, - value) - source code - -
- -
-   - - - - - - -
_find_form(el, - form_id=None, - form_index=None) - source code - -
- -
-   - - - - - - -
_find_form_ids(el) - source code - -
- -
-   - - - - - - -
insert_errors(el, - errors, - form_id=None, - form_index=None, - error_class='error', - error_creator=default_error_creator) - source code - -
- -
-   - - - - - - -
insert_errors_html(html, - values, - **kw) - source code - -
- -
-   - - - - - - -
_insert_error(el, - error, - error_class, - error_creator) - source code - -
- -
-   - - - - - - -
_add_class(el, - class_name) - source code - -
- -
-   - - - - - - -
_find_elements_for_name(form, - name, - error) - source code - -
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Variables[hide private]
-
-   - - _form_name_xpath = descendant-or-self::form[name=$name]|descen... -
-   - - _input_xpath = descendant-or-self::input|descendant-or-self::s... -
-   - - _label_for_xpath = //label[@for=$for_id]|//x:label[@for=$for_id] -
-   - - _name_xpath = descendant-or-self::*[@name=$name] -
-   - - default_error_creator = default_error_creator -
-   - - __package__ = 'lxml.html' -
-   - - _tag = 'x:textarea' -
- - - - - - -
- - - - - -
Variables Details[hide private]
-
- -
- -
-

_form_name_xpath

- -
-
-
-
Value:
-
-descendant-or-self::form[name=$name]|descendant-or-self::x:form[name=$\
-name]
-
-
-
-
-
- -
- -
-

_input_xpath

- -
-
-
-
Value:
-
-descendant-or-self::input|descendant-or-self::select|descendant-or-sel\
-f::textarea|descendant-or-self::x:input|descendant-or-self::x:select|d\
-escendant-or-self::x:textarea
-
-
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.html.formfill-pysrc.html b/doc/html/api/lxml.html.formfill-pysrc.html deleted file mode 100644 index f05ec00..0000000 --- a/doc/html/api/lxml.html.formfill-pysrc.html +++ /dev/null @@ -1,809 +0,0 @@ - - - - - lxml.html.formfill - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package html :: - Module formfill - - - - - - -
[hide private]
[frames] | no frames]
-
-

Source Code for Module lxml.html.formfill

-
-  1  from lxml.etree import XPath, ElementBase 
-  2  from lxml.html import fromstring, tostring, XHTML_NAMESPACE 
-  3  from lxml.html import _forms_xpath, _options_xpath, _nons, _transform_result 
-  4  from lxml.html import defs 
-  5  import copy 
-  6   
-  7  try: 
-  8      basestring 
-  9  except NameError: 
- 10      # Python 3 
- 11      basestring = str 
- 12   
- 13  __all__ = ['FormNotFound', 'fill_form', 'fill_form_html', 
- 14             'insert_errors', 'insert_errors_html', 
- 15             'DefaultErrorCreator'] 
- 16   
-
17 -class FormNotFound(LookupError): -
18 """ - 19 Raised when no form can be found - 20 """ -
21 - 22 _form_name_xpath = XPath('descendant-or-self::form[name=$name]|descendant-or-self::x:form[name=$name]', namespaces={'x':XHTML_NAMESPACE}) - 23 _input_xpath = XPath('|'.join(['descendant-or-self::'+_tag for _tag in ('input','select','textarea','x:input','x:select','x:textarea')]), - 24 namespaces={'x':XHTML_NAMESPACE}) - 25 _label_for_xpath = XPath('//label[@for=$for_id]|//x:label[@for=$for_id]', - 26 namespaces={'x':XHTML_NAMESPACE}) - 27 _name_xpath = XPath('descendant-or-self::*[@name=$name]') - 28 -
29 -def fill_form( - 30 el, - 31 values, - 32 form_id=None, - 33 form_index=None, - 34 ): -
35 el = _find_form(el, form_id=form_id, form_index=form_index) - 36 _fill_form(el, values) -
37 -
38 -def fill_form_html(html, values, form_id=None, form_index=None): -
39 result_type = type(html) - 40 if isinstance(html, basestring): - 41 doc = fromstring(html) - 42 else: - 43 doc = copy.deepcopy(html) - 44 fill_form(doc, values, form_id=form_id, form_index=form_index) - 45 return _transform_result(result_type, doc) -
46 -
47 -def _fill_form(el, values): -
48 counts = {} - 49 if hasattr(values, 'mixed'): - 50 # For Paste request parameters - 51 values = values.mixed() - 52 inputs = _input_xpath(el) - 53 for input in inputs: - 54 name = input.get('name') - 55 if not name: - 56 continue - 57 if _takes_multiple(input): - 58 value = values.get(name, []) - 59 if not isinstance(value, (list, tuple)): - 60 value = [value] - 61 _fill_multiple(input, value) - 62 elif name not in values: - 63 continue - 64 else: - 65 index = counts.get(name, 0) - 66 counts[name] = index + 1 - 67 value = values[name] - 68 if isinstance(value, (list, tuple)): - 69 try: - 70 value = value[index] - 71 except IndexError: - 72 continue - 73 elif index > 0: - 74 continue - 75 _fill_single(input, value) -
76 -
77 -def _takes_multiple(input): -
78 if _nons(input.tag) == 'select' and input.get('multiple'): - 79 # FIXME: multiple="0"? - 80 return True - 81 type = input.get('type', '').lower() - 82 if type in ('radio', 'checkbox'): - 83 return True - 84 return False -
85 -
86 -def _fill_multiple(input, value): -
87 type = input.get('type', '').lower() - 88 if type == 'checkbox': - 89 v = input.get('value') - 90 if v is None: - 91 if not value: - 92 result = False - 93 else: - 94 result = value[0] - 95 if isinstance(value, basestring): - 96 # The only valid "on" value for an unnamed checkbox is 'on' - 97 result = result == 'on' - 98 _check(input, result) - 99 else: -100 _check(input, v in value) -101 elif type == 'radio': -102 v = input.get('value') -103 _check(input, v in value) -104 else: -105 assert _nons(input.tag) == 'select' -106 for option in _options_xpath(input): -107 v = option.get('value') -108 if v is None: -109 # This seems to be the default, at least on IE -110 # FIXME: but I'm not sure -111 v = option.text_content() -112 _select(option, v in value) -
113 -
114 -def _check(el, check): -
115 if check: -116 el.set('checked', '') -117 else: -118 if 'checked' in el.attrib: -119 del el.attrib['checked'] -
120 -
121 -def _select(el, select): -
122 if select: -123 el.set('selected', '') -124 else: -125 if 'selected' in el.attrib: -126 del el.attrib['selected'] -
127 -
128 -def _fill_single(input, value): -
129 if _nons(input.tag) == 'textarea': -130 input.clear() -131 input.text = value -132 else: -133 input.set('value', value) -
134 -
135 -def _find_form(el, form_id=None, form_index=None): -
136 if form_id is None and form_index is None: -137 forms = _forms_xpath(el) -138 for form in forms: -139 return form -140 raise FormNotFound( -141 "No forms in page") -142 if form_id is not None: -143 form = el.get_element_by_id(form_id) -144 if form is not None: -145 return form -146 forms = _form_name_xpath(el, name=form_id) -147 if forms: -148 return forms[0] -149 else: -150 raise FormNotFound( -151 "No form with the name or id of %r (forms: %s)" -152 % (id, ', '.join(_find_form_ids(el)))) -153 if form_index is not None: -154 forms = _forms_xpath(el) -155 try: -156 return forms[form_index] -157 except IndexError: -158 raise FormNotFound( -159 "There is no form with the index %r (%i forms found)" -160 % (form_index, len(forms))) -
161 -
162 -def _find_form_ids(el): -
163 forms = _forms_xpath(el) -164 if not forms: -165 yield '(no forms)' -166 return -167 for index, form in enumerate(forms): -168 if form.get('id'): -169 if form.get('name'): -170 yield '%s or %s' % (form.get('id'), -171 form.get('name')) -172 else: -173 yield form.get('id') -174 elif form.get('name'): -175 yield form.get('name') -176 else: -177 yield '(unnamed form %s)' % index -
178 -179 ############################################################ -180 ## Error filling -181 ############################################################ -182 -
183 -class DefaultErrorCreator(object): -
184 insert_before = True -185 block_inside = True -186 error_container_tag = 'div' -187 error_message_class = 'error-message' -188 error_block_class = 'error-block' -189 default_message = "Invalid" -190 -
191 - def __init__(self, **kw): -
192 for name, value in kw.items(): -193 if not hasattr(self, name): -194 raise TypeError( -195 "Unexpected keyword argument: %s" % name) -196 setattr(self, name, value) -
197 -
198 - def __call__(self, el, is_block, message): -
199 error_el = el.makeelement(self.error_container_tag) -200 if self.error_message_class: -201 error_el.set('class', self.error_message_class) -202 if is_block and self.error_block_class: -203 error_el.set('class', error_el.get('class', '')+' '+self.error_block_class) -204 if message is None or message == '': -205 message = self.default_message -206 if isinstance(message, ElementBase): -207 error_el.append(message) -208 else: -209 assert isinstance(message, basestring), ( -210 "Bad message; should be a string or element: %r" % message) -211 error_el.text = message or self.default_message -212 if is_block and self.block_inside: -213 if self.insert_before: -214 error_el.tail = el.text -215 el.text = None -216 el.insert(0, error_el) -217 else: -218 el.append(error_el) -219 else: -220 parent = el.getparent() -221 pos = parent.index(el) -222 if self.insert_before: -223 parent.insert(pos, error_el) -224 else: -225 error_el.tail = el.tail -226 el.tail = None -227 parent.insert(pos+1, error_el) -
228 -229 default_error_creator = DefaultErrorCreator() -230 -231 -
232 -def insert_errors( -233 el, -234 errors, -235 form_id=None, -236 form_index=None, -237 error_class="error", -238 error_creator=default_error_creator, -239 ): -
240 el = _find_form(el, form_id=form_id, form_index=form_index) -241 for name, error in errors.items(): -242 if error is None: -243 continue -244 for error_el, message in _find_elements_for_name(el, name, error): -245 assert isinstance(message, (basestring, type(None), ElementBase)), ( -246 "Bad message: %r" % message) -247 _insert_error(error_el, message, error_class, error_creator) -
248 -
249 -def insert_errors_html(html, values, **kw): -
250 result_type = type(html) -251 if isinstance(html, basestring): -252 doc = fromstring(html) -253 else: -254 doc = copy.deepcopy(html) -255 insert_errors(doc, values, **kw) -256 return _transform_result(result_type, doc) -
257 -
258 -def _insert_error(el, error, error_class, error_creator): -
259 if _nons(el.tag) in defs.empty_tags or _nons(el.tag) == 'textarea': -260 is_block = False -261 else: -262 is_block = True -263 if _nons(el.tag) != 'form' and error_class: -264 _add_class(el, error_class) -265 if el.get('id'): -266 labels = _label_for_xpath(el, for_id=el.get('id')) -267 if labels: -268 for label in labels: -269 _add_class(label, error_class) -270 error_creator(el, is_block, error) -
271 -
272 -def _add_class(el, class_name): -
273 if el.get('class'): -274 el.set('class', el.get('class')+' '+class_name) -275 else: -276 el.set('class', class_name) -
277 -
278 -def _find_elements_for_name(form, name, error): -
279 if name is None: -280 # An error for the entire form -281 yield form, error -282 return -283 if name.startswith('#'): -284 # By id -285 el = form.get_element_by_id(name[1:]) -286 if el is not None: -287 yield el, error -288 return -289 els = _name_xpath(form, name=name) -290 if not els: -291 # FIXME: should this raise an exception? -292 return -293 if not isinstance(error, (list, tuple)): -294 yield els[0], error -295 return -296 # FIXME: if error is longer than els, should it raise an error? -297 for el, err in zip(els, error): -298 if err is None: -299 continue -300 yield el, err -
301 -
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.html.formfill.DefaultErrorCreator-class.html b/doc/html/api/lxml.html.formfill.DefaultErrorCreator-class.html deleted file mode 100644 index d4ecb0c..0000000 --- a/doc/html/api/lxml.html.formfill.DefaultErrorCreator-class.html +++ /dev/null @@ -1,325 +0,0 @@ - - - - - lxml.html.formfill.DefaultErrorCreator - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package html :: - Module formfill :: - Class DefaultErrorCreator - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class DefaultErrorCreator

source code

-
-object --+
-         |
-        DefaultErrorCreator
-
- -
- - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__init__(self, - **kw)
- x.__init__(...) initializes x; see help(type(x)) for signature
- source code - -
- -
-   - - - - - - -
__call__(self, - el, - is_block, - message) - source code - -
- -
-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __new__, - __reduce__, - __reduce_ex__, - __repr__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Class Variables[hide private]
-
-   - - insert_before = True -
-   - - block_inside = True -
-   - - error_container_tag = 'div' -
-   - - error_message_class = 'error-message' -
-   - - error_block_class = 'error-block' -
-   - - default_message = 'Invalid' -
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__init__(self, - **kw) -
(Constructor) -

-
source code  -
- - x.__init__(...) initializes x; see help(type(x)) for signature -
-
Overrides: - object.__init__ -
(inherited documentation)
- -
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.html.formfill.FormNotFound-class.html b/doc/html/api/lxml.html.formfill.FormNotFound-class.html deleted file mode 100644 index 7a61ef2..0000000 --- a/doc/html/api/lxml.html.formfill.FormNotFound-class.html +++ /dev/null @@ -1,207 +0,0 @@ - - - - - lxml.html.formfill.FormNotFound - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package html :: - Module formfill :: - Class FormNotFound - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class FormNotFound

source code

-
-              object --+                
-                       |                
-exceptions.BaseException --+            
-                           |            
-        exceptions.Exception --+        
-                               |        
-        exceptions.StandardError --+    
-                                   |    
-              exceptions.LookupError --+
-                                       |
-                                      FormNotFound
-
- -
-Raised when no form can be found - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-

Inherited from exceptions.LookupError: - __init__, - __new__ -

-

Inherited from exceptions.BaseException: - __delattr__, - __getattribute__, - __getitem__, - __getslice__, - __reduce__, - __repr__, - __setattr__, - __setstate__, - __str__, - __unicode__ -

-

Inherited from object: - __format__, - __hash__, - __reduce_ex__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from exceptions.BaseException: - args, - message -

-

Inherited from object: - __class__ -

-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.html.html5parser-module.html b/doc/html/api/lxml.html.html5parser-module.html deleted file mode 100644 index 683c5f1..0000000 --- a/doc/html/api/lxml.html.html5parser-module.html +++ /dev/null @@ -1,440 +0,0 @@ - - - - - lxml.html.html5parser - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package html :: - Module html5parser - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Module html5parser

source code

-An interface to html5lib that mimics the lxml.html interface. - - - - - - - - - - - - - -
- - - - - -
Classes[hide private]
-
-   - - HTMLParser
- An html5lib HTML parser with lxml as tree. -
-   - - XHTMLParser
- An html5lib XHTML Parser with lxml as tree. -
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Functions[hide private]
-
-   - - - - - - -
_find_tag(tree, - tag) - source code - -
- -
-   - - - - - - -
document_fromstring(html, - guess_charset=True, - parser=None)
- Parse a whole document into a string.
- source code - -
- -
-   - - - - - - -
fragments_fromstring(html, - no_leading_text=False, - guess_charset=False, - parser=None)
- Parses several HTML elements, returning a list of elements.
- source code - -
- -
-   - - - - - - -
fragment_fromstring(html, - create_parent=False, - guess_charset=False, - parser=None)
- Parses a single HTML element; it is an error if there is more than -one element, or if anything but whitespace precedes or follows the -element.
- source code - -
- -
-   - - - - - - -
fromstring(html, - guess_charset=True, - parser=None)
- Parse the html, returning a single element/document.
- source code - -
- -
-   - - - - - - -
parse(filename_url_or_file, - guess_charset=True, - parser=None)
- Parse a filename, URL, or file-like object into an HTML document -tree. Note: this returns a tree, not an element. Use -parse(...).getroot() to get the document root.
- source code - -
- -
-   - - - - - - -
_looks_like_url(str) - source code - -
- -
- - - - - - - - - - - - - - - -
- - - - - -
Variables[hide private]
-
-   - - xhtml_parser = XHTMLParser() -
-   - - html_parser = HTMLParser() -
-   - - __package__ = 'lxml.html' -
- - - - - - -
- - - - - -
Function Details[hide private]
-
- -
- -
- - -
-

fragments_fromstring(html, - no_leading_text=False, - guess_charset=False, - parser=None) -

-
source code  -
- -

Parses several HTML elements, returning a list of elements.

-

The first item in the list may be a string. If no_leading_text is true, -then it will be an error if there is leading text, and it will always be -a list of only elements.

-

If guess_charset is True and the text was not unicode but a -bytestring, the chardet library will perform charset guessing on the -string.

-
-
-
-
- -
- -
- - -
-

fragment_fromstring(html, - create_parent=False, - guess_charset=False, - parser=None) -

-
source code  -
- -

Parses a single HTML element; it is an error if there is more than -one element, or if anything but whitespace precedes or follows the -element.

-

If create_parent is true (or is a tag name) then a parent node -will be created to encapsulate the HTML in a single element. In -this case, leading or trailing text is allowed.

-
-
-
-
- -
- -
- - -
-

fromstring(html, - guess_charset=True, - parser=None) -

-
source code  -
- -

Parse the html, returning a single element/document.

-

This tries to minimally parse the chunk of text, without knowing if it -is a fragment or a document.

-

base_url will set the document's base_url attribute (and the tree's docinfo.URL)

-
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.html.html5parser-pysrc.html b/doc/html/api/lxml.html.html5parser-pysrc.html deleted file mode 100644 index 242558f..0000000 --- a/doc/html/api/lxml.html.html5parser-pysrc.html +++ /dev/null @@ -1,590 +0,0 @@ - - - - - lxml.html.html5parser - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package html :: - Module html5parser - - - - - - -
[hide private]
[frames] | no frames]
-
-

Source Code for Module lxml.html.html5parser

-
-  1  """ 
-  2  An interface to html5lib that mimics the lxml.html interface. 
-  3  """ 
-  4   
-  5  from html5lib import HTMLParser as _HTMLParser 
-  6  from html5lib.treebuilders.etree_lxml import TreeBuilder 
-  7   
-  8  from lxml import etree 
-  9  from lxml.html import _contains_block_level_tag, XHTML_NAMESPACE, Element 
- 10   
- 11  # python3 compatibility 
- 12  try: 
- 13      _strings = basestring 
- 14  except NameError: 
- 15      _strings = (bytes, str) 
- 16  try: 
- 17      from urllib2 import urlopen 
- 18  except ImportError: 
- 19      from urllib.request import urlopen 
- 20  try: 
- 21      from urlparse import urlparse 
- 22  except ImportError: 
- 23      from urllib.parse import urlparse 
- 24   
-
25 -class HTMLParser(_HTMLParser): -
26 """An html5lib HTML parser with lxml as tree.""" - 27 -
28 - def __init__(self, strict=False, **kwargs): -
29 _HTMLParser.__init__(self, strict=strict, tree=TreeBuilder, **kwargs) -
30 - 31 - 32 try: - 33 from html5lib import XHTMLParser as _XHTMLParser - 34 except ImportError: - 35 pass - 36 else: -
37 - class XHTMLParser(_XHTMLParser): -
38 """An html5lib XHTML Parser with lxml as tree.""" - 39 -
40 - def __init__(self, strict=False, **kwargs): -
41 _XHTMLParser.__init__(self, strict=strict, tree=TreeBuilder, **kwargs) -
42 - 43 xhtml_parser = XHTMLParser() - 44 - 45 -
46 -def _find_tag(tree, tag): -
47 elem = tree.find(tag) - 48 if elem is not None: - 49 return elem - 50 return tree.find('{%s}%s' % (XHTML_NAMESPACE, tag)) -
51 - 52 -
53 -def document_fromstring(html, guess_charset=True, parser=None): -
54 """Parse a whole document into a string.""" - 55 if not isinstance(html, _strings): - 56 raise TypeError('string required') - 57 - 58 if parser is None: - 59 parser = html_parser - 60 - 61 return parser.parse(html, useChardet=guess_charset).getroot() -
62 - 63 -
64 -def fragments_fromstring(html, no_leading_text=False, - 65 guess_charset=False, parser=None): -
66 """Parses several HTML elements, returning a list of elements. - 67 - 68 The first item in the list may be a string. If no_leading_text is true, - 69 then it will be an error if there is leading text, and it will always be - 70 a list of only elements. - 71 - 72 If `guess_charset` is `True` and the text was not unicode but a - 73 bytestring, the `chardet` library will perform charset guessing on the - 74 string. - 75 """ - 76 if not isinstance(html, _strings): - 77 raise TypeError('string required') - 78 - 79 if parser is None: - 80 parser = html_parser - 81 - 82 children = parser.parseFragment(html, 'div', useChardet=guess_charset) - 83 if children and isinstance(children[0], _strings): - 84 if no_leading_text: - 85 if children[0].strip(): - 86 raise etree.ParserError('There is leading text: %r' % - 87 children[0]) - 88 del children[0] - 89 return children -
90 - 91 -
92 -def fragment_fromstring(html, create_parent=False, - 93 guess_charset=False, parser=None): -
94 """Parses a single HTML element; it is an error if there is more than - 95 one element, or if anything but whitespace precedes or follows the - 96 element. - 97 - 98 If create_parent is true (or is a tag name) then a parent node - 99 will be created to encapsulate the HTML in a single element. In -100 this case, leading or trailing text is allowed. -101 """ -102 if not isinstance(html, _strings): -103 raise TypeError('string required') -104 -105 accept_leading_text = bool(create_parent) -106 -107 elements = fragments_fromstring( -108 html, guess_charset=guess_charset, parser=parser, -109 no_leading_text=not accept_leading_text) -110 -111 if create_parent: -112 if not isinstance(create_parent, _strings): -113 create_parent = 'div' -114 new_root = Element(create_parent) -115 if elements: -116 if isinstance(elements[0], _strings): -117 new_root.text = elements[0] -118 del elements[0] -119 new_root.extend(elements) -120 return new_root -121 -122 if not elements: -123 raise etree.ParserError('No elements found') -124 if len(elements) > 1: -125 raise etree.ParserError('Multiple elements found') -126 result = elements[0] -127 if result.tail and result.tail.strip(): -128 raise etree.ParserError('Element followed by text: %r' % result.tail) -129 result.tail = None -130 return result -
131 -132 -
133 -def fromstring(html, guess_charset=True, parser=None): -
134 """Parse the html, returning a single element/document. -135 -136 This tries to minimally parse the chunk of text, without knowing if it -137 is a fragment or a document. -138 -139 base_url will set the document's base_url attribute (and the tree's docinfo.URL) -140 """ -141 if not isinstance(html, _strings): -142 raise TypeError('string required') -143 doc = document_fromstring(html, parser=parser, -144 guess_charset=guess_charset) -145 -146 # document starts with doctype or <html>, full document! -147 start = html[:50].lstrip().lower() -148 if start.startswith('<html') or start.startswith('<!doctype'): -149 return doc -150 -151 head = _find_tag(doc, 'head') -152 -153 # if the head is not empty we have a full document -154 if len(head): -155 return doc -156 -157 body = _find_tag(doc, 'body') -158 -159 # The body has just one element, so it was probably a single -160 # element passed in -161 if (len(body) == 1 and (not body.text or not body.text.strip()) -162 and (not body[-1].tail or not body[-1].tail.strip())): -163 return body[0] -164 -165 # Now we have a body which represents a bunch of tags which have the -166 # content that was passed in. We will create a fake container, which -167 # is the body tag, except <body> implies too much structure. -168 if _contains_block_level_tag(body): -169 body.tag = 'div' -170 else: -171 body.tag = 'span' -172 return body -
173 -174 -
175 -def parse(filename_url_or_file, guess_charset=True, parser=None): -
176 """Parse a filename, URL, or file-like object into an HTML document -177 tree. Note: this returns a tree, not an element. Use -178 ``parse(...).getroot()`` to get the document root. -179 """ -180 if parser is None: -181 parser = html_parser -182 if not isinstance(filename_url_or_file, _strings): -183 fp = filename_url_or_file -184 elif _looks_like_url(filename_url_or_file): -185 fp = urlopen(filename_url_or_file) -186 else: -187 fp = open(filename_url_or_file, 'rb') -188 return parser.parse(fp, useChardet=guess_charset) -
189 -
190 -def _looks_like_url(str): -
191 scheme = urlparse(str)[0] -192 return scheme != '' -
193 -194 html_parser = HTMLParser() -195 -
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.html.html5parser.HTMLParser-class.html b/doc/html/api/lxml.html.html5parser.HTMLParser-class.html deleted file mode 100644 index 6749463..0000000 --- a/doc/html/api/lxml.html.html5parser.HTMLParser-class.html +++ /dev/null @@ -1,275 +0,0 @@ - - - - - lxml.html.html5parser.HTMLParser - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package html :: - Module html5parser :: - Class HTMLParser - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class HTMLParser

source code

-
-                     object --+    
-                              |    
-html5lib.html5parser.HTMLParser --+
-                                  |
-                                 HTMLParser
-
- -
-An html5lib HTML parser with lxml as tree. - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__init__(self, - strict=False, - **kwargs)
- strict - raise an exception when a parse error is encountered
- source code - -
- -
-

Inherited from html5lib.html5parser.HTMLParser: - adjustForeignAttributes, - adjustMathMLAttributes, - adjustSVGAttributes, - mainLoop, - normalizeToken, - normalizedTokens, - parse, - parseError, - parseFragment, - parseRCDataRawtext, - reset, - resetInsertionMode -

-

Inherited from html5lib.html5parser.HTMLParser (private): - _parse -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __new__, - __reduce__, - __reduce_ex__, - __repr__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__init__(self, - strict=False, - **kwargs) -
(Constructor) -

-
source code  -
- -

strict - raise an exception when a parse error is encountered

-

tree - a treebuilder class controlling the type of tree that will be -returned. Built in treebuilders can be accessed through -html5lib.treebuilders.getTreeBuilder(treeType)

-

tokenizer - a class that provides a stream of tokens to the treebuilder. -This may be replaced for e.g. a sanitizer which converts some tags to -text

-
-
Overrides: - object.__init__ -
(inherited documentation)
- -
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.html.html5parser.XHTMLParser-class.html b/doc/html/api/lxml.html.html5parser.XHTMLParser-class.html deleted file mode 100644 index 51e5c1c..0000000 --- a/doc/html/api/lxml.html.html5parser.XHTMLParser-class.html +++ /dev/null @@ -1,161 +0,0 @@ - - - - - lxml.html.html5parser.XHTMLParser - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package html :: - Module html5parser :: - Class XHTMLParser - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class XHTMLParser

source code

-
-html5lib.XHTMLParser --+
-                       |
-                      XHTMLParser
-
- -
-An html5lib XHTML Parser with lxml as tree. - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__init__(self, - strict=False, - **kwargs) - source code - -
- -
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.html.soupparser-module.html b/doc/html/api/lxml.html.soupparser-module.html deleted file mode 100644 index 6d769b1..0000000 --- a/doc/html/api/lxml.html.soupparser-module.html +++ /dev/null @@ -1,471 +0,0 @@ - - - - - lxml.html.soupparser - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package html :: - Module soupparser - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Module soupparser

source code

-External interface to the BeautifulSoup HTML parser. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Functions[hide private]
-
-   - - - - - - -
fromstring(data, - beautifulsoup=None, - makeelement=None, - **bsargs)
- Parse a string of HTML data into an Element tree using the -BeautifulSoup parser.
- source code - -
- -
-   - - - - - - -
parse(file, - beautifulsoup=None, - makeelement=None, - **bsargs)
- Parse a file into an ElemenTree using the BeautifulSoup parser.
- source code - -
- -
-   - - - - - - -
convert_tree(beautiful_soup_tree, - makeelement=None)
- Convert a BeautifulSoup tree to a list of Element trees.
- source code - -
- -
-   - - - - - - -
_parse(source, - beautifulsoup, - makeelement, - **bsargs) - source code - -
- -
-   - - - - - - -
_convert_tree(beautiful_soup_tree, - makeelement) - source code - -
- -
-   - - - - - - -
_convert_children(parent, - beautiful_soup_tree, - makeelement) - source code - -
- -
-   - - - - - - -
_append_text(parent, - element, - text) - source code - -
- -
-   - - - - - - -
handle_entities(...)
- sub(repl, string[, count = 0]) --> newstring -Return the string obtained by replacing the leftmost non-overlapping -occurrences of pattern in string by the replacement repl.
- source code - -
- -
-   - - - - - - -
unescape(string) - source code - -
- -
- - - - - - - - - - - - -
- - - - - -
Variables[hide private]
-
-   - - __doc__ = """External interface to the BeautifulSoup HTML pars... -
-   - - __package__ = 'lxml.html' -
- - - - - - -
- - - - - -
Function Details[hide private]
-
- -
- -
- - -
-

fromstring(data, - beautifulsoup=None, - makeelement=None, - **bsargs) -

-
source code  -
- -

Parse a string of HTML data into an Element tree using the -BeautifulSoup parser.

-

Returns the root <html> Element of the tree.

-

You can pass a different BeautifulSoup parser through the -beautifulsoup keyword, and a diffent Element factory function -through the makeelement keyword. By default, the standard -BeautifulSoup class and the default factory of lxml.html are -used.

-
-
-
-
- -
- -
- - -
-

parse(file, - beautifulsoup=None, - makeelement=None, - **bsargs) -

-
source code  -
- -

Parse a file into an ElemenTree using the BeautifulSoup parser.

-

You can pass a different BeautifulSoup parser through the -beautifulsoup keyword, and a diffent Element factory function -through the makeelement keyword. By default, the standard -BeautifulSoup class and the default factory of lxml.html are -used.

-
-
-
-
- -
- -
- - -
-

convert_tree(beautiful_soup_tree, - makeelement=None) -

-
source code  -
- -

Convert a BeautifulSoup tree to a list of Element trees.

-

Returns a list instead of a single root Element to support -HTML-like soup with more than one root element.

-

You can pass a different Element factory through the makeelement -keyword.

-
-
-
-
-
- - - - - - -
- - - - - -
Variables Details[hide private]
-
- -
- -
-

__doc__

- -
-
-
-
Value:
-
-"""External interface to the BeautifulSoup HTML parser.
-"""
-
-
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.html.soupparser-pysrc.html b/doc/html/api/lxml.html.soupparser-pysrc.html deleted file mode 100644 index 7a5fd8b..0000000 --- a/doc/html/api/lxml.html.soupparser-pysrc.html +++ /dev/null @@ -1,339 +0,0 @@ - - - - - lxml.html.soupparser - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package html :: - Module soupparser - - - - - - -
[hide private]
[frames] | no frames]
-
-

Source Code for Module lxml.html.soupparser

-
-  1  __doc__ = """External interface to the BeautifulSoup HTML parser. 
-  2  """ 
-  3   
-  4  __all__ = ["fromstring", "parse", "convert_tree"] 
-  5   
-  6  from lxml import etree, html 
-  7  from BeautifulSoup import \ 
-  8       BeautifulSoup, Tag, Comment, ProcessingInstruction, NavigableString 
-  9   
- 10   
-
11 -def fromstring(data, beautifulsoup=None, makeelement=None, **bsargs): -
12 """Parse a string of HTML data into an Element tree using the - 13 BeautifulSoup parser. - 14 - 15 Returns the root ``<html>`` Element of the tree. - 16 - 17 You can pass a different BeautifulSoup parser through the - 18 `beautifulsoup` keyword, and a diffent Element factory function - 19 through the `makeelement` keyword. By default, the standard - 20 ``BeautifulSoup`` class and the default factory of `lxml.html` are - 21 used. - 22 """ - 23 return _parse(data, beautifulsoup, makeelement, **bsargs) -
24 -
25 -def parse(file, beautifulsoup=None, makeelement=None, **bsargs): -
26 """Parse a file into an ElemenTree using the BeautifulSoup parser. - 27 - 28 You can pass a different BeautifulSoup parser through the - 29 `beautifulsoup` keyword, and a diffent Element factory function - 30 through the `makeelement` keyword. By default, the standard - 31 ``BeautifulSoup`` class and the default factory of `lxml.html` are - 32 used. - 33 """ - 34 if not hasattr(file, 'read'): - 35 file = open(file) - 36 root = _parse(file, beautifulsoup, makeelement, **bsargs) - 37 return etree.ElementTree(root) -
38 -
39 -def convert_tree(beautiful_soup_tree, makeelement=None): -
40 """Convert a BeautifulSoup tree to a list of Element trees. - 41 - 42 Returns a list instead of a single root Element to support - 43 HTML-like soup with more than one root element. - 44 - 45 You can pass a different Element factory through the `makeelement` - 46 keyword. - 47 """ - 48 if makeelement is None: - 49 makeelement = html.html_parser.makeelement - 50 root = _convert_tree(beautiful_soup_tree, makeelement) - 51 children = root.getchildren() - 52 for child in children: - 53 root.remove(child) - 54 return children -
55 - 56 - 57 # helpers - 58 -
59 -def _parse(source, beautifulsoup, makeelement, **bsargs): -
60 if beautifulsoup is None: - 61 beautifulsoup = BeautifulSoup - 62 if makeelement is None: - 63 makeelement = html.html_parser.makeelement - 64 if 'convertEntities' not in bsargs: - 65 bsargs['convertEntities'] = 'html' - 66 tree = beautifulsoup(source, **bsargs) - 67 root = _convert_tree(tree, makeelement) - 68 # from ET: wrap the document in a html root element, if necessary - 69 if len(root) == 1 and root[0].tag == "html": - 70 return root[0] - 71 root.tag = "html" - 72 return root -
73 -
74 -def _convert_tree(beautiful_soup_tree, makeelement): -
75 root = makeelement(beautiful_soup_tree.name, - 76 attrib=dict(beautiful_soup_tree.attrs)) - 77 _convert_children(root, beautiful_soup_tree, makeelement) - 78 return root -
79 -
80 -def _convert_children(parent, beautiful_soup_tree, makeelement): -
81 SubElement = etree.SubElement - 82 et_child = None - 83 for child in beautiful_soup_tree: - 84 if isinstance(child, Tag): - 85 et_child = SubElement(parent, child.name, attrib=dict( - 86 [(k, unescape(v)) for (k,v) in child.attrs])) - 87 _convert_children(et_child, child, makeelement) - 88 elif type(child) is NavigableString: - 89 _append_text(parent, et_child, unescape(child)) - 90 else: - 91 if isinstance(child, Comment): - 92 parent.append(etree.Comment(child)) - 93 elif isinstance(child, ProcessingInstruction): - 94 parent.append(etree.ProcessingInstruction( - 95 *child.split(' ', 1))) - 96 else: # CData - 97 _append_text(parent, et_child, unescape(child)) -
98 -
99 -def _append_text(parent, element, text): -
100 if element is None: -101 parent.text = (parent.text or '') + text -102 else: -103 element.tail = (element.tail or '') + text -
104 -105 -106 # copied from ET's ElementSoup -107 -108 try: -109 from html.entities import name2codepoint # Python 3 -110 except ImportError: -111 from htmlentitydefs import name2codepoint -112 import re -113 -114 handle_entities = re.compile("&(\w+);").sub -115 -
116 -def unescape(string): -
117 if not string: -118 return '' -119 # work around oddities in BeautifulSoup's entity handling -120 def unescape_entity(m): -121 try: -122 return unichr(name2codepoint[m.group(1)]) -123 except KeyError: -124 return m.group(0) # use as is -
125 return handle_entities(unescape_entity, string) -126 -
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.html.usedoctest-module.html b/doc/html/api/lxml.html.usedoctest-module.html deleted file mode 100644 index c3749f9..0000000 --- a/doc/html/api/lxml.html.usedoctest-module.html +++ /dev/null @@ -1,123 +0,0 @@ - - - - - lxml.html.usedoctest - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package html :: - Module usedoctest - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Module usedoctest

source code

-

Doctest module for HTML comparison.

-

Usage:

-
->>> import lxml.html.usedoctest
->>> # now do your HTML doctests ...
-
-

See lxml.doctestcompare.

- - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.html.usedoctest-pysrc.html b/doc/html/api/lxml.html.usedoctest-pysrc.html deleted file mode 100644 index 843de84..0000000 --- a/doc/html/api/lxml.html.usedoctest-pysrc.html +++ /dev/null @@ -1,138 +0,0 @@ - - - - - lxml.html.usedoctest - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package html :: - Module usedoctest - - - - - - -
[hide private]
[frames] | no frames]
-
-

Source Code for Module lxml.html.usedoctest

-
- 1  """Doctest module for HTML comparison. 
- 2   
- 3  Usage:: 
- 4   
- 5     >>> import lxml.html.usedoctest 
- 6     >>> # now do your HTML doctests ... 
- 7   
- 8  See `lxml.doctestcompare`. 
- 9  """ 
-10   
-11  from lxml import doctestcompare 
-12   
-13  doctestcompare.temp_install(html=True, del_module=__name__) 
-14   
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.includes-module.html b/doc/html/api/lxml.includes-module.html deleted file mode 100644 index 9cdf9c5..0000000 --- a/doc/html/api/lxml.includes-module.html +++ /dev/null @@ -1,140 +0,0 @@ - - - - - lxml.includes - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package includes - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Package includes

source code

- - - - - - - - - -
- - - - - -
Variables[hide private]
-
-   - - __package__ = None
- hash(x) -
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.includes-pysrc.html b/doc/html/api/lxml.includes-pysrc.html deleted file mode 100644 index 56f5261..0000000 --- a/doc/html/api/lxml.includes-pysrc.html +++ /dev/null @@ -1,122 +0,0 @@ - - - - - lxml.includes - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package includes - - - - - - -
[hide private]
[frames] | no frames]
-
-

Source Code for Package lxml.includes

-
-1   
-2   
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.isoschematron-module.html b/doc/html/api/lxml.isoschematron-module.html deleted file mode 100644 index 892b430..0000000 --- a/doc/html/api/lxml.isoschematron-module.html +++ /dev/null @@ -1,555 +0,0 @@ - - - - - lxml.isoschematron - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package isoschematron - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Package isoschematron

source code

-The lxml.isoschematron package implements ISO Schematron support on top -of the pure-xslt 'skeleton' implementation. - - - - - - - - - - - - - - - - - - - -
- - - - - -
Classes[hide private]
-
-   - - bytes
- str(object) -> string -
-   - - unicode
- str(object) -> string -
-   - - basestring
- str(object) -> string -
-   - - Schematron
- An ISO Schematron validator. -
- - - - - - - - - - - - -
- - - - - -
Functions[hide private]
-
-   - - - - - - -
stylesheet_params(**kwargs)
- Convert keyword args to a dictionary of stylesheet parameters.
- source code - -
- -
-   - - - - - - -
_stylesheet_param_dict(paramsDict, - kwargsDict)
- Return a copy of paramsDict, updated with kwargsDict entries, wrapped as -stylesheet arguments. -kwargsDict entries with a value of None are ignored.
- source code - -
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Variables[hide private]
-
-   - - XML_SCHEMA_NS = 'http://www.w3.org/2001/XMLSchema' -
-   - - RELAXNG_NS = 'http://relaxng.org/ns/structure/1.0' -
-   - - SCHEMATRON_NS = 'http://purl.oclc.org/dsdl/schematron' -
-   - - SVRL_NS = 'http://purl.oclc.org/dsdl/svrl' -
-   - - _schematron_root = '{http://purl.oclc.org/dsdl/schematron}schema' -
-   - - _xml_schema_root = '{http://www.w3.org/2001/XMLSchema}schema' -
-   - - _resources_dir = '/home/sbehnel/source/Python/lxml/lxml-releas... -
-   - - extract_xsd = _etree.XSLT(_etree.parse(os.path.join(_resources... -
-   - - extract_rng = _etree.XSLT(_etree.parse(os.path.join(_resources... -
-   - - iso_dsdl_include = _etree.XSLT(_etree.parse(os.path.join(_reso... -
-   - - iso_abstract_expand = _etree.XSLT(_etree.parse(os.path.join(_r... -
-   - - iso_svrl_for_xslt1 = _etree.XSLT(_etree.parse(os.path.join(_re... -
-   - - svrl_validation_errors = //svrl:failed-assert -
-   - - schematron_schema_valid = _etree.RelaxNG(_etree.parse(os.path.... -
-   - - __package__ = 'lxml.isoschematron' -
- - - - - - -
- - - - - -
Function Details[hide private]
-
- -
- -
- - -
-

stylesheet_params(**kwargs) -

-
source code  -
- -
-Convert keyword args to a dictionary of stylesheet parameters.
-XSL stylesheet parameters must be XPath expressions, i.e.:
- * string expressions, like "'5'"
- * simple (number) expressions, like "5"
- * valid XPath expressions, like "/a/b/text()"
-This function converts native Python keyword arguments to stylesheet
-parameters following these rules:
-If an arg is a string wrap it with XSLT.strparam().
-If an arg is an XPath object use its path string.
-If arg is None raise TypeError.
-Else convert arg to string.
-
-
-
-
-
-
-
- - - - - - -
- - - - - -
Variables Details[hide private]
-
- -
- -
-

_resources_dir

- -
-
-
-
Value:
-
-'/home/sbehnel/source/Python/lxml/lxml-release/src/lxml/isoschematron/\
-resources'
-
-
-
-
-
- -
- -
-

extract_xsd

- -
-
-
-
Value:
-
-_etree.XSLT(_etree.parse(os.path.join(_resources_dir, 'xsl', 'XSD2Scht\
-rn.xsl')))
-
-
-
-
-
- -
- -
-

extract_rng

- -
-
-
-
Value:
-
-_etree.XSLT(_etree.parse(os.path.join(_resources_dir, 'xsl', 'RNG2Scht\
-rn.xsl')))
-
-
-
-
-
- -
- -
-

iso_dsdl_include

- -
-
-
-
Value:
-
-_etree.XSLT(_etree.parse(os.path.join(_resources_dir, 'xsl', 'iso-sche\
-matron-xslt1', 'iso_dsdl_include.xsl')))
-
-
-
-
-
- -
- -
-

iso_abstract_expand

- -
-
-
-
Value:
-
-_etree.XSLT(_etree.parse(os.path.join(_resources_dir, 'xsl', 'iso-sche\
-matron-xslt1', 'iso_abstract_expand.xsl')))
-
-
-
-
-
- -
- -
-

iso_svrl_for_xslt1

- -
-
-
-
Value:
-
-_etree.XSLT(_etree.parse(os.path.join(_resources_dir, 'xsl', 'iso-sche\
-matron-xslt1', 'iso_svrl_for_xslt1.xsl')))
-
-
-
-
-
- -
- -
-

schematron_schema_valid

- -
-
-
-
Value:
-
-_etree.RelaxNG(_etree.parse(os.path.join(_resources_dir, 'rng', 'iso-s\
-chematron.rng')))
-
-
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.isoschematron-pysrc.html b/doc/html/api/lxml.isoschematron-pysrc.html deleted file mode 100644 index 2abc6cc..0000000 --- a/doc/html/api/lxml.isoschematron-pysrc.html +++ /dev/null @@ -1,618 +0,0 @@ - - - - - lxml.isoschematron - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package isoschematron - - - - - - -
[hide private]
[frames] | no frames]
-
-

Source Code for Package lxml.isoschematron

-
-  1  """The ``lxml.isoschematron`` package implements ISO Schematron support on top 
-  2  of the pure-xslt 'skeleton' implementation. 
-  3  """ 
-  4   
-  5  import sys 
-  6  import os.path 
-  7  from lxml import etree as _etree # due to validator __init__ signature 
-  8   
-  9   
- 10  # some compat stuff, borrowed from lxml.html 
- 11  try: 
- 12      bytes 
- 13  except NameError: 
- 14      # Python < 2.6 
- 15      bytes = str 
- 16  try: 
- 17      unicode 
- 18  except NameError: 
- 19      # Python 3 
- 20      unicode = str 
- 21  try: 
- 22      basestring 
- 23  except NameError: 
- 24      # Python 3 
- 25      basestring = str 
- 26   
- 27   
- 28  __all__ = ['extract_xsd', 'extract_rng', 'iso_dsdl_include', 
- 29             'iso_abstract_expand', 'iso_svrl_for_xslt1', 
- 30             'svrl_validation_errors', 'schematron_schema_valid', 
- 31             'stylesheet_params', 'Schematron']  
- 32   
- 33   
- 34  # some namespaces 
- 35  #FIXME: Maybe lxml should provide a dedicated place for common namespace 
- 36  #FIXME: definitions? 
- 37  XML_SCHEMA_NS = "http://www.w3.org/2001/XMLSchema" 
- 38  RELAXNG_NS = "http://relaxng.org/ns/structure/1.0" 
- 39  SCHEMATRON_NS = "http://purl.oclc.org/dsdl/schematron" 
- 40  SVRL_NS = "http://purl.oclc.org/dsdl/svrl" 
- 41   
- 42   
- 43  # some helpers 
- 44  _schematron_root = '{%s}schema' % SCHEMATRON_NS 
- 45  _xml_schema_root = '{%s}schema' % XML_SCHEMA_NS 
- 46  _resources_dir = os.path.join(os.path.dirname(__file__), 'resources') 
- 47   
- 48   
- 49  # the iso-schematron skeleton implementation steps aka xsl transformations 
- 50  extract_xsd = _etree.XSLT(_etree.parse( 
- 51      os.path.join(_resources_dir, 'xsl', 'XSD2Schtrn.xsl'))) 
- 52  extract_rng = _etree.XSLT(_etree.parse( 
- 53      os.path.join(_resources_dir, 'xsl', 'RNG2Schtrn.xsl'))) 
- 54  iso_dsdl_include = _etree.XSLT(_etree.parse( 
- 55      os.path.join(_resources_dir, 'xsl', 'iso-schematron-xslt1', 
- 56                   'iso_dsdl_include.xsl'))) 
- 57  iso_abstract_expand = _etree.XSLT(_etree.parse( 
- 58      os.path.join(_resources_dir, 'xsl', 'iso-schematron-xslt1', 
- 59                   'iso_abstract_expand.xsl'))) 
- 60  iso_svrl_for_xslt1 = _etree.XSLT(_etree.parse( 
- 61      os.path.join(_resources_dir, 
- 62                   'xsl', 'iso-schematron-xslt1', 'iso_svrl_for_xslt1.xsl'))) 
- 63   
- 64   
- 65  # svrl result accessors 
- 66  svrl_validation_errors = _etree.XPath( 
- 67      '//svrl:failed-assert', namespaces={'svrl': SVRL_NS}) 
- 68   
- 69   
- 70  # RelaxNG validator for schematron schemas 
- 71  schematron_schema_valid = _etree.RelaxNG(_etree.parse( 
- 72      os.path.join(_resources_dir, 'rng', 'iso-schematron.rng'))) 
- 73   
- 74   
-
75 -def stylesheet_params(**kwargs): -
76 """Convert keyword args to a dictionary of stylesheet parameters. - 77 XSL stylesheet parameters must be XPath expressions, i.e.: - 78 * string expressions, like "'5'" - 79 * simple (number) expressions, like "5" - 80 * valid XPath expressions, like "/a/b/text()" - 81 This function converts native Python keyword arguments to stylesheet - 82 parameters following these rules: - 83 If an arg is a string wrap it with XSLT.strparam(). - 84 If an arg is an XPath object use its path string. - 85 If arg is None raise TypeError. - 86 Else convert arg to string. - 87 """ - 88 result = {} - 89 for key, val in kwargs.items(): - 90 if isinstance(val, basestring): - 91 val = _etree.XSLT.strparam(val) - 92 elif val is None: - 93 raise TypeError('None not allowed as a stylesheet parameter') - 94 elif not isinstance(val, _etree.XPath): - 95 val = unicode(val) - 96 result[key] = val - 97 return result -
98 - 99 -100 # helper function for use in Schematron __init__ -
101 -def _stylesheet_param_dict(paramsDict, kwargsDict): -
102 """Return a copy of paramsDict, updated with kwargsDict entries, wrapped as -103 stylesheet arguments. -104 kwargsDict entries with a value of None are ignored. -105 """ -106 # beware of changing mutable default arg -107 paramsDict = dict(paramsDict) -108 for k, v in kwargsDict.items(): -109 if v is not None: # None values do not override -110 paramsDict[k] = v -111 paramsDict = stylesheet_params(**paramsDict) -112 return paramsDict -
113 -114 -
115 -class Schematron(_etree._Validator): -
116 """An ISO Schematron validator. -117 -118 Pass a root Element or an ElementTree to turn it into a validator. -119 Alternatively, pass a filename as keyword argument 'file' to parse from -120 the file system. -121 Built on the Schematron language 'reference' skeleton pure-xslt -122 implementation, the validator is created as an XSLT 1.0 stylesheet using -123 these steps: -124 -125 0) (Extract from XML Schema or RelaxNG schema) -126 1) Process inclusions -127 2) Process abstract patterns -128 3) Compile the schematron schema to XSLT -129 -130 The ``include`` and ``expand`` keyword arguments can be used to switch off -131 steps 1) and 2). -132 To set parameters for steps 1), 2) and 3) hand parameter dictionaries to the -133 keyword arguments ``include_params``, ``expand_params`` or -134 ``compile_params``. -135 For convenience, the compile-step parameter ``phase`` is also exposed as a -136 keyword argument ``phase``. This takes precedence if the parameter is also -137 given in the parameter dictionary. -138 If ``store_schematron`` is set to True, the (included-and-expanded) -139 schematron document tree is stored and available through the ``schematron`` -140 property. -141 If ``store_xslt`` is set to True, the validation XSLT document tree will be -142 stored and can be retrieved through the ``validator_xslt`` property. -143 With ``store_report`` set to True (default: False), the resulting validation -144 report document gets stored and can be accessed as the ``validation_report`` -145 property. -146 -147 Schematron is a less well known, but very powerful schema language. The main -148 idea is to use the capabilities of XPath to put restrictions on the structure -149 and the content of XML documents. Here is a simple example:: -150 -151 >>> from lxml import isoschematron -152 >>> schematron = isoschematron.Schematron(etree.XML(''' -153 ... <schema xmlns="http://purl.oclc.org/dsdl/schematron" > -154 ... <pattern id="id_only_attribute"> -155 ... <title>id is the only permitted attribute name</title> -156 ... <rule context="*"> -157 ... <report test="@*[not(name()='id')]">Attribute -158 ... <name path="@*[not(name()='id')]"/> is forbidden<name/> -159 ... </report> -160 ... </rule> -161 ... </pattern> -162 ... </schema> -163 ... ''')) -164 -165 >>> xml = etree.XML(''' -166 ... <AAA name="aaa"> -167 ... <BBB id="bbb"/> -168 ... <CCC color="ccc"/> -169 ... </AAA> -170 ... ''') -171 -172 >>> schematron.validate(xml) -173 0 -174 -175 >>> xml = etree.XML(''' -176 ... <AAA id="aaa"> -177 ... <BBB id="bbb"/> -178 ... <CCC/> -179 ... </AAA> -180 ... ''') -181 -182 >>> schematron.validate(xml) -183 1 -184 """ -185 -186 # libxml2 error categorization for validation errors -187 _domain = _etree.ErrorDomains.SCHEMATRONV -188 _level = _etree.ErrorLevels.ERROR -189 _error_type = _etree.ErrorTypes.SCHEMATRONV_ASSERT -190 -
191 - def _extract(self, element): -
192 """Extract embedded schematron schema from non-schematron host schema. -193 This method will only be called by __init__ if the given schema document -194 is not a schematron schema by itself. -195 Must return a schematron schema document tree or None. -196 """ -197 schematron = None -198 if element.tag == _xml_schema_root: -199 schematron = self._extract_xsd(element) -200 elif element.nsmap[element.prefix] == RELAXNG_NS: -201 # RelaxNG does not have a single unique root element -202 schematron = self._extract_rng(element) -203 return schematron -
204 -205 # customization points -206 # etree.XSLT objects that provide the extract, include, expand, compile -207 # steps -208 _extract_xsd = extract_xsd -209 _extract_rng = extract_rng -210 _include = iso_dsdl_include -211 _expand = iso_abstract_expand -212 _compile = iso_svrl_for_xslt1 -213 # etree.XPath object that determines input document validity when applied to -214 # the svrl result report; must return a list of result elements (empty if -215 # valid) -216 _validation_errors = svrl_validation_errors -217 -
218 - def __init__(self, etree=None, file=None, include=True, expand=True, -219 include_params={}, expand_params={}, compile_params={}, -220 store_schematron=False, store_xslt=False, store_report=False, -221 phase=None): -
222 super(Schematron, self).__init__() -223 -224 self._store_report = store_report -225 self._schematron = None -226 self._validator_xslt = None -227 self._validation_report = None -228 -229 # parse schema document, may be a schematron schema or an XML Schema or -230 # a RelaxNG schema with embedded schematron rules -231 try: -232 if etree is not None: -233 if isinstance(etree, _etree._Element): -234 root = etree -235 else: -236 root = etree.getroot() -237 elif file is not None: -238 root = _etree.parse(file).getroot() -239 except Exception: -240 raise _etree.SchematronParseError( -241 "No tree or file given: %s" % sys.exc_info()[1]) -242 if root is None: -243 raise ValueError("Empty tree") -244 if root.tag == _schematron_root: -245 schematron = root -246 else: -247 schematron = self._extract(root) -248 if schematron is None: -249 raise _etree.SchematronParseError( -250 "Document is not a schematron schema or schematron-extractable") -251 # perform the iso-schematron skeleton implementation steps to get a -252 # validating xslt -253 if include: -254 schematron = self._include(schematron, **include_params) -255 if expand: -256 schematron = self._expand(schematron, **expand_params) -257 if not schematron_schema_valid(schematron): -258 raise _etree.SchematronParseError( -259 "invalid schematron schema: %s" % -260 schematron_schema_valid.error_log) -261 if store_schematron: -262 self._schematron = schematron -263 # add new compile keyword args here if exposing them -264 compile_kwargs = {'phase': phase} -265 compile_params = _stylesheet_param_dict(compile_params, compile_kwargs) -266 validator_xslt = self._compile(schematron, **compile_params) -267 if store_xslt: -268 self._validator_xslt = validator_xslt -269 self._validator = _etree.XSLT(validator_xslt) -
270 -
271 - def __call__(self, etree): -
272 """Validate doc using Schematron. -273 -274 Returns true if document is valid, false if not. -275 """ -276 self._clear_error_log() -277 result = self._validator(etree) -278 if self._store_report: -279 self._validation_report = result -280 errors = self._validation_errors(result) -281 if errors: -282 if isinstance(etree, _etree._Element): -283 fname = etree.getroottree().docinfo.URL or '<file>' -284 else: -285 fname = etree.docinfo.URL or '<file>' -286 for error in errors: -287 # Does svrl report the line number, anywhere? Don't think so. -288 self._append_log_message( -289 domain=self._domain, type=self._error_type, -290 level=self._level, line=0, message=_etree.tounicode(error), -291 filename=fname) -292 return False -293 return True -
294 -
295 - def schematron(self): -
296 """ISO-schematron schema document (None if object has been initialized -297 with store_schematron=False). -298 """ -299 return self._schematron -
300 schematron = property(schematron, doc=schematron.__doc__) -301 -
302 - def validator_xslt(self): -
303 """ISO-schematron skeleton implementation XSLT validator document (None -304 if object has been initialized with store_xslt=False). -305 """ -306 return self._validator_xslt -
307 validator_xslt = property(validator_xslt, doc=validator_xslt.__doc__) -308 -
309 - def validation_report(self): -
310 """ISO-schematron validation result report (None if result-storing has -311 been turned off). -312 """ -313 return self._validation_report -
314 validation_report = property(validation_report, doc=validation_report.__doc__) -
315 -
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.isoschematron.Schematron-class.html b/doc/html/api/lxml.isoschematron.Schematron-class.html deleted file mode 100644 index dd7d5ca..0000000 --- a/doc/html/api/lxml.isoschematron.Schematron-class.html +++ /dev/null @@ -1,707 +0,0 @@ - - - - - lxml.isoschematron.Schematron - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package isoschematron :: - Class Schematron - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class Schematron

source code

-
-      object --+    
-               |    
-etree._Validator --+
-                   |
-                  Schematron
-
- -
-

An ISO Schematron validator.

-

Pass a root Element or an ElementTree to turn it into a validator. -Alternatively, pass a filename as keyword argument 'file' to parse from -the file system. -Built on the Schematron language 'reference' skeleton pure-xslt -implementation, the validator is created as an XSLT 1.0 stylesheet using -these steps:

-
-
    -
  1. (Extract from XML Schema or RelaxNG schema)
  2. -
  3. Process inclusions
  4. -
  5. Process abstract patterns
  6. -
  7. Compile the schematron schema to XSLT
  8. -
-
-

The include and expand keyword arguments can be used to switch off -steps 1) and 2). -To set parameters for steps 1), 2) and 3) hand parameter dictionaries to the -keyword arguments include_params, expand_params or -compile_params. -For convenience, the compile-step parameter phase is also exposed as a -keyword argument phase. This takes precedence if the parameter is also -given in the parameter dictionary. -If store_schematron is set to True, the (included-and-expanded) -schematron document tree is stored and available through the schematron -property. -If store_xslt is set to True, the validation XSLT document tree will be -stored and can be retrieved through the validator_xslt property. -With store_report set to True (default: False), the resulting validation -report document gets stored and can be accessed as the validation_report -property.

-

Schematron is a less well known, but very powerful schema language. The main -idea is to use the capabilities of XPath to put restrictions on the structure -and the content of XML documents. Here is a simple example:

-
->>> from lxml import isoschematron
->>> schematron = isoschematron.Schematron(etree.XML('''
-... <schema xmlns="http://purl.oclc.org/dsdl/schematron" >
-...   <pattern id="id_only_attribute">
-...     <title>id is the only permitted attribute name</title>
-...     <rule context="*">
-...       <report test="@*[not(name()='id')]">Attribute
-...         <name path="@*[not(name()='id')]"/> is forbidden<name/>
-...       </report>
-...     </rule>
-...   </pattern>
-... </schema>
-... '''))
-
->>> xml = etree.XML('''
-... <AAA name="aaa">
-...   <BBB id="bbb"/>
-...   <CCC color="ccc"/>
-... </AAA>
-... ''')
-
->>> schematron.validate(xml)
-0
-
->>> xml = etree.XML('''
-... <AAA id="aaa">
-...   <BBB id="bbb"/>
-...   <CCC/>
-... </AAA>
-... ''')
-
->>> schematron.validate(xml)
-1
-
- - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
_extract(self, - element)
- Extract embedded schematron schema from non-schematron host schema. -This method will only be called by __init__ if the given schema document -is not a schematron schema by itself. -Must return a schematron schema document tree or None.
- source code - -
- -
-   - - - - - - -
__init__(self, - etree=None, - file=None, - include=True, - expand=True, - include_params={}, - expand_params={}, - compile_params={}, - store_schematron=False, - store_xslt=False, - store_report=False, - phase=None)
- x.__init__(...) initializes x; see help(type(x)) for signature
- source code - -
- -
-   - - - - - - -
__call__(self, - etree)
- Validate doc using Schematron.
- source code - -
- -
-

Inherited from etree._Validator: - __new__, - assertValid, - assert_, - validate -

-

Inherited from etree._Validator (private): - _append_log_message, - _clear_error_log -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __reduce__, - __reduce_ex__, - __repr__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Class Variables[hide private]
-
-   - - _domain = 28 -
-   - - _level = 2 -
-   - - _error_type = 4000 -
-   - - _extract_xsd = _etree.XSLT(_etree.parse(os.path.join(_resource... -
-   - - _extract_rng = _etree.XSLT(_etree.parse(os.path.join(_resource... -
-   - - _include = _etree.XSLT(_etree.parse(os.path.join(_resources_di... -
-   - - _expand = _etree.XSLT(_etree.parse(os.path.join(_resources_dir... -
-   - - _compile = _etree.XSLT(_etree.parse(os.path.join(_resources_di... -
-   - - _validation_errors = //svrl:failed-assert -
- - - - - - - - - - - - - - - - - - -
- - - - - -
Properties[hide private]
-
-   - - schematron
- ISO-schematron schema document (None if object has been initialized -with store_schematron=False). -
-   - - validator_xslt
- ISO-schematron skeleton implementation XSLT validator document (None -if object has been initialized with store_xslt=False). -
-   - - validation_report
- ISO-schematron validation result report (None if result-storing has -been turned off). -
-

Inherited from etree._Validator: - error_log -

-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__init__(self, - etree=None, - file=None, - include=True, - expand=True, - include_params={}, - expand_params={}, - compile_params={}, - store_schematron=False, - store_xslt=False, - store_report=False, - phase=None) -
(Constructor) -

-
source code  -
- - x.__init__(...) initializes x; see help(type(x)) for signature -
-
Overrides: - object.__init__ -
(inherited documentation)
- -
-
-
- -
- -
- - -
-

__call__(self, - etree) -
(Call operator) -

-
source code  -
- -

Validate doc using Schematron.

-

Returns true if document is valid, false if not.

-
-
-
-
-
- - - - - - -
- - - - - -
Class Variable Details[hide private]
-
- -
- -
-

_extract_xsd

- -
-
-
-
Value:
-
-_etree.XSLT(_etree.parse(os.path.join(_resources_dir, 'xsl', 'XSD2Scht\
-rn.xsl')))
-
-
-
-
-
- -
- -
-

_extract_rng

- -
-
-
-
Value:
-
-_etree.XSLT(_etree.parse(os.path.join(_resources_dir, 'xsl', 'RNG2Scht\
-rn.xsl')))
-
-
-
-
-
- -
- -
-

_include

- -
-
-
-
Value:
-
-_etree.XSLT(_etree.parse(os.path.join(_resources_dir, 'xsl', 'iso-sche\
-matron-xslt1', 'iso_dsdl_include.xsl')))
-
-
-
-
-
- -
- -
-

_expand

- -
-
-
-
Value:
-
-_etree.XSLT(_etree.parse(os.path.join(_resources_dir, 'xsl', 'iso-sche\
-matron-xslt1', 'iso_abstract_expand.xsl')))
-
-
-
-
-
- -
- -
-

_compile

- -
-
-
-
Value:
-
-_etree.XSLT(_etree.parse(os.path.join(_resources_dir, 'xsl', 'iso-sche\
-matron-xslt1', 'iso_svrl_for_xslt1.xsl')))
-
-
-
-
-
-
- - - - - - -
- - - - - -
Property Details[hide private]
-
- -
- -
-

schematron

- ISO-schematron schema document (None if object has been initialized -with store_schematron=False). -
-
Get Method:
-
unreachable.schematron(self) - - ISO-schematron schema document (None if object has been initialized -with store_schematron=False). -
-
-
-
- -
- -
-

validator_xslt

- ISO-schematron skeleton implementation XSLT validator document (None -if object has been initialized with store_xslt=False). -
-
Get Method:
-
unreachable.validator_xslt(self) - - ISO-schematron skeleton implementation XSLT validator document (None -if object has been initialized with store_xslt=False). -
-
-
-
- -
- -
-

validation_report

- ISO-schematron validation result report (None if result-storing has -been turned off). -
-
Get Method:
-
unreachable.validation_report(self) - - ISO-schematron validation result report (None if result-storing has -been turned off). -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.objectify-module.html b/doc/html/api/lxml.objectify-module.html deleted file mode 100644 index aeef26b..0000000 --- a/doc/html/api/lxml.objectify-module.html +++ /dev/null @@ -1,1165 +0,0 @@ - - - - - lxml.objectify - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module objectify - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Module objectify

-The lxml.objectify module implements a Python object API for -XML. It is based on lxml.etree. - -
-

Version: - 2.3.6 -

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Classes[hide private]
-
-   - - BoolElement
- Boolean type base on string values: 'true' or 'false'. -
-   - - ElementMaker
- ElementMaker(self, namespace=None, nsmap=None, annotate=True, makeelement=None) -
-   - - FloatElement -
-   - - IntElement -
-   - - LongElement -
-   - - NoneElement -
-   - - NumberElement -
-   - - ObjectPath
- ObjectPath(path) -Immutable object that represents a compiled object path. -
-   - - ObjectifiedDataElement
- This is the base class for all data type Elements. Subclasses should -override the 'pyval' property and possibly the __str__ method. -
-   - - ObjectifiedElement
- Main XML Element class. -
-   - - ObjectifyElementClassLookup
- ObjectifyElementClassLookup(self, tree_class=None, empty_data_class=None) -Element class lookup method that uses the objectify classes. -
-   - - PyType
- PyType(self, name, type_check, type_class, stringify=None) -User defined type. -
-   - - StringElement
- String data class. -
-   - - _ObjectifyElementMakerCaller -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Functions[hide private]
-
-   - - - - - - -
DataElement(_value, - attrib=None, - nsmap=None, - _pytype=None, - _xsi=None, - **_attributes)
- Create a new element from a Python value and XML attributes taken from -keyword arguments or a dictionary passed as second argument.
- - -
- -
-   - - - - - - -
Element(_tag, - attrib=None, - nsmap=None, - _pytype=None, - **_attributes)
- Objectify specific version of the lxml.etree Element() factory that -always creates a structural (tree) element.
- - -
- -
-   - - - - - - -
SubElement(_parent, - _tag, - attrib=None, - nsmap=None, - **_extra)
- Subelement factory. This function creates an element instance, and -appends it to an existing element.
- - -
- -
-   - - - - - - -
XML(xml, - parser=None, - base_url=None)
- Objectify specific version of the lxml.etree XML() literal factory -that uses the objectify parser.
- - -
- -
-   - - - - - - -
__checkBool(...) - - -
- -
-   - - - - - - -
__lower_bool(...) - - -
- -
-   - - - - - - -
__parseBool(...) - - -
- -
-   - - - - - - -
__unpickleElementTree(...) - - -
- -
-   - - - - - - -
annotate(element_or_tree, - ignore_old=True, - ignore_xsi=False, - empty_pytype=None, - empty_type=None, - annotate_xsi=0, - annotate_pytype=1)
- Recursively annotates the elements of an XML tree with 'xsi:type' -and/or 'py:pytype' attributes.
- - -
- -
-   - - - - - - -
deannotate(element_or_tree, - pytype=True, - xsi=True, - xsi_nil=False, - cleanup_namespaces=False)
- Recursively de-annotate the elements of an XML tree by removing 'py:pytype' -and/or 'xsi:type' attributes and/or 'xsi:nil' attributes.
- - -
- -
-   - - - - - - -
dump(...)
- dump(_Element element not None)
- - -
- -
-   - - - - - - -
enable_recursive_str(on=True)
- Enable a recursively generated tree representation for str(element), -based on objectify.dump(element).
- - -
- -
-   - - - - - - -
fromstring(xml, - parser=None, - base_url=None)
- Objectify specific version of the lxml.etree fromstring() function -that uses the objectify parser.
- - -
- -
-   - - - - - - -
getRegisteredTypes()
- Returns a list of the currently registered PyType objects.
- - -
- -
-   - - - - - - -
makeparser(remove_blank_text=True, - **kw)
- Create a new XML parser for objectify trees.
- - -
- -
-   - - - - - - -
parse(f, - parser=None, - base_url=None)
- Parse a file or file-like object with the objectify parser.
- - -
- -
-   - - - - - - -
pyannotate(element_or_tree, - ignore_old=False, - ignore_xsi=False, - empty_pytype=None)
- Recursively annotates the elements of an XML tree with 'pytype' -attributes.
- - -
- -
-   - - - - - - -
pytypename(obj)
- Find the name of the corresponding PyType for a Python object.
- - -
- -
-   - - - - - - -
set_default_parser(new_parser= None)
- Replace the default parser used by objectify's Element() and -fromstring() functions.
- - -
- -
-   - - - - - - -
set_pytype_attribute_tag(attribute_tag=None)
- Change name and namespace of the XML attribute that holds Python type -information.
- - -
- -
-   - - - - - - -
xsiannotate(element_or_tree, - ignore_old=False, - ignore_pytype=False, - empty_type=None)
- Recursively annotates the elements of an XML tree with 'xsi:type' -attributes.
- - -
- -
- - - - - - - - - - - - - - - - - - -
- - - - - -
Variables[hide private]
-
-   - - E = <lxml.objectify.ElementMaker object at 0x2701cd0> -
-   - - PYTYPE_ATTRIBUTE = '{http://codespeak.net/lxml/objectify/pytyp... -
-   - - __package__ = None
- hash(x) -
-   - - __test__ = {} -
- - - - - - -
- - - - - -
Function Details[hide private]
-
- -
- -
- - -
-

DataElement(_value, - attrib=None, - nsmap=None, - _pytype=None, - _xsi=None, - **_attributes) -

-
  -
- -

Create a new element from a Python value and XML attributes taken from -keyword arguments or a dictionary passed as second argument.

-

Automatically adds a 'pytype' attribute for the Python type of the value, -if the type can be identified. If '_pytype' or '_xsi' are among the -keyword arguments, they will be used instead.

-

If the _value argument is an ObjectifiedDataElement instance, its py:pytype, -xsi:type and other attributes and nsmap are reused unless they are redefined -in attrib and/or keyword arguments.

-
-
-
-
- -
- -
- - -
-

Element(_tag, - attrib=None, - nsmap=None, - _pytype=None, - **_attributes) -

-
  -
- -

Objectify specific version of the lxml.etree Element() factory that -always creates a structural (tree) element.

-

NOTE: requires parser based element class lookup activated in lxml.etree!

-
-
-
-
- -
- -
- - -
-

XML(xml, - parser=None, - base_url=None) -

-
  -
- -

Objectify specific version of the lxml.etree XML() literal factory -that uses the objectify parser.

-

You can pass a different parser as second argument.

-

The base_url keyword argument allows to set the original base URL of -the document to support relative Paths when looking up external entities -(DTD, XInclude, ...).

-
-
-
-
- -
- -
- - -
-

annotate(element_or_tree, - ignore_old=True, - ignore_xsi=False, - empty_pytype=None, - empty_type=None, - annotate_xsi=0, - annotate_pytype=1) -

-
  -
- -

Recursively annotates the elements of an XML tree with 'xsi:type' -and/or 'py:pytype' attributes.

-

If the 'ignore_old' keyword argument is True (the default), current -'py:pytype' attributes will be ignored for the type annotation. Set to False -if you want reuse existing 'py:pytype' information (iff appropriate for the -element text value).

-

If the 'ignore_xsi' keyword argument is False (the default), existing -'xsi:type' attributes will be used for the type annotation, if they fit the -element text values.

-

Note that the mapping from Python types to XSI types is usually ambiguous. -Currently, only the first XSI type name in the corresponding PyType -definition will be used for annotation. Thus, you should consider naming -the widest type first if you define additional types.

-

The default 'py:pytype' annotation of empty elements can be set with the -empty_pytype keyword argument. Pass 'str', for example, to make -string values the default.

-

The default 'xsi:type' annotation of empty elements can be set with the -empty_type keyword argument. The default is not to annotate empty -elements. Pass 'string', for example, to make string values the default.

-

The keyword arguments 'annotate_xsi' (default: 0) and 'annotate_pytype' -(default: 1) control which kind(s) of annotation to use.

-
-
-
-
- -
- -
- - -
-

deannotate(element_or_tree, - pytype=True, - xsi=True, - xsi_nil=False, - cleanup_namespaces=False) -

-
  -
- -

Recursively de-annotate the elements of an XML tree by removing 'py:pytype' -and/or 'xsi:type' attributes and/or 'xsi:nil' attributes.

-

If the 'pytype' keyword argument is True (the default), 'py:pytype' -attributes will be removed. If the 'xsi' keyword argument is True (the -default), 'xsi:type' attributes will be removed. -If the 'xsi_nil' keyword argument is True (default: False), 'xsi:nil' -attributes will be removed.

-

Note that this does not touch the namespace declarations by -default. If you want to remove unused namespace declarations from -the tree, pass the option cleanup_namespaces=True.

-
-
-
-
- -
- -
- - -
-

dump(...) -

-
  -
- -

dump(_Element element not None)

-

Return a recursively generated string representation of an element.

-
-
-
-
- -
- -
- - -
-

fromstring(xml, - parser=None, - base_url=None) -

-
  -
- -

Objectify specific version of the lxml.etree fromstring() function -that uses the objectify parser.

-

You can pass a different parser as second argument.

-

The base_url keyword argument allows to set the original base URL of -the document to support relative Paths when looking up external entities -(DTD, XInclude, ...).

-
-
-
-
- -
- -
- - -
-

getRegisteredTypes() -

-
  -
- -

Returns a list of the currently registered PyType objects.

-

To add a new type, retrieve this list and call unregister() for all -entries. Then add the new type at a suitable position (possibly replacing -an existing one) and call register() for all entries.

-

This is necessary if the new type interferes with the type check functions -of existing ones (normally only int/float/bool) and must the tried before -other types. To add a type that is not yet parsable by the current type -check functions, you can simply register() it, which will append it to the -end of the type list.

-
-
-
-
- -
- -
- - -
-

makeparser(remove_blank_text=True, - **kw) -

-
  -
- -

Create a new XML parser for objectify trees.

-

You can pass all keyword arguments that are supported by -etree.XMLParser(). Note that this parser defaults to removing -blank text. You can disable this by passing the -remove_blank_text boolean keyword option yourself.

-
-
-
-
- -
- -
- - -
-

parse(f, - parser=None, - base_url=None) -

-
  -
- -

Parse a file or file-like object with the objectify parser.

-

You can pass a different parser as second argument.

-

The base_url keyword allows setting a URL for the document -when parsing from a file-like object. This is needed when looking -up external entities (DTD, XInclude, ...) with relative paths.

-
-
-
-
- -
- -
- - -
-

pyannotate(element_or_tree, - ignore_old=False, - ignore_xsi=False, - empty_pytype=None) -

-
  -
- -

Recursively annotates the elements of an XML tree with 'pytype' -attributes.

-

If the 'ignore_old' keyword argument is True (the default), current 'pytype' -attributes will be ignored and replaced. Otherwise, they will be checked -and only replaced if they no longer fit the current text value.

-

Setting the keyword argument ignore_xsi to True makes the function -additionally ignore existing xsi:type annotations. The default is to -use them as a type hint.

-

The default annotation of empty elements can be set with the -empty_pytype keyword argument. The default is not to annotate empty -elements. Pass 'str', for example, to make string values the default.

-
-
-
-
- -
- -
- - -
-

set_default_parser(new_parser= None) -

-
  -
- -

Replace the default parser used by objectify's Element() and -fromstring() functions.

-

The new parser must be an etree.XMLParser.

-

Call without arguments to reset to the original parser.

-
-
-
-
- -
- -
- - -
-

set_pytype_attribute_tag(attribute_tag=None) -

-
  -
- -

Change name and namespace of the XML attribute that holds Python type -information.

-

Do not use this unless you know what you are doing.

-

Reset by calling without argument.

-

Default: "{http://codespeak.net/lxml/objectify/pytype}pytype"

-
-
-
-
- -
- -
- - -
-

xsiannotate(element_or_tree, - ignore_old=False, - ignore_pytype=False, - empty_type=None) -

-
  -
- -

Recursively annotates the elements of an XML tree with 'xsi:type' -attributes.

-

If the 'ignore_old' keyword argument is True (the default), current -'xsi:type' attributes will be ignored and replaced. Otherwise, they will be -checked and only replaced if they no longer fit the current text value.

-

Note that the mapping from Python types to XSI types is usually ambiguous. -Currently, only the first XSI type name in the corresponding PyType -definition will be used for annotation. Thus, you should consider naming -the widest type first if you define additional types.

-

Setting the keyword argument ignore_pytype to True makes the function -additionally ignore existing pytype annotations. The default is to -use them as a type hint.

-

The default annotation of empty elements can be set with the -empty_type keyword argument. The default is not to annotate empty -elements. Pass 'string', for example, to make string values the default.

-
-
-
-
-
- - - - - - -
- - - - - -
Variables Details[hide private]
-
- -
- -
-

PYTYPE_ATTRIBUTE

- -
-
-
-
Value:
-
-'{http://codespeak.net/lxml/objectify/pytype}pytype'
-
-
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.objectify.BoolElement-class.html b/doc/html/api/lxml.objectify.BoolElement-class.html deleted file mode 100644 index 14958d5..0000000 --- a/doc/html/api/lxml.objectify.BoolElement-class.html +++ /dev/null @@ -1,823 +0,0 @@ - - - - - lxml.objectify.BoolElement - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module objectify :: - Class BoolElement - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class BoolElement

-
-    object --+                        
-             |                        
-etree._Element --+                    
-                 |                    
- etree.ElementBase --+                
-                     |                
-    ObjectifiedElement --+            
-                         |            
-    ObjectifiedDataElement --+        
-                             |        
-                 NumberElement --+    
-                                 |    
-                        IntElement --+
-                                     |
-                                    BoolElement
-
- -
-

Boolean type base on string values: 'true' or 'false'.

-

Note that this inherits from IntElement to mimic the behaviour of -Python's bool type.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__eq__(x, - y)
- x==y
- - -
- -
-   - - - - - - -
__ge__(x, - y)
- x>=y
- - -
- -
-   - - - - - - -
__gt__(x, - y)
- x>y
- - -
- -
-   - - - - - - -
__hash__(x)
- hash(x)
- - -
- -
-   - - - - - - -
__le__(x, - y)
- x<=y
- - -
- -
-   - - - - - - -
__lt__(x, - y)
- x<y
- - -
- -
-   - - - - - - -
__ne__(x, - y)
- x!=y
- - -
- -
- a new object with type S, a subtype of T - - - - - - -
__new__(T, - S, - ...) - - -
- -
-   - - - - - - -
__nonzero__(x)
- x != 0
- - -
- -
-   - - - - - - -
__repr__(x)
- repr(x)
- - -
- -
-   - - - - - - -
__str__(x)
- str(x)
- - -
- -
-   - - - - - - -
_init(self)
- Called after object initialisation. Custom subclasses may override -this if they recursively call _init() in the superclasses.
- - -
- -
-

Inherited from NumberElement: - __abs__, - __add__, - __and__, - __complex__, - __div__, - __float__, - __hex__, - __int__, - __invert__, - __long__, - __lshift__, - __mod__, - __mul__, - __neg__, - __oct__, - __or__, - __pos__, - __pow__, - __radd__, - __rand__, - __rdiv__, - __rlshift__, - __rmod__, - __rmul__, - __ror__, - __rpow__, - __rrshift__, - __rshift__, - __rsub__, - __rtruediv__, - __rxor__, - __sub__, - __truediv__, - __xor__ -

-

Inherited from NumberElement (private): - _setValueParser -

-

Inherited from ObjectifiedDataElement (private): - _setText -

-

Inherited from ObjectifiedElement: - __delattr__, - __delitem__, - __getattr__, - __getattribute__, - __getitem__, - __iter__, - __len__, - __reduce__, - __setattr__, - __setitem__, - addattr, - countchildren, - descendantpaths, - getchildren -

-

Inherited from etree.ElementBase: - __init__ -

-

Inherited from etree._Element: - __contains__, - __copy__, - __deepcopy__, - __reversed__, - addnext, - addprevious, - append, - clear, - extend, - find, - findall, - findtext, - get, - getiterator, - getnext, - getparent, - getprevious, - getroottree, - index, - insert, - items, - iter, - iterancestors, - iterchildren, - iterdescendants, - iterfind, - itersiblings, - itertext, - keys, - makeelement, - remove, - replace, - set, - values, - xpath -

-

Inherited from object: - __format__, - __reduce_ex__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - - - - -
- - - - - -
Properties[hide private]
-
-   - - pyval -
-

Inherited from ObjectifiedElement: - text -

-

Inherited from etree._Element: - attrib, - base, - nsmap, - prefix, - sourceline, - tag, - tail -

-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__eq__(x, - y) -
(Equality operator) -

-
  -
- - x==y -
-
Overrides: - NumberElement.__eq__ -
-
-
-
- -
- -
- - -
-

__ge__(x, - y) -
(Greater-than-or-equals operator) -

-
  -
- - x>=y -
-
Overrides: - NumberElement.__ge__ -
-
-
-
- -
- -
- - -
-

__gt__(x, - y) -
(Greater-than operator) -

-
  -
- - x>y -
-
Overrides: - NumberElement.__gt__ -
-
-
-
- -
- -
- - -
-

__hash__(x) -
(Hashing function) -

-
  -
- - hash(x) -
-
Overrides: - object.__hash__ -
-
-
-
- -
- -
- - -
-

__le__(x, - y) -
(Less-than-or-equals operator) -

-
  -
- - x<=y -
-
Overrides: - NumberElement.__le__ -
-
-
-
- -
- -
- - -
-

__lt__(x, - y) -
(Less-than operator) -

-
  -
- - x<y -
-
Overrides: - NumberElement.__lt__ -
-
-
-
- -
- -
- - -
-

__ne__(x, - y) -

-
  -
- - x!=y -
-
Overrides: - NumberElement.__ne__ -
-
-
-
- -
- -
- - -
-

__new__(T, - S, - ...) -

-
  -
- - -
-
Returns: a new object with type S, a subtype of T
-
Overrides: - object.__new__ -
-
-
-
- -
- -
- - -
-

__nonzero__(x) -
(Boolean test operator) -

-
  -
- - x != 0 -
-
Overrides: - etree._Element.__nonzero__ -
-
-
-
- -
- -
- - -
-

__repr__(x) -
(Representation operator) -

-
  -
- - repr(x) -
-
Overrides: - object.__repr__ -
-
-
-
- -
- -
- - -
-

__str__(x) -
(Informal representation operator) -

-
  -
- - str(x) -
-
Overrides: - object.__str__ -
-
-
-
- -
- -
- - -
-

_init(self) -

-
  -
- - Called after object initialisation. Custom subclasses may override -this if they recursively call _init() in the superclasses. -
-
Overrides: - etree._Element._init -
(inherited documentation)
- -
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.objectify.ElementMaker-class.html b/doc/html/api/lxml.objectify.ElementMaker-class.html deleted file mode 100644 index 09bdcbd..0000000 --- a/doc/html/api/lxml.objectify.ElementMaker-class.html +++ /dev/null @@ -1,359 +0,0 @@ - - - - - lxml.objectify.ElementMaker - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module objectify :: - Class ElementMaker - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class ElementMaker

-
-object --+
-         |
-        ElementMaker
-
- -
-

ElementMaker(self, namespace=None, nsmap=None, annotate=True, makeelement=None)

-

An ElementMaker that can be used for constructing trees.

-

Example:

-
->>> M = ElementMaker(annotate=False)
->>> html = M.html( M.body( M.p('hello', M.br, 'objectify') ) )
-
->>> from lxml.etree import tostring
->>> print(tostring(html, method='html').decode('ascii'))
-<html><body><p>hello<br>objectify</p></body></html>
-
-

Note that this module has a predefined ElementMaker instance called E.

- - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__getattr__(...) - - -
- -
-   - - - - - - -
__getattribute__(...)
- x.__getattribute__('name') <==> x.name
- - -
- -
-   - - - - - - -
__init__(self, - namespace=None, - nsmap=None, - annotate=True, - makeelement=None)
- x.__init__(...) initializes x; see help(type(x)) for signature
- - -
- -
- a new object with type S, a subtype of T - - - - - - -
__new__(T, - S, - ...) - - -
- -
-

Inherited from object: - __delattr__, - __format__, - __hash__, - __reduce__, - __reduce_ex__, - __repr__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__getattribute__(...) -

-
  -
- - x.__getattribute__('name') <==> x.name -
-
Overrides: - object.__getattribute__ -
-
-
-
- -
- -
- - -
-

__init__(self, - namespace=None, - nsmap=None, - annotate=True, - makeelement=None) -
(Constructor) -

-
  -
- - x.__init__(...) initializes x; see help(type(x)) for signature -
-
Overrides: - object.__init__ -
-
-
-
- -
- -
- - -
-

__new__(T, - S, - ...) -

-
  -
- - -
-
Returns: a new object with type S, a subtype of T
-
Overrides: - object.__new__ -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.objectify.FloatElement-class.html b/doc/html/api/lxml.objectify.FloatElement-class.html deleted file mode 100644 index 81d7088..0000000 --- a/doc/html/api/lxml.objectify.FloatElement-class.html +++ /dev/null @@ -1,412 +0,0 @@ - - - - - lxml.objectify.FloatElement - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module objectify :: - Class FloatElement - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class FloatElement

-
-    object --+                    
-             |                    
-etree._Element --+                
-                 |                
- etree.ElementBase --+            
-                     |            
-    ObjectifiedElement --+        
-                         |        
-    ObjectifiedDataElement --+    
-                             |    
-                 NumberElement --+
-                                 |
-                                FloatElement
-
- -
- - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
- a new object with type S, a subtype of T - - - - - - -
__new__(T, - S, - ...) - - -
- -
-   - - - - - - -
_init(self)
- Called after object initialisation. Custom subclasses may override -this if they recursively call _init() in the superclasses.
- - -
- -
-

Inherited from NumberElement: - __abs__, - __add__, - __and__, - __complex__, - __div__, - __eq__, - __float__, - __ge__, - __gt__, - __hash__, - __hex__, - __int__, - __invert__, - __le__, - __long__, - __lshift__, - __lt__, - __mod__, - __mul__, - __ne__, - __neg__, - __nonzero__, - __oct__, - __or__, - __pos__, - __pow__, - __radd__, - __rand__, - __rdiv__, - __repr__, - __rlshift__, - __rmod__, - __rmul__, - __ror__, - __rpow__, - __rrshift__, - __rshift__, - __rsub__, - __rtruediv__, - __rxor__, - __str__, - __sub__, - __truediv__, - __xor__ -

-

Inherited from NumberElement (private): - _setValueParser -

-

Inherited from ObjectifiedDataElement (private): - _setText -

-

Inherited from ObjectifiedElement: - __delattr__, - __delitem__, - __getattr__, - __getattribute__, - __getitem__, - __iter__, - __len__, - __reduce__, - __setattr__, - __setitem__, - addattr, - countchildren, - descendantpaths, - getchildren -

-

Inherited from etree.ElementBase: - __init__ -

-

Inherited from etree._Element: - __contains__, - __copy__, - __deepcopy__, - __reversed__, - addnext, - addprevious, - append, - clear, - extend, - find, - findall, - findtext, - get, - getiterator, - getnext, - getparent, - getprevious, - getroottree, - index, - insert, - items, - iter, - iterancestors, - iterchildren, - iterdescendants, - iterfind, - itersiblings, - itertext, - keys, - makeelement, - remove, - replace, - set, - values, - xpath -

-

Inherited from object: - __format__, - __reduce_ex__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from NumberElement: - pyval -

-

Inherited from ObjectifiedElement: - text -

-

Inherited from etree._Element: - attrib, - base, - nsmap, - prefix, - sourceline, - tag, - tail -

-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__new__(T, - S, - ...) -

-
  -
- - -
-
Returns: a new object with type S, a subtype of T
-
Overrides: - object.__new__ -
-
-
-
- -
- -
- - -
-

_init(self) -

-
  -
- - Called after object initialisation. Custom subclasses may override -this if they recursively call _init() in the superclasses. -
-
Overrides: - etree._Element._init -
(inherited documentation)
- -
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.objectify.IntElement-class.html b/doc/html/api/lxml.objectify.IntElement-class.html deleted file mode 100644 index 1caac4c..0000000 --- a/doc/html/api/lxml.objectify.IntElement-class.html +++ /dev/null @@ -1,418 +0,0 @@ - - - - - lxml.objectify.IntElement - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module objectify :: - Class IntElement - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class IntElement

-
-    object --+                    
-             |                    
-etree._Element --+                
-                 |                
- etree.ElementBase --+            
-                     |            
-    ObjectifiedElement --+        
-                         |        
-    ObjectifiedDataElement --+    
-                             |    
-                 NumberElement --+
-                                 |
-                                IntElement
-
- -
Known Subclasses:
-
- -
- -
- - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
- a new object with type S, a subtype of T - - - - - - -
__new__(T, - S, - ...) - - -
- -
-   - - - - - - -
_init(self)
- Called after object initialisation. Custom subclasses may override -this if they recursively call _init() in the superclasses.
- - -
- -
-

Inherited from NumberElement: - __abs__, - __add__, - __and__, - __complex__, - __div__, - __eq__, - __float__, - __ge__, - __gt__, - __hash__, - __hex__, - __int__, - __invert__, - __le__, - __long__, - __lshift__, - __lt__, - __mod__, - __mul__, - __ne__, - __neg__, - __nonzero__, - __oct__, - __or__, - __pos__, - __pow__, - __radd__, - __rand__, - __rdiv__, - __repr__, - __rlshift__, - __rmod__, - __rmul__, - __ror__, - __rpow__, - __rrshift__, - __rshift__, - __rsub__, - __rtruediv__, - __rxor__, - __str__, - __sub__, - __truediv__, - __xor__ -

-

Inherited from NumberElement (private): - _setValueParser -

-

Inherited from ObjectifiedDataElement (private): - _setText -

-

Inherited from ObjectifiedElement: - __delattr__, - __delitem__, - __getattr__, - __getattribute__, - __getitem__, - __iter__, - __len__, - __reduce__, - __setattr__, - __setitem__, - addattr, - countchildren, - descendantpaths, - getchildren -

-

Inherited from etree.ElementBase: - __init__ -

-

Inherited from etree._Element: - __contains__, - __copy__, - __deepcopy__, - __reversed__, - addnext, - addprevious, - append, - clear, - extend, - find, - findall, - findtext, - get, - getiterator, - getnext, - getparent, - getprevious, - getroottree, - index, - insert, - items, - iter, - iterancestors, - iterchildren, - iterdescendants, - iterfind, - itersiblings, - itertext, - keys, - makeelement, - remove, - replace, - set, - values, - xpath -

-

Inherited from object: - __format__, - __reduce_ex__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from NumberElement: - pyval -

-

Inherited from ObjectifiedElement: - text -

-

Inherited from etree._Element: - attrib, - base, - nsmap, - prefix, - sourceline, - tag, - tail -

-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__new__(T, - S, - ...) -

-
  -
- - -
-
Returns: a new object with type S, a subtype of T
-
Overrides: - object.__new__ -
-
-
-
- -
- -
- - -
-

_init(self) -

-
  -
- - Called after object initialisation. Custom subclasses may override -this if they recursively call _init() in the superclasses. -
-
Overrides: - etree._Element._init -
(inherited documentation)
- -
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.objectify.LongElement-class.html b/doc/html/api/lxml.objectify.LongElement-class.html deleted file mode 100644 index 86f219d..0000000 --- a/doc/html/api/lxml.objectify.LongElement-class.html +++ /dev/null @@ -1,412 +0,0 @@ - - - - - lxml.objectify.LongElement - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module objectify :: - Class LongElement - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class LongElement

-
-    object --+                    
-             |                    
-etree._Element --+                
-                 |                
- etree.ElementBase --+            
-                     |            
-    ObjectifiedElement --+        
-                         |        
-    ObjectifiedDataElement --+    
-                             |    
-                 NumberElement --+
-                                 |
-                                LongElement
-
- -
- - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
- a new object with type S, a subtype of T - - - - - - -
__new__(T, - S, - ...) - - -
- -
-   - - - - - - -
_init(self)
- Called after object initialisation. Custom subclasses may override -this if they recursively call _init() in the superclasses.
- - -
- -
-

Inherited from NumberElement: - __abs__, - __add__, - __and__, - __complex__, - __div__, - __eq__, - __float__, - __ge__, - __gt__, - __hash__, - __hex__, - __int__, - __invert__, - __le__, - __long__, - __lshift__, - __lt__, - __mod__, - __mul__, - __ne__, - __neg__, - __nonzero__, - __oct__, - __or__, - __pos__, - __pow__, - __radd__, - __rand__, - __rdiv__, - __repr__, - __rlshift__, - __rmod__, - __rmul__, - __ror__, - __rpow__, - __rrshift__, - __rshift__, - __rsub__, - __rtruediv__, - __rxor__, - __str__, - __sub__, - __truediv__, - __xor__ -

-

Inherited from NumberElement (private): - _setValueParser -

-

Inherited from ObjectifiedDataElement (private): - _setText -

-

Inherited from ObjectifiedElement: - __delattr__, - __delitem__, - __getattr__, - __getattribute__, - __getitem__, - __iter__, - __len__, - __reduce__, - __setattr__, - __setitem__, - addattr, - countchildren, - descendantpaths, - getchildren -

-

Inherited from etree.ElementBase: - __init__ -

-

Inherited from etree._Element: - __contains__, - __copy__, - __deepcopy__, - __reversed__, - addnext, - addprevious, - append, - clear, - extend, - find, - findall, - findtext, - get, - getiterator, - getnext, - getparent, - getprevious, - getroottree, - index, - insert, - items, - iter, - iterancestors, - iterchildren, - iterdescendants, - iterfind, - itersiblings, - itertext, - keys, - makeelement, - remove, - replace, - set, - values, - xpath -

-

Inherited from object: - __format__, - __reduce_ex__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from NumberElement: - pyval -

-

Inherited from ObjectifiedElement: - text -

-

Inherited from etree._Element: - attrib, - base, - nsmap, - prefix, - sourceline, - tag, - tail -

-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__new__(T, - S, - ...) -

-
  -
- - -
-
Returns: a new object with type S, a subtype of T
-
Overrides: - object.__new__ -
-
-
-
- -
- -
- - -
-

_init(self) -

-
  -
- - Called after object initialisation. Custom subclasses may override -this if they recursively call _init() in the superclasses. -
-
Overrides: - etree._Element._init -
(inherited documentation)
- -
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.objectify.NoneElement-class.html b/doc/html/api/lxml.objectify.NoneElement-class.html deleted file mode 100644 index c05fbe6..0000000 --- a/doc/html/api/lxml.objectify.NoneElement-class.html +++ /dev/null @@ -1,594 +0,0 @@ - - - - - lxml.objectify.NoneElement - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module objectify :: - Class NoneElement - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class NoneElement

-
-    object --+                
-             |                
-etree._Element --+            
-                 |            
- etree.ElementBase --+        
-                     |        
-    ObjectifiedElement --+    
-                         |    
-    ObjectifiedDataElement --+
-                             |
-                            NoneElement
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__eq__(x, - y)
- x==y
- - -
- -
-   - - - - - - -
__ge__(x, - y)
- x>=y
- - -
- -
-   - - - - - - -
__gt__(x, - y)
- x>y
- - -
- -
-   - - - - - - -
__hash__(x)
- hash(x)
- - -
- -
-   - - - - - - -
__le__(x, - y)
- x<=y
- - -
- -
-   - - - - - - -
__lt__(x, - y)
- x<y
- - -
- -
-   - - - - - - -
__ne__(x, - y)
- x!=y
- - -
- -
- a new object with type S, a subtype of T - - - - - - -
__new__(T, - S, - ...) - - -
- -
-   - - - - - - -
__nonzero__(x)
- x != 0
- - -
- -
-   - - - - - - -
__repr__(x)
- repr(x)
- - -
- -
-   - - - - - - -
__str__(x)
- str(x)
- - -
- -
-

Inherited from ObjectifiedDataElement (private): - _setText -

-

Inherited from ObjectifiedElement: - __delattr__, - __delitem__, - __getattr__, - __getattribute__, - __getitem__, - __iter__, - __len__, - __reduce__, - __setattr__, - __setitem__, - addattr, - countchildren, - descendantpaths, - getchildren -

-

Inherited from etree.ElementBase: - __init__ -

-

Inherited from etree._Element: - __contains__, - __copy__, - __deepcopy__, - __reversed__, - addnext, - addprevious, - append, - clear, - extend, - find, - findall, - findtext, - get, - getiterator, - getnext, - getparent, - getprevious, - getroottree, - index, - insert, - items, - iter, - iterancestors, - iterchildren, - iterdescendants, - iterfind, - itersiblings, - itertext, - keys, - makeelement, - remove, - replace, - set, - values, - xpath -

-

Inherited from etree._Element (private): - _init -

-

Inherited from object: - __format__, - __reduce_ex__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - - - - -
- - - - - -
Properties[hide private]
-
-   - - pyval -
-

Inherited from ObjectifiedElement: - text -

-

Inherited from etree._Element: - attrib, - base, - nsmap, - prefix, - sourceline, - tag, - tail -

-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__hash__(x) -
(Hashing function) -

-
  -
- - hash(x) -
-
Overrides: - object.__hash__ -
-
-
-
- -
- -
- - -
-

__new__(T, - S, - ...) -

-
  -
- - -
-
Returns: a new object with type S, a subtype of T
-
Overrides: - object.__new__ -
-
-
-
- -
- -
- - -
-

__nonzero__(x) -
(Boolean test operator) -

-
  -
- - x != 0 -
-
Overrides: - etree._Element.__nonzero__ -
-
-
-
- -
- -
- - -
-

__repr__(x) -
(Representation operator) -

-
  -
- - repr(x) -
-
Overrides: - object.__repr__ -
-
-
-
- -
- -
- - -
-

__str__(x) -
(Informal representation operator) -

-
  -
- - str(x) -
-
Overrides: - object.__str__ -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.objectify.NumberElement-class.html b/doc/html/api/lxml.objectify.NumberElement-class.html deleted file mode 100644 index 367b555..0000000 --- a/doc/html/api/lxml.objectify.NumberElement-class.html +++ /dev/null @@ -1,1240 +0,0 @@ - - - - - lxml.objectify.NumberElement - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module objectify :: - Class NumberElement - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class NumberElement

-
-    object --+                
-             |                
-etree._Element --+            
-                 |            
- etree.ElementBase --+        
-                     |        
-    ObjectifiedElement --+    
-                         |    
-    ObjectifiedDataElement --+
-                             |
-                            NumberElement
-
- -
Known Subclasses:
-
- -
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__abs__(x)
- abs(x)
- - -
- -
-   - - - - - - -
__add__(x, - y)
- x+y
- - -
- -
-   - - - - - - -
__and__(x, - y)
- x&y
- - -
- -
-   - - - - - - -
__complex__(...) - - -
- -
-   - - - - - - -
__div__(x, - y)
- x/y
- - -
- -
-   - - - - - - -
__eq__(x, - y)
- x==y
- - -
- -
-   - - - - - - -
__float__(x)
- float(x)
- - -
- -
-   - - - - - - -
__ge__(x, - y)
- x>=y
- - -
- -
-   - - - - - - -
__gt__(x, - y)
- x>y
- - -
- -
-   - - - - - - -
__hash__(x)
- hash(x)
- - -
- -
-   - - - - - - -
__hex__(x)
- hex(x)
- - -
- -
-   - - - - - - -
__int__(x)
- int(x)
- - -
- -
-   - - - - - - -
__invert__(x)
- ~x
- - -
- -
-   - - - - - - -
__le__(x, - y)
- x<=y
- - -
- -
-   - - - - - - -
__long__(x)
- long(x)
- - -
- -
-   - - - - - - -
__lshift__(x, - y)
- x<<y
- - -
- -
-   - - - - - - -
__lt__(x, - y)
- x<y
- - -
- -
-   - - - - - - -
__mod__(x, - y)
- x%y
- - -
- -
-   - - - - - - -
__mul__(x, - y)
- x*y
- - -
- -
-   - - - - - - -
__ne__(x, - y)
- x!=y
- - -
- -
-   - - - - - - -
__neg__(x)
- -x
- - -
- -
- a new object with type S, a subtype of T - - - - - - -
__new__(T, - S, - ...) - - -
- -
-   - - - - - - -
__nonzero__(x)
- x != 0
- - -
- -
-   - - - - - - -
__oct__(x)
- oct(x)
- - -
- -
-   - - - - - - -
__or__(x, - y)
- x|y
- - -
- -
-   - - - - - - -
__pos__(x)
- +x
- - -
- -
-   - - - - - - -
__pow__(x, - y, - z=...)
- pow(x, y[, z])
- - -
- -
-   - - - - - - -
__radd__(x, - y)
- y+x
- - -
- -
-   - - - - - - -
__rand__(x, - y)
- y&x
- - -
- -
-   - - - - - - -
__rdiv__(x, - y)
- y/x
- - -
- -
-   - - - - - - -
__repr__(x)
- repr(x)
- - -
- -
-   - - - - - - -
__rlshift__(x, - y)
- y<<x
- - -
- -
-   - - - - - - -
__rmod__(x, - y)
- y%x
- - -
- -
-   - - - - - - -
__rmul__(x, - y)
- y*x
- - -
- -
-   - - - - - - -
__ror__(x, - y)
- y|x
- - -
- -
-   - - - - - - -
__rpow__(y, - x, - z=...)
- pow(x, y[, z])
- - -
- -
-   - - - - - - -
__rrshift__(x, - y)
- y>>x
- - -
- -
-   - - - - - - -
__rshift__(x, - y)
- x>>y
- - -
- -
-   - - - - - - -
__rsub__(x, - y)
- y-x
- - -
- -
-   - - - - - - -
__rtruediv__(x, - y)
- y/x
- - -
- -
-   - - - - - - -
__rxor__(x, - y)
- y^x
- - -
- -
-   - - - - - - -
__str__(x)
- str(x)
- - -
- -
-   - - - - - - -
__sub__(x, - y)
- x-y
- - -
- -
-   - - - - - - -
__truediv__(x, - y)
- x/y
- - -
- -
-   - - - - - - -
__xor__(x, - y)
- x^y
- - -
- -
-   - - - - - - -
_setValueParser(...)
- Set the function that parses the Python value from a string.
- - -
- -
-

Inherited from ObjectifiedDataElement (private): - _setText -

-

Inherited from ObjectifiedElement: - __delattr__, - __delitem__, - __getattr__, - __getattribute__, - __getitem__, - __iter__, - __len__, - __reduce__, - __setattr__, - __setitem__, - addattr, - countchildren, - descendantpaths, - getchildren -

-

Inherited from etree.ElementBase: - __init__ -

-

Inherited from etree._Element: - __contains__, - __copy__, - __deepcopy__, - __reversed__, - addnext, - addprevious, - append, - clear, - extend, - find, - findall, - findtext, - get, - getiterator, - getnext, - getparent, - getprevious, - getroottree, - index, - insert, - items, - iter, - iterancestors, - iterchildren, - iterdescendants, - iterfind, - itersiblings, - itertext, - keys, - makeelement, - remove, - replace, - set, - values, - xpath -

-

Inherited from etree._Element (private): - _init -

-

Inherited from object: - __format__, - __reduce_ex__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - - - - -
- - - - - -
Properties[hide private]
-
-   - - pyval -
-

Inherited from ObjectifiedElement: - text -

-

Inherited from etree._Element: - attrib, - base, - nsmap, - prefix, - sourceline, - tag, - tail -

-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__hash__(x) -
(Hashing function) -

-
  -
- - hash(x) -
-
Overrides: - object.__hash__ -
-
-
-
- -
- -
- - -
-

__new__(T, - S, - ...) -

-
  -
- - -
-
Returns: a new object with type S, a subtype of T
-
Overrides: - object.__new__ -
-
-
-
- -
- -
- - -
-

__nonzero__(x) -
(Boolean test operator) -

-
  -
- - x != 0 -
-
Overrides: - etree._Element.__nonzero__ -
-
-
-
- -
- -
- - -
-

__repr__(x) -
(Representation operator) -

-
  -
- - repr(x) -
-
Overrides: - object.__repr__ -
-
-
-
- -
- -
- - -
-

__str__(x) -
(Informal representation operator) -

-
  -
- - str(x) -
-
Overrides: - object.__str__ -
-
-
-
- -
- -
- - -
-

_setValueParser(...) -

-
  -
- -

Set the function that parses the Python value from a string.

-

Do not use this unless you know what you are doing.

-
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.objectify.ObjectPath-class.html b/doc/html/api/lxml.objectify.ObjectPath-class.html deleted file mode 100644 index c336afc..0000000 --- a/doc/html/api/lxml.objectify.ObjectPath-class.html +++ /dev/null @@ -1,474 +0,0 @@ - - - - - lxml.objectify.ObjectPath - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module objectify :: - Class ObjectPath - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class ObjectPath

-
-object --+
-         |
-        ObjectPath
-
- -
-

ObjectPath(path) -Immutable object that represents a compiled object path.

-

Example for a path: 'root.child[1].{other}child[25]'

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__call__(...)
- Follow the attribute path in the object structure and return the -target attribute value.
- - -
- -
-   - - - - - - -
__init__(path)
- x.__init__(...) initializes x; see help(type(x)) for signature
- - -
- -
- a new object with type S, a subtype of T - - - - - - -
__new__(T, - S, - ...) - - -
- -
-   - - - - - - -
__str__(x)
- str(x)
- - -
- -
-   - - - - - - -
addattr(self, - root, - value)
- Append a value to the target element in a subtree.
- - -
- -
-   - - - - - - -
hasattr(self, - root) - - -
- -
-   - - - - - - -
setattr(self, - root, - value)
- Set the value of the target element in a subtree.
- - -
- -
-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __reduce__, - __reduce_ex__, - __repr__, - __setattr__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - - - - -
- - - - - -
Properties[hide private]
-
-   - - find -
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__call__(...) -
(Call operator) -

-
  -
- -

Follow the attribute path in the object structure and return the -target attribute value.

-

If it it not found, either returns a default value (if one was passed -as second argument) or raises AttributeError.

-
-
-
-
- -
- -
- - -
-

__init__(path) -
(Constructor) -

-
  -
- - x.__init__(...) initializes x; see help(type(x)) for signature -
-
Overrides: - object.__init__ -
-
-
-
- -
- -
- - -
-

__new__(T, - S, - ...) -

-
  -
- - -
-
Returns: a new object with type S, a subtype of T
-
Overrides: - object.__new__ -
-
-
-
- -
- -
- - -
-

__str__(x) -
(Informal representation operator) -

-
  -
- - str(x) -
-
Overrides: - object.__str__ -
-
-
-
- -
- -
- - -
-

addattr(self, - root, - value) -

-
  -
- -

Append a value to the target element in a subtree.

-

If any of the children on the path does not exist, it is created.

-
-
-
-
- -
- -
- - -
-

setattr(self, - root, - value) -

-
  -
- -

Set the value of the target element in a subtree.

-

If any of the children on the path does not exist, it is created.

-
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.objectify.ObjectifiedDataElement-class.html b/doc/html/api/lxml.objectify.ObjectifiedDataElement-class.html deleted file mode 100644 index 7677f9b..0000000 --- a/doc/html/api/lxml.objectify.ObjectifiedDataElement-class.html +++ /dev/null @@ -1,430 +0,0 @@ - - - - - lxml.objectify.ObjectifiedDataElement - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module objectify :: - Class ObjectifiedDataElement - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class ObjectifiedDataElement

-
-    object --+            
-             |            
-etree._Element --+        
-                 |        
- etree.ElementBase --+    
-                     |    
-    ObjectifiedElement --+
-                         |
-                        ObjectifiedDataElement
-
- -
Known Subclasses:
-
- -
- -
-This is the base class for all data type Elements. Subclasses should -override the 'pyval' property and possibly the __str__ method. - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
- a new object with type S, a subtype of T - - - - - - -
__new__(T, - S, - ...) - - -
- -
-   - - - - - - -
__repr__(x)
- repr(x)
- - -
- -
-   - - - - - - -
__str__(x)
- str(x)
- - -
- -
-   - - - - - - -
_setText(...)
- For use in subclasses only. Don't use unless you know what you are -doing.
- - -
- -
-

Inherited from ObjectifiedElement: - __delattr__, - __delitem__, - __getattr__, - __getattribute__, - __getitem__, - __iter__, - __len__, - __reduce__, - __setattr__, - __setitem__, - addattr, - countchildren, - descendantpaths, - getchildren -

-

Inherited from etree.ElementBase: - __init__ -

-

Inherited from etree._Element: - __contains__, - __copy__, - __deepcopy__, - __nonzero__, - __reversed__, - addnext, - addprevious, - append, - clear, - extend, - find, - findall, - findtext, - get, - getiterator, - getnext, - getparent, - getprevious, - getroottree, - index, - insert, - items, - iter, - iterancestors, - iterchildren, - iterdescendants, - iterfind, - itersiblings, - itertext, - keys, - makeelement, - remove, - replace, - set, - values, - xpath -

-

Inherited from etree._Element (private): - _init -

-

Inherited from object: - __format__, - __hash__, - __reduce_ex__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - - - - -
- - - - - -
Properties[hide private]
-
-   - - pyval -
-

Inherited from ObjectifiedElement: - text -

-

Inherited from etree._Element: - attrib, - base, - nsmap, - prefix, - sourceline, - tag, - tail -

-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__new__(T, - S, - ...) -

-
  -
- - -
-
Returns: a new object with type S, a subtype of T
-
Overrides: - object.__new__ -
-
-
-
- -
- -
- - -
-

__repr__(x) -
(Representation operator) -

-
  -
- - repr(x) -
-
Overrides: - object.__repr__ -
-
-
-
- -
- -
- - -
-

__str__(x) -
(Informal representation operator) -

-
  -
- - str(x) -
-
Overrides: - object.__str__ -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.objectify.ObjectifiedElement-class.html b/doc/html/api/lxml.objectify.ObjectifiedElement-class.html deleted file mode 100644 index f5a630d..0000000 --- a/doc/html/api/lxml.objectify.ObjectifiedElement-class.html +++ /dev/null @@ -1,881 +0,0 @@ - - - - - lxml.objectify.ObjectifiedElement - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module objectify :: - Class ObjectifiedElement - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class ObjectifiedElement

-
-    object --+        
-             |        
-etree._Element --+    
-                 |    
- etree.ElementBase --+
-                     |
-                    ObjectifiedElement
-
- -
Known Subclasses:
-
- -
- -
-

Main XML Element class.

-

Element children are accessed as object attributes. Multiple children -with the same name are available through a list index. Example:

-
->>> root = XML("<root><c1><c2>0</c2><c2>1</c2></c1></root>")
->>> second_c2 = root.c1.c2[1]
->>> print(second_c2.text)
-1
-
-

Note that you cannot (and must not) instantiate this class or its -subclasses.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__delattr__(...)
- x.__delattr__('name') <==> del x.name
- - -
- -
-   - - - - - - -
__delitem__(x, - y)
- del x[y]
- - -
- -
-   - - - - - - -
__getattr__(...)
- Return the (first) child with the given tag name. If no namespace -is provided, the child will be looked up in the same one as self.
- - -
- -
-   - - - - - - -
__getattribute__(...)
- x.__getattribute__('name') <==> x.name
- - -
- -
-   - - - - - - -
__getitem__(...)
- Return a sibling, counting from the first child of the parent. The -method behaves like both a dict and a sequence.
- - -
- -
-   - - - - - - -
__iter__(...)
- Iterate over self and all siblings with the same tag.
- - -
- -
-   - - - - - - -
__len__(...)
- Count self and siblings with the same tag.
- - -
- -
- a new object with type S, a subtype of T - - - - - - -
__new__(T, - S, - ...) - - -
- -
-   - - - - - - -
__reduce__(...)
- helper for pickle
- - -
- -
-   - - - - - - -
__setattr__(...)
- Set the value of the (first) child with the given tag name. If no -namespace is provided, the child will be looked up in the same one as -self.
- - -
- -
-   - - - - - - -
__setitem__(...)
- Set the value of a sibling, counting from the first child of the -parent. Implements key assignment, item assignment and slice -assignment.
- - -
- -
-   - - - - - - -
__str__(x)
- str(x)
- - -
- -
-   - - - - - - -
addattr(self, - tag, - value)
- Add a child value to the element.
- - -
- -
-   - - - - - - -
countchildren(self)
- Return the number of children of this element, regardless of their -name.
- - -
- -
-   - - - - - - -
descendantpaths(self, - prefix=None)
- Returns a list of object path expressions for all descendants.
- - -
- -
-   - - - - - - -
getchildren(self)
- Returns a sequence of all direct children. The elements are -returned in document order.
- - -
- -
-

Inherited from etree.ElementBase: - __init__ -

-

Inherited from etree._Element: - __contains__, - __copy__, - __deepcopy__, - __nonzero__, - __repr__, - __reversed__, - addnext, - addprevious, - append, - clear, - extend, - find, - findall, - findtext, - get, - getiterator, - getnext, - getparent, - getprevious, - getroottree, - index, - insert, - items, - iter, - iterancestors, - iterchildren, - iterdescendants, - iterfind, - itersiblings, - itertext, - keys, - makeelement, - remove, - replace, - set, - values, - xpath -

-

Inherited from etree._Element (private): - _init -

-

Inherited from object: - __format__, - __hash__, - __reduce_ex__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - - - - -
- - - - - -
Properties[hide private]
-
-   - - text
- Text before the first subelement. This is either a string or -the value None, if there was no text. -
-

Inherited from etree._Element: - attrib, - base, - nsmap, - prefix, - sourceline, - tag, - tail -

-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__delattr__(...) -

-
  -
- - x.__delattr__('name') <==> del x.name -
-
Overrides: - object.__delattr__ -
-
-
-
- -
- -
- - -
-

__delitem__(x, - y) -
(Index deletion operator) -

-
  -
- - del x[y] -
-
Overrides: - etree._Element.__delitem__ -
-
-
-
- -
- -
- - -
-

__getattribute__(...) -

-
  -
- - x.__getattribute__('name') <==> x.name -
-
Overrides: - object.__getattribute__ -
-
-
-
- -
- -
- - -
-

__getitem__(...) -
(Indexing operator) -

-
  -
- -

Return a sibling, counting from the first child of the parent. The -method behaves like both a dict and a sequence.

-
    -
  • If argument is an integer, returns the sibling at that position.
  • -
  • If argument is a string, does the same as getattr(). This can be -used to provide namespaces for element lookup, or to look up -children with special names (text etc.).
  • -
  • If argument is a slice object, returns the matching slice.
  • -
-
-
Overrides: - etree._Element.__getitem__ -
-
-
-
- -
- -
- - -
-

__iter__(...) -

-
  -
- - Iterate over self and all siblings with the same tag. -
-
Overrides: - etree._Element.__iter__ -
-
-
-
- -
- -
- - -
-

__len__(...) -
(Length operator) -

-
  -
- - Count self and siblings with the same tag. -
-
Overrides: - etree._Element.__len__ -
-
-
-
- -
- -
- - -
-

__new__(T, - S, - ...) -

-
  -
- - -
-
Returns: a new object with type S, a subtype of T
-
Overrides: - object.__new__ -
-
-
-
- -
- -
- - -
-

__reduce__(...) -

-
  -
- - helper for pickle -
-
Overrides: - object.__reduce__ -
(inherited documentation)
- -
-
-
- -
- -
- - -
-

__setattr__(...) -

-
  -
- - Set the value of the (first) child with the given tag name. If no -namespace is provided, the child will be looked up in the same one as -self. -
-
Overrides: - object.__setattr__ -
-
-
-
- -
- -
- - -
-

__setitem__(...) -
(Index assignment operator) -

-
  -
- -

Set the value of a sibling, counting from the first child of the -parent. Implements key assignment, item assignment and slice -assignment.

-
    -
  • If argument is an integer, sets the sibling at that position.
  • -
  • If argument is a string, does the same as setattr(). This is used -to provide namespaces for element lookup.
  • -
  • If argument is a sequence (list, tuple, etc.), assign the contained -items to the siblings.
  • -
-
-
Overrides: - etree._Element.__setitem__ -
-
-
-
- -
- -
- - -
-

__str__(x) -
(Informal representation operator) -

-
  -
- - str(x) -
-
Overrides: - object.__str__ -
-
-
-
- -
- -
- - -
-

addattr(self, - tag, - value) -

-
  -
- -

Add a child value to the element.

-

As opposed to append(), it sets a data value, not an element.

-
-
-
-
- -
- -
- - -
-

getchildren(self) -

-
  -
- - Returns a sequence of all direct children. The elements are -returned in document order. -
-
Overrides: - etree._Element.getchildren -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.objectify.ObjectifyElementClassLookup-class.html b/doc/html/api/lxml.objectify.ObjectifyElementClassLookup-class.html deleted file mode 100644 index 7b9288a..0000000 --- a/doc/html/api/lxml.objectify.ObjectifyElementClassLookup-class.html +++ /dev/null @@ -1,298 +0,0 @@ - - - - - lxml.objectify.ObjectifyElementClassLookup - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module objectify :: - Class ObjectifyElementClassLookup - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class ObjectifyElementClassLookup

-
-              object --+    
-                       |    
-etree.ElementClassLookup --+
-                           |
-                          ObjectifyElementClassLookup
-
- -
-ObjectifyElementClassLookup(self, tree_class=None, empty_data_class=None) -Element class lookup method that uses the objectify classes. - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__init__(self, - tree_class=None, - empty_data_class=None)
- Lookup mechanism for objectify.
- - -
- -
- a new object with type S, a subtype of T - - - - - - -
__new__(T, - S, - ...) - - -
- -
-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __reduce__, - __reduce_ex__, - __repr__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__init__(self, - tree_class=None, - empty_data_class=None) -
(Constructor) -

-
  -
- -

Lookup mechanism for objectify.

-

The default Element classes can be replaced by passing subclasses of -ObjectifiedElement and ObjectifiedDataElement as keyword arguments. -'tree_class' defines inner tree classes (defaults to -ObjectifiedElement), 'empty_data_class' defines the default class for -empty data elements (defauls to StringElement).

-
-
Overrides: - object.__init__ -
-
-
-
- -
- -
- - -
-

__new__(T, - S, - ...) -

-
  -
- - -
-
Returns: a new object with type S, a subtype of T
-
Overrides: - object.__new__ -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.objectify.PyType-class.html b/doc/html/api/lxml.objectify.PyType-class.html deleted file mode 100644 index 227440f..0000000 --- a/doc/html/api/lxml.objectify.PyType-class.html +++ /dev/null @@ -1,465 +0,0 @@ - - - - - lxml.objectify.PyType - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module objectify :: - Class PyType - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class PyType

-
-object --+
-         |
-        PyType
-
- -
-

PyType(self, name, type_check, type_class, stringify=None) -User defined type.

-

Named type that contains a type check function and a type class that -inherits from ObjectifiedDataElement. The type check must take a string -as argument and raise ValueError or TypeError if it cannot handle the -string value. It may be None in which case it is not considered for type -guessing.

-

Example:

-
-PyType('int', int, MyIntClass).register()
-
-

Note that the order in which types are registered matters. The first -matching type will be used.

- - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__init__(self, - name, - type_check, - type_class, - stringify=None)
- x.__init__(...) initializes x; see help(type(x)) for signature
- - -
- -
- a new object with type S, a subtype of T - - - - - - -
__new__(T, - S, - ...) - - -
- -
-   - - - - - - -
__repr__(x)
- repr(x)
- - -
- -
-   - - - - - - -
register(self, - before=None, - after=None)
- Register the type.
- - -
- -
-   - - - - - - -
unregister(self) - - -
- -
-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __reduce__, - __reduce_ex__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Properties[hide private]
-
-   - - name -
-   - - stringify -
-   - - type_check -
-   - - xmlSchemaTypes
- The list of XML Schema datatypes this Python type maps to. -
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__init__(self, - name, - type_check, - type_class, - stringify=None) -
(Constructor) -

-
  -
- - x.__init__(...) initializes x; see help(type(x)) for signature -
-
Overrides: - object.__init__ -
-
-
-
- -
- -
- - -
-

__new__(T, - S, - ...) -

-
  -
- - -
-
Returns: a new object with type S, a subtype of T
-
Overrides: - object.__new__ -
-
-
-
- -
- -
- - -
-

__repr__(x) -
(Representation operator) -

-
  -
- - repr(x) -
-
Overrides: - object.__repr__ -
-
-
-
- -
- -
- - -
-

register(self, - before=None, - after=None) -

-
  -
- -

Register the type.

-

The additional keyword arguments 'before' and 'after' accept a -sequence of type names that must appear before/after the new type in -the type list. If any of them is not currently known, it is simply -ignored. Raises ValueError if the dependencies cannot be fulfilled.

-
-
-
-
-
- - - - - - -
- - - - - -
Property Details[hide private]
-
- -
- -
-

xmlSchemaTypes

-

The list of XML Schema datatypes this Python type maps to.

-

Note that this must be set before registering the type!

-
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.objectify.StringElement-class.html b/doc/html/api/lxml.objectify.StringElement-class.html deleted file mode 100644 index 9eabbf0..0000000 --- a/doc/html/api/lxml.objectify.StringElement-class.html +++ /dev/null @@ -1,753 +0,0 @@ - - - - - lxml.objectify.StringElement - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module objectify :: - Class StringElement - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class StringElement

-
-    object --+                
-             |                
-etree._Element --+            
-                 |            
- etree.ElementBase --+        
-                     |        
-    ObjectifiedElement --+    
-                         |    
-    ObjectifiedDataElement --+
-                             |
-                            StringElement
-
- -
-

String data class.

-

Note that this class does not support the sequence protocol of strings: -len(), iter(), str_attr[0], str_attr[0:1], etc. are not supported. -Instead, use the .text attribute to get a 'real' string.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__add__(x, - y)
- x+y
- - -
- -
-   - - - - - - -
__complex__(...) - - -
- -
-   - - - - - - -
__eq__(x, - y)
- x==y
- - -
- -
-   - - - - - - -
__float__(x)
- float(x)
- - -
- -
-   - - - - - - -
__ge__(x, - y)
- x>=y
- - -
- -
-   - - - - - - -
__gt__(x, - y)
- x>y
- - -
- -
-   - - - - - - -
__hash__(x)
- hash(x)
- - -
- -
-   - - - - - - -
__int__(x)
- int(x)
- - -
- -
-   - - - - - - -
__le__(x, - y)
- x<=y
- - -
- -
-   - - - - - - -
__long__(x)
- long(x)
- - -
- -
-   - - - - - - -
__lt__(x, - y)
- x<y
- - -
- -
-   - - - - - - -
__mod__(x, - y)
- x%y
- - -
- -
-   - - - - - - -
__mul__(x, - y)
- x*y
- - -
- -
-   - - - - - - -
__ne__(x, - y)
- x!=y
- - -
- -
- a new object with type S, a subtype of T - - - - - - -
__new__(T, - S, - ...) - - -
- -
-   - - - - - - -
__nonzero__(x)
- x != 0
- - -
- -
-   - - - - - - -
__radd__(x, - y)
- y+x
- - -
- -
-   - - - - - - -
__repr__(x)
- repr(x)
- - -
- -
-   - - - - - - -
__rmod__(x, - y)
- y%x
- - -
- -
-   - - - - - - -
__rmul__(x, - y)
- y*x
- - -
- -
-   - - - - - - -
strlen(...) - - -
- -
-

Inherited from ObjectifiedDataElement: - __str__ -

-

Inherited from ObjectifiedDataElement (private): - _setText -

-

Inherited from ObjectifiedElement: - __delattr__, - __delitem__, - __getattr__, - __getattribute__, - __getitem__, - __iter__, - __len__, - __reduce__, - __setattr__, - __setitem__, - addattr, - countchildren, - descendantpaths, - getchildren -

-

Inherited from etree.ElementBase: - __init__ -

-

Inherited from etree._Element: - __contains__, - __copy__, - __deepcopy__, - __reversed__, - addnext, - addprevious, - append, - clear, - extend, - find, - findall, - findtext, - get, - getiterator, - getnext, - getparent, - getprevious, - getroottree, - index, - insert, - items, - iter, - iterancestors, - iterchildren, - iterdescendants, - iterfind, - itersiblings, - itertext, - keys, - makeelement, - remove, - replace, - set, - values, - xpath -

-

Inherited from etree._Element (private): - _init -

-

Inherited from object: - __format__, - __reduce_ex__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - - - - -
- - - - - -
Properties[hide private]
-
-   - - pyval -
-

Inherited from ObjectifiedElement: - text -

-

Inherited from etree._Element: - attrib, - base, - nsmap, - prefix, - sourceline, - tag, - tail -

-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__hash__(x) -
(Hashing function) -

-
  -
- - hash(x) -
-
Overrides: - object.__hash__ -
-
-
-
- -
- -
- - -
-

__new__(T, - S, - ...) -

-
  -
- - -
-
Returns: a new object with type S, a subtype of T
-
Overrides: - object.__new__ -
-
-
-
- -
- -
- - -
-

__nonzero__(x) -
(Boolean test operator) -

-
  -
- - x != 0 -
-
Overrides: - etree._Element.__nonzero__ -
-
-
-
- -
- -
- - -
-

__repr__(x) -
(Representation operator) -

-
  -
- - repr(x) -
-
Overrides: - object.__repr__ -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.objectify._ObjectifyElementMakerCaller-class.html b/doc/html/api/lxml.objectify._ObjectifyElementMakerCaller-class.html deleted file mode 100644 index 4c61be7..0000000 --- a/doc/html/api/lxml.objectify._ObjectifyElementMakerCaller-class.html +++ /dev/null @@ -1,263 +0,0 @@ - - - - - lxml.objectify._ObjectifyElementMakerCaller - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module objectify :: - Class _ObjectifyElementMakerCaller - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class _ObjectifyElementMakerCaller

-
-object --+
-         |
-        _ObjectifyElementMakerCaller
-
- -
- - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__call__(self, - *children, - **attrib) - - -
- -
- a new object with type S, a subtype of T - - - - - - -
__new__(T, - S, - ...) - - -
- -
-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __init__, - __reduce__, - __reduce_ex__, - __repr__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__new__(T, - S, - ...) -

-
  -
- - -
-
Returns: a new object with type S, a subtype of T
-
Overrides: - object.__new__ -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.pyclasslookup-module.html b/doc/html/api/lxml.pyclasslookup-module.html deleted file mode 100644 index cb50074..0000000 --- a/doc/html/api/lxml.pyclasslookup-module.html +++ /dev/null @@ -1,139 +0,0 @@ - - - - - lxml.pyclasslookup - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module pyclasslookup - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Module pyclasslookup

source code

- - - - - - - - - -
- - - - - -
Variables[hide private]
-
-   - - __package__ = 'lxml' -
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.pyclasslookup-pysrc.html b/doc/html/api/lxml.pyclasslookup-pysrc.html deleted file mode 100644 index 3bbea16..0000000 --- a/doc/html/api/lxml.pyclasslookup-pysrc.html +++ /dev/null @@ -1,128 +0,0 @@ - - - - - lxml.pyclasslookup - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module pyclasslookup - - - - - - -
[hide private]
[frames] | no frames]
-
-

Source Code for Module lxml.pyclasslookup

-
-1  # dummy module for backwards compatibility 
-2   
-3  from etree import PythonElementClassLookup 
-4   
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.sax-module.html b/doc/html/api/lxml.sax-module.html deleted file mode 100644 index 07ec074..0000000 --- a/doc/html/api/lxml.sax-module.html +++ /dev/null @@ -1,241 +0,0 @@ - - - - - lxml.sax - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module sax - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Module sax

source code

-

SAX-based adapter to copy trees from/to the Python standard library.

-

Use the ElementTreeContentHandler class to build an ElementTree from -SAX events.

-

Use the ElementTreeProducer class or the saxify() function to fire -the SAX events of an ElementTree against a SAX ContentHandler.

-

See http://codespeak.net/lxml/sax.html

- - - - - - - - - - - - - - - - -
- - - - - -
Classes[hide private]
-
-   - - SaxError
- General SAX error. -
-   - - ElementTreeContentHandler
- Build an lxml ElementTree from SAX events. -
-   - - ElementTreeProducer
- Produces SAX events for an element and children. -
- - - - - - - - - - - - -
- - - - - -
Functions[hide private]
-
-   - - - - - - -
_getNsTag(tag) - source code - -
- -
-   - - - - - - -
saxify(element_or_tree, - content_handler)
- One-shot helper to generate SAX events from an XML tree and fire -them against a SAX ContentHandler.
- source code - -
- -
- - - - - - - - - -
- - - - - -
Variables[hide private]
-
-   - - __package__ = 'lxml' -
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.sax-pysrc.html b/doc/html/api/lxml.sax-pysrc.html deleted file mode 100644 index ac1f38c..0000000 --- a/doc/html/api/lxml.sax-pysrc.html +++ /dev/null @@ -1,508 +0,0 @@ - - - - - lxml.sax - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module sax - - - - - - -
[hide private]
[frames] | no frames]
-
-

Source Code for Module lxml.sax

-
-  1  """ 
-  2  SAX-based adapter to copy trees from/to the Python standard library. 
-  3   
-  4  Use the `ElementTreeContentHandler` class to build an ElementTree from 
-  5  SAX events. 
-  6   
-  7  Use the `ElementTreeProducer` class or the `saxify()` function to fire 
-  8  the SAX events of an ElementTree against a SAX ContentHandler. 
-  9   
- 10  See http://codespeak.net/lxml/sax.html 
- 11  """ 
- 12   
- 13  from xml.sax.handler import ContentHandler 
- 14  from lxml import etree 
- 15  from lxml.etree import ElementTree, SubElement 
- 16  from lxml.etree import Comment, ProcessingInstruction 
- 17   
-
18 -class SaxError(etree.LxmlError): -
19 """General SAX error. - 20 """ - 21 pass -
22 -
23 -def _getNsTag(tag): -
24 if tag[0] == '{': - 25 return tuple(tag[1:].split('}', 1)) - 26 else: - 27 return (None, tag) -
28 -
29 -class ElementTreeContentHandler(ContentHandler): -
30 """Build an lxml ElementTree from SAX events. - 31 """ -
32 - def __init__(self, makeelement=None): -
33 self._root = None - 34 self._root_siblings = [] - 35 self._element_stack = [] - 36 self._default_ns = None - 37 self._ns_mapping = { None : [None] } - 38 self._new_mappings = {} - 39 if makeelement is None: - 40 makeelement = etree.Element - 41 self._makeelement = makeelement -
42 -
43 - def _get_etree(self): -
44 "Contains the generated ElementTree after parsing is finished." - 45 return ElementTree(self._root) -
46 - 47 etree = property(_get_etree, doc=_get_etree.__doc__) - 48 -
49 - def setDocumentLocator(self, locator): -
50 pass -
51 -
52 - def startDocument(self): -
53 pass -
54 -
55 - def endDocument(self): -
56 pass -
57 -
58 - def startPrefixMapping(self, prefix, uri): -
59 self._new_mappings[prefix] = uri - 60 try: - 61 self._ns_mapping[prefix].append(uri) - 62 except KeyError: - 63 self._ns_mapping[prefix] = [uri] - 64 if prefix is None: - 65 self._default_ns = uri -
66 -
67 - def endPrefixMapping(self, prefix): -
68 ns_uri_list = self._ns_mapping[prefix] - 69 ns_uri_list.pop() - 70 if prefix is None: - 71 self._default_ns = ns_uri_list[-1] -
72 -
73 - def _buildTag(self, ns_name_tuple): -
74 ns_uri, local_name = ns_name_tuple - 75 if ns_uri: - 76 el_tag = "{%s}%s" % ns_name_tuple - 77 elif self._default_ns: - 78 el_tag = "{%s}%s" % (self._default_ns, local_name) - 79 else: - 80 el_tag = local_name - 81 return el_tag -
82 -
83 - def startElementNS(self, ns_name, qname, attributes=None): -
84 el_name = self._buildTag(ns_name) - 85 if attributes: - 86 attrs = {} - 87 try: - 88 iter_attributes = attributes.iteritems() - 89 except AttributeError: - 90 iter_attributes = attributes.items() - 91 - 92 for name_tuple, value in iter_attributes: - 93 if name_tuple[0]: - 94 attr_name = "{%s}%s" % name_tuple - 95 else: - 96 attr_name = name_tuple[1] - 97 attrs[attr_name] = value - 98 else: - 99 attrs = None -100 -101 element_stack = self._element_stack -102 if self._root is None: -103 element = self._root = \ -104 self._makeelement(el_name, attrs, self._new_mappings) -105 if self._root_siblings and hasattr(element, 'addprevious'): -106 for sibling in self._root_siblings: -107 element.addprevious(sibling) -108 del self._root_siblings[:] -109 else: -110 element = SubElement(element_stack[-1], el_name, -111 attrs, self._new_mappings) -112 element_stack.append(element) -113 -114 self._new_mappings.clear() -
115 -
116 - def processingInstruction(self, target, data): -
117 pi = ProcessingInstruction(target, data) -118 if self._root is None: -119 self._root_siblings.append(pi) -120 else: -121 self._element_stack[-1].append(pi) -
122 -
123 - def endElementNS(self, ns_name, qname): -
124 element = self._element_stack.pop() -125 el_tag = self._buildTag(ns_name) -126 if el_tag != element.tag: -127 raise SaxError("Unexpected element closed: " + el_tag) -
128 -
129 - def startElement(self, name, attributes=None): -
130 self.startElementNS((None, name), name, attributes) -
131 -
132 - def endElement(self, name): -
133 self.endElementNS((None, name), name) -
134 -
135 - def characters(self, data): -
136 last_element = self._element_stack[-1] -137 try: -138 # if there already is a child element, we must append to its tail -139 last_element = last_element[-1] -140 last_element.tail = (last_element.tail or '') + data -141 except IndexError: -142 # otherwise: append to the text -143 last_element.text = (last_element.text or '') + data -
144 -145 ignorableWhitespace = characters -
146 -147 -
148 -class ElementTreeProducer(object): -
149 """Produces SAX events for an element and children. -150 """ -
151 - def __init__(self, element_or_tree, content_handler): -
152 try: -153 element = element_or_tree.getroot() -154 except AttributeError: -155 element = element_or_tree -156 self._element = element -157 self._content_handler = content_handler -158 from xml.sax.xmlreader import AttributesNSImpl as attr_class -159 self._attr_class = attr_class -160 self._empty_attributes = attr_class({}, {}) -
161 -
162 - def saxify(self): -
163 self._content_handler.startDocument() -164 -165 element = self._element -166 if hasattr(element, 'getprevious'): -167 siblings = [] -168 sibling = element.getprevious() -169 while getattr(sibling, 'tag', None) is ProcessingInstruction: -170 siblings.append(sibling) -171 sibling = sibling.getprevious() -172 for sibling in siblings[::-1]: -173 self._recursive_saxify(sibling, {}) -174 -175 self._recursive_saxify(element, {}) -176 -177 if hasattr(element, 'getnext'): -178 sibling = element.getnext() -179 while getattr(sibling, 'tag', None) is ProcessingInstruction: -180 self._recursive_saxify(sibling, {}) -181 sibling = sibling.getnext() -182 -183 self._content_handler.endDocument() -
184 -
185 - def _recursive_saxify(self, element, prefixes): -
186 content_handler = self._content_handler -187 tag = element.tag -188 if tag is Comment or tag is ProcessingInstruction: -189 if tag is ProcessingInstruction: -190 content_handler.processingInstruction( -191 element.target, element.text) -192 if element.tail: -193 content_handler.characters(element.tail) -194 return -195 -196 new_prefixes = [] -197 build_qname = self._build_qname -198 attribs = element.items() -199 if attribs: -200 attr_values = {} -201 attr_qnames = {} -202 for attr_ns_name, value in attribs: -203 attr_ns_tuple = _getNsTag(attr_ns_name) -204 attr_values[attr_ns_tuple] = value -205 attr_qnames[attr_ns_tuple] = build_qname( -206 attr_ns_tuple[0], attr_ns_tuple[1], prefixes, new_prefixes) -207 sax_attributes = self._attr_class(attr_values, attr_qnames) -208 else: -209 sax_attributes = self._empty_attributes -210 -211 ns_uri, local_name = _getNsTag(tag) -212 qname = build_qname(ns_uri, local_name, prefixes, new_prefixes) -213 -214 for prefix, uri in new_prefixes: -215 content_handler.startPrefixMapping(prefix, uri) -216 content_handler.startElementNS((ns_uri, local_name), -217 qname, sax_attributes) -218 if element.text: -219 content_handler.characters(element.text) -220 for child in element: -221 self._recursive_saxify(child, prefixes) -222 content_handler.endElementNS((ns_uri, local_name), qname) -223 for prefix, uri in new_prefixes: -224 content_handler.endPrefixMapping(prefix) -225 if element.tail: -226 content_handler.characters(element.tail) -
227 -
228 - def _build_qname(self, ns_uri, local_name, prefixes, new_prefixes): -
229 if ns_uri is None: -230 return local_name -231 try: -232 prefix = prefixes[ns_uri] -233 except KeyError: -234 prefix = prefixes[ns_uri] = 'ns%02d' % len(prefixes) -235 new_prefixes.append( (prefix, ns_uri) ) -236 return prefix + ':' + local_name -
237 -
238 -def saxify(element_or_tree, content_handler): -
239 """One-shot helper to generate SAX events from an XML tree and fire -240 them against a SAX ContentHandler. -241 """ -242 return ElementTreeProducer(element_or_tree, content_handler).saxify() -
243 -
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.sax.ElementTreeContentHandler-class.html b/doc/html/api/lxml.sax.ElementTreeContentHandler-class.html deleted file mode 100644 index 825b368..0000000 --- a/doc/html/api/lxml.sax.ElementTreeContentHandler-class.html +++ /dev/null @@ -1,893 +0,0 @@ - - - - - lxml.sax.ElementTreeContentHandler - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module sax :: - Class ElementTreeContentHandler - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class ElementTreeContentHandler

source code

-
-xml.sax.handler.ContentHandler --+
-                                 |
-                                ElementTreeContentHandler
-
- -
-Build an lxml ElementTree from SAX events. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__init__(self, - makeelement=None) - source code - -
- -
-   - - - - - - -
_get_etree(self)
- Contains the generated ElementTree after parsing is finished.
- source code - -
- -
-   - - - - - - -
setDocumentLocator(self, - locator)
- Called by the parser to give the application a locator for -locating the origin of document events.
- source code - -
- -
-   - - - - - - -
startDocument(self)
- Receive notification of the beginning of a document.
- source code - -
- -
-   - - - - - - -
endDocument(self)
- Receive notification of the end of a document.
- source code - -
- -
-   - - - - - - -
startPrefixMapping(self, - prefix, - uri)
- Begin the scope of a prefix-URI Namespace mapping.
- source code - -
- -
-   - - - - - - -
endPrefixMapping(self, - prefix)
- End the scope of a prefix-URI mapping.
- source code - -
- -
-   - - - - - - -
_buildTag(self, - ns_name_tuple) - source code - -
- -
-   - - - - - - -
startElementNS(self, - ns_name, - qname, - attributes=None)
- Signals the start of an element in namespace mode.
- source code - -
- -
-   - - - - - - -
processingInstruction(self, - target, - data)
- Receive notification of a processing instruction.
- source code - -
- -
-   - - - - - - -
endElementNS(self, - ns_name, - qname)
- Signals the end of an element in namespace mode.
- source code - -
- -
-   - - - - - - -
startElement(self, - name, - attributes=None)
- Signals the start of an element in non-namespace mode.
- source code - -
- -
-   - - - - - - -
endElement(self, - name)
- Signals the end of an element in non-namespace mode.
- source code - -
- -
-   - - - - - - -
characters(self, - data)
- Receive notification of character data.
- source code - -
- -
-   - - - - - - -
ignorableWhitespace(self, - data)
- Receive notification of character data.
- source code - -
- -
-

Inherited from xml.sax.handler.ContentHandler: - skippedEntity -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-   - - etree
- Contains the generated ElementTree after parsing is finished. -
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__init__(self, - makeelement=None) -
(Constructor) -

-
source code  -
- - -
-
Overrides: - xml.sax.handler.ContentHandler.__init__ -
-
-
-
- -
- -
- - -
-

setDocumentLocator(self, - locator) -

-
source code  -
- -

Called by the parser to give the application a locator for -locating the origin of document events.

-

SAX parsers are strongly encouraged (though not absolutely -required) to supply a locator: if it does so, it must supply -the locator to the application by invoking this method before -invoking any of the other methods in the DocumentHandler -interface.

-

The locator allows the application to determine the end -position of any document-related event, even if the parser is -not reporting an error. Typically, the application will use -this information for reporting its own errors (such as -character content that does not match an application's -business rules). The information returned by the locator is -probably not sufficient for use with a search engine.

-

Note that the locator will return correct information only -during the invocation of the events in this interface. The -application should not attempt to use it at any other time.

-
-
Overrides: - xml.sax.handler.ContentHandler.setDocumentLocator -
(inherited documentation)
- -
-
-
- -
- -
- - -
-

startDocument(self) -

-
source code  -
- -

Receive notification of the beginning of a document.

-

The SAX parser will invoke this method only once, before any -other methods in this interface or in DTDHandler (except for -setDocumentLocator).

-
-
Overrides: - xml.sax.handler.ContentHandler.startDocument -
(inherited documentation)
- -
-
-
- -
- -
- - -
-

endDocument(self) -

-
source code  -
- -

Receive notification of the end of a document.

-

The SAX parser will invoke this method only once, and it will -be the last method invoked during the parse. The parser shall -not invoke this method until it has either abandoned parsing -(because of an unrecoverable error) or reached the end of -input.

-
-
Overrides: - xml.sax.handler.ContentHandler.endDocument -
(inherited documentation)
- -
-
-
- -
- -
- - -
-

startPrefixMapping(self, - prefix, - uri) -

-
source code  -
- -

Begin the scope of a prefix-URI Namespace mapping.

-

The information from this event is not necessary for normal -Namespace processing: the SAX XML reader will automatically -replace prefixes for element and attribute names when the -http://xml.org/sax/features/namespaces feature is true (the -default).

-

There are cases, however, when applications need to use -prefixes in character data or in attribute values, where they -cannot safely be expanded automatically; the -start/endPrefixMapping event supplies the information to the -application to expand prefixes in those contexts itself, if -necessary.

-

Note that start/endPrefixMapping events are not guaranteed to -be properly nested relative to each-other: all -startPrefixMapping events will occur before the corresponding -startElement event, and all endPrefixMapping events will occur -after the corresponding endElement event, but their order is -not guaranteed.

-
-
Overrides: - xml.sax.handler.ContentHandler.startPrefixMapping -
(inherited documentation)
- -
-
-
- -
- -
- - -
-

endPrefixMapping(self, - prefix) -

-
source code  -
- -

End the scope of a prefix-URI mapping.

-

See startPrefixMapping for details. This event will always -occur after the corresponding endElement event, but the order -of endPrefixMapping events is not otherwise guaranteed.

-
-
Overrides: - xml.sax.handler.ContentHandler.endPrefixMapping -
(inherited documentation)
- -
-
-
- -
- -
- - -
-

startElementNS(self, - ns_name, - qname, - attributes=None) -

-
source code  -
- -

Signals the start of an element in namespace mode.

-

The name parameter contains the name of the element type as a -(uri, localname) tuple, the qname parameter the raw XML 1.0 -name used in the source document, and the attrs parameter -holds an instance of the Attributes class containing the -attributes of the element.

-

The uri part of the name tuple is None for elements which have -no namespace.

-
-
Overrides: - xml.sax.handler.ContentHandler.startElementNS -
(inherited documentation)
- -
-
-
- -
- -
- - -
-

processingInstruction(self, - target, - data) -

-
source code  -
- -

Receive notification of a processing instruction.

-

The Parser will invoke this method once for each processing -instruction found: note that processing instructions may occur -before or after the main document element.

-

A SAX parser should never report an XML declaration (XML 1.0, -section 2.8) or a text declaration (XML 1.0, section 4.3.1) -using this method.

-
-
Overrides: - xml.sax.handler.ContentHandler.processingInstruction -
(inherited documentation)
- -
-
-
- -
- -
- - -
-

endElementNS(self, - ns_name, - qname) -

-
source code  -
- -

Signals the end of an element in namespace mode.

-

The name parameter contains the name of the element type, just -as with the startElementNS event.

-
-
Overrides: - xml.sax.handler.ContentHandler.endElementNS -
(inherited documentation)
- -
-
-
- -
- -
- - -
-

startElement(self, - name, - attributes=None) -

-
source code  -
- -

Signals the start of an element in non-namespace mode.

-

The name parameter contains the raw XML 1.0 name of the -element type as a string and the attrs parameter holds an -instance of the Attributes class containing the attributes of -the element.

-
-
Overrides: - xml.sax.handler.ContentHandler.startElement -
(inherited documentation)
- -
-
-
- -
- -
- - -
-

endElement(self, - name) -

-
source code  -
- -

Signals the end of an element in non-namespace mode.

-

The name parameter contains the name of the element type, just -as with the startElement event.

-
-
Overrides: - xml.sax.handler.ContentHandler.endElement -
(inherited documentation)
- -
-
-
- -
- -
- - -
-

characters(self, - data) -

-
source code  -
- -

Receive notification of character data.

-

The Parser will call this method to report each chunk of -character data. SAX parsers may return all contiguous -character data in a single chunk, or they may split it into -several chunks; however, all of the characters in any single -event must come from the same external entity so that the -Locator provides useful information.

-
-
Overrides: - xml.sax.handler.ContentHandler.characters -
(inherited documentation)
- -
-
-
- -
- -
- - -
-

ignorableWhitespace(self, - data) -

-
source code  -
- -

Receive notification of character data.

-

The Parser will call this method to report each chunk of -character data. SAX parsers may return all contiguous -character data in a single chunk, or they may split it into -several chunks; however, all of the characters in any single -event must come from the same external entity so that the -Locator provides useful information.

-
-
Overrides: - xml.sax.handler.ContentHandler.ignorableWhitespace -
(inherited documentation)
- -
-
-
-
- - - - - - -
- - - - - -
Property Details[hide private]
-
- -
- -
-

etree

- Contains the generated ElementTree after parsing is finished. -
-
Get Method:
-
_get_etree(self) - - Contains the generated ElementTree after parsing is finished. -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.sax.ElementTreeProducer-class.html b/doc/html/api/lxml.sax.ElementTreeProducer-class.html deleted file mode 100644 index f1e6396..0000000 --- a/doc/html/api/lxml.sax.ElementTreeProducer-class.html +++ /dev/null @@ -1,303 +0,0 @@ - - - - - lxml.sax.ElementTreeProducer - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module sax :: - Class ElementTreeProducer - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class ElementTreeProducer

source code

-
-object --+
-         |
-        ElementTreeProducer
-
- -
-Produces SAX events for an element and children. - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__init__(self, - element_or_tree, - content_handler)
- x.__init__(...) initializes x; see help(type(x)) for signature
- source code - -
- -
-   - - - - - - -
saxify(self) - source code - -
- -
-   - - - - - - -
_recursive_saxify(self, - element, - prefixes) - source code - -
- -
-   - - - - - - -
_build_qname(self, - ns_uri, - local_name, - prefixes, - new_prefixes) - source code - -
- -
-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __new__, - __reduce__, - __reduce_ex__, - __repr__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__init__(self, - element_or_tree, - content_handler) -
(Constructor) -

-
source code  -
- - x.__init__(...) initializes x; see help(type(x)) for signature -
-
Overrides: - object.__init__ -
(inherited documentation)
- -
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.sax.SaxError-class.html b/doc/html/api/lxml.sax.SaxError-class.html deleted file mode 100644 index 07d502b..0000000 --- a/doc/html/api/lxml.sax.SaxError-class.html +++ /dev/null @@ -1,208 +0,0 @@ - - - - - lxml.sax.SaxError - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module sax :: - Class SaxError - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class SaxError

source code

-
-              object --+                
-                       |                
-exceptions.BaseException --+            
-                           |            
-        exceptions.Exception --+        
-                               |        
-                     etree.Error --+    
-                                   |    
-                     etree.LxmlError --+
-                                       |
-                                      SaxError
-
- -
-General SAX error. - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-

Inherited from etree.LxmlError: - __init__ -

-

Inherited from exceptions.Exception: - __new__ -

-

Inherited from exceptions.BaseException: - __delattr__, - __getattribute__, - __getitem__, - __getslice__, - __reduce__, - __repr__, - __setattr__, - __setstate__, - __str__, - __unicode__ -

-

Inherited from object: - __format__, - __hash__, - __reduce_ex__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from exceptions.BaseException: - args, - message -

-

Inherited from object: - __class__ -

-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests-module.html b/doc/html/api/lxml.tests-module.html deleted file mode 100644 index 40ff935..0000000 --- a/doc/html/api/lxml.tests-module.html +++ /dev/null @@ -1,188 +0,0 @@ - - - - - lxml.tests - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Package tests

source code

-The lxml test suite for lxml, ElementTree and cElementTree. - - - - - - - - -
- - - - - -
Submodules[hide private]
-
-
- -
- - - - - - - - - -
- - - - - -
Variables[hide private]
-
-   - - __package__ = None
- hash(x) -
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests-pysrc.html b/doc/html/api/lxml.tests-pysrc.html deleted file mode 100644 index bc39295..0000000 --- a/doc/html/api/lxml.tests-pysrc.html +++ /dev/null @@ -1,124 +0,0 @@ - - - - - lxml.tests - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests - - - - - - -
[hide private]
[frames] | no frames]
-
-

Source Code for Package lxml.tests

-
-1  """ 
-2  The lxml test suite for lxml, ElementTree and cElementTree. 
-3  """ 
-4   
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.common_imports-module.html b/doc/html/api/lxml.tests.common_imports-module.html deleted file mode 100644 index 0df05b0..0000000 --- a/doc/html/api/lxml.tests.common_imports-module.html +++ /dev/null @@ -1,499 +0,0 @@ - - - - - lxml.tests.common_imports - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module common_imports - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Module common_imports

source code

- - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Classes[hide private]
-
-   - - skipif
- Using a class because a function would bind into a method when used in classes -
-   - - HelperTestCase -
-   - - SillyFileLike -
-   - - LargeFileLike -
-   - - LargeFileLikeUnicode -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Functions[hide private]
-
-   - - - - - - -
make_version_tuple(version_string) - source code - -
- -
-   - - - - - - -
filter_by_version(test_class, - version_dict, - current_version)
- Remove test methods that do not work with the current lib version.
- source code - -
- -
-   - - - - - - -
_get_caller_relative_path(filename, - frame_depth=2) - source code - -
- -
-   - - - - - - -
_str(s, - encoding='UTF-8') - source code - -
- -
-   - - - - - - -
_bytes(s, - encoding='UTF-8') - source code - -
- -
-   - - - - - - -
_fix_traceback(...)
- sub(repl, string[, count = 0]) --> newstring -Return the string obtained by replacing the leftmost non-overlapping -occurrences of pattern in string by the replacement repl.
- source code - -
- -
-   - - - - - - -
_fix_exceptions(...)
- sub(repl, string[, count = 0]) --> newstring -Return the string obtained by replacing the leftmost non-overlapping -occurrences of pattern in string by the replacement repl.
- source code - -
- -
-   - - - - - - -
_fix_bytes(...)
- sub(repl, string[, count = 0]) --> newstring -Return the string obtained by replacing the leftmost non-overlapping -occurrences of pattern in string by the replacement repl.
- source code - -
- -
-   - - - - - - -
make_doctest(filename) - source code - -
- -
-   - - - - - - -
fileInTestDir(name) - source code - -
- -
-   - - - - - - -
read_file(name, - mode='r') - source code - -
- -
-   - - - - - - -
write_to_file(name, - data, - mode='w') - source code - -
- -
-   - - - - - - -
readFileInTestDir(name, - mode='r') - source code - -
- -
-   - - - - - - -
canonicalize(xml) - source code - -
- -
-   - - - - - - -
unentitify(xml) - source code - -
- -
- - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Variables[hide private]
-
-   - - ET_VERSION = (1, 3, 0) -
-   - - CET_VERSION = (1, 0, 6) -
-   - - _fix_unicode = re.compile(r'(\s+)u(["\'])').sub -
-   - - doctest_parser = doctest.DocTestParser() -
-   - - __package__ = 'lxml.tests' -
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.common_imports-pysrc.html b/doc/html/api/lxml.tests.common_imports-pysrc.html deleted file mode 100644 index 336c8f0..0000000 --- a/doc/html/api/lxml.tests.common_imports-pysrc.html +++ /dev/null @@ -1,553 +0,0 @@ - - - - - lxml.tests.common_imports - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module common_imports - - - - - - -
[hide private]
[frames] | no frames]
-
-

Source Code for Module lxml.tests.common_imports

-
-  1  import unittest 
-  2  import os.path 
-  3  import re, gc, sys 
-  4   
-  5  from lxml import etree 
-  6   
-
7 -def make_version_tuple(version_string): -
8 l = [] - 9 for part in re.findall('([0-9]+|[^0-9.]+)', version_string): - 10 try: - 11 l.append(int(part)) - 12 except ValueError: - 13 l.append(part) - 14 return tuple(l) -
15 - 16 try: - 17 from elementtree import ElementTree # standard ET - 18 except ImportError: - 19 try: - 20 from xml.etree import ElementTree # Python 2.5+ - 21 except ImportError: - 22 ElementTree = None - 23 - 24 if hasattr(ElementTree, 'VERSION'): - 25 ET_VERSION = make_version_tuple(ElementTree.VERSION) - 26 else: - 27 ET_VERSION = (0,0,0) - 28 - 29 try: - 30 import cElementTree # standard ET - 31 except ImportError: - 32 try: - 33 from xml.etree import cElementTree # Python 2.5+ - 34 except ImportError: - 35 cElementTree = None - 36 - 37 if hasattr(cElementTree, 'VERSION'): - 38 CET_VERSION = make_version_tuple(cElementTree.VERSION) - 39 else: - 40 CET_VERSION = (0,0,0) - 41 -
42 -def filter_by_version(test_class, version_dict, current_version): -
43 """Remove test methods that do not work with the current lib version. - 44 """ - 45 find_required_version = version_dict.get - 46 def dummy_test_method(self): - 47 pass -
48 for name in dir(test_class): - 49 expected_version = find_required_version(name, (0,0,0)) - 50 if expected_version > current_version: - 51 setattr(test_class, name, dummy_test_method) - 52 - 53 try: - 54 import doctest - 55 # check if the system version has everything we need - 56 doctest.DocFileSuite - 57 doctest.DocTestParser - 58 doctest.NORMALIZE_WHITESPACE - 59 doctest.ELLIPSIS - 60 except (ImportError, AttributeError): - 61 # we need our own version to make it work (Python 2.3?) - 62 import local_doctest as doctest - 63 - 64 try: - 65 sorted - 66 except NameError: -
67 - def sorted(seq, **kwargs): -
68 seq = list(seq) - 69 seq.sort(**kwargs) - 70 return seq -
71 else: - 72 locals()['sorted'] = sorted - 73 - 74 try: - 75 import pytest - 76 except ImportError: -
77 - class skipif(object): -
78 "Using a class because a function would bind into a method when used in classes" -
79 - def __init__(self, *args): pass -
80 - def __call__(self, func, *args): return func -
81 else: - 82 skipif = pytest.mark.skipif - 83 -
84 -def _get_caller_relative_path(filename, frame_depth=2): -
85 module = sys.modules[sys._getframe(frame_depth).f_globals['__name__']] - 86 return os.path.normpath(os.path.join( - 87 os.path.dirname(getattr(module, '__file__', '')), filename)) -
88 - 89 if sys.version_info[0] >= 3: - 90 # Python 3 - 91 from builtins import str as unicode -
92 - def _str(s, encoding="UTF-8"): -
93 return s -
94 - def _bytes(s, encoding="UTF-8"): -
95 return s.encode(encoding) -
96 from io import StringIO, BytesIO as _BytesIO -
97 - def BytesIO(*args): -
98 if args and isinstance(args[0], str): - 99 args = (args[0].encode("UTF-8"),) -100 return _BytesIO(*args) -
101 -102 doctest_parser = doctest.DocTestParser() -103 _fix_unicode = re.compile(r'(\s+)u(["\'])').sub -104 _fix_exceptions = re.compile(r'(.*except [^(]*),\s*(.*:)').sub -
105 - def make_doctest(filename): -
106 filename = _get_caller_relative_path(filename) -107 doctests = read_file(filename) -108 doctests = _fix_unicode(r'\1\2', doctests) -109 doctests = _fix_exceptions(r'\1 as \2', doctests) -110 return doctest.DocTestCase( -111 doctest_parser.get_doctest( -112 doctests, {}, os.path.basename(filename), filename, 0)) -
113 else: -114 # Python 2 -115 from __builtin__ import unicode -
116 - def _str(s, encoding="UTF-8"): -
117 return unicode(s, encoding=encoding) -
118 - def _bytes(s, encoding="UTF-8"): -
119 return s -
120 from StringIO import StringIO -121 BytesIO = StringIO -122 -123 doctest_parser = doctest.DocTestParser() -124 _fix_traceback = re.compile(r'^(\s*)(?:\w+\.)+(\w*(?:Error|Exception|Invalid):)', re.M).sub -125 _fix_exceptions = re.compile(r'(.*except [^(]*)\s+as\s+(.*:)').sub -126 _fix_bytes = re.compile(r'(\s+)b(["\'])').sub -
127 - def make_doctest(filename): -
128 filename = _get_caller_relative_path(filename) -129 doctests = read_file(filename) -130 doctests = _fix_traceback(r'\1\2', doctests) -131 doctests = _fix_exceptions(r'\1, \2', doctests) -132 doctests = _fix_bytes(r'\1\2', doctests) -133 return doctest.DocTestCase( -134 doctest_parser.get_doctest( -135 doctests, {}, os.path.basename(filename), filename, 0)) -
136 -137 try: -138 skipIf = unittest.skipIf -139 except AttributeError: -
140 - def skipIf(condition, why, -141 _skip=lambda test_method: None, -142 _keep=lambda test_method: test_method): -
143 if condition: -144 return _skip -145 return _keep -
146 -
147 -class HelperTestCase(unittest.TestCase): -
148 - def tearDown(self): -
149 gc.collect() -
150 -
151 - def parse(self, text, parser=None): -
152 f = BytesIO(text) -153 return etree.parse(f, parser=parser) -
154 -
155 - def _rootstring(self, tree): -
156 return etree.tostring(tree.getroot()).replace( -157 _bytes(' '), _bytes('')).replace(_bytes('\n'), _bytes('')) -
158 -159 # assertFalse doesn't exist in Python 2.3 -160 try: -161 unittest.TestCase.assertFalse -162 except AttributeError: -163 assertFalse = unittest.TestCase.failIf -
164 -
165 -class SillyFileLike: -
166 - def __init__(self, xml_data=_bytes('<foo><bar/></foo>')): -
167 self.xml_data = xml_data -
168 -
169 - def read(self, amount=None): -
170 if self.xml_data: -171 if amount: -172 data = self.xml_data[:amount] -173 self.xml_data = self.xml_data[amount:] -174 else: -175 data = self.xml_data -176 self.xml_data = _bytes('') -177 return data -178 return _bytes('') -
179 -
180 -class LargeFileLike: -
181 - def __init__(self, charlen=100, depth=4, children=5): -
182 self.data = BytesIO() -183 self.chars = _bytes('a') * charlen -184 self.children = range(children) -185 self.more = self.iterelements(depth) -
186 -
187 - def iterelements(self, depth): -
188 yield _bytes('<root>') -189 depth -= 1 -190 if depth > 0: -191 for child in self.children: -192 for element in self.iterelements(depth): -193 yield element -194 yield self.chars -195 else: -196 yield self.chars -197 yield _bytes('</root>') -
198 -
199 - def read(self, amount=None): -
200 data = self.data -201 append = data.write -202 if amount: -203 for element in self.more: -204 append(element) -205 if data.tell() >= amount: -206 break -207 else: -208 for element in self.more: -209 append(element) -210 result = data.getvalue() -211 data.seek(0) -212 data.truncate() -213 if amount: -214 append(result[amount:]) -215 result = result[:amount] -216 return result -
217 -
218 -class LargeFileLikeUnicode(LargeFileLike): -
219 - def __init__(self, charlen=100, depth=4, children=5): -
220 LargeFileLike.__init__(self, charlen, depth, children) -221 self.data = StringIO() -222 self.chars = _str('a') * charlen -223 self.more = self.iterelements(depth) -
224 -
225 - def iterelements(self, depth): -
226 yield _str('<root>') -227 depth -= 1 -228 if depth > 0: -229 for child in self.children: -230 for element in self.iterelements(depth): -231 yield element -232 yield self.chars -233 else: -234 yield self.chars -235 yield _str('</root>') -
236 -
237 -def fileInTestDir(name): -
238 _testdir = os.path.dirname(__file__) -239 return os.path.join(_testdir, name) -
240 -
241 -def read_file(name, mode='r'): -
242 f = open(name, mode) -243 try: -244 data = f.read() -245 finally: -246 f.close() -247 return data -
248 -
249 -def write_to_file(name, data, mode='w'): -
250 f = open(name, mode) -251 try: -252 data = f.write(data) -253 finally: -254 f.close() -
255 -
256 -def readFileInTestDir(name, mode='r'): -
257 return read_file(fileInTestDir(name), mode) -
258 -
259 -def canonicalize(xml): -
260 tree = etree.parse(BytesIO(xml)) -261 f = BytesIO() -262 tree.write_c14n(f) -263 return f.getvalue() -
264 -
265 -def unentitify(xml): -
266 for entity_name, value in re.findall("(&#([0-9]+);)", xml): -267 xml = xml.replace(entity_name, unichr(int(value))) -268 return xml -
269 -
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.common_imports.HelperTestCase-class.html b/doc/html/api/lxml.tests.common_imports.HelperTestCase-class.html deleted file mode 100644 index b16d93c..0000000 --- a/doc/html/api/lxml.tests.common_imports.HelperTestCase-class.html +++ /dev/null @@ -1,442 +0,0 @@ - - - - - lxml.tests.common_imports.HelperTestCase - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module common_imports :: - Class HelperTestCase - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class HelperTestCase

source code

-
-            object --+    
-                     |    
-unittest.case.TestCase --+
-                         |
-                        HelperTestCase
-
- -
Known Subclasses:
-
- -
- -
- - - - - - - - - -
- - - - - -
Nested Classes[hide private]
-
-

Inherited from unittest.case.TestCase: - failureException -

-
- - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
tearDown(self)
- Hook method for deconstructing the test fixture after testing it.
- source code - -
- -
-   - - - - - - -
parse(self, - text, - parser=None) - source code - -
- -
-   - - - - - - -
_rootstring(self, - tree) - source code - -
- -
-

Inherited from unittest.case.TestCase: - __call__, - __eq__, - __hash__, - __init__, - __ne__, - __repr__, - __str__, - addCleanup, - addTypeEqualityFunc, - assertAlmostEqual, - assertAlmostEquals, - assertDictContainsSubset, - assertDictEqual, - assertEqual, - assertEquals, - assertGreater, - assertGreaterEqual, - assertIn, - assertIs, - assertIsInstance, - assertIsNone, - assertIsNot, - assertIsNotNone, - assertItemsEqual, - assertLess, - assertLessEqual, - assertListEqual, - assertMultiLineEqual, - assertNotAlmostEqual, - assertNotAlmostEquals, - assertNotEqual, - assertNotEquals, - assertNotIn, - assertNotIsInstance, - assertNotRegexpMatches, - assertRaises, - assertRaisesRegexp, - assertRegexpMatches, - assertSequenceEqual, - assertSetEqual, - assertTrue, - assertTupleEqual, - assert_, - countTestCases, - debug, - defaultTestResult, - doCleanups, - fail, - failIf, - failIfAlmostEqual, - failIfEqual, - failUnless, - failUnlessAlmostEqual, - failUnlessEqual, - failUnlessRaises, - id, - run, - setUp, - shortDescription, - skipTest -

-

Inherited from unittest.case.TestCase (private): - _addSkip, - _baseAssertEqual, - _deprecate, - _formatMessage, - _getAssertEqualityFunc, - _truncateMessage -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __new__, - __reduce__, - __reduce_ex__, - __setattr__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Class Methods[hide private]
-
-

Inherited from unittest.case.TestCase: - setUpClass, - tearDownClass -

-
- - - - - - - - - - - - -
- - - - - -
Class Variables[hide private]
-
-   - - assertFalse = unittest.TestCase.failIf
- Check that the expression is false. -
-

Inherited from unittest.case.TestCase: - longMessage, - maxDiff -

-

Inherited from unittest.case.TestCase (private): - _classSetupFailed, - _diffThreshold -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

tearDown(self) -

-
source code  -
- - Hook method for deconstructing the test fixture after testing it. -
-
Overrides: - unittest.case.TestCase.tearDown -
(inherited documentation)
- -
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.common_imports.LargeFileLike-class.html b/doc/html/api/lxml.tests.common_imports.LargeFileLike-class.html deleted file mode 100644 index 139e39d..0000000 --- a/doc/html/api/lxml.tests.common_imports.LargeFileLike-class.html +++ /dev/null @@ -1,194 +0,0 @@ - - - - - lxml.tests.common_imports.LargeFileLike - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module common_imports :: - Class LargeFileLike - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class LargeFileLike

source code

-
Known Subclasses:
-
- -
- -
- - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__init__(self, - charlen=100, - depth=4, - children=5) - source code - -
- -
-   - - - - - - -
iterelements(self, - depth) - source code - -
- -
-   - - - - - - -
read(self, - amount=None) - source code - -
- -
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.common_imports.LargeFileLikeUnicode-class.html b/doc/html/api/lxml.tests.common_imports.LargeFileLikeUnicode-class.html deleted file mode 100644 index fd471b6..0000000 --- a/doc/html/api/lxml.tests.common_imports.LargeFileLikeUnicode-class.html +++ /dev/null @@ -1,252 +0,0 @@ - - - - - lxml.tests.common_imports.LargeFileLikeUnicode - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module common_imports :: - Class LargeFileLikeUnicode - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class LargeFileLikeUnicode

source code

-
-LargeFileLike --+
-                |
-               LargeFileLikeUnicode
-
- -
- - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__init__(self, - charlen=100, - depth=4, - children=5) - source code - -
- -
-   - - - - - - -
iterelements(self, - depth) - source code - -
- -
-

Inherited from LargeFileLike: - read -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__init__(self, - charlen=100, - depth=4, - children=5) -
(Constructor) -

-
source code  -
- - -
-
Overrides: - LargeFileLike.__init__ -
-
-
-
- -
- -
- - -
-

iterelements(self, - depth) -

-
source code  -
- - -
-
Overrides: - LargeFileLike.iterelements -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.common_imports.SillyFileLike-class.html b/doc/html/api/lxml.tests.common_imports.SillyFileLike-class.html deleted file mode 100644 index 4ea25d9..0000000 --- a/doc/html/api/lxml.tests.common_imports.SillyFileLike-class.html +++ /dev/null @@ -1,168 +0,0 @@ - - - - - lxml.tests.common_imports.SillyFileLike - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module common_imports :: - Class SillyFileLike - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class SillyFileLike

source code

- - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__init__(self, - xml_data='<foo><bar/></foo>') - source code - -
- -
-   - - - - - - -
read(self, - amount=None) - source code - -
- -
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.common_imports.skipif-class.html b/doc/html/api/lxml.tests.common_imports.skipif-class.html deleted file mode 100644 index 7b67b35..0000000 --- a/doc/html/api/lxml.tests.common_imports.skipif-class.html +++ /dev/null @@ -1,266 +0,0 @@ - - - - - lxml.tests.common_imports.skipif - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module common_imports :: - Class skipif - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class skipif

source code

-
-object --+
-         |
-        skipif
-
- -
-Using a class because a function would bind into a method when used in classes - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__call__(self, - func, - *args) - source code - -
- -
-   - - - - - - -
__init__(self, - *args)
- x.__init__(...) initializes x; see help(type(x)) for signature
- source code - -
- -
-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __new__, - __reduce__, - __reduce_ex__, - __repr__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__init__(self, - *args) -
(Constructor) -

-
source code  -
- - x.__init__(...) initializes x; see help(type(x)) for signature -
-
Overrides: - object.__init__ -
(inherited documentation)
- -
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.test_builder-module.html b/doc/html/api/lxml.tests.test_builder-module.html deleted file mode 100644 index 9d751ec..0000000 --- a/doc/html/api/lxml.tests.test_builder-module.html +++ /dev/null @@ -1,243 +0,0 @@ - - - - - lxml.tests.test_builder - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module test_builder - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Module test_builder

source code

- - - - - - - - - -
- - - - - -
Classes[hide private]
-
-   - - BuilderTestCase -
- - - - - - - - - -
- - - - - -
Functions[hide private]
-
-   - - - - - - -
test_suite() - source code - -
- -
- - - - - - - - - - - - -
- - - - - -
Variables[hide private]
-
-   - - this_dir = '/home/sbehnel/source/Python/lxml/lxml-release/src/... -
-   - - __package__ = 'lxml.tests' -
- - - - - - -
- - - - - -
Variables Details[hide private]
-
- -
- -
-

this_dir

- -
-
-
-
Value:
-
-'/home/sbehnel/source/Python/lxml/lxml-release/src/lxml/tests'
-
-
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.test_builder-pysrc.html b/doc/html/api/lxml.tests.test_builder-pysrc.html deleted file mode 100644 index 51e0c05..0000000 --- a/doc/html/api/lxml.tests.test_builder-pysrc.html +++ /dev/null @@ -1,241 +0,0 @@ - - - - - lxml.tests.test_builder - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module test_builder - - - - - - -
[hide private]
[frames] | no frames]
-
-

Source Code for Module lxml.tests.test_builder

-
- 1  # -*- coding: utf-8 -*- 
- 2  import unittest 
- 3   
- 4  """ 
- 5  Tests that ElementMaker works properly. 
- 6  """ 
- 7   
- 8  import sys, os.path 
- 9  from lxml import etree 
-10  from lxml.builder import E 
-11   
-12  this_dir = os.path.dirname(__file__) 
-13  if this_dir not in sys.path: 
-14      sys.path.insert(0, this_dir) # needed for Py3 
-15   
-16  from common_imports import HelperTestCase, BytesIO, _bytes 
-17   
-
18 -class BuilderTestCase(HelperTestCase): -
19 etree = etree -20 -
22 class StringSubclass(str): pass -23 wrapped = E.b(StringSubclass('Hello')) -24 self.assertEquals(_bytes('<b>Hello</b>'), etree.tostring(wrapped)) -
25 -
26 - def test_unknown_type_raises(self): -
27 class UnknownType(object): -28 pass -
29 self.assertRaises(TypeError, E.b, UnknownType()) -
30 -31 -
32 -def test_suite(): -
33 suite = unittest.TestSuite() -34 suite.addTests([unittest.makeSuite(BuilderTestCase)]) -35 return suite -
36 -37 if __name__ == '__main__': -38 print('to test use test.py %s' % __file__) -39 -
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.test_builder.BuilderTestCase-class.html b/doc/html/api/lxml.tests.test_builder.BuilderTestCase-class.html deleted file mode 100644 index ea8efa1..0000000 --- a/doc/html/api/lxml.tests.test_builder.BuilderTestCase-class.html +++ /dev/null @@ -1,422 +0,0 @@ - - - - - lxml.tests.test_builder.BuilderTestCase - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module test_builder :: - Class BuilderTestCase - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class BuilderTestCase

source code

-
-               object --+        
-                        |        
-   unittest.case.TestCase --+    
-                            |    
-common_imports.HelperTestCase --+
-                                |
-                               BuilderTestCase
-
- -
- - - - - - - - - -
- - - - - -
Nested Classes[hide private]
-
-

Inherited from unittest.case.TestCase: - failureException -

-
- - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
test_build_from_xpath_result(self) - source code - -
- -
-   - - - - - - -
test_unknown_type_raises(self) - source code - -
- -
-

Inherited from common_imports.HelperTestCase: - parse, - tearDown -

-

Inherited from common_imports.HelperTestCase (private): - _rootstring -

-

Inherited from unittest.case.TestCase: - __call__, - __eq__, - __hash__, - __init__, - __ne__, - __repr__, - __str__, - addCleanup, - addTypeEqualityFunc, - assertAlmostEqual, - assertAlmostEquals, - assertDictContainsSubset, - assertDictEqual, - assertEqual, - assertEquals, - assertGreater, - assertGreaterEqual, - assertIn, - assertIs, - assertIsInstance, - assertIsNone, - assertIsNot, - assertIsNotNone, - assertItemsEqual, - assertLess, - assertLessEqual, - assertListEqual, - assertMultiLineEqual, - assertNotAlmostEqual, - assertNotAlmostEquals, - assertNotEqual, - assertNotEquals, - assertNotIn, - assertNotIsInstance, - assertNotRegexpMatches, - assertRaises, - assertRaisesRegexp, - assertRegexpMatches, - assertSequenceEqual, - assertSetEqual, - assertTrue, - assertTupleEqual, - assert_, - countTestCases, - debug, - defaultTestResult, - doCleanups, - fail, - failIf, - failIfAlmostEqual, - failIfEqual, - failUnless, - failUnlessAlmostEqual, - failUnlessEqual, - failUnlessRaises, - id, - run, - setUp, - shortDescription, - skipTest -

-

Inherited from unittest.case.TestCase (private): - _addSkip, - _baseAssertEqual, - _deprecate, - _formatMessage, - _getAssertEqualityFunc, - _truncateMessage -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __new__, - __reduce__, - __reduce_ex__, - __setattr__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Class Methods[hide private]
-
-

Inherited from unittest.case.TestCase: - setUpClass, - tearDownClass -

-
- - - - - - - - - - - - -
- - - - - -
Class Variables[hide private]
-
-   - - etree
- The lxml.etree module implements the extended ElementTree API -for XML. -
-

Inherited from common_imports.HelperTestCase: - assertFalse -

-

Inherited from unittest.case.TestCase: - longMessage, - maxDiff -

-

Inherited from unittest.case.TestCase (private): - _classSetupFailed, - _diffThreshold -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Class Variable Details[hide private]
-
- -
- -
-

etree

- The lxml.etree module implements the extended ElementTree API -for XML. -
-
-
-
Value:
-
lxml.etree
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.test_classlookup-module.html b/doc/html/api/lxml.tests.test_classlookup-module.html deleted file mode 100644 index f81b59d..0000000 --- a/doc/html/api/lxml.tests.test_classlookup-module.html +++ /dev/null @@ -1,283 +0,0 @@ - - - - - lxml.tests.test_classlookup - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module test_classlookup - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Module test_classlookup

source code

-Tests for different Element class lookup mechanisms. - - - - - - - - - - -
- - - - - -
Classes[hide private]
-
-   - - ClassLookupTestCase
- Test cases for different Element class lookup mechanisms. -
- - - - - - - - - -
- - - - - -
Functions[hide private]
-
-   - - - - - - -
test_suite() - source code - -
- -
- - - - - - - - - - - - - - - -
- - - - - -
Variables[hide private]
-
-   - - this_dir = '/home/sbehnel/source/Python/lxml/lxml-release/src/... -
-   - - xml_str = '<root xmlns="myNS" xmlns:other="otherNS">\n <c1 a1... -
-   - - __package__ = 'lxml.tests' -
- - - - - - -
- - - - - -
Variables Details[hide private]
-
- -
- -
-

this_dir

- -
-
-
-
Value:
-
-'/home/sbehnel/source/Python/lxml/lxml-release/src/lxml/tests'
-
-
-
-
-
- -
- -
-

xml_str

- -
-
-
-
Value:
-
-'''<root xmlns="myNS" xmlns:other="otherNS">
-  <c1 a1="A1" a2="A2" other:a3="A3">
-    <c2 a1="C2">0</c2>
-    <c2>1</c2>
-    <other:c2>2</other:c2>
-  </c1>
-</root>'''
-
-
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.test_classlookup-pysrc.html b/doc/html/api/lxml.tests.test_classlookup-pysrc.html deleted file mode 100644 index 197f3db..0000000 --- a/doc/html/api/lxml.tests.test_classlookup-pysrc.html +++ /dev/null @@ -1,640 +0,0 @@ - - - - - lxml.tests.test_classlookup - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module test_classlookup - - - - - - -
[hide private]
[frames] | no frames]
-
-

Source Code for Module lxml.tests.test_classlookup

-
-  1  # -*- coding: utf-8 -*- 
-  2   
-  3  """ 
-  4  Tests for different Element class lookup mechanisms. 
-  5  """ 
-  6   
-  7   
-  8  import unittest, doctest, operator, os.path, sys 
-  9   
- 10  this_dir = os.path.dirname(__file__) 
- 11  if this_dir not in sys.path: 
- 12      sys.path.insert(0, this_dir) # needed for Py3 
- 13   
- 14  from common_imports import etree, HelperTestCase, SillyFileLike, fileInTestDir 
- 15  from common_imports import canonicalize, _bytes, _str, BytesIO, StringIO 
- 16   
- 17  xml_str = _bytes('''\ 
- 18  <root xmlns="myNS" xmlns:other="otherNS"> 
- 19    <c1 a1="A1" a2="A2" other:a3="A3"> 
- 20      <c2 a1="C2">0</c2> 
- 21      <c2>1</c2> 
- 22      <other:c2>2</other:c2> 
- 23    </c1> 
- 24  </root>''') 
- 25   
-
26 -class ClassLookupTestCase(HelperTestCase): -
27 """Test cases for different Element class lookup mechanisms. - 28 """ - 29 etree = etree - 30 -
31 - def tearDown(self): -
34 -
35 - def test_namespace_lookup(self): -
36 class TestElement(etree.ElementBase): - 37 FIND_ME = "namespace class" -
38 - 39 lookup = etree.ElementNamespaceClassLookup() - 40 etree.set_element_class_lookup(lookup) - 41 - 42 ns = lookup.get_namespace("myNS") - 43 ns[None] = TestElement - 44 - 45 root = etree.XML(xml_str) - 46 self.assertEquals(root.FIND_ME, - 47 TestElement.FIND_ME) - 48 self.assertEquals(root[0].FIND_ME, - 49 TestElement.FIND_ME) - 50 self.assertFalse(hasattr(root[0][-1], 'FIND_ME')) -
51 -
52 - def test_default_class_lookup(self): -
53 class TestElement(etree.ElementBase): - 54 FIND_ME = "default element" -
55 class TestComment(etree.CommentBase): - 56 FIND_ME = "default comment" - 57 class TestPI(etree.PIBase): - 58 FIND_ME = "default pi" - 59 - 60 parser = etree.XMLParser() - 61 - 62 lookup = etree.ElementDefaultClassLookup( - 63 element=TestElement, comment=TestComment, pi=TestPI) - 64 parser.set_element_class_lookup(lookup) - 65 - 66 root = etree.XML(_bytes("""<?xml version='1.0'?> - 67 <root> - 68 <?myPI?> - 69 <!-- hi --> - 70 </root> - 71 """), parser) - 72 - 73 self.assertEquals("default element", root.FIND_ME) - 74 self.assertEquals("default pi", root[0].FIND_ME) - 75 self.assertEquals("default comment", root[1].FIND_ME) - 76 -
78 class TestElement(etree.ElementBase): - 79 FIND_ME = "attribute_based" -
80 - 81 class_dict = {"A1" : TestElement} - 82 - 83 lookup = etree.AttributeBasedElementClassLookup( - 84 "a1", class_dict) - 85 etree.set_element_class_lookup(lookup) - 86 - 87 root = etree.XML(xml_str) - 88 self.assertFalse(hasattr(root, 'FIND_ME')) - 89 self.assertEquals(root[0].FIND_ME, - 90 TestElement.FIND_ME) - 91 self.assertFalse(hasattr(root[0][0], 'FIND_ME')) - 92 -
93 - def test_custom_lookup(self): -
94 class TestElement(etree.ElementBase): - 95 FIND_ME = "custom" -
96 - 97 class MyLookup(etree.CustomElementClassLookup): - 98 def lookup(self, t, d, ns, name): - 99 if name == 'c1': -100 return TestElement -101 -102 etree.set_element_class_lookup( MyLookup() ) -103 -104 root = etree.XML(xml_str) -105 self.assertFalse(hasattr(root, 'FIND_ME')) -106 self.assertEquals(root[0].FIND_ME, -107 TestElement.FIND_ME) -108 self.assertFalse(hasattr(root[0][1], 'FIND_ME')) -109 -
111 class TestElement1(etree.ElementBase): -112 FIND_ME = "custom" -
113 -114 class TestElement2(etree.ElementBase): -115 FIND_ME = "nsclasses" -116 -117 class MyLookup(etree.CustomElementClassLookup): -118 def lookup(self, t, d, ns, name): -119 if name == 'c1': -120 return TestElement1 -121 -122 lookup = etree.ElementNamespaceClassLookup( MyLookup() ) -123 etree.set_element_class_lookup(lookup) -124 -125 ns = lookup.get_namespace("otherNS") -126 ns[None] = TestElement2 -127 -128 root = etree.XML(xml_str) -129 self.assertFalse(hasattr(root, 'FIND_ME')) -130 self.assertEquals(root[0].FIND_ME, -131 TestElement1.FIND_ME) -132 self.assertFalse(hasattr(root[0][1], 'FIND_ME')) -133 self.assertEquals(root[0][-1].FIND_ME, -134 TestElement2.FIND_ME) -135 -
136 - def test_parser_based_lookup(self): -
137 class TestElement(etree.ElementBase): -138 FIND_ME = "parser_based" -
139 -140 lookup = etree.ParserBasedElementClassLookup() -141 etree.set_element_class_lookup(lookup) -142 -143 class MyLookup(etree.CustomElementClassLookup): -144 def lookup(self, t, d, ns, name): -145 return TestElement -146 -147 parser = etree.XMLParser() -148 parser.set_element_class_lookup( MyLookup() ) -149 -150 root = etree.parse(BytesIO(xml_str), parser).getroot() -151 self.assertEquals(root.FIND_ME, -152 TestElement.FIND_ME) -153 self.assertEquals(root[0].FIND_ME, -154 TestElement.FIND_ME) -155 -156 root = etree.parse(BytesIO(xml_str)).getroot() -157 self.assertFalse(hasattr(root, 'FIND_ME')) -158 self.assertFalse(hasattr(root[0], 'FIND_ME')) -159 -
160 - def test_class_lookup_reentry(self): -
161 XML = self.etree.XML -162 -163 class TestElement(etree.ElementBase): -164 FIND_ME = "here" -
165 -166 root = None -167 class MyLookup(etree.CustomElementClassLookup): -168 el = None -169 def lookup(self, t, d, ns, name): -170 if root is not None: # not in the parser -171 if self.el is None and name == "a": -172 self.el = [] -173 self.el.append(root.find(name)) -174 return TestElement -175 -176 parser = self.etree.XMLParser() -177 parser.set_element_class_lookup(MyLookup()) -178 -179 root = XML(_bytes('<root><a>A</a><b xmlns="test">B</b></root>'), -180 parser) -181 -182 a = root[0] -183 self.assertEquals(a.tag, "a") -184 self.assertEquals(root[0].tag, "a") -185 del a -186 self.assertEquals(root[0].tag, "a") -187 -
189 class Lookup(etree.CustomElementClassLookup): -190 def __init__(self): -191 # no super call here, so no fallback is set -192 pass -
193 -194 def lookup(self, node_type, document, namespace, name): -195 return Foo -196 -197 class Foo(etree.ElementBase): -198 def custom(self): -199 return "test" -200 -201 parser = self.etree.XMLParser() -202 parser.set_element_class_lookup( Lookup() ) -203 -204 root = etree.XML('<foo/>', parser) -205 -206 self.assertEquals("test", root.custom()) -207 -208 -
209 -def test_suite(): -
210 suite = unittest.TestSuite() -211 suite.addTests([unittest.makeSuite(ClassLookupTestCase)]) -212 return suite -
213 -214 if __name__ == '__main__': -215 print('to test use test.py %s' % __file__) -216 -
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.test_classlookup.ClassLookupTestCase-class.html b/doc/html/api/lxml.tests.test_classlookup.ClassLookupTestCase-class.html deleted file mode 100644 index 0645f36..0000000 --- a/doc/html/api/lxml.tests.test_classlookup.ClassLookupTestCase-class.html +++ /dev/null @@ -1,578 +0,0 @@ - - - - - lxml.tests.test_classlookup.ClassLookupTestCase - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module test_classlookup :: - Class ClassLookupTestCase - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class ClassLookupTestCase

source code

-
-               object --+        
-                        |        
-   unittest.case.TestCase --+    
-                            |    
-common_imports.HelperTestCase --+
-                                |
-                               ClassLookupTestCase
-
- -
-Test cases for different Element class lookup mechanisms. - - - - - - - - - - -
- - - - - -
Nested Classes[hide private]
-
-

Inherited from unittest.case.TestCase: - failureException -

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
tearDown(self)
- Hook method for deconstructing the test fixture after testing it.
- source code - -
- -
-   - - - - - - -
test_namespace_lookup(self) - source code - -
- -
-   - - - - - - -
test_default_class_lookup(self) - source code - -
- -
-   - - - - - - -
test_attribute_based_lookup(self) - source code - -
- -
-   - - - - - - -
test_custom_lookup(self) - source code - -
- -
-   - - - - - - -
test_custom_lookup_ns_fallback(self) - source code - -
- -
-   - - - - - - -
test_parser_based_lookup(self) - source code - -
- -
-   - - - - - - -
test_class_lookup_reentry(self) - source code - -
- -
-   - - - - - - -
test_lookup_without_fallback(self) - source code - -
- -
-

Inherited from common_imports.HelperTestCase: - parse -

-

Inherited from common_imports.HelperTestCase (private): - _rootstring -

-

Inherited from unittest.case.TestCase: - __call__, - __eq__, - __hash__, - __init__, - __ne__, - __repr__, - __str__, - addCleanup, - addTypeEqualityFunc, - assertAlmostEqual, - assertAlmostEquals, - assertDictContainsSubset, - assertDictEqual, - assertEqual, - assertEquals, - assertGreater, - assertGreaterEqual, - assertIn, - assertIs, - assertIsInstance, - assertIsNone, - assertIsNot, - assertIsNotNone, - assertItemsEqual, - assertLess, - assertLessEqual, - assertListEqual, - assertMultiLineEqual, - assertNotAlmostEqual, - assertNotAlmostEquals, - assertNotEqual, - assertNotEquals, - assertNotIn, - assertNotIsInstance, - assertNotRegexpMatches, - assertRaises, - assertRaisesRegexp, - assertRegexpMatches, - assertSequenceEqual, - assertSetEqual, - assertTrue, - assertTupleEqual, - assert_, - countTestCases, - debug, - defaultTestResult, - doCleanups, - fail, - failIf, - failIfAlmostEqual, - failIfEqual, - failUnless, - failUnlessAlmostEqual, - failUnlessEqual, - failUnlessRaises, - id, - run, - setUp, - shortDescription, - skipTest -

-

Inherited from unittest.case.TestCase (private): - _addSkip, - _baseAssertEqual, - _deprecate, - _formatMessage, - _getAssertEqualityFunc, - _truncateMessage -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __new__, - __reduce__, - __reduce_ex__, - __setattr__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Class Methods[hide private]
-
-

Inherited from unittest.case.TestCase: - setUpClass, - tearDownClass -

-
- - - - - - - - - - - - -
- - - - - -
Class Variables[hide private]
-
-   - - etree
- The lxml.etree module implements the extended ElementTree API -for XML. -
-

Inherited from common_imports.HelperTestCase: - assertFalse -

-

Inherited from unittest.case.TestCase: - longMessage, - maxDiff -

-

Inherited from unittest.case.TestCase (private): - _classSetupFailed, - _diffThreshold -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

tearDown(self) -

-
source code  -
- - Hook method for deconstructing the test fixture after testing it. -
-
Overrides: - unittest.case.TestCase.tearDown -
(inherited documentation)
- -
-
-
-
- - - - - - -
- - - - - -
Class Variable Details[hide private]
-
- -
- -
-

etree

- The lxml.etree module implements the extended ElementTree API -for XML. -
-
-
-
Value:
-
lxml.etree
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.test_css-module.html b/doc/html/api/lxml.tests.test_css-module.html deleted file mode 100644 index fc845c5..0000000 --- a/doc/html/api/lxml.tests.test_css-module.html +++ /dev/null @@ -1,253 +0,0 @@ - - - - - lxml.tests.test_css - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module test_css - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Module test_css

source code

- - - - - - - - - -
- - - - - -
Classes[hide private]
-
-   - - CSSTestCase -
- - - - - - - - - -
- - - - - -
Functions[hide private]
-
-   - - - - - - -
test_suite() - source code - -
- -
- - - - - - - - - - - - -
- - - - - -
Variables[hide private]
-
-   - - HTML = '\n<div>\n <a href="foo">link</a>\n <a>anchor</a>\n</... -
-   - - __package__ = 'lxml.tests' -
- - - - - - -
- - - - - -
Variables Details[hide private]
-
- -
- -
-

HTML

- -
-
-
-
Value:
-
-'''
-<div>
-  <a href="foo">link</a>
-  <a>anchor</a>
-</div>
-'''
-
-
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.test_css-pysrc.html b/doc/html/api/lxml.tests.test_css-pysrc.html deleted file mode 100644 index 61bbf02..0000000 --- a/doc/html/api/lxml.tests.test_css-pysrc.html +++ /dev/null @@ -1,204 +0,0 @@ - - - - - lxml.tests.test_css - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module test_css - - - - - - -
[hide private]
[frames] | no frames]
-
-

Source Code for Module lxml.tests.test_css

-
- 1  import unittest 
- 2   
- 3  import lxml.html 
- 4   
- 5  from lxml.tests.common_imports import doctest, HelperTestCase 
- 6   
- 7   
- 8  HTML = ''' 
- 9  <div> 
-10    <a href="foo">link</a> 
-11    <a>anchor</a> 
-12  </div> 
-13  ''' 
-14   
-15   
-
16 -class CSSTestCase(HelperTestCase): -
17 -
18 - def test_cssselect(self): -
19 div, = lxml.html.fromstring(HTML).xpath('//div') -20 -21 def count(selector, expected_count, **kwargs): -22 result = div.cssselect(selector, **kwargs) -23 self.assertEqual(len(result), expected_count) -
24 -25 count('div', 1) -26 count('a', 2) -27 count('em', 0) -28 # Element names are case-insensitive in HTML -29 count('DIV', 1) -30 # ... but not in XHTML or XML -31 count('DIV', 0, translator='xhtml') -32 count('DIV', 0, translator='xml') -33 -34 # :contains() is case-insensitive in lxml -35 count(':contains("link")', 2) # div, a -36 count(':contains("LInk")', 2) -37 # Whatever the document language -38 count(':contains("LInk")', 2, translator='xhtml') -39 count(':contains("LInk")', 2, translator='xml') -40 # ... but not in upstream cssselect -41 import cssselect -42 count(':contains("link")', 2, translator=cssselect.HTMLTranslator()) -43 count(':contains("LInk")', 0, translator=cssselect.HTMLTranslator()) -
44 -45 -
46 -def test_suite(): -
47 suite = unittest.TestSuite() -48 try: -49 import cssselect -50 except ImportError: -51 # no 'cssselect' installed -52 print("Skipping tests in lxml.cssselect - external cssselect package is not installed") -53 return suite -54 -55 import lxml.cssselect -56 suite.addTests(doctest.DocTestSuite(lxml.cssselect)) -57 suite.addTests([unittest.makeSuite(CSSTestCase)]) -58 return suite -
59 -
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.test_css.CSSTestCase-class.html b/doc/html/api/lxml.tests.test_css.CSSTestCase-class.html deleted file mode 100644 index e8afbf8..0000000 --- a/doc/html/api/lxml.tests.test_css.CSSTestCase-class.html +++ /dev/null @@ -1,362 +0,0 @@ - - - - - lxml.tests.test_css.CSSTestCase - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module test_css :: - Class CSSTestCase - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class CSSTestCase

source code

-
-               object --+        
-                        |        
-   unittest.case.TestCase --+    
-                            |    
-common_imports.HelperTestCase --+
-                                |
-                               CSSTestCase
-
- -
- - - - - - - - - -
- - - - - -
Nested Classes[hide private]
-
-

Inherited from unittest.case.TestCase: - failureException -

-
- - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
test_cssselect(self) - source code - -
- -
-

Inherited from common_imports.HelperTestCase: - parse, - tearDown -

-

Inherited from common_imports.HelperTestCase (private): - _rootstring -

-

Inherited from unittest.case.TestCase: - __call__, - __eq__, - __hash__, - __init__, - __ne__, - __repr__, - __str__, - addCleanup, - addTypeEqualityFunc, - assertAlmostEqual, - assertAlmostEquals, - assertDictContainsSubset, - assertDictEqual, - assertEqual, - assertEquals, - assertGreater, - assertGreaterEqual, - assertIn, - assertIs, - assertIsInstance, - assertIsNone, - assertIsNot, - assertIsNotNone, - assertItemsEqual, - assertLess, - assertLessEqual, - assertListEqual, - assertMultiLineEqual, - assertNotAlmostEqual, - assertNotAlmostEquals, - assertNotEqual, - assertNotEquals, - assertNotIn, - assertNotIsInstance, - assertNotRegexpMatches, - assertRaises, - assertRaisesRegexp, - assertRegexpMatches, - assertSequenceEqual, - assertSetEqual, - assertTrue, - assertTupleEqual, - assert_, - countTestCases, - debug, - defaultTestResult, - doCleanups, - fail, - failIf, - failIfAlmostEqual, - failIfEqual, - failUnless, - failUnlessAlmostEqual, - failUnlessEqual, - failUnlessRaises, - id, - run, - setUp, - shortDescription, - skipTest -

-

Inherited from unittest.case.TestCase (private): - _addSkip, - _baseAssertEqual, - _deprecate, - _formatMessage, - _getAssertEqualityFunc, - _truncateMessage -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __new__, - __reduce__, - __reduce_ex__, - __setattr__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Class Methods[hide private]
-
-

Inherited from unittest.case.TestCase: - setUpClass, - tearDownClass -

-
- - - - - - - - - -
- - - - - -
Class Variables[hide private]
-
-

Inherited from common_imports.HelperTestCase: - assertFalse -

-

Inherited from unittest.case.TestCase: - longMessage, - maxDiff -

-

Inherited from unittest.case.TestCase (private): - _classSetupFailed, - _diffThreshold -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.test_dtd-module.html b/doc/html/api/lxml.tests.test_dtd-module.html deleted file mode 100644 index 1a5c207..0000000 --- a/doc/html/api/lxml.tests.test_dtd-module.html +++ /dev/null @@ -1,245 +0,0 @@ - - - - - lxml.tests.test_dtd - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module test_dtd - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Module test_dtd

source code

-Test cases related to DTD parsing and validation - - - - - - - - - - -
- - - - - -
Classes[hide private]
-
-   - - ETreeDtdTestCase -
- - - - - - - - - -
- - - - - -
Functions[hide private]
-
-   - - - - - - -
test_suite() - source code - -
- -
- - - - - - - - - - - - -
- - - - - -
Variables[hide private]
-
-   - - this_dir = '/home/sbehnel/source/Python/lxml/lxml-release/src/... -
-   - - __package__ = 'lxml.tests' -
- - - - - - -
- - - - - -
Variables Details[hide private]
-
- -
- -
-

this_dir

- -
-
-
-
Value:
-
-'/home/sbehnel/source/Python/lxml/lxml-release/src/lxml/tests'
-
-
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.test_dtd-pysrc.html b/doc/html/api/lxml.tests.test_dtd-pysrc.html deleted file mode 100644 index a606bdc..0000000 --- a/doc/html/api/lxml.tests.test_dtd-pysrc.html +++ /dev/null @@ -1,666 +0,0 @@ - - - - - lxml.tests.test_dtd - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module test_dtd - - - - - - -
[hide private]
[frames] | no frames]
-
-

Source Code for Module lxml.tests.test_dtd

-
-  1  # -*- coding: utf-8 -*- 
-  2   
-  3  """ 
-  4  Test cases related to DTD parsing and validation 
-  5  """ 
-  6   
-  7  import unittest, sys, os.path 
-  8   
-  9  this_dir = os.path.dirname(__file__) 
- 10  if this_dir not in sys.path: 
- 11      sys.path.insert(0, this_dir) # needed for Py3 
- 12   
- 13  from common_imports import etree, StringIO, BytesIO, _bytes, doctest 
- 14  from common_imports import HelperTestCase, fileInTestDir, make_doctest, skipIf 
-
15 - 16 -class ETreeDtdTestCase(HelperTestCase): -
17 - def test_dtd(self): -
18 pass -
19 -
20 - def test_dtd_file(self): -
21 parse = etree.parse - 22 tree = parse(fileInTestDir("test.xml")) - 23 root = tree.getroot() - 24 - 25 dtd = etree.DTD(fileInTestDir("test.dtd")) - 26 self.assert_(dtd.validate(root)) -
27 -
28 - def test_dtd_stringio(self): -
29 root = etree.XML(_bytes("<b/>")) - 30 dtd = etree.DTD(BytesIO("<!ELEMENT b EMPTY>")) - 31 self.assert_(dtd.validate(root)) -
32 -
33 - def test_dtd_parse_invalid(self): -
34 fromstring = etree.fromstring - 35 parser = etree.XMLParser(dtd_validation=True) - 36 xml = _bytes('<!DOCTYPE b SYSTEM "%s"><b><a/></b>' % fileInTestDir("test.dtd")) - 37 self.assertRaises(etree.XMLSyntaxError, - 38 fromstring, xml, parser=parser) -
39 -
41 fromstring = etree.fromstring - 42 dtd_filename = fileInTestDir("__nosuch.dtd") - 43 parser = etree.XMLParser(dtd_validation=True) - 44 xml = _bytes('<!DOCTYPE b SYSTEM "%s"><b><a/></b>' % dtd_filename) - 45 self.assertRaises(etree.XMLSyntaxError, - 46 fromstring, xml, parser=parser) - 47 errors = None - 48 try: - 49 fromstring(xml, parser=parser) - 50 except etree.XMLSyntaxError: - 51 e = sys.exc_info()[1] - 52 errors = [ entry.message for entry in e.error_log - 53 if dtd_filename in entry.message ] - 54 self.assert_(errors) -
55 -
56 - def test_dtd_parse_valid(self): -
57 parser = etree.XMLParser(dtd_validation=True) - 58 xml = '<!DOCTYPE a SYSTEM "%s"><a><b/></a>' % fileInTestDir("test.dtd") - 59 root = etree.fromstring(xml, parser=parser) -
60 -
62 parser = etree.XMLParser(dtd_validation=True) - 63 xml = '<!DOCTYPE a SYSTEM "test.dtd"><a><b/></a>' - 64 root = etree.fromstring(xml, parser=parser, - 65 base_url=fileInTestDir("test.xml")) -
66 -
67 - def test_dtd_invalid(self): -
68 root = etree.XML("<b><a/></b>") - 69 dtd = etree.DTD(BytesIO("<!ELEMENT b EMPTY>")) - 70 self.assertRaises(etree.DocumentInvalid, dtd.assertValid, root) -
71 -
72 - def test_dtd_assertValid(self): -
73 root = etree.XML("<b><a/></b>") - 74 dtd = etree.DTD(BytesIO("<!ELEMENT b (a)><!ELEMENT a EMPTY>")) - 75 dtd.assertValid(root) -
76 -
77 - def test_dtd_internal(self): -
78 root = etree.XML(_bytes(''' - 79 <!DOCTYPE b SYSTEM "none" [ - 80 <!ELEMENT b (a)> - 81 <!ELEMENT a EMPTY> - 82 ]> - 83 <b><a/></b> - 84 ''')) - 85 dtd = etree.ElementTree(root).docinfo.internalDTD - 86 self.assert_(dtd) - 87 dtd.assertValid(root) -
88 -
89 - def test_dtd_internal_invalid(self): -
90 root = etree.XML(_bytes(''' - 91 <!DOCTYPE b SYSTEM "none" [ - 92 <!ELEMENT b (a)> - 93 <!ELEMENT a (c)> - 94 <!ELEMENT c EMPTY> - 95 ]> - 96 <b><a/></b> - 97 ''')) - 98 dtd = etree.ElementTree(root).docinfo.internalDTD - 99 self.assert_(dtd) -100 self.assertFalse(dtd.validate(root)) -
101 -
102 - def test_dtd_broken(self): -
103 self.assertRaises(etree.DTDParseError, etree.DTD, -104 BytesIO("<!ELEMENT b HONKEY>")) -
105 -
106 - def test_parse_file_dtd(self): -
107 parser = etree.XMLParser(attribute_defaults=True) -108 -109 tree = etree.parse(fileInTestDir('test.xml'), parser) -110 root = tree.getroot() -111 -112 self.assertEquals( -113 "valueA", -114 root.get("default")) -115 self.assertEquals( -116 "valueB", -117 root[0].get("default")) -
118 -119 @skipIf(etree.LIBXML_VERSION == (2,9,0), -120 "DTD loading is broken for incremental parsing in libxml2 2.9.0") -
121 - def test_iterparse_file_dtd(self): -
122 iterparse = etree.iterparse -123 iterator = iterparse(fileInTestDir("test.xml"), events=("start",), -124 attribute_defaults=True) -125 attributes = [ element.get("default") -126 for event, element in iterator ] -127 self.assertEquals( -128 ["valueA", "valueB"], -129 attributes) -
130 -
131 - def test_dtd_attrs(self): -
132 dtd = etree.DTD(fileInTestDir("test.dtd")) -133 -134 # Test DTD.system_url attribute -135 self.assert_(dtd.system_url.endswith("test.dtd")) -136 -137 # Test elements and their attributes -138 a = dtd.elements()[0] -139 self.assertEqual(a.name, "a") -140 self.assertEqual(a.type, "element") -141 self.assertEqual(a.content.name, "b") -142 self.assertEqual(a.content.type, "element") -143 self.assertEqual(a.content.occur, "once") -144 -145 aattr = a.attributes()[0] -146 self.assertEqual(aattr.name, "default") -147 self.assertEqual(aattr.type, "enumeration") -148 self.assertEqual(aattr.values(), ["valueA", "valueB"]) -149 self.assertEqual(aattr.default_value, "valueA") -150 -151 b = dtd.elements()[1] -152 self.assertEqual(b.name, "b") -153 self.assertEqual(b.type, "empty") -154 self.assertEqual(b.content, None) -155 -156 # Test entities and their attributes -157 c = dtd.entities()[0] -158 self.assertEqual(c.name, "c") -159 self.assertEqual(c.orig, "&#42;") -160 self.assertEqual(c.content, "*") -161 -162 # Test DTD.name attribute -163 root = etree.XML(_bytes(''' -164 <!DOCTYPE a SYSTEM "none" [ -165 <!ELEMENT a EMPTY> -166 ]> -167 <a/> -168 ''')) -169 dtd = etree.ElementTree(root).docinfo.internalDTD -170 self.assertEqual(dtd.name, "a") -171 -172 # Test DTD.name and DTD.systemID attributes -173 parser = etree.XMLParser(dtd_validation=True) -174 xml = '<!DOCTYPE a SYSTEM "test.dtd"><a><b/></a>' -175 root = etree.fromstring(xml, parser=parser, -176 base_url=fileInTestDir("test.xml")) -177 -178 dtd = root.getroottree().docinfo.internalDTD -179 self.assertEqual(dtd.name, "a") -180 self.assertEqual(dtd.system_url, "test.dtd") -
181 -
182 -183 -def test_suite(): -
184 suite = unittest.TestSuite() -185 suite.addTests([unittest.makeSuite(ETreeDtdTestCase)]) -186 suite.addTests( -187 [make_doctest('../../../doc/validation.txt')]) -188 return suite -
189 -190 if __name__ == '__main__': -191 print('to test use test.py %s' % __file__) -192 -
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.test_dtd.ETreeDtdTestCase-class.html b/doc/html/api/lxml.tests.test_dtd.ETreeDtdTestCase-class.html deleted file mode 100644 index 24836eb..0000000 --- a/doc/html/api/lxml.tests.test_dtd.ETreeDtdTestCase-class.html +++ /dev/null @@ -1,628 +0,0 @@ - - - - - lxml.tests.test_dtd.ETreeDtdTestCase - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module test_dtd :: - Class ETreeDtdTestCase - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class ETreeDtdTestCase

source code

-
-               object --+        
-                        |        
-   unittest.case.TestCase --+    
-                            |    
-common_imports.HelperTestCase --+
-                                |
-                               ETreeDtdTestCase
-
- -
- - - - - - - - - -
- - - - - -
Nested Classes[hide private]
-
-

Inherited from unittest.case.TestCase: - failureException -

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
test_dtd(self) - source code - -
- -
-   - - - - - - -
test_dtd_file(self) - source code - -
- -
-   - - - - - - -
test_dtd_stringio(self) - source code - -
- -
-   - - - - - - -
test_dtd_parse_invalid(self) - source code - -
- -
-   - - - - - - -
test_dtd_parse_file_not_found(self) - source code - -
- -
-   - - - - - - -
test_dtd_parse_valid(self) - source code - -
- -
-   - - - - - - -
test_dtd_parse_valid_relative(self) - source code - -
- -
-   - - - - - - -
test_dtd_invalid(self) - source code - -
- -
-   - - - - - - -
test_dtd_assertValid(self) - source code - -
- -
-   - - - - - - -
test_dtd_internal(self) - source code - -
- -
-   - - - - - - -
test_dtd_internal_invalid(self) - source code - -
- -
-   - - - - - - -
test_dtd_broken(self) - source code - -
- -
-   - - - - - - -
test_parse_file_dtd(self) - source code - -
- -
-   - - - - - - -
test_iterparse_file_dtd(self) - source code - -
- -
-   - - - - - - -
test_dtd_attrs(self) - source code - -
- -
-

Inherited from common_imports.HelperTestCase: - parse, - tearDown -

-

Inherited from common_imports.HelperTestCase (private): - _rootstring -

-

Inherited from unittest.case.TestCase: - __call__, - __eq__, - __hash__, - __init__, - __ne__, - __repr__, - __str__, - addCleanup, - addTypeEqualityFunc, - assertAlmostEqual, - assertAlmostEquals, - assertDictContainsSubset, - assertDictEqual, - assertEqual, - assertEquals, - assertGreater, - assertGreaterEqual, - assertIn, - assertIs, - assertIsInstance, - assertIsNone, - assertIsNot, - assertIsNotNone, - assertItemsEqual, - assertLess, - assertLessEqual, - assertListEqual, - assertMultiLineEqual, - assertNotAlmostEqual, - assertNotAlmostEquals, - assertNotEqual, - assertNotEquals, - assertNotIn, - assertNotIsInstance, - assertNotRegexpMatches, - assertRaises, - assertRaisesRegexp, - assertRegexpMatches, - assertSequenceEqual, - assertSetEqual, - assertTrue, - assertTupleEqual, - assert_, - countTestCases, - debug, - defaultTestResult, - doCleanups, - fail, - failIf, - failIfAlmostEqual, - failIfEqual, - failUnless, - failUnlessAlmostEqual, - failUnlessEqual, - failUnlessRaises, - id, - run, - setUp, - shortDescription, - skipTest -

-

Inherited from unittest.case.TestCase (private): - _addSkip, - _baseAssertEqual, - _deprecate, - _formatMessage, - _getAssertEqualityFunc, - _truncateMessage -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __new__, - __reduce__, - __reduce_ex__, - __setattr__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Class Methods[hide private]
-
-

Inherited from unittest.case.TestCase: - setUpClass, - tearDownClass -

-
- - - - - - - - - -
- - - - - -
Class Variables[hide private]
-
-

Inherited from common_imports.HelperTestCase: - assertFalse -

-

Inherited from unittest.case.TestCase: - longMessage, - maxDiff -

-

Inherited from unittest.case.TestCase (private): - _classSetupFailed, - _diffThreshold -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

test_iterparse_file_dtd(self) -

-
source code  -
- - -
-
Decorators:
-
    -
  • @skipIf(etree.LIBXML_VERSION== (2, 9, 0), "DTD loading is broken for incremental parsing in libxml2 2.9.0")
  • -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.test_elementtree-module.html b/doc/html/api/lxml.tests.test_elementtree-module.html deleted file mode 100644 index babe01c..0000000 --- a/doc/html/api/lxml.tests.test_elementtree-module.html +++ /dev/null @@ -1,293 +0,0 @@ - - - - - lxml.tests.test_elementtree - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module test_elementtree - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Module test_elementtree

source code

-

Tests for the ElementTree API

-

Only test cases that apply equally well to etree and ElementTree -belong here. Note that there is a second test module called test_io.py -for IO related test cases.

- - - - - - - - - - - - - - - - - - - -
- - - - - -
Classes[hide private]
-
-   - - _ETreeTestCaseBase -
-   - - ETreeTestCase -
-   - - ElementTreeTestCase -
-   - - CElementTreeTestCase -
- - - - - - - - - - - - -
- - - - - -
Functions[hide private]
-
-   - - - - - - -
reversed(seq) - source code - -
- -
-   - - - - - - -
test_suite() - source code - -
- -
- - - - - - - - - - - - - - - -
- - - - - -
Variables[hide private]
-
-   - - this_dir = '/home/sbehnel/source/Python/lxml/lxml-release/src/... -
-   - - cElementTree = None
- hash(x) -
-   - - __package__ = 'lxml.tests' -
- - - - - - -
- - - - - -
Variables Details[hide private]
-
- -
- -
-

this_dir

- -
-
-
-
Value:
-
-'/home/sbehnel/source/Python/lxml/lxml-release/src/lxml/tests'
-
-
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.test_elementtree-pysrc.html b/doc/html/api/lxml.tests.test_elementtree-pysrc.html deleted file mode 100644 index 1826555..0000000 --- a/doc/html/api/lxml.tests.test_elementtree-pysrc.html +++ /dev/null @@ -1,10197 +0,0 @@ - - - - - lxml.tests.test_elementtree - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module test_elementtree - - - - - - -
[hide private]
[frames] | no frames]
-
-

Source Code for Module lxml.tests.test_elementtree

-
-   1  # -*- coding: utf-8 -*- 
-   2   
-   3  """ 
-   4  Tests for the ElementTree API 
-   5   
-   6  Only test cases that apply equally well to etree and ElementTree 
-   7  belong here. Note that there is a second test module called test_io.py 
-   8  for IO related test cases. 
-   9  """ 
-  10   
-  11  import unittest 
-  12  import os, re, tempfile, copy, operator, gc, sys 
-  13   
-  14  this_dir = os.path.dirname(__file__) 
-  15  if this_dir not in sys.path: 
-  16      sys.path.insert(0, this_dir) # needed for Py3 
-  17   
-  18  from common_imports import StringIO, BytesIO, etree 
-  19  from common_imports import ElementTree, cElementTree, ET_VERSION, CET_VERSION 
-  20  from common_imports import filter_by_version, fileInTestDir, canonicalize, HelperTestCase 
-  21  from common_imports import _str, _bytes, unicode 
-  22   
-  23  if cElementTree is not None and (CET_VERSION <= (1,0,7) or sys.version_info >= (3,3)): 
-  24      cElementTree = None 
-  25   
-  26  if ElementTree is not None: 
-  27      print("Comparing with ElementTree %s" % getattr(ElementTree, "VERSION", "?")) 
-  28   
-  29  if cElementTree is not None: 
-  30      print("Comparing with cElementTree %s" % getattr(cElementTree, "VERSION", "?")) 
-  31   
-  32  try: 
-  33      reversed 
-  34  except NameError: 
-  35      # Python 2.3 
-
36 - def reversed(seq): -
37 seq = list(seq)[::-1] - 38 return seq -
39 -
40 -class _ETreeTestCaseBase(HelperTestCase): -
41 etree = None - 42 required_versions_ET = {} - 43 required_versions_cET = {} - 44 -
45 - def test_element(self): -
46 for i in range(10): - 47 e = self.etree.Element('foo') - 48 self.assertEquals(e.tag, 'foo') - 49 self.assertEquals(e.text, None) - 50 self.assertEquals(e.tail, None) -
51 -
52 - def test_simple(self): -
53 Element = self.etree.Element - 54 - 55 root = Element('root') - 56 root.append(Element('one')) - 57 root.append(Element('two')) - 58 root.append(Element('three')) - 59 self.assertEquals(3, len(root)) - 60 self.assertEquals('one', root[0].tag) - 61 self.assertEquals('two', root[1].tag) - 62 self.assertEquals('three', root[2].tag) - 63 self.assertRaises(IndexError, operator.getitem, root, 3) -
64 - 65 # test weird dictionary interaction leading to segfault previously -
67 root = self.etree.Element('root') - 68 self.assertEquals(root.tag, "root") - 69 add = self.etree.ElementTree(file=BytesIO('<foo>Foo</foo>')) - 70 self.assertEquals(add.getroot().tag, "foo") - 71 self.assertEquals(add.getroot().text, "Foo") - 72 root.append(self.etree.Element('baz')) - 73 self.assertEquals(root.tag, "root") - 74 self.assertEquals(root[0].tag, "baz") -
75 -
76 - def test_subelement(self): -
77 Element = self.etree.Element - 78 SubElement = self.etree.SubElement - 79 - 80 root = Element('root') - 81 SubElement(root, 'one') - 82 SubElement(root, 'two') - 83 SubElement(root, 'three') - 84 self.assertEquals(3, len(root)) - 85 self.assertEquals('one', root[0].tag) - 86 self.assertEquals('two', root[1].tag) - 87 self.assertEquals('three', root[2].tag) -
88 -
89 - def test_element_contains(self): -
90 Element = self.etree.Element - 91 SubElement = self.etree.SubElement - 92 - 93 root1 = Element('root') - 94 SubElement(root1, 'one') - 95 self.assert_(root1[0] in root1) - 96 - 97 root2 = Element('root') - 98 SubElement(root2, 'two') - 99 SubElement(root2, 'three') - 100 self.assert_(root2[0] in root2) - 101 self.assert_(root2[1] in root2) - 102 - 103 self.assertFalse(root1[0] in root2) - 104 self.assertFalse(root2[0] in root1) - 105 self.assertFalse(None in root2) -
106 -
108 ElementTree = self.etree.ElementTree - 109 - 110 f = BytesIO('<doc>Test<one>One</one></doc>') - 111 doc = ElementTree(file=f) - 112 root = doc.getroot() - 113 self.assertEquals(1, len(root)) - 114 self.assertEquals('one', root[0].tag) - 115 self.assertRaises(IndexError, operator.getitem, root, 1) -
116 -
118 ElementTree = self.etree.ElementTree - 119 - 120 f = BytesIO('<doc><one>One</one><two>Two</two>hm<three>Three</three></doc>') - 121 doc = ElementTree(file=f) - 122 root = doc.getroot() - 123 self.assertEquals(3, len(root)) - 124 self.assertEquals('one', root[0].tag) - 125 self.assertEquals('two', root[1].tag) - 126 self.assertEquals('three', root[2].tag) -
127 -
129 ElementTree = self.etree.ElementTree - 130 - 131 f = BytesIO('<doc>Test</doc>') - 132 doc = ElementTree(file=f) - 133 root = doc.getroot() - 134 self.assertEquals(0, len(root)) -
135 -
137 Element = self.etree.Element - 138 SubElement = self.etree.SubElement - 139 a = Element('a') - 140 b = SubElement(a, 'b') - 141 c = SubElement(a, 'c') - 142 d = SubElement(a, 'd') - 143 self.assertEquals(d, a[-1]) - 144 self.assertEquals(c, a[-2]) - 145 self.assertEquals(b, a[-3]) - 146 self.assertRaises(IndexError, operator.getitem, a, -4) - 147 a[-1] = e = Element('e') - 148 self.assertEquals(e, a[-1]) - 149 del a[-1] - 150 self.assertEquals(2, len(a)) -
151 -
152 - def test_elementtree(self): -
153 ElementTree = self.etree.ElementTree - 154 - 155 f = BytesIO('<doc><one>One</one><two>Two</two></doc>') - 156 doc = ElementTree(file=f) - 157 root = doc.getroot() - 158 self.assertEquals(2, len(root)) - 159 self.assertEquals('one', root[0].tag) - 160 self.assertEquals('two', root[1].tag) -
161 -
162 - def test_text(self): -
163 ElementTree = self.etree.ElementTree - 164 - 165 f = BytesIO('<doc>This is a text</doc>') - 166 doc = ElementTree(file=f) - 167 root = doc.getroot() - 168 self.assertEquals('This is a text', root.text) -
169 -
170 - def test_text_empty(self): -
171 ElementTree = self.etree.ElementTree - 172 - 173 f = BytesIO('<doc></doc>') - 174 doc = ElementTree(file=f) - 175 root = doc.getroot() - 176 self.assertEquals(None, root.text) -
177 -
178 - def test_text_other(self): -
179 ElementTree = self.etree.ElementTree - 180 - 181 f = BytesIO('<doc><one>One</one></doc>') - 182 doc = ElementTree(file=f) - 183 root = doc.getroot() - 184 self.assertEquals(None, root.text) - 185 self.assertEquals('One', root[0].text) -
186 -
187 - def test_text_escape_in(self): -
188 ElementTree = self.etree.ElementTree - 189 - 190 f = BytesIO('<doc>This is &gt; than a text</doc>') - 191 doc = ElementTree(file=f) - 192 root = doc.getroot() - 193 self.assertEquals('This is > than a text', root.text) -
194 -
195 - def test_text_escape_out(self): -
196 Element = self.etree.Element - 197 - 198 a = Element("a") - 199 a.text = "<>&" - 200 self.assertXML(_bytes('<a>&lt;&gt;&amp;</a>'), - 201 a) -
202 -
203 - def test_text_escape_tostring(self): -
204 tostring = self.etree.tostring - 205 Element = self.etree.Element - 206 - 207 a = Element("a") - 208 a.text = "<>&" - 209 self.assertEquals(_bytes('<a>&lt;&gt;&amp;</a>'), - 210 tostring(a)) -
211 -
212 - def test_text_str_subclass(self): -
213 Element = self.etree.Element - 214 - 215 class strTest(str): - 216 pass -
217 - 218 a = Element("a") - 219 a.text = strTest("text") - 220 self.assertXML(_bytes('<a>text</a>'), - 221 a) -
222 -
223 - def test_tail(self): -
224 ElementTree = self.etree.ElementTree - 225 - 226 f = BytesIO('<doc>This is <i>mixed</i> content.</doc>') - 227 doc = ElementTree(file=f) - 228 root = doc.getroot() - 229 self.assertEquals(1, len(root)) - 230 self.assertEquals('This is ', root.text) - 231 self.assertEquals(None, root.tail) - 232 self.assertEquals('mixed', root[0].text) - 233 self.assertEquals(' content.', root[0].tail) -
234 -
235 - def test_tail_str_subclass(self): -
236 Element = self.etree.Element - 237 SubElement = self.etree.SubElement - 238 - 239 class strTest(str): - 240 pass -
241 - 242 a = Element("a") - 243 SubElement(a, "t").tail = strTest("tail") - 244 self.assertXML(_bytes('<a><t></t>tail</a>'), - 245 a) - 246 -
247 - def _test_del_tail(self): -
248 # this is discouraged for ET compat, should not be tested... - 249 XML = self.etree.XML - 250 - 251 root = XML(_bytes('<doc>This is <i>mixed</i> content.</doc>')) - 252 self.assertEquals(1, len(root)) - 253 self.assertEquals('This is ', root.text) - 254 self.assertEquals(None, root.tail) - 255 self.assertEquals('mixed', root[0].text) - 256 self.assertEquals(' content.', root[0].tail) - 257 - 258 del root[0].tail - 259 - 260 self.assertEquals(1, len(root)) - 261 self.assertEquals('This is ', root.text) - 262 self.assertEquals(None, root.tail) - 263 self.assertEquals('mixed', root[0].text) - 264 self.assertEquals(None, root[0].tail) - 265 - 266 root[0].tail = "TAIL" - 267 - 268 self.assertEquals(1, len(root)) - 269 self.assertEquals('This is ', root.text) - 270 self.assertEquals(None, root.tail) - 271 self.assertEquals('mixed', root[0].text) - 272 self.assertEquals('TAIL', root[0].tail) -
273 -
274 - def test_ElementTree(self): -
275 Element = self.etree.Element - 276 ElementTree = self.etree.ElementTree - 277 - 278 el = Element('hoi') - 279 doc = ElementTree(el) - 280 root = doc.getroot() - 281 self.assertEquals(None, root.text) - 282 self.assertEquals('hoi', root.tag) -
283 -
284 - def test_attributes(self): -
285 ElementTree = self.etree.ElementTree - 286 - 287 f = BytesIO('<doc one="One" two="Two"/>') - 288 doc = ElementTree(file=f) - 289 root = doc.getroot() - 290 self.assertEquals('One', root.attrib['one']) - 291 self.assertEquals('Two', root.attrib['two']) - 292 self.assertRaises(KeyError, operator.getitem, root.attrib, 'three') -
293 -
294 - def test_attributes2(self): -
295 ElementTree = self.etree.ElementTree - 296 - 297 f = BytesIO('<doc one="One" two="Two"/>') - 298 doc = ElementTree(file=f) - 299 root = doc.getroot() - 300 self.assertEquals('One', root.attrib.get('one')) - 301 self.assertEquals('Two', root.attrib.get('two')) - 302 self.assertEquals(None, root.attrib.get('three')) - 303 self.assertEquals('foo', root.attrib.get('three', 'foo')) -
304 -
305 - def test_attributes3(self): -
306 ElementTree = self.etree.ElementTree - 307 - 308 f = BytesIO('<doc one="One" two="Two"/>') - 309 doc = ElementTree(file=f) - 310 root = doc.getroot() - 311 self.assertEquals('One', root.get('one')) - 312 self.assertEquals('Two', root.get('two')) - 313 self.assertEquals(None, root.get('three')) - 314 self.assertEquals('foo', root.get('three', 'foo')) -
315 -
316 - def test_attrib_clear(self): -
317 XML = self.etree.XML - 318 - 319 root = XML(_bytes('<doc one="One" two="Two"/>')) - 320 self.assertEquals('One', root.get('one')) - 321 self.assertEquals('Two', root.get('two')) - 322 root.attrib.clear() - 323 self.assertEquals(None, root.get('one')) - 324 self.assertEquals(None, root.get('two')) -
325 -
326 - def test_attrib_set_clear(self): -
327 Element = self.etree.Element - 328 - 329 root = Element("root", one="One") - 330 root.set("two", "Two") - 331 self.assertEquals('One', root.get('one')) - 332 self.assertEquals('Two', root.get('two')) - 333 root.attrib.clear() - 334 self.assertEquals(None, root.get('one')) - 335 self.assertEquals(None, root.get('two')) -
336 -
337 - def test_attrib_ns_clear(self): -
338 Element = self.etree.Element - 339 SubElement = self.etree.SubElement - 340 - 341 attribNS = '{http://foo/bar}x' - 342 - 343 parent = Element('parent') - 344 parent.set(attribNS, 'a') - 345 child = SubElement(parent, 'child') - 346 child.set(attribNS, 'b') - 347 - 348 self.assertEquals('a', parent.get(attribNS)) - 349 self.assertEquals('b', child.get(attribNS)) - 350 - 351 parent.clear() - 352 self.assertEquals(None, parent.get(attribNS)) - 353 self.assertEquals('b', child.get(attribNS)) -
354 -
355 - def test_attrib_pop(self): -
356 ElementTree = self.etree.ElementTree - 357 - 358 f = BytesIO('<doc one="One" two="Two"/>') - 359 doc = ElementTree(file=f) - 360 root = doc.getroot() - 361 self.assertEquals('One', root.attrib['one']) - 362 self.assertEquals('Two', root.attrib['two']) - 363 - 364 self.assertEquals('One', root.attrib.pop('one')) - 365 - 366 self.assertEquals(None, root.attrib.get('one')) - 367 self.assertEquals('Two', root.attrib['two']) -
368 -
369 - def test_attrib_pop_unknown(self): -
370 root = self.etree.XML(_bytes('<doc one="One" two="Two"/>')) - 371 self.assertRaises(KeyError, root.attrib.pop, 'NONE') - 372 - 373 self.assertEquals('One', root.attrib['one']) - 374 self.assertEquals('Two', root.attrib['two']) -
375 -
376 - def test_attrib_pop_default(self): -
377 root = self.etree.XML(_bytes('<doc one="One" two="Two"/>')) - 378 self.assertEquals('Three', root.attrib.pop('three', 'Three')) -
379 -
381 root = self.etree.XML(_bytes('<doc/>')) - 382 self.assertEquals('Three', root.attrib.pop('three', 'Three')) -
383 -
385 root = self.etree.XML(_bytes('<doc one="One" two="Two"/>')) - 386 self.assertRaises(TypeError, root.attrib.pop, 'One', None, None) -
387 -
388 - def test_attribute_update_dict(self): -
389 XML = self.etree.XML - 390 - 391 root = XML(_bytes('<doc alpha="Alpha" beta="Beta"/>')) - 392 items = list(root.attrib.items()) - 393 items.sort() - 394 self.assertEquals( - 395 [('alpha', 'Alpha'), ('beta', 'Beta')], - 396 items) - 397 - 398 root.attrib.update({'alpha' : 'test', 'gamma' : 'Gamma'}) - 399 - 400 items = list(root.attrib.items()) - 401 items.sort() - 402 self.assertEquals( - 403 [('alpha', 'test'), ('beta', 'Beta'), ('gamma', 'Gamma')], - 404 items) -
405 -
407 XML = self.etree.XML - 408 - 409 root = XML(_bytes('<doc alpha="Alpha" beta="Beta"/>')) - 410 items = list(root.attrib.items()) - 411 items.sort() - 412 self.assertEquals( - 413 [('alpha', 'Alpha'), ('beta', 'Beta')], - 414 items) - 415 - 416 root.attrib.update({'alpha' : 'test', 'gamma' : 'Gamma'}.items()) - 417 - 418 items = list(root.attrib.items()) - 419 items.sort() - 420 self.assertEquals( - 421 [('alpha', 'test'), ('beta', 'Beta'), ('gamma', 'Gamma')], - 422 items) -
423 -
424 - def test_attribute_update_iter(self): -
425 XML = self.etree.XML - 426 - 427 root = XML(_bytes('<doc alpha="Alpha" beta="Beta"/>')) - 428 items = list(root.attrib.items()) - 429 items.sort() - 430 self.assertEquals( - 431 [('alpha', 'Alpha'), ('beta', 'Beta')], - 432 items) - 433 - 434 root.attrib.update(iter({'alpha' : 'test', 'gamma' : 'Gamma'}.items())) - 435 - 436 items = list(root.attrib.items()) - 437 items.sort() - 438 self.assertEquals( - 439 [('alpha', 'test'), ('beta', 'Beta'), ('gamma', 'Gamma')], - 440 items) -
441 -
443 XML = self.etree.XML - 444 - 445 root = XML(_bytes('<doc alpha="Alpha" beta="Beta"/>')) - 446 items = list(root.attrib.items()) - 447 items.sort() - 448 self.assertEquals( - 449 [('alpha', 'Alpha'), ('beta', 'Beta')], - 450 items) - 451 - 452 other = XML(_bytes('<doc alpha="test" gamma="Gamma"/>')) - 453 root.attrib.update(other.attrib) - 454 - 455 items = list(root.attrib.items()) - 456 items.sort() - 457 self.assertEquals( - 458 [('alpha', 'test'), ('beta', 'Beta'), ('gamma', 'Gamma')], - 459 items) -
460 -
461 - def test_attribute_keys(self): -
462 XML = self.etree.XML - 463 - 464 root = XML(_bytes('<doc alpha="Alpha" beta="Beta" gamma="Gamma"/>')) - 465 keys = list(root.attrib.keys()) - 466 keys.sort() - 467 self.assertEquals(['alpha', 'beta', 'gamma'], keys) -
468 -
469 - def test_attribute_keys2(self): -
470 XML = self.etree.XML - 471 - 472 root = XML(_bytes('<doc alpha="Alpha" beta="Beta" gamma="Gamma"/>')) - 473 keys = list(root.keys()) - 474 keys.sort() - 475 self.assertEquals(['alpha', 'beta', 'gamma'], keys) -
476 -
477 - def test_attribute_items2(self): -
478 XML = self.etree.XML - 479 - 480 root = XML(_bytes('<doc alpha="Alpha" beta="Beta" gamma="Gamma"/>')) - 481 items = list(root.items()) - 482 items.sort() - 483 self.assertEquals( - 484 [('alpha','Alpha'), ('beta','Beta'), ('gamma','Gamma')], - 485 items) -
486 -
487 - def test_attribute_keys_ns(self): -
488 XML = self.etree.XML - 489 - 490 root = XML(_bytes('<foo bar="Bar" xmlns:ns="http://ns.codespeak.net/test" ns:baz="Baz" />')) - 491 keys = list(root.keys()) - 492 keys.sort() - 493 self.assertEquals(['bar', '{http://ns.codespeak.net/test}baz'], - 494 keys) -
495 -
496 - def test_attribute_values(self): -
497 XML = self.etree.XML - 498 - 499 root = XML(_bytes('<doc alpha="Alpha" beta="Beta" gamma="Gamma"/>')) - 500 values = list(root.attrib.values()) - 501 values.sort() - 502 self.assertEquals(['Alpha', 'Beta', 'Gamma'], values) -
503 -
504 - def test_attribute_values_ns(self): -
505 XML = self.etree.XML - 506 - 507 root = XML(_bytes('<foo bar="Bar" xmlns:ns="http://ns.codespeak.net/test" ns:baz="Baz" />')) - 508 values = list(root.attrib.values()) - 509 values.sort() - 510 self.assertEquals( - 511 ['Bar', 'Baz'], values) -
512 -
513 - def test_attribute_items(self): -
514 XML = self.etree.XML - 515 - 516 root = XML(_bytes('<doc alpha="Alpha" beta="Beta" gamma="Gamma"/>')) - 517 items = list(root.attrib.items()) - 518 items.sort() - 519 self.assertEquals([ - 520 ('alpha', 'Alpha'), - 521 ('beta', 'Beta'), - 522 ('gamma', 'Gamma'), - 523 ], - 524 items) -
525 -
526 - def test_attribute_items_ns(self): -
527 XML = self.etree.XML - 528 - 529 root = XML(_bytes('<foo bar="Bar" xmlns:ns="http://ns.codespeak.net/test" ns:baz="Baz" />')) - 530 items = list(root.attrib.items()) - 531 items.sort() - 532 self.assertEquals( - 533 [('bar', 'Bar'), ('{http://ns.codespeak.net/test}baz', 'Baz')], - 534 items) -
535 -
536 - def test_attribute_str(self): -
537 XML = self.etree.XML - 538 - 539 expected = "{'{http://ns.codespeak.net/test}baz': 'Baz', 'bar': 'Bar'}" - 540 alternative = "{'bar': 'Bar', '{http://ns.codespeak.net/test}baz': 'Baz'}" - 541 - 542 root = XML(_bytes('<foo bar="Bar" xmlns:ns="http://ns.codespeak.net/test" ns:baz="Baz" />')) - 543 try: - 544 self.assertEquals(expected, str(root.attrib)) - 545 except AssertionError: - 546 self.assertEquals(alternative, str(root.attrib)) -
547 -
548 - def test_attribute_contains(self): -
549 XML = self.etree.XML - 550 - 551 root = XML(_bytes('<foo bar="Bar" xmlns:ns="http://ns.codespeak.net/test" ns:baz="Baz" />')) - 552 self.assertEquals( - 553 True, 'bar' in root.attrib) - 554 self.assertEquals( - 555 False, 'baz' in root.attrib) - 556 self.assertEquals( - 557 False, 'hah' in root.attrib) - 558 self.assertEquals( - 559 True, - 560 '{http://ns.codespeak.net/test}baz' in root.attrib) -
561 -
562 - def test_attribute_set(self): -
563 Element = self.etree.Element - 564 - 565 root = Element("root") - 566 root.set("attr", "TEST") - 567 self.assertEquals("TEST", root.get("attr")) -
568 -
569 - def test_attribute_iterator(self): -
570 XML = self.etree.XML - 571 - 572 root = XML(_bytes('<doc alpha="Alpha" beta="Beta" gamma="Gamma" />')) - 573 result = [] - 574 for key in root.attrib: - 575 result.append(key) - 576 result.sort() - 577 self.assertEquals(['alpha', 'beta', 'gamma'], result) -
578 -
579 - def test_attribute_manipulation(self): -
580 Element = self.etree.Element - 581 - 582 a = Element('a') - 583 a.attrib['foo'] = 'Foo' - 584 a.attrib['bar'] = 'Bar' - 585 self.assertEquals('Foo', a.attrib['foo']) - 586 del a.attrib['foo'] - 587 self.assertRaises(KeyError, operator.getitem, a.attrib, 'foo') -
588 -
589 - def test_del_attribute_ns(self): -
590 Element = self.etree.Element - 591 - 592 a = Element('a') - 593 a.attrib['{http://a/}foo'] = 'Foo' - 594 a.attrib['{http://a/}bar'] = 'Bar' - 595 self.assertEquals(None, a.get('foo')) - 596 self.assertEquals('Foo', a.get('{http://a/}foo')) - 597 self.assertEquals('Foo', a.attrib['{http://a/}foo']) - 598 - 599 self.assertRaises(KeyError, operator.delitem, a.attrib, 'foo') - 600 self.assertEquals('Foo', a.attrib['{http://a/}foo']) - 601 - 602 del a.attrib['{http://a/}foo'] - 603 self.assertRaises(KeyError, operator.getitem, a.attrib, 'foo') -
604 -
606 XML = self.etree.XML - 607 - 608 a = XML(_bytes('<a xmlns:nsa="http://a/" nsa:foo="FooNS" foo="Foo" />')) - 609 - 610 self.assertEquals('Foo', a.attrib['foo']) - 611 self.assertEquals('FooNS', a.attrib['{http://a/}foo']) - 612 - 613 del a.attrib['foo'] - 614 self.assertEquals('FooNS', a.attrib['{http://a/}foo']) - 615 self.assertRaises(KeyError, operator.getitem, a.attrib, 'foo') - 616 self.assertRaises(KeyError, operator.delitem, a.attrib, 'foo') - 617 - 618 del a.attrib['{http://a/}foo'] - 619 self.assertRaises(KeyError, operator.getitem, a.attrib, '{http://a/}foo') - 620 self.assertRaises(KeyError, operator.getitem, a.attrib, 'foo') - 621 - 622 a = XML(_bytes('<a xmlns:nsa="http://a/" foo="Foo" nsa:foo="FooNS" />')) - 623 - 624 self.assertEquals('Foo', a.attrib['foo']) - 625 self.assertEquals('FooNS', a.attrib['{http://a/}foo']) - 626 - 627 del a.attrib['foo'] - 628 self.assertEquals('FooNS', a.attrib['{http://a/}foo']) - 629 self.assertRaises(KeyError, operator.getitem, a.attrib, 'foo') - 630 - 631 del a.attrib['{http://a/}foo'] - 632 self.assertRaises(KeyError, operator.getitem, a.attrib, '{http://a/}foo') - 633 self.assertRaises(KeyError, operator.getitem, a.attrib, 'foo') -
634 -
635 - def test_XML(self): -
636 XML = self.etree.XML - 637 - 638 root = XML(_bytes('<doc>This is a text.</doc>')) - 639 self.assertEquals(0, len(root)) - 640 self.assertEquals('This is a text.', root.text) -
641 -
642 - def test_XMLID(self): -
643 XMLID = self.etree.XMLID - 644 XML = self.etree.XML - 645 xml_text = _bytes(''' - 646 <document> - 647 <h1 id="chapter1">...</h1> - 648 <p id="note1" class="note">...</p> - 649 <p>Regular paragraph.</p> - 650 <p xml:id="xmlid">XML:ID paragraph.</p> - 651 <p id="warn1" class="warning">...</p> - 652 </document> - 653 ''') - 654 - 655 root, dic = XMLID(xml_text) - 656 root2 = XML(xml_text) - 657 self.assertEquals(self._writeElement(root), - 658 self._writeElement(root2)) - 659 expected = { - 660 "chapter1" : root[0], - 661 "note1" : root[1], - 662 "warn1" : root[4] - 663 } - 664 self.assertEquals(dic, expected) -
665 -
666 - def test_fromstring(self): -
667 fromstring = self.etree.fromstring - 668 - 669 root = fromstring('<doc>This is a text.</doc>') - 670 self.assertEquals(0, len(root)) - 671 self.assertEquals('This is a text.', root.text) -
672 - 673 required_versions_ET['test_fromstringlist'] = (1,3) -
674 - def test_fromstringlist(self): -
675 fromstringlist = self.etree.fromstringlist - 676 - 677 root = fromstringlist(["<do", "c>T", "hi", "s is", - 678 " a text.<", "/doc", ">"]) - 679 self.assertEquals(0, len(root)) - 680 self.assertEquals('This is a text.', root.text) -
681 - 682 required_versions_ET['test_fromstringlist_characters'] = (1,3) -
684 fromstringlist = self.etree.fromstringlist - 685 - 686 root = fromstringlist(list('<doc>This is a text.</doc>')) - 687 self.assertEquals(0, len(root)) - 688 self.assertEquals('This is a text.', root.text) -
689 - 690 required_versions_ET['test_fromstringlist_single'] = (1,3) -
691 - def test_fromstringlist_single(self): -
692 fromstringlist = self.etree.fromstringlist - 693 - 694 root = fromstringlist(['<doc>This is a text.</doc>']) - 695 self.assertEquals(0, len(root)) - 696 self.assertEquals('This is a text.', root.text) -
697 -
698 - def test_iselement(self): -
699 iselement = self.etree.iselement - 700 Element = self.etree.Element - 701 ElementTree = self.etree.ElementTree - 702 XML = self.etree.XML - 703 Comment = self.etree.Comment - 704 ProcessingInstruction = self.etree.ProcessingInstruction - 705 - 706 el = Element('hoi') - 707 self.assert_(iselement(el)) - 708 - 709 el2 = XML(_bytes('<foo/>')) - 710 self.assert_(iselement(el2)) - 711 - 712 tree = ElementTree(element=Element('dag')) - 713 self.assert_(not iselement(tree)) - 714 self.assert_(iselement(tree.getroot())) - 715 - 716 c = Comment('test') - 717 self.assert_(iselement(c)) - 718 - 719 p = ProcessingInstruction("test", "some text") - 720 self.assert_(iselement(p)) -
721 -
722 - def test_iteration(self): -
723 XML = self.etree.XML - 724 - 725 root = XML(_bytes('<doc><one/><two>Two</two>Hm<three/></doc>')) - 726 result = [] - 727 for el in root: - 728 result.append(el.tag) - 729 self.assertEquals(['one', 'two', 'three'], result) -
730 -
731 - def test_iteration_empty(self): -
732 XML = self.etree.XML - 733 - 734 root = XML(_bytes('<doc></doc>')) - 735 result = [] - 736 for el in root: - 737 result.append(el.tag) - 738 self.assertEquals([], result) -
739 -
740 - def test_iteration_text_only(self): -
741 XML = self.etree.XML - 742 - 743 root = XML(_bytes('<doc>Text</doc>')) - 744 result = [] - 745 for el in root: - 746 result.append(el.tag) - 747 self.assertEquals([], result) -
748 -
749 - def test_iteration_crash(self): -
750 # this would cause a crash in the past - 751 fromstring = self.etree.fromstring - 752 root = etree.fromstring('<html><p></p>x</html>') - 753 for elem in root: - 754 elem.tail = '' -
755 -
756 - def test_iteration_reversed(self): -
757 XML = self.etree.XML - 758 root = XML(_bytes('<doc><one/><two>Two</two>Hm<three/></doc>')) - 759 result = [] - 760 for el in reversed(root): - 761 result.append(el.tag) - 762 self.assertEquals(['three', 'two', 'one'], result) -
763 -
764 - def test_iteration_subelement(self): -
765 XML = self.etree.XML - 766 - 767 root = XML(_bytes('<doc><one/><two>Two</two>Hm<three/></doc>')) - 768 result = [] - 769 add = True - 770 for el in root: - 771 result.append(el.tag) - 772 if add: - 773 self.etree.SubElement(root, 'four') - 774 add = False - 775 self.assertEquals(['one', 'two', 'three', 'four'], result) -
776 -
777 - def test_iteration_del_child(self): -
778 XML = self.etree.XML - 779 - 780 root = XML(_bytes('<doc><one/><two>Two</two>Hm<three/></doc>')) - 781 result = [] - 782 for el in root: - 783 result.append(el.tag) - 784 del root[-1] - 785 self.assertEquals(['one', 'two'], result) -
786 -
787 - def test_iteration_double(self): -
788 XML = self.etree.XML - 789 - 790 root = XML(_bytes('<doc><one/><two/></doc>')) - 791 result = [] - 792 for el0 in root: - 793 result.append(el0.tag) - 794 for el1 in root: - 795 result.append(el1.tag) - 796 self.assertEquals(['one','one', 'two', 'two', 'one', 'two'], result) -
797 - 798 required_versions_ET['test_itertext'] = (1,3) -
799 - def test_itertext(self): -
800 # ET 1.3+ - 801 XML = self.etree.XML - 802 root = XML(_bytes("<root>RTEXT<a></a>ATAIL<b/><c>CTEXT</c>CTAIL</root>")) - 803 - 804 text = list(root.itertext()) - 805 self.assertEquals(["RTEXT", "ATAIL", "CTEXT", "CTAIL"], - 806 text) -
807 - 808 required_versions_ET['test_itertext_child'] = (1,3) -
809 - def test_itertext_child(self): -
810 # ET 1.3+ - 811 XML = self.etree.XML - 812 root = XML(_bytes("<root>RTEXT<a></a>ATAIL<b/><c>CTEXT</c>CTAIL</root>")) - 813 - 814 text = list(root[2].itertext()) - 815 self.assertEquals(["CTEXT"], - 816 text) -
817 -
818 - def test_findall(self): -
819 XML = self.etree.XML - 820 root = XML(_bytes('<a><b><c/></b><b/><c><b/></c></a>')) - 821 self.assertEquals(len(list(root.findall("c"))), 1) - 822 self.assertEquals(len(list(root.findall(".//c"))), 2) - 823 self.assertEquals(len(list(root.findall(".//b"))), 3) - 824 self.assertEquals(len(list(root.findall(".//b"))[0]), 1) - 825 self.assertEquals(len(list(root.findall(".//b"))[1]), 0) - 826 self.assertEquals(len(list(root.findall(".//b"))[2]), 0) -
827 -
828 - def test_findall_ns(self): -
829 XML = self.etree.XML - 830 root = XML(_bytes('<a xmlns:x="X" xmlns:y="Y"><x:b><c/></x:b><b/><c><x:b/><b/></c><b/></a>')) - 831 self.assertEquals(len(list(root.findall(".//{X}b"))), 2) - 832 self.assertEquals(len(list(root.findall(".//b"))), 3) - 833 self.assertEquals(len(list(root.findall("b"))), 2) -
834 -
836 Element = self.etree.Element - 837 - 838 el = Element('tag', foo='Foo', bar='Bar') - 839 self.assertEquals('Foo', el.attrib['foo']) - 840 self.assertEquals('Bar', el.attrib['bar']) -
841 -
843 Element = self.etree.Element - 844 - 845 el = Element('tag', {'foo':'Foo', 'bar':'Bar'}) - 846 self.assertEquals('Foo', el.attrib['foo']) - 847 self.assertEquals('Bar', el.attrib['bar']) -
848 -
850 Element = self.etree.Element - 851 - 852 el = Element('tag', {'{ns1}foo':'Foo', '{ns2}bar':'Bar'}) - 853 self.assertEquals('Foo', el.attrib['{ns1}foo']) - 854 self.assertEquals('Bar', el.attrib['{ns2}bar']) -
855 -
857 Element = self.etree.Element - 858 SubElement = self.etree.SubElement - 859 - 860 el = Element('tag') - 861 SubElement(el, 'foo', {'foo':'Foo'}, baz="Baz") - 862 self.assertEquals("Baz", el[0].attrib['baz']) - 863 self.assertEquals('Foo', el[0].attrib['foo']) -
864 -
866 Element = self.etree.Element - 867 SubElement = self.etree.SubElement - 868 - 869 el = Element('tag') - 870 SubElement(el, 'foo', {'{ns1}foo':'Foo', '{ns2}bar':'Bar'}) - 871 self.assertEquals('Foo', el[0].attrib['{ns1}foo']) - 872 self.assertEquals('Bar', el[0].attrib['{ns2}bar']) -
873 -
874 - def test_write(self): -
875 ElementTree = self.etree.ElementTree - 876 XML = self.etree.XML - 877 - 878 for i in range(10): - 879 f = BytesIO() - 880 root = XML(_bytes('<doc%s>This is a test.</doc%s>' % (i, i))) - 881 tree = ElementTree(element=root) - 882 tree.write(f) - 883 data = f.getvalue() - 884 self.assertEquals( - 885 _bytes('<doc%s>This is a test.</doc%s>' % (i, i)), - 886 canonicalize(data)) -
887 - 888 required_versions_ET['test_write_method_html'] = (1,3) -
889 - def test_write_method_html(self): -
890 ElementTree = self.etree.ElementTree - 891 Element = self.etree.Element - 892 SubElement = self.etree.SubElement - 893 - 894 html = Element('html') - 895 body = SubElement(html, 'body') - 896 p = SubElement(body, 'p') - 897 p.text = "html" - 898 SubElement(p, 'br').tail = "test" - 899 - 900 tree = ElementTree(element=html) - 901 f = BytesIO() - 902 tree.write(f, method="html") - 903 data = f.getvalue().replace(_bytes('\n'),_bytes('')) - 904 - 905 self.assertEquals(_bytes('<html><body><p>html<br>test</p></body></html>'), - 906 data) -
907 - 908 required_versions_ET['test_write_method_text'] = (1,3) -
909 - def test_write_method_text(self): -
910 ElementTree = self.etree.ElementTree - 911 Element = self.etree.Element - 912 SubElement = self.etree.SubElement - 913 - 914 a = Element('a') - 915 a.text = "A" - 916 a.tail = "tail" - 917 b = SubElement(a, 'b') - 918 b.text = "B" - 919 b.tail = "TAIL" - 920 c = SubElement(a, 'c') - 921 c.text = "C" - 922 - 923 tree = ElementTree(element=a) - 924 f = BytesIO() - 925 tree.write(f, method="text") - 926 data = f.getvalue() - 927 - 928 self.assertEquals(_bytes('ABTAILCtail'), - 929 data) -
930 -
931 - def test_write_fail(self): -
932 ElementTree = self.etree.ElementTree - 933 XML = self.etree.XML - 934 - 935 tree = ElementTree( XML(_bytes('<doc>This is a test.</doc>')) ) - 936 self.assertRaises(IOError, tree.write, - 937 "definitely////\\-\\nonexisting\\-\\////FILE") -
938 - 939 # this could trigger a crash, apparently because the document - 940 # reference was prematurely garbage collected -
941 - def test_crash(self): -
942 Element = self.etree.Element - 943 - 944 element = Element('tag') - 945 for i in range(10): - 946 element.attrib['key'] = 'value' - 947 value = element.attrib['key'] - 948 self.assertEquals(value, 'value') -
949 - 950 # from doctest; for some reason this caused crashes too -
952 Element = self.etree.Element - 953 ElementTree = self.etree.ElementTree - 954 - 955 f = BytesIO() - 956 for i in range(10): - 957 element = Element('tag%s' % i) - 958 self._check_element(element) - 959 tree = ElementTree(element) - 960 tree.write(f) - 961 self._check_element_tree(tree) -
962 -
963 - def test_subelement_reference(self): -
964 Element = self.etree.Element - 965 SubElement = self.etree.SubElement - 966 - 967 el = Element('foo') - 968 el2 = SubElement(el, 'bar') - 969 el3 = SubElement(el2, 'baz') - 970 - 971 al = Element('foo2') - 972 al2 = SubElement(al, 'bar2') - 973 al3 = SubElement(al2, 'baz2') - 974 - 975 # now move al2 into el - 976 el.append(al2) - 977 - 978 # now change al3 directly - 979 al3.text = 'baz2-modified' - 980 - 981 # it should have changed through this route too - 982 self.assertEquals( - 983 'baz2-modified', - 984 el[1][0].text) -
985 -
986 - def test_set_text(self): -
987 Element = self.etree.Element - 988 SubElement = self.etree.SubElement - 989 - 990 a = Element('a') - 991 b = SubElement(a, 'b') - 992 a.text = 'hoi' - 993 self.assertEquals( - 994 'hoi', - 995 a.text) - 996 self.assertEquals( - 997 'b', - 998 a[0].tag) -
999 -
1000 - def test_set_text2(self): -
1001 Element = self.etree.Element -1002 SubElement = self.etree.SubElement -1003 -1004 a = Element('a') -1005 a.text = 'hoi' -1006 b = SubElement(a ,'b') -1007 self.assertEquals( -1008 'hoi', -1009 a.text) -1010 self.assertEquals( -1011 'b', -1012 a[0].tag) -
1013 -
1014 - def test_set_text_none(self): -
1015 Element = self.etree.Element -1016 -1017 a = Element('a') -1018 -1019 a.text = 'foo' -1020 a.text = None -1021 -1022 self.assertEquals( -1023 None, -1024 a.text) -1025 self.assertXML(_bytes('<a></a>'), a) -
1026 -
1027 - def test_set_text_empty(self): -
1028 Element = self.etree.Element -1029 -1030 a = Element('a') -1031 self.assertEquals(None, a.text) -1032 -1033 a.text = '' -1034 self.assertEquals('', a.text) -1035 self.assertXML(_bytes('<a></a>'), a) -
1036 -
1037 - def test_tail1(self): -
1038 Element = self.etree.Element -1039 SubElement = self.etree.SubElement -1040 -1041 a = Element('a') -1042 a.tail = 'dag' -1043 self.assertEquals('dag', -1044 a.tail) -1045 b = SubElement(a, 'b') -1046 b.tail = 'hoi' -1047 self.assertEquals('hoi', -1048 b.tail) -1049 self.assertEquals('dag', -1050 a.tail) -
1051 -
1052 - def test_tail_append(self): -
1053 Element = self.etree.Element -1054 -1055 a = Element('a') -1056 b = Element('b') -1057 b.tail = 'b_tail' -1058 a.append(b) -1059 self.assertEquals('b_tail', -1060 b.tail) -
1061 -
1062 - def test_tail_set_twice(self): -
1063 Element = self.etree.Element -1064 SubElement = self.etree.SubElement -1065 -1066 a = Element('a') -1067 b = SubElement(a, 'b') -1068 b.tail = 'foo' -1069 b.tail = 'bar' -1070 self.assertEquals('bar', -1071 b.tail) -1072 self.assertXML(_bytes('<a><b></b>bar</a>'), a) -
1073 -
1074 - def test_tail_set_none(self): -
1075 Element = self.etree.Element -1076 a = Element('a') -1077 a.tail = 'foo' -1078 a.tail = None -1079 self.assertEquals( -1080 None, -1081 a.tail) -1082 self.assertXML(_bytes('<a></a>'), a) -
1083 -1084 required_versions_ET['test_extend'] = (1,3) -
1085 - def test_extend(self): -
1086 root = self.etree.Element('foo') -1087 for i in range(3): -1088 element = self.etree.SubElement(root, 'a%s' % i) -1089 element.text = "text%d" % i -1090 element.tail = "tail%d" % i -1091 -1092 elements = [] -1093 for i in range(3): -1094 new_element = self.etree.Element("test%s" % i) -1095 new_element.text = "TEXT%s" % i -1096 new_element.tail = "TAIL%s" % i -1097 elements.append(new_element) -1098 -1099 root.extend(elements) -1100 -1101 self.assertEquals( -1102 ["a0", "a1", "a2", "test0", "test1", "test2"], -1103 [ el.tag for el in root ]) -1104 self.assertEquals( -1105 ["text0", "text1", "text2", "TEXT0", "TEXT1", "TEXT2"], -1106 [ el.text for el in root ]) -1107 self.assertEquals( -1108 ["tail0", "tail1", "tail2", "TAIL0", "TAIL1", "TAIL2"], -1109 [ el.tail for el in root ]) -
1110 -
1111 - def test_comment(self): -
1112 Element = self.etree.Element -1113 SubElement = self.etree.SubElement -1114 Comment = self.etree.Comment -1115 -1116 a = Element('a') -1117 a.append(Comment('foo')) -1118 self.assertEquals(a[0].tag, Comment) -1119 self.assertEquals(a[0].text, 'foo') -
1120 -1121 # ElementTree < 1.3 adds whitespace around comments -1122 required_versions_ET['test_comment_text'] = (1,3) -
1123 - def test_comment_text(self): -
1124 Element = self.etree.Element -1125 SubElement = self.etree.SubElement -1126 Comment = self.etree.Comment -1127 tostring = self.etree.tostring -1128 -1129 a = Element('a') -1130 a.append(Comment('foo')) -1131 self.assertEquals(a[0].text, 'foo') -1132 -1133 self.assertEquals( -1134 _bytes('<a><!--foo--></a>'), -1135 tostring(a)) -1136 -1137 a[0].text = "TEST" -1138 self.assertEquals(a[0].text, 'TEST') -1139 -1140 self.assertEquals( -1141 _bytes('<a><!--TEST--></a>'), -1142 tostring(a)) -
1143 -1144 # ElementTree < 1.3 adds whitespace around comments -1145 required_versions_ET['test_comment_whitespace'] = (1,3) -
1146 - def test_comment_whitespace(self): -
1147 Element = self.etree.Element -1148 SubElement = self.etree.SubElement -1149 Comment = self.etree.Comment -1150 tostring = self.etree.tostring -1151 -1152 a = Element('a') -1153 a.append(Comment(' foo ')) -1154 self.assertEquals(a[0].text, ' foo ') -1155 self.assertEquals( -1156 _bytes('<a><!-- foo --></a>'), -1157 tostring(a)) -
1158 -
1159 - def test_comment_nonsense(self): -
1160 Comment = self.etree.Comment -1161 c = Comment('foo') -1162 self.assertEquals({}, c.attrib) -1163 self.assertEquals([], list(c.keys())) -1164 self.assertEquals([], list(c.items())) -1165 self.assertEquals(None, c.get('hoi')) -1166 self.assertEquals(0, len(c)) -1167 # should not iterate -1168 for i in c: -1169 pass -
1170 -
1171 - def test_pi(self): -
1172 # lxml.etree separates target and text -1173 Element = self.etree.Element -1174 SubElement = self.etree.SubElement -1175 ProcessingInstruction = self.etree.ProcessingInstruction -1176 -1177 a = Element('a') -1178 a.append(ProcessingInstruction('foo', 'some more text')) -1179 self.assertEquals(a[0].tag, ProcessingInstruction) -1180 self.assertXML(_bytes("<a><?foo some more text?></a>"), -1181 a) -
1182 -
1183 - def test_processinginstruction(self): -
1184 # lxml.etree separates target and text -1185 Element = self.etree.Element -1186 SubElement = self.etree.SubElement -1187 ProcessingInstruction = self.etree.PI -1188 -1189 a = Element('a') -1190 a.append(ProcessingInstruction('foo', 'some more text')) -1191 self.assertEquals(a[0].tag, ProcessingInstruction) -1192 self.assertXML(_bytes("<a><?foo some more text?></a>"), -1193 a) -
1194 -
1195 - def test_pi_nonsense(self): -
1196 ProcessingInstruction = self.etree.ProcessingInstruction -1197 pi = ProcessingInstruction('foo') -1198 self.assertEquals({}, pi.attrib) -1199 self.assertEquals([], list(pi.keys())) -1200 self.assertEquals([], list(pi.items())) -1201 self.assertEquals(None, pi.get('hoi')) -1202 self.assertEquals(0, len(pi)) -1203 # should not iterate -1204 for i in pi: -1205 pass -
1206 -
1207 - def test_setitem(self): -
1208 Element = self.etree.Element -1209 SubElement = self.etree.SubElement -1210 -1211 a = Element('a') -1212 b = SubElement(a, 'b') -1213 c = Element('c') -1214 a[0] = c -1215 self.assertEquals( -1216 c, -1217 a[0]) -1218 self.assertXML(_bytes('<a><c></c></a>'), -1219 a) -1220 self.assertXML(_bytes('<b></b>'), -1221 b) -
1222 -
1223 - def test_setitem2(self): -
1224 Element = self.etree.Element -1225 SubElement = self.etree.SubElement -1226 -1227 a = Element('a') -1228 for i in range(5): -1229 b = SubElement(a, 'b%s' % i) -1230 c = SubElement(b, 'c') -1231 for i in range(5): -1232 d = Element('d') -1233 e = SubElement(d, 'e') -1234 a[i] = d -1235 self.assertXML( -1236 _bytes('<a><d><e></e></d><d><e></e></d><d><e></e></d><d><e></e></d><d><e></e></d></a>'), -1237 a) -1238 self.assertXML(_bytes('<c></c>'), -1239 c) -
1240 -
1241 - def test_setitem_replace(self): -
1242 Element = self.etree.Element -1243 SubElement = self.etree.SubElement -1244 -1245 a = Element('a') -1246 SubElement(a, 'b') -1247 d = Element('d') -1248 a[0] = d -1249 self.assertXML(_bytes('<a><d></d></a>'), a) -
1250 -
1251 - def test_setitem_indexerror(self): -
1252 Element = self.etree.Element -1253 SubElement = self.etree.SubElement -1254 -1255 a = Element('a') -1256 b = SubElement(a, 'b') -1257 -1258 self.assertRaises(IndexError, operator.setitem, a, 1, Element('c')) -
1259 -
1260 - def test_setitem_tail(self): -
1261 Element = self.etree.Element -1262 SubElement = self.etree.SubElement -1263 -1264 a = Element('a') -1265 b = SubElement(a, 'b') -1266 b.tail = 'B2' -1267 c = Element('c') -1268 c.tail = 'C2' -1269 -1270 a[0] = c -1271 self.assertXML( -1272 _bytes('<a><c></c>C2</a>'), -1273 a) -
1274 -
1275 - def test_tag_write(self): -
1276 Element = self.etree.Element -1277 SubElement = self.etree.SubElement -1278 -1279 a = Element('a') -1280 b = SubElement(a, 'b') -1281 -1282 a.tag = 'c' -1283 -1284 self.assertEquals( -1285 'c', -1286 a.tag) -1287 -1288 self.assertXML( -1289 _bytes('<c><b></b></c>'), -1290 a) -
1291 -
1292 - def test_tag_reset_ns(self): -
1293 Element = self.etree.Element -1294 SubElement = self.etree.SubElement -1295 tostring = self.etree.tostring -1296 -1297 a = Element('{a}a') -1298 b1 = SubElement(a, '{a}b') -1299 b2 = SubElement(a, '{b}b') -1300 -1301 self.assertEquals('{a}b', b1.tag) -1302 -1303 b1.tag = 'c' -1304 -1305 # can't use C14N here! -1306 self.assertEquals('c', b1.tag) -1307 self.assertEquals(_bytes('<c'), tostring(b1)[:2]) -1308 self.assert_(_bytes('<c') in tostring(a)) -
1309 -
1310 - def test_tag_reset_root_ns(self): -
1311 Element = self.etree.Element -1312 SubElement = self.etree.SubElement -1313 tostring = self.etree.tostring -1314 -1315 a = Element('{a}a') -1316 b1 = SubElement(a, '{a}b') -1317 b2 = SubElement(a, '{b}b') -1318 -1319 a.tag = 'c' -1320 -1321 self.assertEquals( -1322 'c', -1323 a.tag) -1324 -1325 # can't use C14N here! -1326 self.assertEquals('c', a.tag) -1327 self.assertEquals(_bytes('<c'), tostring(a)[:2]) -
1328 -
1329 - def test_tag_str_subclass(self): -
1330 Element = self.etree.Element -1331 -1332 class strTest(str): -1333 pass -
1334 -1335 a = Element("a") -1336 a.tag = strTest("TAG") -1337 self.assertXML(_bytes('<TAG></TAG>'), -1338 a) -1339 -
1340 - def test_delitem(self): -
1341 Element = self.etree.Element -1342 SubElement = self.etree.SubElement -1343 -1344 a = Element('a') -1345 b = SubElement(a, 'b') -1346 c = SubElement(a, 'c') -1347 d = SubElement(a, 'd') -1348 -1349 del a[1] -1350 self.assertXML( -1351 _bytes('<a><b></b><d></d></a>'), -1352 a) -1353 -1354 del a[0] -1355 self.assertXML( -1356 _bytes('<a><d></d></a>'), -1357 a) -1358 -1359 del a[0] -1360 self.assertXML( -1361 _bytes('<a></a>'), -1362 a) -1363 # move deleted element into other tree afterwards -1364 other = Element('other') -1365 other.append(c) -1366 self.assertXML( -1367 _bytes('<other><c></c></other>'), -1368 other) -
1369 -
1370 - def test_del_insert(self): -
1371 Element = self.etree.Element -1372 SubElement = self.etree.SubElement -1373 -1374 a = Element('a') -1375 b = SubElement(a, 'b') -1376 bs = SubElement(b, 'bs') -1377 c = SubElement(a, 'c') -1378 cs = SubElement(c, 'cs') -1379 -1380 el = a[0] -1381 self.assertXML( -1382 _bytes('<a><b><bs></bs></b><c><cs></cs></c></a>'), -1383 a) -1384 self.assertXML(_bytes('<b><bs></bs></b>'), b) -1385 self.assertXML(_bytes('<c><cs></cs></c>'), c) -1386 -1387 del a[0] -1388 self.assertXML( -1389 _bytes('<a><c><cs></cs></c></a>'), -1390 a) -1391 self.assertXML(_bytes('<b><bs></bs></b>'), b) -1392 self.assertXML(_bytes('<c><cs></cs></c>'), c) -1393 -1394 a.insert(0, el) -1395 self.assertXML( -1396 _bytes('<a><b><bs></bs></b><c><cs></cs></c></a>'), -1397 a) -1398 self.assertXML(_bytes('<b><bs></bs></b>'), b) -1399 self.assertXML(_bytes('<c><cs></cs></c>'), c) -
1400 -
1401 - def test_del_setitem(self): -
1402 Element = self.etree.Element -1403 SubElement = self.etree.SubElement -1404 -1405 a = Element('a') -1406 b = SubElement(a, 'b') -1407 bs = SubElement(b, 'bs') -1408 c = SubElement(a, 'c') -1409 cs = SubElement(c, 'cs') -1410 -1411 el = a[0] -1412 del a[0] -1413 a[0] = el -1414 self.assertXML( -1415 _bytes('<a><b><bs></bs></b></a>'), -1416 a) -1417 self.assertXML(_bytes('<b><bs></bs></b>'), b) -1418 self.assertXML(_bytes('<c><cs></cs></c>'), c) -
1419 -
1420 - def test_del_setslice(self): -
1421 Element = self.etree.Element -1422 SubElement = self.etree.SubElement -1423 -1424 a = Element('a') -1425 b = SubElement(a, 'b') -1426 bs = SubElement(b, 'bs') -1427 c = SubElement(a, 'c') -1428 cs = SubElement(c, 'cs') -1429 -1430 el = a[0] -1431 del a[0] -1432 a[0:0] = [el] -1433 self.assertXML( -1434 _bytes('<a><b><bs></bs></b><c><cs></cs></c></a>'), -1435 a) -1436 self.assertXML(_bytes('<b><bs></bs></b>'), b) -1437 self.assertXML(_bytes('<c><cs></cs></c>'), c) -
1438 -
1439 - def test_replace_slice_tail(self): -
1440 XML = self.etree.XML -1441 a = XML(_bytes('<a><b></b>B2<c></c>C2</a>')) -1442 b, c = a -1443 -1444 a[:] = [] -1445 -1446 self.assertEquals("B2", b.tail) -1447 self.assertEquals("C2", c.tail) -
1448 -
1450 XML = self.etree.XML -1451 root = XML(_bytes( -1452 '<foo><bar xmlns:baz="http://huhu"><puh><baz:bump1 /><baz:bump2 /></puh></bar></foo>')) -1453 root[:] = root.findall('.//puh') # delete bar from hierarchy -1454 -1455 # previously, this lost a namespace declaration on bump2 -1456 result = self.etree.tostring(root) -1457 foo = self.etree.fromstring(result) -1458 -1459 self.assertEquals('puh', foo[0].tag) -1460 self.assertEquals('{http://huhu}bump1', foo[0][0].tag) -1461 self.assertEquals('{http://huhu}bump2', foo[0][1].tag) -
1462 -
1463 - def test_delitem_tail(self): -
1464 ElementTree = self.etree.ElementTree -1465 f = BytesIO('<a><b></b>B2<c></c>C2</a>') -1466 doc = ElementTree(file=f) -1467 a = doc.getroot() -1468 del a[0] -1469 self.assertXML( -1470 _bytes('<a><c></c>C2</a>'), -1471 a) -
1472 -
1473 - def test_clear(self): -
1474 Element = self.etree.Element -1475 -1476 a = Element('a') -1477 a.text = 'foo' -1478 a.tail = 'bar' -1479 a.set('hoi', 'dag') -1480 a.clear() -1481 self.assertEquals(None, a.text) -1482 self.assertEquals(None, a.tail) -1483 self.assertEquals(None, a.get('hoi')) -1484 self.assertEquals('a', a.tag) -
1485 -
1486 - def test_clear_sub(self): -
1487 Element = self.etree.Element -1488 SubElement = self.etree.SubElement -1489 -1490 a = Element('a') -1491 a.text = 'foo' -1492 a.tail = 'bar' -1493 a.set('hoi', 'dag') -1494 b = SubElement(a, 'b') -1495 c = SubElement(b, 'c') -1496 a.clear() -1497 self.assertEquals(None, a.text) -1498 self.assertEquals(None, a.tail) -1499 self.assertEquals(None, a.get('hoi')) -1500 self.assertEquals('a', a.tag) -1501 self.assertEquals(0, len(a)) -1502 self.assertXML(_bytes('<a></a>'), -1503 a) -1504 self.assertXML(_bytes('<b><c></c></b>'), -1505 b) -
1506 -
1507 - def test_clear_tail(self): -
1508 ElementTree = self.etree.ElementTree -1509 f = BytesIO('<a><b></b>B2<c></c>C2</a>') -1510 doc = ElementTree(file=f) -1511 a = doc.getroot() -1512 a.clear() -1513 self.assertXML( -1514 _bytes('<a></a>'), -1515 a) -
1516 -
1517 - def test_insert(self): -
1518 Element = self.etree.Element -1519 SubElement = self.etree.SubElement -1520 -1521 a = Element('a') -1522 b = SubElement(a, 'b') -1523 c = SubElement(a, 'c') -1524 d = Element('d') -1525 a.insert(0, d) -1526 -1527 self.assertEquals( -1528 d, -1529 a[0]) -1530 -1531 self.assertXML( -1532 _bytes('<a><d></d><b></b><c></c></a>'), -1533 a) -1534 -1535 e = Element('e') -1536 a.insert(2, e) -1537 self.assertEquals( -1538 e, -1539 a[2]) -1540 self.assertXML( -1541 _bytes('<a><d></d><b></b><e></e><c></c></a>'), -1542 a) -
1543 -
1544 - def test_insert_beyond_index(self): -
1545 Element = self.etree.Element -1546 SubElement = self.etree.SubElement -1547 -1548 a = Element('a') -1549 b = SubElement(a, 'b') -1550 c = Element('c') -1551 -1552 a.insert(2, c) -1553 self.assertEquals( -1554 c, -1555 a[1]) -1556 self.assertXML( -1557 _bytes('<a><b></b><c></c></a>'), -1558 a) -
1559 -
1560 - def test_insert_negative(self): -
1561 Element = self.etree.Element -1562 SubElement = self.etree.SubElement -1563 -1564 a = Element('a') -1565 b = SubElement(a, 'b') -1566 c = SubElement(a, 'c') -1567 -1568 d = Element('d') -1569 a.insert(-1, d) -1570 self.assertEquals( -1571 d, -1572 a[-2]) -1573 self.assertXML( -1574 _bytes('<a><b></b><d></d><c></c></a>'), -1575 a) -
1576 -
1577 - def test_insert_tail(self): -
1578 Element = self.etree.Element -1579 SubElement = self.etree.SubElement -1580 -1581 a = Element('a') -1582 b = SubElement(a, 'b') -1583 -1584 c = Element('c') -1585 c.tail = 'C2' -1586 -1587 a.insert(0, c) -1588 self.assertXML( -1589 _bytes('<a><c></c>C2<b></b></a>'), -1590 a) -
1591 -
1592 - def test_remove(self): -
1593 Element = self.etree.Element -1594 SubElement = self.etree.SubElement -1595 -1596 a = Element('a') -1597 b = SubElement(a, 'b') -1598 c = SubElement(a, 'c') -1599 -1600 a.remove(b) -1601 self.assertEquals( -1602 c, -1603 a[0]) -1604 self.assertXML( -1605 _bytes('<a><c></c></a>'), -1606 a) -
1607 -
1608 - def test_remove_ns(self): -
1609 Element = self.etree.Element -1610 SubElement = self.etree.SubElement -1611 -1612 a = Element('{http://test}a') -1613 b = SubElement(a, '{http://test}b') -1614 c = SubElement(a, '{http://test}c') -1615 -1616 a.remove(b) -1617 self.assertXML( -1618 _bytes('<ns0:a xmlns:ns0="http://test"><ns0:c></ns0:c></ns0:a>'), -1619 a) -1620 self.assertXML( -1621 _bytes('<ns0:b xmlns:ns0="http://test"></ns0:b>'), -1622 b) -
1623 -
1624 - def test_remove_nonexisting(self): -
1625 Element = self.etree.Element -1626 SubElement = self.etree.SubElement -1627 -1628 a = Element('a') -1629 b = SubElement(a, 'b') -1630 c = SubElement(a, 'c') -1631 d = Element('d') -1632 self.assertRaises( -1633 ValueError, a.remove, d) -
1634 -
1635 - def test_remove_tail(self): -
1636 Element = self.etree.Element -1637 SubElement = self.etree.SubElement -1638 -1639 a = Element('a') -1640 b = SubElement(a, 'b') -1641 b.tail = 'b2' -1642 a.remove(b) -1643 self.assertXML( -1644 _bytes('<a></a>'), -1645 a) -1646 self.assertEquals('b2', b.tail) -
1647 -
1648 - def _test_getchildren(self): -
1649 Element = self.etree.Element -1650 SubElement = self.etree.SubElement -1651 -1652 a = Element('a') -1653 b = SubElement(a, 'b') -1654 c = SubElement(a, 'c') -1655 d = SubElement(b, 'd') -1656 e = SubElement(c, 'e') -1657 self.assertXML( -1658 _bytes('<a><b><d></d></b><c><e></e></c></a>'), -1659 a) -1660 self.assertEquals( -1661 [b, c], -1662 a.getchildren()) -1663 self.assertEquals( -1664 [d], -1665 b.getchildren()) -1666 self.assertEquals( -1667 [], -1668 d.getchildren()) -
1669 -
1670 - def test_makeelement(self): -
1671 Element = self.etree.Element -1672 -1673 a = Element('a') -1674 b = a.makeelement('c', {'hoi':'dag'}) -1675 self.assertXML( -1676 _bytes('<c hoi="dag"></c>'), -1677 b) -
1678 -1679 required_versions_ET['test_iter'] = (1,3) -
1680 - def test_iter(self): -
1681 Element = self.etree.Element -1682 SubElement = self.etree.SubElement -1683 -1684 a = Element('a') -1685 b = SubElement(a, 'b') -1686 c = SubElement(a, 'c') -1687 d = SubElement(b, 'd') -1688 e = SubElement(c, 'e') -1689 -1690 self.assertEquals( -1691 [a, b, d, c, e], -1692 list(a.iter())) -1693 self.assertEquals( -1694 [d], -1695 list(d.iter())) -
1696 -
1697 - def test_getiterator(self): -
1698 Element = self.etree.Element -1699 SubElement = self.etree.SubElement -1700 -1701 a = Element('a') -1702 b = SubElement(a, 'b') -1703 c = SubElement(a, 'c') -1704 d = SubElement(b, 'd') -1705 e = SubElement(c, 'e') -1706 -1707 self.assertEquals( -1708 [a, b, d, c, e], -1709 list(a.getiterator())) -1710 self.assertEquals( -1711 [d], -1712 list(d.getiterator())) -
1713 -
1714 - def test_getiterator_empty(self): -
1715 Element = self.etree.Element -1716 SubElement = self.etree.SubElement -1717 -1718 a = Element('a') -1719 b = SubElement(a, 'b') -1720 c = SubElement(a, 'c') -1721 d = SubElement(b, 'd') -1722 e = SubElement(c, 'e') -1723 -1724 self.assertEquals( -1725 [], -1726 list(a.getiterator('none'))) -1727 self.assertEquals( -1728 [], -1729 list(e.getiterator('none'))) -1730 self.assertEquals( -1731 [e], -1732 list(e.getiterator())) -
1733 -
1734 - def test_getiterator_filter(self): -
1735 Element = self.etree.Element -1736 SubElement = self.etree.SubElement -1737 -1738 a = Element('a') -1739 b = SubElement(a, 'b') -1740 c = SubElement(a, 'c') -1741 d = SubElement(b, 'd') -1742 e = SubElement(c, 'e') -1743 -1744 self.assertEquals( -1745 [a], -1746 list(a.getiterator('a'))) -1747 a2 = SubElement(e, 'a') -1748 self.assertEquals( -1749 [a, a2], -1750 list(a.getiterator('a'))) -1751 self.assertEquals( -1752 [a2], -1753 list(c.getiterator('a'))) -
1754 -
1755 - def test_getiterator_filter_all(self): -
1756 Element = self.etree.Element -1757 SubElement = self.etree.SubElement -1758 -1759 a = Element('a') -1760 b = SubElement(a, 'b') -1761 c = SubElement(a, 'c') -1762 d = SubElement(b, 'd') -1763 e = SubElement(c, 'e') -1764 -1765 self.assertEquals( -1766 [a, b, d, c, e], -1767 list(a.getiterator('*'))) -
1768 -
1770 Element = self.etree.Element -1771 Comment = self.etree.Comment -1772 SubElement = self.etree.SubElement -1773 -1774 a = Element('a') -1775 b = SubElement(a, 'b') -1776 comment_b = Comment("TEST-b") -1777 b.append(comment_b) -1778 -1779 self.assertEquals( -1780 [comment_b], -1781 list(a.getiterator(Comment))) -1782 -1783 comment_a = Comment("TEST-a") -1784 a.append(comment_a) -1785 -1786 self.assertEquals( -1787 [comment_b, comment_a], -1788 list(a.getiterator(Comment))) -1789 -1790 self.assertEquals( -1791 [comment_b], -1792 list(b.getiterator(Comment))) -
1793 -
1794 - def test_getiterator_filter_pi(self): -
1795 Element = self.etree.Element -1796 PI = self.etree.ProcessingInstruction -1797 SubElement = self.etree.SubElement -1798 -1799 a = Element('a') -1800 b = SubElement(a, 'b') -1801 pi_b = PI("TEST-b") -1802 b.append(pi_b) -1803 -1804 self.assertEquals( -1805 [pi_b], -1806 list(a.getiterator(PI))) -1807 -1808 pi_a = PI("TEST-a") -1809 a.append(pi_a) -1810 -1811 self.assertEquals( -1812 [pi_b, pi_a], -1813 list(a.getiterator(PI))) -1814 -1815 self.assertEquals( -1816 [pi_b], -1817 list(b.getiterator(PI))) -
1818 -
1819 - def test_getiterator_with_text(self): -
1820 Element = self.etree.Element -1821 SubElement = self.etree.SubElement -1822 -1823 a = Element('a') -1824 a.text = 'a' -1825 b = SubElement(a, 'b') -1826 b.text = 'b' -1827 b.tail = 'b1' -1828 c = SubElement(a, 'c') -1829 c.text = 'c' -1830 c.tail = 'c1' -1831 d = SubElement(b, 'd') -1832 c.text = 'd' -1833 c.tail = 'd1' -1834 e = SubElement(c, 'e') -1835 e.text = 'e' -1836 e.tail = 'e1' -1837 -1838 self.assertEquals( -1839 [a, b, d, c, e], -1840 list(a.getiterator())) -
1841 #self.assertEquals( -1842 # [d], -1843 # list(d.getiterator())) -1844 -
1846 Element = self.etree.Element -1847 SubElement = self.etree.SubElement -1848 -1849 a = Element('a') -1850 a.text = 'a' -1851 b = SubElement(a, 'b') -1852 b.text = 'b' -1853 b.tail = 'b1' -1854 c = SubElement(a, 'c') -1855 c.text = 'c' -1856 c.tail = 'c1' -1857 d = SubElement(b, 'd') -1858 c.text = 'd' -1859 c.tail = 'd1' -1860 e = SubElement(c, 'e') -1861 e.text = 'e' -1862 e.tail = 'e1' -1863 -1864 self.assertEquals( -1865 [a], -1866 list(a.getiterator('a'))) -1867 a2 = SubElement(e, 'a') -1868 self.assertEquals( -1869 [a, a2], -1870 list(a.getiterator('a'))) -1871 self.assertEquals( -1872 [a2], -1873 list(e.getiterator('a'))) -
1874 -
1875 - def test_getslice(self): -
1876 Element = self.etree.Element -1877 SubElement = self.etree.SubElement -1878 -1879 a = Element('a') -1880 b = SubElement(a, 'b') -1881 c = SubElement(a, 'c') -1882 d = SubElement(a, 'd') -1883 -1884 self.assertEquals( -1885 [b, c], -1886 a[0:2]) -1887 self.assertEquals( -1888 [b, c, d], -1889 a[:]) -1890 self.assertEquals( -1891 [b, c, d], -1892 a[:10]) -1893 self.assertEquals( -1894 [b], -1895 a[0:1]) -1896 self.assertEquals( -1897 [], -1898 a[10:12]) -
1899 -
1900 - def test_getslice_negative(self): -
1901 Element = self.etree.Element -1902 SubElement = self.etree.SubElement -1903 -1904 a = Element('a') -1905 b = SubElement(a, 'b') -1906 c = SubElement(a, 'c') -1907 d = SubElement(a, 'd') -1908 -1909 self.assertEquals( -1910 [d], -1911 a[-1:]) -1912 self.assertEquals( -1913 [c, d], -1914 a[-2:]) -1915 self.assertEquals( -1916 [c], -1917 a[-2:-1]) -1918 self.assertEquals( -1919 [b, c], -1920 a[-3:-1]) -1921 self.assertEquals( -1922 [b, c], -1923 a[-3:2]) -
1924 -
1925 - def test_getslice_step(self): -
1926 Element = self.etree.Element -1927 SubElement = self.etree.SubElement -1928 -1929 a = Element('a') -1930 b = SubElement(a, 'b') -1931 c = SubElement(a, 'c') -1932 d = SubElement(a, 'd') -1933 e = SubElement(a, 'e') -1934 -1935 self.assertEquals( -1936 [e,d,c,b], -1937 a[::-1]) -1938 self.assertEquals( -1939 [b,d], -1940 a[::2]) -1941 self.assertEquals( -1942 [e,c], -1943 a[::-2]) -1944 self.assertEquals( -1945 [d,c], -1946 a[-2:0:-1]) -1947 self.assertEquals( -1948 [e], -1949 a[:1:-2]) -
1950 -
1951 - def test_getslice_text(self): -
1952 ElementTree = self.etree.ElementTree -1953 -1954 f = BytesIO('<a><b>B</b>B1<c>C</c>C1</a>') -1955 doc = ElementTree(file=f) -1956 a = doc.getroot() -1957 b = a[0] -1958 c = a[1] -1959 self.assertEquals( -1960 [b, c], -1961 a[:]) -1962 self.assertEquals( -1963 [b], -1964 a[0:1]) -1965 self.assertEquals( -1966 [c], -1967 a[1:]) -
1968 -
1970 Element = self.etree.Element -1971 Comment = self.etree.Comment -1972 SubElement = self.etree.SubElement -1973 -1974 a = Element('a') -1975 b = SubElement(a, 'b') -1976 foo = Comment('foo') -1977 a.append(foo) -1978 c = SubElement(a, 'c') -1979 self.assertEquals( -1980 [b, foo, c], -1981 a[:]) -1982 self.assertEquals( -1983 foo, -1984 a[1]) -1985 a[1] = new = Element('new') -1986 self.assertEquals( -1987 new, -1988 a[1]) -1989 self.assertXML( -1990 _bytes('<a><b></b><new></new><c></c></a>'), -1991 a) -
1992 -
1993 - def test_delslice(self): -
1994 Element = self.etree.Element -1995 SubElement = self.etree.SubElement -1996 -1997 a = Element('a') -1998 b = SubElement(a, 'b') -1999 c = SubElement(a, 'c') -2000 d = SubElement(a, 'd') -2001 e = SubElement(a, 'e') -2002 -2003 del a[1:3] -2004 self.assertEquals( -2005 [b, e], -2006 list(a)) -
2007 -
2008 - def test_delslice_negative1(self): -
2009 Element = self.etree.Element -2010 SubElement = self.etree.SubElement -2011 -2012 a = Element('a') -2013 b = SubElement(a, 'b') -2014 c = SubElement(a, 'c') -2015 d = SubElement(a, 'd') -2016 e = SubElement(a, 'e') -2017 -2018 del a[1:-1] -2019 self.assertEquals( -2020 [b, e], -2021 list(a)) -
2022 -
2023 - def test_delslice_negative2(self): -
2024 Element = self.etree.Element -2025 SubElement = self.etree.SubElement -2026 -2027 a = Element('a') -2028 b = SubElement(a, 'b') -2029 c = SubElement(a, 'c') -2030 d = SubElement(a, 'd') -2031 e = SubElement(a, 'e') -2032 -2033 del a[-3:-1] -2034 self.assertEquals( -2035 [b, e], -2036 list(a)) -
2037 -
2038 - def test_delslice_step(self): -
2039 Element = self.etree.Element -2040 SubElement = self.etree.SubElement -2041 -2042 a = Element('a') -2043 b = SubElement(a, 'b') -2044 c = SubElement(a, 'c') -2045 d = SubElement(a, 'd') -2046 e = SubElement(a, 'e') -2047 -2048 del a[1::2] -2049 self.assertEquals( -2050 [b, d], -2051 list(a)) -
2052 -
2053 - def test_delslice_step_negative(self): -
2054 Element = self.etree.Element -2055 SubElement = self.etree.SubElement -2056 -2057 a = Element('a') -2058 b = SubElement(a, 'b') -2059 c = SubElement(a, 'c') -2060 d = SubElement(a, 'd') -2061 e = SubElement(a, 'e') -2062 -2063 del a[::-1] -2064 self.assertEquals( -2065 [], -2066 list(a)) -
2067 -
2069 Element = self.etree.Element -2070 SubElement = self.etree.SubElement -2071 -2072 a = Element('a') -2073 b = SubElement(a, 'b') -2074 c = SubElement(a, 'c') -2075 d = SubElement(a, 'd') -2076 e = SubElement(a, 'e') -2077 -2078 del a[::-2] -2079 self.assertEquals( -2080 [b, d], -2081 list(a)) -
2082 -
2083 - def test_delslice_child_tail(self): -
2084 ElementTree = self.etree.ElementTree -2085 f = BytesIO('<a><b></b>B2<c></c>C2<d></d>D2<e></e>E2</a>') -2086 doc = ElementTree(file=f) -2087 a = doc.getroot() -2088 del a[1:3] -2089 self.assertXML( -2090 _bytes('<a><b></b>B2<e></e>E2</a>'), -2091 a) -
2092 -
2093 - def test_delslice_tail(self): -
2094 XML = self.etree.XML -2095 a = XML(_bytes('<a><b></b>B2<c></c>C2</a>')) -2096 b, c = a -2097 -2098 del a[:] -2099 -2100 self.assertEquals("B2", b.tail) -2101 self.assertEquals("C2", c.tail) -
2102 -
2103 - def test_delslice_memory(self): -
2104 # this could trigger a crash -2105 Element = self.etree.Element -2106 SubElement = self.etree.SubElement -2107 a = Element('a') -2108 b = SubElement(a, 'b') -2109 c = SubElement(b, 'c') -2110 del b # no more reference to b -2111 del a[:] -2112 self.assertEquals('c', c.tag) -
2113 -
2114 - def test_setslice(self): -
2115 Element = self.etree.Element -2116 SubElement = self.etree.SubElement -2117 -2118 a = Element('a') -2119 b = SubElement(a, 'b') -2120 c = SubElement(a, 'c') -2121 d = SubElement(a, 'd') -2122 -2123 e = Element('e') -2124 f = Element('f') -2125 g = Element('g') -2126 -2127 s = [e, f, g] -2128 a[1:2] = s -2129 self.assertEquals( -2130 [b, e, f, g, d], -2131 list(a)) -
2132 -
2133 - def test_setslice_all(self): -
2134 Element = self.etree.Element -2135 SubElement = self.etree.SubElement -2136 -2137 a = Element('a') -2138 b = SubElement(a, 'b') -2139 c = SubElement(a, 'c') -2140 -2141 e = Element('e') -2142 f = Element('f') -2143 g = Element('g') -2144 -2145 s = [e, f, g] -2146 a[:] = s -2147 self.assertEquals( -2148 [e, f, g], -2149 list(a)) -
2150 -
2151 - def test_setslice_all_empty(self): -
2152 Element = self.etree.Element -2153 SubElement = self.etree.SubElement -2154 -2155 a = Element('a') -2156 -2157 e = Element('e') -2158 f = Element('f') -2159 g = Element('g') -2160 -2161 s = [e, f, g] -2162 a[:] = s -2163 self.assertEquals( -2164 [e, f, g], -2165 list(a)) -
2166 -
2167 - def test_setslice_all_replace(self): -
2168 Element = self.etree.Element -2169 SubElement = self.etree.SubElement -2170 -2171 a = Element('a') -2172 b = SubElement(a, 'b') -2173 c = SubElement(a, 'c') -2174 d = SubElement(a, 'd') -2175 -2176 s = [b, c, d] -2177 a[:] = s -2178 self.assertEquals( -2179 [b, c, d], -2180 list(a)) -
2181 -
2183 Element = self.etree.Element -2184 SubElement = self.etree.SubElement -2185 -2186 a = Element('a') -2187 b = SubElement(a, 'b') -2188 c = SubElement(a, 'c') -2189 d = SubElement(a, 'd') -2190 -2191 s = [d, c, b] -2192 a[:] = s -2193 self.assertEquals( -2194 [d, c, b], -2195 list(a)) -
2196 -
2198 Element = self.etree.Element -2199 SubElement = self.etree.SubElement -2200 -2201 a = Element('{ns}a') -2202 b = SubElement(a, '{ns}b', {'{ns1}a1': 'test'}) -2203 c = SubElement(a, '{ns}c', {'{ns2}a2': 'test'}) -2204 d = SubElement(a, '{ns}d', {'{ns3}a3': 'test'}) -2205 -2206 s = [d, c, b] -2207 a[:] = s -2208 self.assertEquals( -2209 [d, c, b], -2210 list(a)) -2211 self.assertEquals( -2212 ['{ns}d', '{ns}c', '{ns}b'], -2213 [ child.tag for child in a ]) -2214 -2215 self.assertEquals( -2216 [['{ns3}a3'], ['{ns2}a2'], ['{ns1}a1']], -2217 [ list(child.attrib.keys()) for child in a ]) -
2218 -
2220 Element = self.etree.Element -2221 SubElement = self.etree.SubElement -2222 -2223 a = Element('{ns}a') -2224 b = SubElement(a, '{ns1}b', {'{ns}a1': 'test'}) -2225 c = SubElement(a, '{ns2}c', {'{ns}a2': 'test'}) -2226 d = SubElement(a, '{ns3}d', {'{ns}a3': 'test'}) -2227 -2228 s = [d, c, b] -2229 a[:] = s -2230 self.assertEquals( -2231 [d, c, b], -2232 list(a)) -2233 self.assertEquals( -2234 ['{ns3}d', '{ns2}c', '{ns1}b'], -2235 [ child.tag for child in a ]) -2236 -2237 self.assertEquals( -2238 [['{ns}a3'], ['{ns}a2'], ['{ns}a1']], -2239 [ list(child.attrib.keys()) for child in a ]) -
2240 -
2241 - def test_setslice_end(self): -
2242 Element = self.etree.Element -2243 SubElement = self.etree.SubElement -2244 -2245 a = Element('a') -2246 b = SubElement(a, 'b') -2247 c = SubElement(a, 'c') -2248 -2249 e = Element('e') -2250 f = Element('f') -2251 g = Element('g') -2252 h = Element('h') -2253 -2254 s = [e, f] -2255 a[99:] = s -2256 self.assertEquals( -2257 [a, b, e, f], -2258 list(a)) -2259 -2260 s = [g, h] -2261 a[:0] = s -2262 self.assertEquals( -2263 [g, h, a, b, e, f], -2264 list(a)) -
2265 -
2266 - def test_setslice_single(self): -
2267 Element = self.etree.Element -2268 SubElement = self.etree.SubElement -2269 -2270 a = Element('a') -2271 b = SubElement(a, 'b') -2272 c = SubElement(a, 'c') -2273 -2274 e = Element('e') -2275 f = Element('f') -2276 -2277 s = [e] -2278 a[0:1] = s -2279 self.assertEquals( -2280 [e, c], -2281 list(a)) -2282 -2283 s = [f] -2284 a[1:2] = s -2285 self.assertEquals( -2286 [e, f], -2287 list(a)) -
2288 -
2289 - def test_setslice_tail(self): -
2290 ElementTree = self.etree.ElementTree -2291 Element = self.etree.Element -2292 f = BytesIO('<a><b></b>B2<c></c>C2<d></d>D2<e></e>E2</a>') -2293 doc = ElementTree(file=f) -2294 a = doc.getroot() -2295 x = Element('x') -2296 y = Element('y') -2297 z = Element('z') -2298 x.tail = 'X2' -2299 y.tail = 'Y2' -2300 z.tail = 'Z2' -2301 a[1:3] = [x, y, z] -2302 self.assertXML( -2303 _bytes('<a><b></b>B2<x></x>X2<y></y>Y2<z></z>Z2<e></e>E2</a>'), -2304 a) -
2305 -
2306 - def test_setslice_negative(self): -
2307 Element = self.etree.Element -2308 SubElement = self.etree.SubElement -2309 -2310 a = Element('a') -2311 b = SubElement(a, 'b') -2312 c = SubElement(a, 'c') -2313 d = SubElement(a, 'd') -2314 -2315 x = Element('x') -2316 y = Element('y') -2317 -2318 a[1:-1] = [x, y] -2319 self.assertEquals( -2320 [b, x, y, d], -2321 list(a)) -
2322 -
2323 - def test_setslice_negative2(self): -
2324 Element = self.etree.Element -2325 SubElement = self.etree.SubElement -2326 -2327 a = Element('a') -2328 b = SubElement(a, 'b') -2329 c = SubElement(a, 'c') -2330 d = SubElement(a, 'd') -2331 -2332 x = Element('x') -2333 y = Element('y') -2334 -2335 a[1:-2] = [x, y] -2336 self.assertEquals( -2337 [b, x, y, c, d], -2338 list(a)) -
2339 -
2340 - def test_setslice_end(self): -
2341 Element = self.etree.Element -2342 SubElement = self.etree.SubElement -2343 -2344 a = Element('a') -2345 b = SubElement(a, 'b') -2346 c = SubElement(a, 'c') -2347 d = SubElement(a, 'd') -2348 -2349 e = Element('e') -2350 f = Element('f') -2351 g = Element('g') -2352 -2353 s = [e, f, g] -2354 a[3:] = s -2355 self.assertEquals( -2356 [b, c, d, e, f, g], -2357 list(a)) -
2358 -
2359 - def test_setslice_empty(self): -
2360 Element = self.etree.Element -2361 -2362 a = Element('a') -2363 -2364 b = Element('b') -2365 c = Element('c') -2366 -2367 a[:] = [b, c] -2368 self.assertEquals( -2369 [b, c], -2370 list(a)) -
2371 -
2372 - def test_tail_elementtree_root(self): -
2373 Element = self.etree.Element -2374 ElementTree = self.etree.ElementTree -2375 -2376 a = Element('a') -2377 a.tail = 'A2' -2378 t = ElementTree(element=a) -2379 self.assertEquals('A2', -2380 a.tail) -
2381 -
2383 Element = self.etree.Element -2384 SubElement = self.etree.SubElement -2385 ElementTree = self.etree.ElementTree -2386 -2387 a = Element('a') -2388 b = SubElement(a, 'b') -2389 c = SubElement(a, 'c') -2390 d = SubElement(b, 'd') -2391 e = SubElement(c, 'e') -2392 t = ElementTree(element=a) -2393 -2394 self.assertEquals( -2395 [a, b, d, c, e], -2396 list(t.getiterator())) -
2397 -
2399 Element = self.etree.Element -2400 SubElement = self.etree.SubElement -2401 ElementTree = self.etree.ElementTree -2402 a = Element('a') -2403 b = SubElement(a, 'b') -2404 c = SubElement(a, 'c') -2405 d = SubElement(b, 'd') -2406 e = SubElement(c, 'e') -2407 t = ElementTree(element=a) -2408 -2409 self.assertEquals( -2410 [a], -2411 list(t.getiterator('a'))) -2412 a2 = SubElement(e, 'a') -2413 self.assertEquals( -2414 [a, a2], -2415 list(t.getiterator('a'))) -
2416 -
2417 - def test_ns_access(self): -
2418 ElementTree = self.etree.ElementTree -2419 ns = 'http://xml.infrae.com/1' -2420 f = BytesIO('<x:a xmlns:x="%s"><x:b></x:b></x:a>' % ns) -2421 t = ElementTree(file=f) -2422 a = t.getroot() -2423 self.assertEquals('{%s}a' % ns, -2424 a.tag) -2425 self.assertEquals('{%s}b' % ns, -2426 a[0].tag) -
2427 -
2428 - def test_ns_access2(self): -
2429 ElementTree = self.etree.ElementTree -2430 ns = 'http://xml.infrae.com/1' -2431 ns2 = 'http://xml.infrae.com/2' -2432 f = BytesIO('<x:a xmlns:x="%s" xmlns:y="%s"><x:b></x:b><y:b></y:b></x:a>' % (ns, ns2)) -2433 t = ElementTree(file=f) -2434 a = t.getroot() -2435 self.assertEquals('{%s}a' % ns, -2436 a.tag) -2437 self.assertEquals('{%s}b' % ns, -2438 a[0].tag) -2439 self.assertEquals('{%s}b' % ns2, -2440 a[1].tag) -
2441 -
2442 - def test_ns_setting(self): -
2443 Element = self.etree.Element -2444 SubElement = self.etree.SubElement -2445 ns = 'http://xml.infrae.com/1' -2446 ns2 = 'http://xml.infrae.com/2' -2447 a = Element('{%s}a' % ns) -2448 b = SubElement(a, '{%s}b' % ns2) -2449 c = SubElement(a, '{%s}c' % ns) -2450 self.assertEquals('{%s}a' % ns, -2451 a.tag) -2452 self.assertEquals('{%s}b' % ns2, -2453 b.tag) -2454 self.assertEquals('{%s}c' % ns, -2455 c.tag) -2456 self.assertEquals('{%s}a' % ns, -2457 a.tag) -2458 self.assertEquals('{%s}b' % ns2, -2459 b.tag) -2460 self.assertEquals('{%s}c' % ns, -2461 c.tag) -
2462 -
2463 - def test_ns_tag_parse(self): -
2464 Element = self.etree.Element -2465 SubElement = self.etree.SubElement -2466 ElementTree = self.etree.ElementTree -2467 -2468 ns = 'http://xml.infrae.com/1' -2469 ns2 = 'http://xml.infrae.com/2' -2470 f = BytesIO('<a xmlns="%s" xmlns:x="%s"><x:b></x:b><b></b></a>' % (ns, ns2)) -2471 t = ElementTree(file=f) -2472 -2473 a = t.getroot() -2474 self.assertEquals('{%s}a' % ns, -2475 a.tag) -2476 self.assertEquals('{%s}b' % ns2, -2477 a[0].tag) -2478 self.assertEquals('{%s}b' % ns, -2479 a[1].tag) -
2480 -
2481 - def test_ns_attr(self): -
2482 Element = self.etree.Element -2483 ns = 'http://xml.infrae.com/1' -2484 ns2 = 'http://xml.infrae.com/2' -2485 a = Element('a') -2486 a.set('{%s}foo' % ns, 'Foo') -2487 a.set('{%s}bar' % ns2, 'Bar') -2488 self.assertEquals( -2489 'Foo', -2490 a.get('{%s}foo' % ns)) -2491 self.assertEquals( -2492 'Bar', -2493 a.get('{%s}bar' % ns2)) -2494 try: -2495 self.assertXML( -2496 _bytes('<a xmlns:ns0="%s" xmlns:ns1="%s" ns0:foo="Foo" ns1:bar="Bar"></a>' % (ns, ns2)), -2497 a) -2498 except AssertionError: -2499 self.assertXML( -2500 _bytes('<a xmlns:ns0="%s" xmlns:ns1="%s" ns1:foo="Foo" ns0:bar="Bar"></a>' % (ns2, ns)), -2501 a) -
2502 -
2503 - def test_ns_move(self): -
2504 Element = self.etree.Element -2505 one = self.etree.fromstring( -2506 _bytes('<foo><bar xmlns:ns="http://a.b.c"><ns:baz/></bar></foo>')) -2507 baz = one[0][0] -2508 -2509 two = Element('root') -2510 two.append(baz) -2511 # removing the originating document could cause a crash/error before -2512 # as namespace is not moved along with it -2513 del one, baz -2514 self.assertEquals('{http://a.b.c}baz', two[0].tag) -
2515 -
2516 - def test_ns_decl_tostring(self): -
2517 tostring = self.etree.tostring -2518 root = self.etree.XML( -2519 _bytes('<foo><bar xmlns:ns="http://a.b.c"><ns:baz/></bar></foo>')) -2520 baz = root[0][0] -2521 -2522 nsdecl = re.findall(_bytes("xmlns(?::[a-z0-9]+)?=[\"']([^\"']+)[\"']"), -2523 tostring(baz)) -2524 self.assertEquals([_bytes("http://a.b.c")], nsdecl) -
2525 -
2527 tostring = self.etree.tostring -2528 root = self.etree.XML( -2529 _bytes('<foo><bar xmlns="http://a.b.c"><baz/></bar></foo>')) -2530 baz = root[0][0] -2531 -2532 nsdecl = re.findall(_bytes("xmlns(?::[a-z0-9]+)?=[\"']([^\"']+)[\"']"), -2533 tostring(baz)) -2534 self.assertEquals([_bytes("http://a.b.c")], nsdecl) -
2535 -
2536 - def test_ns_decl_tostring_root(self): -
2537 tostring = self.etree.tostring -2538 root = self.etree.XML( -2539 _bytes('<foo xmlns:ns="http://a.b.c"><bar><ns:baz/></bar></foo>')) -2540 baz = root[0][0] -2541 -2542 nsdecl = re.findall(_bytes("xmlns(?::[a-z0-9]+)?=[\"']([^\"']+)[\"']"), -2543 tostring(baz)) -2544 -2545 self.assertEquals([_bytes("http://a.b.c")], nsdecl) -
2546 -
2548 Element = self.etree.Element -2549 SubElement = self.etree.SubElement -2550 -2551 root = Element("foo") -2552 bar = SubElement(root, "{http://a.b.c}bar") -2553 baz = SubElement(bar, "{http://a.b.c}baz") -2554 -2555 nsdecl = re.findall(_bytes("xmlns(?::[a-z0-9]+)?=[\"']([^\"']+)[\"']"), -2556 self.etree.tostring(baz)) -2557 -2558 self.assertEquals([_bytes("http://a.b.c")], nsdecl) -
2559 -
2560 - def test_attribute_xmlns_move(self): -
2561 Element = self.etree.Element -2562 -2563 root = Element('element') -2564 -2565 subelement = Element('subelement', -2566 {"{http://www.w3.org/XML/1998/namespace}id": "foo"}) -2567 self.assertEquals(1, len(subelement.attrib)) -2568 self.assertEquals( -2569 "foo", -2570 subelement.get("{http://www.w3.org/XML/1998/namespace}id")) -2571 -2572 root.append(subelement) -2573 self.assertEquals(1, len(subelement.attrib)) -2574 self.assertEquals( -2575 list({"{http://www.w3.org/XML/1998/namespace}id" : "foo"}.items()), -2576 list(subelement.attrib.items())) -2577 self.assertEquals( -2578 "foo", -2579 subelement.get("{http://www.w3.org/XML/1998/namespace}id")) -
2580 -
2582 parse = self.etree.parse -2583 tostring = self.etree.tostring -2584 -2585 ns_href = "http://a.b.c" -2586 one = parse( -2587 BytesIO('<foo><bar xmlns:ns="%s"><ns:baz/></bar></foo>' % ns_href)) -2588 baz = one.getroot()[0][0] -2589 -2590 parsed = parse(BytesIO( tostring(baz) )).getroot() -2591 self.assertEquals('{%s}baz' % ns_href, parsed.tag) -
2592 -
2594 fromstring = self.etree.fromstring -2595 tostring = self.etree.tostring -2596 -2597 ns_href = "http://a.b.c" -2598 xml = _bytes('<root xmlns="%s" xmlns:x="%s"><el x:a="test" /></root>' % ( -2599 ns_href,ns_href)) -2600 root = fromstring(xml) -2601 self.assertEquals('test', root[0].get('{%s}a' % ns_href)) -2602 -2603 xml2 = tostring(root) -2604 self.assertTrue(_bytes(':a=') in xml2, xml2) -2605 -2606 root2 = fromstring(xml2) -2607 self.assertEquals('test', root2[0].get('{%s}a' % ns_href)) -
2608 -
2610 fromstring = self.etree.fromstring -2611 tostring = self.etree.tostring -2612 -2613 ns_href = "http://a.b.c" -2614 xml = _bytes('<root xmlns="%s" xmlns:x="%s"><el x:a="test" /></root>' % ( -2615 ns_href,ns_href)) -2616 root = fromstring(xml) -2617 self.assertEquals('test', root[0].get('{%s}a' % ns_href)) -2618 -2619 root[0].set('{%s}a' % ns_href, 'TEST') -2620 -2621 xml2 = tostring(root) -2622 self.assertTrue(_bytes(':a=') in xml2, xml2) -2623 -2624 root2 = fromstring(xml2) -2625 self.assertEquals('TEST', root2[0].get('{%s}a' % ns_href)) -
2626 -2627 required_versions_ET['test_register_namespace'] = (1,3) -
2628 - def test_register_namespace(self): -
2629 # ET 1.3+ -2630 Element = self.etree.Element -2631 prefix = 'TESTPREFIX' -2632 namespace = 'http://seriously.unknown/namespace/URI' -2633 -2634 el = Element('{%s}test' % namespace) -2635 self.assertEquals(_bytes('<ns0:test xmlns:ns0="%s"></ns0:test>' % namespace), -2636 self._writeElement(el)) -2637 -2638 self.etree.register_namespace(prefix, namespace) -2639 el = Element('{%s}test' % namespace) -2640 self.assertEquals(_bytes('<%s:test xmlns:%s="%s"></%s:test>' % ( -2641 prefix, prefix, namespace, prefix)), -2642 self._writeElement(el)) -2643 -2644 self.assertRaises(ValueError, self.etree.register_namespace, 'ns25', namespace) -
2645 -
2646 - def test_tostring(self): -
2647 tostring = self.etree.tostring -2648 Element = self.etree.Element -2649 SubElement = self.etree.SubElement -2650 -2651 a = Element('a') -2652 b = SubElement(a, 'b') -2653 c = SubElement(a, 'c') -2654 -2655 self.assertEquals(_bytes('<a><b></b><c></c></a>'), -2656 canonicalize(tostring(a))) -
2657 -
2658 - def test_tostring_element(self): -
2659 tostring = self.etree.tostring -2660 Element = self.etree.Element -2661 SubElement = self.etree.SubElement -2662 -2663 a = Element('a') -2664 b = SubElement(a, 'b') -2665 c = SubElement(a, 'c') -2666 d = SubElement(c, 'd') -2667 self.assertEquals(_bytes('<b></b>'), -2668 canonicalize(tostring(b))) -2669 self.assertEquals(_bytes('<c><d></d></c>'), -2670 canonicalize(tostring(c))) -
2671 -
2672 - def test_tostring_element_tail(self): -
2673 tostring = self.etree.tostring -2674 Element = self.etree.Element -2675 SubElement = self.etree.SubElement -2676 -2677 a = Element('a') -2678 b = SubElement(a, 'b') -2679 c = SubElement(a, 'c') -2680 d = SubElement(c, 'd') -2681 b.tail = 'Foo' -2682 -2683 self.assert_(tostring(b) == _bytes('<b/>Foo') or -2684 tostring(b) == _bytes('<b />Foo')) -
2685 -2686 required_versions_ET['test_tostring_method_html'] = (1,3) -
2687 - def test_tostring_method_html(self): -
2688 tostring = self.etree.tostring -2689 Element = self.etree.Element -2690 SubElement = self.etree.SubElement -2691 -2692 html = Element('html') -2693 body = SubElement(html, 'body') -2694 p = SubElement(body, 'p') -2695 p.text = "html" -2696 SubElement(p, 'br').tail = "test" -2697 -2698 self.assertEquals(_bytes('<html><body><p>html<br>test</p></body></html>'), -2699 tostring(html, method="html")) -
2700 -2701 required_versions_ET['test_tostring_method_text'] = (1,3) -
2702 - def test_tostring_method_text(self): -
2703 tostring = self.etree.tostring -2704 Element = self.etree.Element -2705 SubElement = self.etree.SubElement -2706 -2707 a = Element('a') -2708 a.text = "A" -2709 a.tail = "tail" -2710 b = SubElement(a, 'b') -2711 b.text = "B" -2712 b.tail = "TAIL" -2713 c = SubElement(a, 'c') -2714 c.text = "C" -2715 -2716 self.assertEquals(_bytes('ABTAILCtail'), -2717 tostring(a, method="text")) -
2718 -
2719 - def test_iterparse(self): -
2720 iterparse = self.etree.iterparse -2721 f = BytesIO('<a><b></b><c/></a>') -2722 -2723 iterator = iterparse(f) -2724 self.assertEquals(None, -2725 iterator.root) -2726 events = list(iterator) -2727 root = iterator.root -2728 self.assertEquals( -2729 [('end', root[0]), ('end', root[1]), ('end', root)], -2730 events) -
2731 -
2732 - def test_iterparse_file(self): -
2733 iterparse = self.etree.iterparse -2734 iterator = iterparse(fileInTestDir("test.xml")) -2735 self.assertEquals(None, -2736 iterator.root) -2737 events = list(iterator) -2738 root = iterator.root -2739 self.assertEquals( -2740 [('end', root[0]), ('end', root)], -2741 events) -
2742 -
2743 - def test_iterparse_start(self): -
2744 iterparse = self.etree.iterparse -2745 f = BytesIO('<a><b></b><c/></a>') -2746 -2747 iterator = iterparse(f, events=('start',)) -2748 events = list(iterator) -2749 root = iterator.root -2750 self.assertEquals( -2751 [('start', root), ('start', root[0]), ('start', root[1])], -2752 events) -
2753 -
2754 - def test_iterparse_start_end(self): -
2755 iterparse = self.etree.iterparse -2756 f = BytesIO('<a><b></b><c/></a>') -2757 -2758 iterator = iterparse(f, events=('start','end')) -2759 events = list(iterator) -2760 root = iterator.root -2761 self.assertEquals( -2762 [('start', root), ('start', root[0]), ('end', root[0]), -2763 ('start', root[1]), ('end', root[1]), ('end', root)], -2764 events) -
2765 -
2766 - def test_iterparse_clear(self): -
2767 iterparse = self.etree.iterparse -2768 f = BytesIO('<a><b></b><c/></a>') -2769 -2770 iterator = iterparse(f) -2771 for event, elem in iterator: -2772 elem.clear() -2773 -2774 root = iterator.root -2775 self.assertEquals(0, -2776 len(root)) -
2777 -
2778 - def test_iterparse_large(self): -
2779 iterparse = self.etree.iterparse -2780 CHILD_COUNT = 12345 -2781 f = BytesIO('<a>%s</a>' % ('<b>test</b>'*CHILD_COUNT)) -2782 -2783 i = 0 -2784 for key in iterparse(f): -2785 event, element = key -2786 i += 1 -2787 self.assertEquals(i, CHILD_COUNT + 1) -
2788 -
2789 - def test_iterparse_attrib_ns(self): -
2790 iterparse = self.etree.iterparse -2791 f = BytesIO('<a xmlns="http://ns1/"><b><c xmlns="http://ns2/"/></b></a>') -2792 -2793 attr_name = '{http://testns/}bla' -2794 events = [] -2795 iterator = iterparse(f, events=('start','end','start-ns','end-ns')) -2796 for event, elem in iterator: -2797 events.append(event) -2798 if event == 'start': -2799 if elem.tag != '{http://ns1/}a': -2800 elem.set(attr_name, 'value') -2801 -2802 self.assertEquals( -2803 ['start-ns', 'start', 'start', 'start-ns', 'start', -2804 'end', 'end-ns', 'end', 'end', 'end-ns'], -2805 events) -2806 -2807 root = iterator.root -2808 self.assertEquals( -2809 None, -2810 root.get(attr_name)) -2811 self.assertEquals( -2812 'value', -2813 root[0].get(attr_name)) -
2814 -
2815 - def test_iterparse_getiterator(self): -
2816 iterparse = self.etree.iterparse -2817 f = BytesIO('<a><b><d/></b><c/></a>') -2818 -2819 counts = [] -2820 for event, elem in iterparse(f): -2821 counts.append(len(list(elem.getiterator()))) -2822 self.assertEquals( -2823 [1,2,1,4], -2824 counts) -
2825 -
2827 iterparse = self.etree.iterparse -2828 f = BytesIO('<a><b><d/></b><c/></a>') -2829 -2830 for event, node in etree.iterparse(f): pass -2831 -2832 root = etree.Element('new_root', {}) -2833 root[:] = node[:] -2834 -2835 self.assertEquals( -2836 ['b', 'c'], -2837 [ el.tag for el in root ]) -
2838 -
2839 - def test_iterparse_cdata(self): -
2840 tostring = self.etree.tostring -2841 f = BytesIO('<root><![CDATA[test]]></root>') -2842 context = self.etree.iterparse(f) -2843 content = [ el.text for event,el in context ] -2844 -2845 self.assertEquals(['test'], content) -2846 self.assertEquals(_bytes('<root>test</root>'), -2847 tostring(context.root)) -
2848 -
2849 - def test_parse_file(self): -
2850 parse = self.etree.parse -2851 # from file -2852 tree = parse(fileInTestDir('test.xml')) -2853 self.assertXML( -2854 _bytes('<a><b></b></a>'), -2855 tree.getroot()) -
2856 -
2857 - def test_parse_file_nonexistent(self): -
2858 parse = self.etree.parse -2859 self.assertRaises(IOError, parse, fileInTestDir('notthere.xml')) -
2860 -
2861 - def test_parse_error_none(self): -
2862 parse = self.etree.parse -2863 self.assertRaises(TypeError, parse, None) -
2864 -2865 required_versions_ET['test_parse_error'] = (1,3) -
2866 - def test_parse_error(self): -
2867 # ET < 1.3 raises ExpatError -2868 parse = self.etree.parse -2869 f = BytesIO('<a><b></c></b></a>') -2870 self.assertRaises(SyntaxError, parse, f) -2871 f.close() -
2872 -2873 required_versions_ET['test_parse_error_from_file'] = (1,3) -
2874 - def test_parse_error_from_file(self): -
2875 parse = self.etree.parse -2876 # from file -2877 f = open(fileInTestDir('test_broken.xml'), 'rb') -2878 self.assertRaises(SyntaxError, parse, f) -2879 f.close() -
2880 -
2881 - def test_parse_file_object(self): -
2882 parse = self.etree.parse -2883 # from file object -2884 f = open(fileInTestDir('test.xml'), 'rb') -2885 tree = parse(f) -2886 f.close() -2887 self.assertXML( -2888 _bytes('<a><b></b></a>'), -2889 tree.getroot()) -
2890 -
2891 - def test_parse_stringio(self): -
2892 parse = self.etree.parse -2893 f = BytesIO('<a><b></b></a>') -2894 tree = parse(f) -2895 f.close() -2896 self.assertXML( -2897 _bytes('<a><b></b></a>'), -2898 tree.getroot() -2899 ) -
2900 -
2901 - def test_parse_cdata(self): -
2902 tostring = self.etree.tostring -2903 root = self.etree.XML(_bytes('<root><![CDATA[test]]></root>')) -2904 -2905 self.assertEquals('test', root.text) -2906 self.assertEquals(_bytes('<root>test</root>'), -2907 tostring(root)) -
2908 -
2909 - def test_parse_with_encoding(self): -
2910 # this can fail in libxml2 <= 2.6.22 -2911 parse = self.etree.parse -2912 tree = parse(BytesIO('<?xml version="1.0" encoding="ascii"?><html/>')) -2913 self.assertXML(_bytes('<html></html>'), -2914 tree.getroot()) -
2915 -
2916 - def test_encoding(self): -
2917 Element = self.etree.Element -2918 -2919 a = Element('a') -2920 a.text = _str('Søk på nettet') -2921 self.assertXML( -2922 _str('<a>Søk på nettet</a>').encode('UTF-8'), -2923 a, 'utf-8') -
2924 -
2925 - def test_encoding_exact(self): -
2926 ElementTree = self.etree.ElementTree -2927 Element = self.etree.Element -2928 -2929 a = Element('a') -2930 a.text = _str('Søk på nettet') -2931 -2932 f = BytesIO() -2933 tree = ElementTree(element=a) -2934 tree.write(f, encoding='utf-8') -2935 self.assertEquals(_str('<a>Søk på nettet</a>').encode('UTF-8'), -2936 f.getvalue().replace(_bytes('\n'),_bytes(''))) -
2937 -
2938 - def test_parse_file_encoding(self): -
2939 parse = self.etree.parse -2940 # from file -2941 tree = parse(fileInTestDir('test-string.xml')) -2942 self.assertXML( -2943 _str('<a>Søk på nettet</a>').encode('UTF-8'), -2944 tree.getroot(), 'UTF-8') -
2945 -
2947 parse = self.etree.parse -2948 # from file object -2949 f = open(fileInTestDir('test-string.xml'), 'rb') -2950 tree = parse(f) -2951 f.close() -2952 self.assertXML( -2953 _str('<a>Søk på nettet</a>').encode('UTF-8'), -2954 tree.getroot(), 'UTF-8') -
2955 -
2956 - def test_encoding_8bit_latin1(self): -
2957 ElementTree = self.etree.ElementTree -2958 Element = self.etree.Element -2959 -2960 a = Element('a') -2961 a.text = _str('Søk på nettet') -2962 -2963 f = BytesIO() -2964 tree = ElementTree(element=a) -2965 tree.write(f, encoding='iso-8859-1') -2966 result = f.getvalue() -2967 declaration = _bytes("<?xml version=\'1.0\' encoding=\'iso-8859-1\'?>") -2968 self.assertEncodingDeclaration(result, _bytes('iso-8859-1')) -2969 result = result.split(_bytes('?>'), 1)[-1].replace(_bytes('\n'),_bytes('')) -2970 self.assertEquals(_str('<a>Søk på nettet</a>').encode('iso-8859-1'), -2971 result) -
2972 -2973 required_versions_ET['test_parse_encoding_8bit_explicit'] = (1,3) -
2975 XMLParser = self.etree.XMLParser -2976 -2977 text = _str('Søk på nettet') -2978 xml_latin1 = (_str('<a>%s</a>') % text).encode('iso-8859-1') -2979 -2980 self.assertRaises(self.etree.ParseError, -2981 self.etree.parse, -2982 BytesIO(xml_latin1)) -2983 -2984 tree = self.etree.parse(BytesIO(xml_latin1), -2985 XMLParser(encoding="iso-8859-1")) -2986 a = tree.getroot() -2987 self.assertEquals(a.text, text) -
2988 -2989 required_versions_ET['test_parse_encoding_8bit_override'] = (1,3) -
2991 XMLParser = self.etree.XMLParser -2992 -2993 text = _str('Søk på nettet') -2994 wrong_declaration = _str("<?xml version='1.0' encoding='UTF-8'?>") -2995 xml_latin1 = (_str('%s<a>%s</a>') % (wrong_declaration, text) -2996 ).encode('iso-8859-1') -2997 -2998 self.assertRaises(self.etree.ParseError, -2999 self.etree.parse, -3000 BytesIO(xml_latin1)) -3001 -3002 tree = self.etree.parse(BytesIO(xml_latin1), -3003 XMLParser(encoding="iso-8859-1")) -3004 a = tree.getroot() -3005 self.assertEquals(a.text, text) -
3006 -
3008 # raise error on wrong encoding declaration in unicode strings -3009 XML = self.etree.XML -3010 test_utf = (_str('<?xml version="1.0" encoding="iso-8859-1"?>') + -3011 _str('<a>Søk på nettet</a>')) -3012 self.assertRaises(SyntaxError, XML, test_utf) -
3013 -
3015 ElementTree = self.etree.ElementTree -3016 Element = self.etree.Element -3017 -3018 a = Element('a') -3019 a.text = _str('Søk på nettet') -3020 -3021 f = BytesIO() -3022 tree = ElementTree(element=a) -3023 tree.write(f) -3024 data = f.getvalue().replace(_bytes('\n'),_bytes('')) -3025 self.assertEquals( -3026 _str('<a>Søk på nettet</a>').encode('ASCII', 'xmlcharrefreplace'), -3027 data) -
3028 -
3029 - def test_encoding_tostring(self): -
3030 Element = self.etree.Element -3031 tostring = self.etree.tostring -3032 -3033 a = Element('a') -3034 a.text = _str('Søk på nettet') -3035 self.assertEquals(_str('<a>Søk på nettet</a>').encode('UTF-8'), -3036 tostring(a, encoding='utf-8')) -
3037 -
3039 Element = self.etree.Element -3040 tostring = self.etree.tostring -3041 -3042 a = Element('a') -3043 a.text = _str('Søk på nettet') -3044 self.assertRaises(LookupError, tostring, a, -3045 encoding='Invalid Encoding') -
3046 -
3047 - def test_encoding_tostring_sub(self): -
3048 Element = self.etree.Element -3049 SubElement = self.etree.SubElement -3050 tostring = self.etree.tostring -3051 -3052 a = Element('a') -3053 b = SubElement(a, 'b') -3054 b.text = _str('Søk på nettet') -3055 self.assertEquals(_str('<b>Søk på nettet</b>').encode('UTF-8'), -3056 tostring(b, encoding='utf-8')) -
3057 -
3059 Element = self.etree.Element -3060 SubElement = self.etree.SubElement -3061 tostring = self.etree.tostring -3062 -3063 a = Element('a') -3064 b = SubElement(a, 'b') -3065 b.text = _str('Søk på nettet') -3066 b.tail = _str('Søk') -3067 self.assertEquals(_str('<b>Søk på nettet</b>Søk').encode('UTF-8'), -3068 tostring(b, encoding='utf-8')) -
3069 -
3071 Element = self.etree.Element -3072 SubElement = self.etree.SubElement -3073 tostring = self.etree.tostring -3074 -3075 a = Element('a') -3076 a.text = _str('Søk på nettet') -3077 -3078 expected = _bytes('<a>S&#248;k p&#229; nettet</a>') -3079 self.assertEquals( -3080 expected, -3081 tostring(a)) -
3082 -
3084 Element = self.etree.Element -3085 SubElement = self.etree.SubElement -3086 tostring = self.etree.tostring -3087 -3088 a = Element('a') -3089 b = SubElement(a, 'b') -3090 b.text = _str('Søk på nettet') -3091 -3092 expected = _bytes('<b>S&#248;k p&#229; nettet</b>') -3093 self.assertEquals( -3094 expected, -3095 tostring(b)) -
3096 -
3097 - def test_encoding_8bit_xml(self): -
3098 utext = _str('Søk på nettet') -3099 uxml = _str('<p>%s</p>') % utext -3100 prologue = _bytes('<?xml version="1.0" encoding="iso-8859-1" ?>') -3101 isoxml = prologue + uxml.encode('iso-8859-1') -3102 tree = self.etree.XML(isoxml) -3103 self.assertEquals(utext, tree.text) -
3104 -
3105 - def test_encoding_utf8_bom(self): -
3106 utext = _str('Søk på nettet') -3107 uxml = (_str('<?xml version="1.0" encoding="UTF-8"?>') + -3108 _str('<p>%s</p>') % utext) -3109 bom = _bytes('\\xEF\\xBB\\xBF').decode("unicode_escape").encode("latin1") -3110 xml = bom + uxml.encode("utf-8") -3111 tree = etree.XML(xml) -3112 self.assertEquals(utext, tree.text) -
3113 -
3115 utext = _str('Søk på nettet') -3116 uxml = _str('<p>%s</p>') % utext -3117 prologue = _bytes('<?xml version="1.0" encoding="iso-8859-1" ?>') -3118 isoxml = prologue + uxml.encode('iso-8859-1') -3119 el = self.etree.parse(BytesIO(isoxml)).getroot() -3120 self.assertEquals(utext, el.text) -
3121 -
3122 - def test_deepcopy_elementtree(self): -
3123 Element = self.etree.Element -3124 ElementTree = self.etree.ElementTree -3125 -3126 a = Element('a') -3127 a.text = "Foo" -3128 atree = ElementTree(a) -3129 -3130 btree = copy.deepcopy(atree) -3131 self.assertEqual("Foo", atree.getroot().text) -3132 self.assertEqual("Foo", btree.getroot().text) -3133 self.assertFalse(btree is atree) -3134 self.assertFalse(btree.getroot() is atree.getroot()) -
3135 -
3136 - def test_deepcopy(self): -
3137 Element = self.etree.Element -3138 -3139 a = Element('a') -3140 a.text = 'Foo' -3141 -3142 b = copy.deepcopy(a) -3143 self.assertEquals('Foo', b.text) -3144 -3145 b.text = 'Bar' -3146 self.assertEquals('Bar', b.text) -3147 self.assertEquals('Foo', a.text) -3148 -3149 del a -3150 self.assertEquals('Bar', b.text) -
3151 -
3152 - def test_deepcopy_tail(self): -
3153 Element = self.etree.Element -3154 -3155 a = Element('a') -3156 a.tail = 'Foo' -3157 -3158 b = copy.deepcopy(a) -3159 self.assertEquals('Foo', b.tail) -3160 -3161 b.tail = 'Bar' -3162 self.assertEquals('Bar', b.tail) -3163 self.assertEquals('Foo', a.tail) -3164 -3165 del a -3166 self.assertEquals('Bar', b.tail) -
3167 -
3168 - def test_deepcopy_subelement(self): -
3169 Element = self.etree.Element -3170 SubElement = self.etree.SubElement -3171 -3172 root = Element('root') -3173 a = SubElement(root, 'a') -3174 a.text = 'FooText' -3175 a.tail = 'FooTail' -3176 -3177 b = copy.deepcopy(a) -3178 self.assertEquals('FooText', b.text) -3179 self.assertEquals('FooTail', b.tail) -3180 -3181 b.text = 'BarText' -3182 b.tail = 'BarTail' -3183 self.assertEquals('BarTail', b.tail) -3184 self.assertEquals('FooTail', a.tail) -3185 self.assertEquals('BarText', b.text) -3186 self.assertEquals('FooText', a.text) -3187 -3188 del a -3189 self.assertEquals('BarTail', b.tail) -3190 self.assertEquals('BarText', b.text) -
3191 -
3192 - def test_deepcopy_namespaces(self): -
3193 root = self.etree.XML(_bytes('''<doc xmlns="dns" xmlns:t="tns"> -3194 <parent><node t:foo="bar" /></parent> -3195 </doc>''')) -3196 self.assertEquals( -3197 root[0][0].get('{tns}foo'), -3198 copy.deepcopy(root[0])[0].get('{tns}foo') ) -3199 self.assertEquals( -3200 root[0][0].get('{tns}foo'), -3201 copy.deepcopy(root[0][0]).get('{tns}foo') ) -
3202 -
3203 - def test_deepcopy_append(self): -
3204 # previously caused a crash -3205 Element = self.etree.Element -3206 tostring = self.etree.tostring -3207 -3208 a = Element('a') -3209 b = copy.deepcopy(a) -3210 a.append( Element('C') ) -3211 b.append( Element('X') ) -3212 -3213 self.assertEquals(_bytes('<a><C/></a>'), -3214 tostring(a).replace(_bytes(' '), _bytes(''))) -3215 self.assertEquals(_bytes('<a><X/></a>'), -3216 tostring(b).replace(_bytes(' '), _bytes(''))) -
3217 -
3218 - def test_deepcopy_comment(self): -
3219 # previously caused a crash -3220 # not supported by ET < 1.3! -3221 Comment = self.etree.Comment -3222 -3223 a = Comment("ONE") -3224 b = copy.deepcopy(a) -3225 b.text = "ANOTHER" -3226 -3227 self.assertEquals('ONE', a.text) -3228 self.assertEquals('ANOTHER', b.text) -
3229 -
3230 - def test_shallowcopy(self): -
3231 Element = self.etree.Element -3232 -3233 a = Element('a') -3234 a.text = 'Foo' -3235 -3236 b = copy.copy(a) -3237 self.assertEquals('Foo', b.text) -3238 -3239 b.text = 'Bar' -3240 self.assertEquals('Bar', b.text) -3241 self.assertEquals('Foo', a.text) -
3242 # XXX ElementTree will share nodes, but lxml.etree won't.. -3243 -
3245 Element = self.etree.Element -3246 ElementTree = self.etree.ElementTree -3247 -3248 a = Element('a') -3249 a.text = 'Foo' -3250 atree = ElementTree(a) -3251 -3252 btree = copy.copy(atree) -3253 self.assertFalse(btree is atree) -3254 self.assert_(btree.getroot() is atree.getroot()) -3255 self.assertEquals('Foo', atree.getroot().text) -
3256 -
3257 - def _test_element_boolean(self): -
3258 # deprecated as of ET 1.3/lxml 2.0 -3259 etree = self.etree -3260 e = etree.Element('foo') -3261 self.assertEquals(False, bool(e)) -3262 etree.SubElement(e, 'bar') -3263 self.assertEquals(True, bool(e)) -3264 e = etree.Element('foo') -3265 e.text = 'hey' -3266 self.assertEquals(False, bool(e)) -3267 e = etree.Element('foo') -3268 e.tail = 'bar' -3269 self.assertEquals(False, bool(e)) -3270 e = etree.Element('foo') -3271 e.set('bar', 'Bar') -3272 self.assertEquals(False, bool(e)) -
3273 -
3274 - def test_multiple_elementrees(self): -
3275 etree = self.etree -3276 -3277 a = etree.Element('a') -3278 b = etree.SubElement(a, 'b') -3279 -3280 t = etree.ElementTree(a) -3281 self.assertEquals(self._rootstring(t), _bytes('<a><b/></a>')) -3282 -3283 t1 = etree.ElementTree(a) -3284 self.assertEquals(self._rootstring(t1), _bytes('<a><b/></a>')) -3285 self.assertEquals(self._rootstring(t), _bytes('<a><b/></a>')) -3286 -3287 t2 = etree.ElementTree(b) -3288 self.assertEquals(self._rootstring(t2), _bytes('<b/>')) -3289 self.assertEquals(self._rootstring(t1), _bytes('<a><b/></a>')) -3290 self.assertEquals(self._rootstring(t), _bytes('<a><b/></a>')) -
3291 -
3292 - def test_qname(self): -
3293 etree = self.etree -3294 qname = etree.QName('myns', 'a') -3295 a1 = etree.Element(qname) -3296 a2 = etree.SubElement(a1, qname) -3297 self.assertEquals(a1.tag, "{myns}a") -3298 self.assertEquals(a2.tag, "{myns}a") -
3299 -
3300 - def test_qname_cmp(self): -
3301 etree = self.etree -3302 qname1 = etree.QName('myns', 'a') -3303 qname2 = etree.QName('myns', 'a') -3304 self.assertEquals(qname1, "{myns}a") -3305 self.assertEquals("{myns}a", qname2) -3306 self.assertEquals(qname1, qname1) -3307 self.assertEquals(qname1, qname2) -
3308 -
3309 - def test_qname_attribute_getset(self): -
3310 etree = self.etree -3311 qname = etree.QName('myns', 'a') -3312 -3313 a = etree.Element(qname) -3314 a.set(qname, "value") -3315 -3316 self.assertEquals(a.get(qname), "value") -3317 self.assertEquals(a.get("{myns}a"), "value") -
3318 -
3319 - def test_qname_attrib(self): -
3320 etree = self.etree -3321 qname = etree.QName('myns', 'a') -3322 -3323 a = etree.Element(qname) -3324 a.attrib[qname] = "value" -3325 -3326 self.assertEquals(a.attrib[qname], "value") -3327 self.assertEquals(a.attrib.get(qname), "value") -3328 -3329 self.assertEquals(a.attrib["{myns}a"], "value") -3330 self.assertEquals(a.attrib.get("{myns}a"), "value") -
3331 -
3333 etree = self.etree -3334 qname = etree.QName('http://myns', 'a') -3335 a = etree.Element(qname) -3336 a.set(qname, qname) -3337 -3338 self.assertXML( -3339 _bytes('<ns0:a xmlns:ns0="http://myns" ns0:a="ns0:a"></ns0:a>'), -3340 a) -
3341 -
3343 etree = self.etree -3344 qname = etree.QName('http://myns', 'a') -3345 a = etree.Element('a') -3346 a.set('a', qname) -3347 -3348 self.assertXML( -3349 _bytes('<a xmlns:ns0="http://myns" a="ns0:a"></a>'), -3350 a) -
3351 -
3352 - def test_qname_attrib_resolve(self): -
3353 etree = self.etree -3354 qname = etree.QName('http://myns', 'a') -3355 a = etree.Element(qname) -3356 a.attrib[qname] = qname -3357 -3358 self.assertXML( -3359 _bytes('<ns0:a xmlns:ns0="http://myns" ns0:a="ns0:a"></ns0:a>'), -3360 a) -
3361 -
3362 - def test_parser_version(self): -
3363 etree = self.etree -3364 parser = etree.XMLParser() -3365 if hasattr(parser, "version"): -3366 # ElementTree 1.3+, cET -3367 self.assert_(re.match("[^ ]+ [0-9.]+", parser.version)) -
3368 -3369 # feed parser interface -3370 -
3371 - def test_feed_parser_bytes(self): -
3372 parser = self.etree.XMLParser() -3373 -3374 parser.feed(_bytes('<?xml version=')) -3375 parser.feed(_bytes('"1.0"?><ro')) -3376 parser.feed(_bytes('ot><')) -3377 parser.feed(_bytes('a test="works"/')) -3378 parser.feed(_bytes('></root')) -3379 parser.feed(_bytes('>')) -3380 -3381 root = parser.close() -3382 -3383 self.assertEquals(root.tag, "root") -3384 self.assertEquals(root[0].tag, "a") -3385 self.assertEquals(root[0].get("test"), "works") -
3386 -
3387 - def test_feed_parser_unicode(self): -
3388 parser = self.etree.XMLParser() -3389 -3390 parser.feed(_str('<ro')) -3391 parser.feed(_str('ot><')) -3392 parser.feed(_str('a test="works"/')) -3393 parser.feed(_str('></root')) -3394 parser.feed(_str('>')) -3395 -3396 root = parser.close() -3397 -3398 self.assertEquals(root.tag, "root") -3399 self.assertEquals(root[0].tag, "a") -3400 self.assertEquals(root[0].get("test"), "works") -
3401 -3402 required_versions_ET['test_feed_parser_error_close_empty'] = (1,3) -
3404 ParseError = self.etree.ParseError -3405 parser = self.etree.XMLParser() -3406 self.assertRaises(ParseError, parser.close) -
3407 -3408 required_versions_ET['test_feed_parser_error_close_incomplete'] = (1,3) -
3410 ParseError = self.etree.ParseError -3411 parser = self.etree.XMLParser() -3412 -3413 parser.feed('<?xml version=') -3414 parser.feed('"1.0"?><ro') -3415 -3416 self.assertRaises(ParseError, parser.close) -
3417 -3418 required_versions_ET['test_feed_parser_error_broken'] = (1,3) -
3420 ParseError = self.etree.ParseError -3421 parser = self.etree.XMLParser() -3422 -3423 parser.feed('<?xml version=') -3424 parser.feed('"1.0"?><ro') -3425 try: -3426 parser.feed('<><><><><><><') -3427 except ParseError: -3428 # can raise, but not required before close() -3429 pass -3430 -3431 self.assertRaises(ParseError, parser.close) -
3432 -3433 required_versions_ET['test_feed_parser_error_position'] = (1,3) -
3435 ParseError = self.etree.ParseError -3436 parser = self.etree.XMLParser() -3437 try: -3438 parser.close() -3439 except ParseError: -3440 e = sys.exc_info()[1] -3441 self.assertNotEquals(None, e.code) -3442 self.assertNotEquals(0, e.code) -3443 self.assert_(isinstance(e.position, tuple)) -3444 self.assert_(e.position >= (0, 0)) -
3445 -3446 # parser target interface -3447 -3448 required_versions_ET['test_parser_target_property'] = (1,3) -
3449 - def test_parser_target_property(self): -
3450 class Target(object): -3451 pass -
3452 -3453 target = Target() -3454 parser = self.etree.XMLParser(target=target) -3455 -3456 self.assertEquals(target, parser.target) -3457 -
3458 - def test_parser_target_tag(self): -
3459 assertEquals = self.assertEquals -3460 assertFalse = self.assertFalse -3461 -3462 events = [] -3463 class Target(object): -3464 def start(self, tag, attrib): -3465 events.append("start") -3466 assertFalse(attrib) -3467 assertEquals("TAG", tag) -
3468 def end(self, tag): -3469 events.append("end") -3470 assertEquals("TAG", tag) -3471 def close(self): -3472 return "DONE" -3473 -3474 parser = self.etree.XMLParser(target=Target()) -3475 -3476 parser.feed("<TAG/>") -3477 done = parser.close() -3478 -3479 self.assertEquals("DONE", done) -3480 self.assertEquals(["start", "end"], events) -3481 -
3483 assertEquals = self.assertEquals -3484 assertFalse = self.assertFalse -3485 Element = self.etree.Element -3486 -3487 events = [] -3488 class Target(object): -3489 def start(self, tag, attrib): -3490 events.append("start") -3491 assertFalse(attrib) -3492 assertEquals("TAG", tag) -
3493 def end(self, tag): -3494 events.append("end") -3495 assertEquals("TAG", tag) -3496 def close(self): -3497 return Element("DONE") -3498 -3499 parser = self.etree.XMLParser(target=Target()) -3500 tree = self.etree.ElementTree() -3501 tree.parse(BytesIO("<TAG/>"), parser=parser) -3502 -3503 self.assertEquals("DONE", tree.getroot().tag) -3504 self.assertEquals(["start", "end"], events) -3505 -
3506 - def test_parser_target_attrib(self): -
3507 assertEquals = self.assertEquals -3508 -3509 events = [] -3510 class Target(object): -3511 def start(self, tag, attrib): -3512 events.append("start-" + tag) -3513 for name, value in attrib.items(): -3514 assertEquals(tag + name, value) -
3515 def end(self, tag): -3516 events.append("end-" + tag) -3517 def close(self): -3518 return "DONE" -3519 -3520 parser = self.etree.XMLParser(target=Target()) -3521 -3522 parser.feed('<root a="roota" b="rootb"><sub c="subc"/></root>') -3523 done = parser.close() -3524 -3525 self.assertEquals("DONE", done) -3526 self.assertEquals(["start-root", "start-sub", "end-sub", "end-root"], -3527 events) -3528 -
3529 - def test_parser_target_data(self): -
3530 events = [] -3531 class Target(object): -3532 def start(self, tag, attrib): -3533 events.append("start-" + tag) -
3534 def end(self, tag): -3535 events.append("end-" + tag) -3536 def data(self, data): -3537 events.append("data-" + data) -3538 def close(self): -3539 return "DONE" -3540 -3541 parser = self.etree.XMLParser(target=Target()) -3542 -3543 parser.feed('<root>A<sub/>B</root>') -3544 done = parser.close() -3545 -3546 self.assertEquals("DONE", done) -3547 self.assertEquals(["start-root", "data-A", "start-sub", -3548 "end-sub", "data-B", "end-root"], -3549 events) -3550 -
3551 - def test_parser_target_entity(self): -
3552 events = [] -3553 class Target(object): -3554 def __init__(self): -3555 self._data = [] -
3556 def _flush_data(self): -3557 if self._data: -3558 events.append("data-" + ''.join(self._data)) -3559 del self._data[:] -3560 def start(self, tag, attrib): -3561 self._flush_data() -3562 events.append("start-" + tag) -3563 def end(self, tag): -3564 self._flush_data() -3565 events.append("end-" + tag) -3566 def data(self, data): -3567 self._data.append(data) -3568 def close(self): -3569 self._flush_data() -3570 return "DONE" -3571 -3572 parser = self.etree.XMLParser(target=Target()) -3573 -3574 dtd = ''' -3575 <!DOCTYPE root [ -3576 <!ELEMENT root (sub*)> -3577 <!ELEMENT sub (#PCDATA)> -3578 <!ENTITY ent "an entity"> -3579 ]> -3580 ''' -3581 parser.feed(dtd+'<root><sub/><sub>this is &ent;</sub><sub/></root>') -3582 done = parser.close() -3583 -3584 self.assertEquals("DONE", done) -3585 self.assertEquals(["start-root", "start-sub", "end-sub", "start-sub", -3586 "data-this is an entity", -3587 "end-sub", "start-sub", "end-sub", "end-root"], -3588 events) -3589 -3590 required_versions_ET['test_parser_target_entity_unknown'] = (1,3) -
3592 events = [] -3593 class Target(object): -3594 def __init__(self): -3595 self._data = [] -
3596 def _flush_data(self): -3597 if self._data: -3598 events.append("data-" + ''.join(self._data)) -3599 del self._data[:] -3600 def start(self, tag, attrib): -3601 self._flush_data() -3602 events.append("start-" + tag) -3603 def end(self, tag): -3604 self._flush_data() -3605 events.append("end-" + tag) -3606 def data(self, data): -3607 self._data.append(data) -3608 def close(self): -3609 self._flush_data() -3610 return "DONE" -3611 -3612 parser = self.etree.XMLParser(target=Target()) -3613 -3614 def feed(): -3615 parser.feed('<root><sub/><sub>some &ent;</sub><sub/></root>') -3616 parser.close() -3617 -3618 self.assertRaises(self.etree.ParseError, feed) -3619 -
3620 - def test_treebuilder(self): -
3621 builder = self.etree.TreeBuilder() -3622 el = builder.start("root", {'a':'A', 'b':'B'}) -3623 self.assertEquals("root", el.tag) -3624 self.assertEquals({'a':'A', 'b':'B'}, el.attrib) -3625 builder.data("ROOTTEXT") -3626 el = builder.start("child", {'x':'X', 'y':'Y'}) -3627 self.assertEquals("child", el.tag) -3628 self.assertEquals({'x':'X', 'y':'Y'}, el.attrib) -3629 builder.data("CHILDTEXT") -3630 el = builder.end("child") -3631 self.assertEquals("child", el.tag) -3632 self.assertEquals({'x':'X', 'y':'Y'}, el.attrib) -3633 self.assertEquals("CHILDTEXT", el.text) -3634 self.assertEquals(None, el.tail) -3635 builder.data("CHILDTAIL") -3636 root = builder.end("root") -3637 -3638 self.assertEquals("root", root.tag) -3639 self.assertEquals("ROOTTEXT", root.text) -3640 self.assertEquals("CHILDTEXT", root[0].text) -3641 self.assertEquals("CHILDTAIL", root[0].tail) -
3642 -
3643 - def test_treebuilder_target(self): -
3644 parser = self.etree.XMLParser(target=self.etree.TreeBuilder()) -3645 parser.feed('<root>ROOTTEXT<child>CHILDTEXT</child>CHILDTAIL</root>') -3646 root = parser.close() -3647 -3648 self.assertEquals("root", root.tag) -3649 self.assertEquals("ROOTTEXT", root.text) -3650 self.assertEquals("CHILDTEXT", root[0].text) -3651 self.assertEquals("CHILDTAIL", root[0].tail) -
3652 -3653 # helper methods -3654 -
3655 - def _writeElement(self, element, encoding='us-ascii'): -
3656 """Write out element for comparison. -3657 """ -3658 data = self.etree.tostring(element, encoding=encoding) -3659 return canonicalize(data) -
3660 -
3661 - def _writeElementFile(self, element, encoding='us-ascii'): -
3662 """Write out element for comparison, using real file. -3663 """ -3664 ElementTree = self.etree.ElementTree -3665 handle, filename = tempfile.mkstemp() -3666 try: -3667 f = open(filename, 'wb') -3668 tree = ElementTree(element=element) -3669 tree.write(f, encoding=encoding) -3670 f.close() -3671 f = open(filename, 'rb') -3672 data = f.read() -3673 f.close() -3674 finally: -3675 os.close(handle) -3676 os.remove(filename) -3677 return canonicalize(data) -
3678 -
3679 - def assertXML(self, expected, element, encoding='us-ascii'): -
3680 """Writes element out and checks whether it is expected. -3681 -3682 Does this two ways; once using BytesIO, once using a real file. -3683 """ -3684 if isinstance(expected, unicode): -3685 expected = expected.encode(encoding) -3686 self.assertEquals(expected, self._writeElement(element, encoding)) -3687 self.assertEquals(expected, self._writeElementFile(element, encoding)) -
3688 -
3689 - def assertEncodingDeclaration(self, result, encoding): -
3690 "Checks if the result XML byte string specifies the encoding." -3691 enc_re = r"<\?xml[^>]+ encoding=[\"']([^\"']+)[\"']" -3692 if isinstance(result, str): -3693 has_encoding = re.compile(enc_re).match -3694 else: -3695 has_encoding = re.compile(_bytes(enc_re)).match -3696 self.assert_(has_encoding(result)) -3697 result_encoding = has_encoding(result).group(1) -3698 self.assertEquals(result_encoding.upper(), encoding.upper()) -
3699 -
3700 - def _rootstring(self, tree): -
3701 return self.etree.tostring(tree.getroot()).replace( -3702 _bytes(' '), _bytes('')).replace(_bytes('\n'), _bytes('')) -
3703 -
3704 - def _check_element_tree(self, tree): -
3705 self._check_element(tree.getroot()) -
3706 -
3707 - def _check_element(self, element): -
3708 self.assert_(hasattr(element, 'tag')) -3709 self.assert_(hasattr(element, 'attrib')) -3710 self.assert_(hasattr(element, 'text')) -3711 self.assert_(hasattr(element, 'tail')) -3712 self._check_string(element.tag) -3713 self._check_mapping(element.attrib) -3714 if element.text != None: -3715 self._check_string(element.text) -3716 if element.tail != None: -3717 self._check_string(element.tail) -
3718 -
3719 - def _check_string(self, string): -
3720 len(string) -3721 for char in string: -3722 self.assertEquals(1, len(char)) -3723 new_string = string + "" -3724 new_string = string + " " -3725 string[:0] -
3726 -
3727 - def _check_mapping(self, mapping): -
3728 len(mapping) -3729 keys = mapping.keys() -3730 values = mapping.values() -3731 items = mapping.items() -3732 for key in keys: -3733 item = mapping[key] -3734 mapping["key"] = "value" -3735 self.assertEquals("value", mapping["key"]) -
3736 -3737 -3738 if etree: -
3739 - class ETreeTestCase(_ETreeTestCaseBase): -
3740 etree = etree -
3741 -3742 if ElementTree: -
3743 - class ElementTreeTestCase(_ETreeTestCaseBase): -
3745 -3746 filter_by_version( -3747 ElementTreeTestCase, -3748 ElementTreeTestCase.required_versions_ET, ET_VERSION) -3749 -3750 if cElementTree: -
3751 - class CElementTreeTestCase(_ETreeTestCaseBase): -
3753 -3754 filter_by_version( -3755 CElementTreeTestCase, -3756 CElementTreeTestCase.required_versions_cET, CET_VERSION) -3757 -
3758 -def test_suite(): -
3759 suite = unittest.TestSuite() -3760 if etree: -3761 suite.addTests([unittest.makeSuite(ETreeTestCase)]) -3762 if ElementTree: -3763 suite.addTests([unittest.makeSuite(ElementTreeTestCase)]) -3764 if cElementTree: -3765 suite.addTests([unittest.makeSuite(CElementTreeTestCase)]) -3766 return suite -
3767 -3768 if __name__ == '__main__': -3769 print('to test use test.py %s' % __file__) -3770 -
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.test_elementtree.CElementTreeTestCase-class.html b/doc/html/api/lxml.tests.test_elementtree.CElementTreeTestCase-class.html deleted file mode 100644 index b6ce161..0000000 --- a/doc/html/api/lxml.tests.test_elementtree.CElementTreeTestCase-class.html +++ /dev/null @@ -1,627 +0,0 @@ - - - - - lxml.tests.test_elementtree.CElementTreeTestCase - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module test_elementtree :: - Class CElementTreeTestCase - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class CElementTreeTestCase

source code

-
-               object --+            
-                        |            
-   unittest.case.TestCase --+        
-                            |        
-common_imports.HelperTestCase --+    
-                                |    
-               _ETreeTestCaseBase --+
-                                    |
-                                   CElementTreeTestCase
-
- -
- - - - - - - - - -
- - - - - -
Nested Classes[hide private]
-
-

Inherited from unittest.case.TestCase: - failureException -

-
- - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-

Inherited from _ETreeTestCaseBase: - assertEncodingDeclaration, - assertXML, - test_ElementTree, - test_XML, - test_XMLID, - test_attrib_clear, - test_attrib_ns_clear, - test_attrib_pop, - test_attrib_pop_default, - test_attrib_pop_empty_default, - test_attrib_pop_invalid_args, - test_attrib_pop_unknown, - test_attrib_set_clear, - test_attribute_contains, - test_attribute_items, - test_attribute_items2, - test_attribute_items_ns, - test_attribute_iterator, - test_attribute_keys, - test_attribute_keys2, - test_attribute_keys_ns, - test_attribute_manipulation, - test_attribute_namespace_roundtrip, - test_attribute_namespace_roundtrip_replaced, - test_attribute_set, - test_attribute_str, - test_attribute_update_attrib, - test_attribute_update_dict, - test_attribute_update_iter, - test_attribute_update_sequence, - test_attribute_values, - test_attribute_values_ns, - test_attribute_xmlns_move, - test_attributes, - test_attributes2, - test_attributes3, - test_clear, - test_clear_sub, - test_clear_tail, - test_comment, - test_comment_getitem_getslice, - test_comment_nonsense, - test_comment_text, - test_comment_whitespace, - test_crash, - test_deepcopy, - test_deepcopy_append, - test_deepcopy_comment, - test_deepcopy_elementtree, - test_deepcopy_namespaces, - test_deepcopy_subelement, - test_deepcopy_tail, - test_del_attribute_ns, - test_del_attribute_ns_parsed, - test_del_insert, - test_del_setitem, - test_del_setslice, - test_delitem, - test_delitem_tail, - test_delslice, - test_delslice_child_tail, - test_delslice_memory, - test_delslice_negative1, - test_delslice_negative2, - test_delslice_step, - test_delslice_step_negative, - test_delslice_step_negative2, - test_delslice_tail, - test_element, - test_element_contains, - test_element_indexing_negative, - test_element_indexing_only_text, - test_element_indexing_with_text, - test_element_indexing_with_text2, - test_element_with_attributes, - test_element_with_attributes_keywords, - test_element_with_attributes_ns, - test_elementtree, - test_elementtree_getiterator, - test_elementtree_getiterator_filter, - test_elementtree_parser_target, - test_encoding, - test_encoding_8bit_latin1, - test_encoding_8bit_parse_stringio, - test_encoding_8bit_xml, - test_encoding_exact, - test_encoding_sub_tostring_default_encoding, - test_encoding_tostring, - test_encoding_tostring_default_encoding, - test_encoding_tostring_sub, - test_encoding_tostring_sub_tail, - test_encoding_tostring_unknown, - test_encoding_utf8_bom, - test_encoding_write_default_encoding, - test_extend, - test_feed_parser_bytes, - test_feed_parser_error_broken, - test_feed_parser_error_close_empty, - test_feed_parser_error_close_incomplete, - test_feed_parser_error_position, - test_feed_parser_unicode, - test_findall, - test_findall_ns, - test_fromstring, - test_fromstringlist, - test_fromstringlist_characters, - test_fromstringlist_single, - test_getiterator, - test_getiterator_empty, - test_getiterator_filter, - test_getiterator_filter_all, - test_getiterator_filter_comment, - test_getiterator_filter_pi, - test_getiterator_filter_with_text, - test_getiterator_with_text, - test_getslice, - test_getslice_negative, - test_getslice_step, - test_getslice_text, - test_insert, - test_insert_beyond_index, - test_insert_negative, - test_insert_tail, - test_iselement, - test_iter, - test_iteration, - test_iteration_crash, - test_iteration_del_child, - test_iteration_double, - test_iteration_empty, - test_iteration_reversed, - test_iteration_subelement, - test_iteration_text_only, - test_iterparse, - test_iterparse_attrib_ns, - test_iterparse_cdata, - test_iterparse_clear, - test_iterparse_file, - test_iterparse_getiterator, - test_iterparse_large, - test_iterparse_move_elements, - test_iterparse_start, - test_iterparse_start_end, - test_itertext, - test_itertext_child, - test_makeelement, - test_merge_namespaced_subtree_as_slice, - test_multiple_elementrees, - test_namespaces_after_serialize, - test_ns_access, - test_ns_access2, - test_ns_attr, - test_ns_decl_tostring, - test_ns_decl_tostring_default, - test_ns_decl_tostring_element, - test_ns_decl_tostring_root, - test_ns_move, - test_ns_setting, - test_ns_tag_parse, - test_parse_cdata, - test_parse_encoding_8bit_explicit, - test_parse_encoding_8bit_override, - test_parse_error, - test_parse_error_from_file, - test_parse_error_none, - test_parse_file, - test_parse_file_encoding, - test_parse_file_nonexistent, - test_parse_file_object, - test_parse_file_object_encoding, - test_parse_stringio, - test_parse_with_encoding, - test_parser_target_attrib, - test_parser_target_data, - test_parser_target_entity, - test_parser_target_entity_unknown, - test_parser_target_property, - test_parser_target_tag, - test_parser_version, - test_pi, - test_pi_nonsense, - test_processinginstruction, - test_qname, - test_qname_attrib, - test_qname_attrib_resolve, - test_qname_attribute_getset, - test_qname_attribute_resolve, - test_qname_attribute_resolve_new, - test_qname_cmp, - test_register_namespace, - test_remove, - test_remove_nonexisting, - test_remove_ns, - test_remove_tail, - test_replace_slice_tail, - test_set_text, - test_set_text2, - test_set_text_empty, - test_set_text_none, - test_setitem, - test_setitem2, - test_setitem_indexerror, - test_setitem_replace, - test_setitem_tail, - test_setslice, - test_setslice_all, - test_setslice_all_empty, - test_setslice_all_replace, - test_setslice_all_replace_reversed, - test_setslice_all_replace_reversed_ns1, - test_setslice_all_replace_reversed_ns2, - test_setslice_empty, - test_setslice_end, - test_setslice_negative, - test_setslice_negative2, - test_setslice_single, - test_setslice_tail, - test_shallowcopy, - test_shallowcopy_elementtree, - test_simple, - test_subelement, - test_subelement_reference, - test_subelement_with_attributes, - test_subelement_with_attributes_ns, - test_tag_reset_ns, - test_tag_reset_root_ns, - test_tag_str_subclass, - test_tag_write, - test_tail, - test_tail1, - test_tail_append, - test_tail_elementtree_root, - test_tail_set_none, - test_tail_set_twice, - test_tail_str_subclass, - test_text, - test_text_empty, - test_text_escape_in, - test_text_escape_out, - test_text_escape_tostring, - test_text_other, - test_text_str_subclass, - test_tostring, - test_tostring_element, - test_tostring_element_tail, - test_tostring_method_html, - test_tostring_method_text, - test_treebuilder, - test_treebuilder_target, - test_weird_dict_interaction, - test_write, - test_write_ElementTreeDoctest, - test_write_fail, - test_write_method_html, - test_write_method_text -

- -

Inherited from common_imports.HelperTestCase: - parse, - tearDown -

-

Inherited from unittest.case.TestCase: - __call__, - __eq__, - __hash__, - __init__, - __ne__, - __repr__, - __str__, - addCleanup, - addTypeEqualityFunc, - assertAlmostEqual, - assertAlmostEquals, - assertDictContainsSubset, - assertDictEqual, - assertEqual, - assertEquals, - assertGreater, - assertGreaterEqual, - assertIn, - assertIs, - assertIsInstance, - assertIsNone, - assertIsNot, - assertIsNotNone, - assertItemsEqual, - assertLess, - assertLessEqual, - assertListEqual, - assertMultiLineEqual, - assertNotAlmostEqual, - assertNotAlmostEquals, - assertNotEqual, - assertNotEquals, - assertNotIn, - assertNotIsInstance, - assertNotRegexpMatches, - assertRaises, - assertRaisesRegexp, - assertRegexpMatches, - assertSequenceEqual, - assertSetEqual, - assertTrue, - assertTupleEqual, - assert_, - countTestCases, - debug, - defaultTestResult, - doCleanups, - fail, - failIf, - failIfAlmostEqual, - failIfEqual, - failUnless, - failUnlessAlmostEqual, - failUnlessEqual, - failUnlessRaises, - id, - run, - setUp, - shortDescription, - skipTest -

-

Inherited from unittest.case.TestCase (private): - _addSkip, - _baseAssertEqual, - _deprecate, - _formatMessage, - _getAssertEqualityFunc, - _truncateMessage -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __new__, - __reduce__, - __reduce_ex__, - __setattr__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Class Methods[hide private]
-
-

Inherited from unittest.case.TestCase: - setUpClass, - tearDownClass -

-
- - - - - - - - - - - - -
- - - - - -
Class Variables[hide private]
-
-   - - etree = None
- hash(x) -
-

Inherited from _ETreeTestCaseBase: - required_versions_ET, - required_versions_cET -

-

Inherited from common_imports.HelperTestCase: - assertFalse -

-

Inherited from unittest.case.TestCase: - longMessage, - maxDiff -

-

Inherited from unittest.case.TestCase (private): - _classSetupFailed, - _diffThreshold -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.test_elementtree.ETreeTestCase-class.html b/doc/html/api/lxml.tests.test_elementtree.ETreeTestCase-class.html deleted file mode 100644 index 82d5191..0000000 --- a/doc/html/api/lxml.tests.test_elementtree.ETreeTestCase-class.html +++ /dev/null @@ -1,663 +0,0 @@ - - - - - lxml.tests.test_elementtree.ETreeTestCase - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module test_elementtree :: - Class ETreeTestCase - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class ETreeTestCase

source code

-
-               object --+            
-                        |            
-   unittest.case.TestCase --+        
-                            |        
-common_imports.HelperTestCase --+    
-                                |    
-               _ETreeTestCaseBase --+
-                                    |
-                                   ETreeTestCase
-
- -
- - - - - - - - - -
- - - - - -
Nested Classes[hide private]
-
-

Inherited from unittest.case.TestCase: - failureException -

-
- - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-

Inherited from _ETreeTestCaseBase: - assertEncodingDeclaration, - assertXML, - test_ElementTree, - test_XML, - test_XMLID, - test_attrib_clear, - test_attrib_ns_clear, - test_attrib_pop, - test_attrib_pop_default, - test_attrib_pop_empty_default, - test_attrib_pop_invalid_args, - test_attrib_pop_unknown, - test_attrib_set_clear, - test_attribute_contains, - test_attribute_items, - test_attribute_items2, - test_attribute_items_ns, - test_attribute_iterator, - test_attribute_keys, - test_attribute_keys2, - test_attribute_keys_ns, - test_attribute_manipulation, - test_attribute_namespace_roundtrip, - test_attribute_namespace_roundtrip_replaced, - test_attribute_set, - test_attribute_str, - test_attribute_update_attrib, - test_attribute_update_dict, - test_attribute_update_iter, - test_attribute_update_sequence, - test_attribute_values, - test_attribute_values_ns, - test_attribute_xmlns_move, - test_attributes, - test_attributes2, - test_attributes3, - test_clear, - test_clear_sub, - test_clear_tail, - test_comment, - test_comment_getitem_getslice, - test_comment_nonsense, - test_comment_text, - test_comment_whitespace, - test_crash, - test_deepcopy, - test_deepcopy_append, - test_deepcopy_comment, - test_deepcopy_elementtree, - test_deepcopy_namespaces, - test_deepcopy_subelement, - test_deepcopy_tail, - test_del_attribute_ns, - test_del_attribute_ns_parsed, - test_del_insert, - test_del_setitem, - test_del_setslice, - test_delitem, - test_delitem_tail, - test_delslice, - test_delslice_child_tail, - test_delslice_memory, - test_delslice_negative1, - test_delslice_negative2, - test_delslice_step, - test_delslice_step_negative, - test_delslice_step_negative2, - test_delslice_tail, - test_element, - test_element_contains, - test_element_indexing_negative, - test_element_indexing_only_text, - test_element_indexing_with_text, - test_element_indexing_with_text2, - test_element_with_attributes, - test_element_with_attributes_keywords, - test_element_with_attributes_ns, - test_elementtree, - test_elementtree_getiterator, - test_elementtree_getiterator_filter, - test_elementtree_parser_target, - test_encoding, - test_encoding_8bit_latin1, - test_encoding_8bit_parse_stringio, - test_encoding_8bit_xml, - test_encoding_exact, - test_encoding_sub_tostring_default_encoding, - test_encoding_tostring, - test_encoding_tostring_default_encoding, - test_encoding_tostring_sub, - test_encoding_tostring_sub_tail, - test_encoding_tostring_unknown, - test_encoding_utf8_bom, - test_encoding_write_default_encoding, - test_extend, - test_feed_parser_bytes, - test_feed_parser_error_broken, - test_feed_parser_error_close_empty, - test_feed_parser_error_close_incomplete, - test_feed_parser_error_position, - test_feed_parser_unicode, - test_findall, - test_findall_ns, - test_fromstring, - test_fromstringlist, - test_fromstringlist_characters, - test_fromstringlist_single, - test_getiterator, - test_getiterator_empty, - test_getiterator_filter, - test_getiterator_filter_all, - test_getiterator_filter_comment, - test_getiterator_filter_pi, - test_getiterator_filter_with_text, - test_getiterator_with_text, - test_getslice, - test_getslice_negative, - test_getslice_step, - test_getslice_text, - test_insert, - test_insert_beyond_index, - test_insert_negative, - test_insert_tail, - test_iselement, - test_iter, - test_iteration, - test_iteration_crash, - test_iteration_del_child, - test_iteration_double, - test_iteration_empty, - test_iteration_reversed, - test_iteration_subelement, - test_iteration_text_only, - test_iterparse, - test_iterparse_attrib_ns, - test_iterparse_cdata, - test_iterparse_clear, - test_iterparse_file, - test_iterparse_getiterator, - test_iterparse_large, - test_iterparse_move_elements, - test_iterparse_start, - test_iterparse_start_end, - test_itertext, - test_itertext_child, - test_makeelement, - test_merge_namespaced_subtree_as_slice, - test_multiple_elementrees, - test_namespaces_after_serialize, - test_ns_access, - test_ns_access2, - test_ns_attr, - test_ns_decl_tostring, - test_ns_decl_tostring_default, - test_ns_decl_tostring_element, - test_ns_decl_tostring_root, - test_ns_move, - test_ns_setting, - test_ns_tag_parse, - test_parse_cdata, - test_parse_encoding_8bit_explicit, - test_parse_encoding_8bit_override, - test_parse_error, - test_parse_error_from_file, - test_parse_error_none, - test_parse_file, - test_parse_file_encoding, - test_parse_file_nonexistent, - test_parse_file_object, - test_parse_file_object_encoding, - test_parse_stringio, - test_parse_with_encoding, - test_parser_target_attrib, - test_parser_target_data, - test_parser_target_entity, - test_parser_target_entity_unknown, - test_parser_target_property, - test_parser_target_tag, - test_parser_version, - test_pi, - test_pi_nonsense, - test_processinginstruction, - test_qname, - test_qname_attrib, - test_qname_attrib_resolve, - test_qname_attribute_getset, - test_qname_attribute_resolve, - test_qname_attribute_resolve_new, - test_qname_cmp, - test_register_namespace, - test_remove, - test_remove_nonexisting, - test_remove_ns, - test_remove_tail, - test_replace_slice_tail, - test_set_text, - test_set_text2, - test_set_text_empty, - test_set_text_none, - test_setitem, - test_setitem2, - test_setitem_indexerror, - test_setitem_replace, - test_setitem_tail, - test_setslice, - test_setslice_all, - test_setslice_all_empty, - test_setslice_all_replace, - test_setslice_all_replace_reversed, - test_setslice_all_replace_reversed_ns1, - test_setslice_all_replace_reversed_ns2, - test_setslice_empty, - test_setslice_end, - test_setslice_negative, - test_setslice_negative2, - test_setslice_single, - test_setslice_tail, - test_shallowcopy, - test_shallowcopy_elementtree, - test_simple, - test_subelement, - test_subelement_reference, - test_subelement_with_attributes, - test_subelement_with_attributes_ns, - test_tag_reset_ns, - test_tag_reset_root_ns, - test_tag_str_subclass, - test_tag_write, - test_tail, - test_tail1, - test_tail_append, - test_tail_elementtree_root, - test_tail_set_none, - test_tail_set_twice, - test_tail_str_subclass, - test_text, - test_text_empty, - test_text_escape_in, - test_text_escape_out, - test_text_escape_tostring, - test_text_other, - test_text_str_subclass, - test_tostring, - test_tostring_element, - test_tostring_element_tail, - test_tostring_method_html, - test_tostring_method_text, - test_treebuilder, - test_treebuilder_target, - test_weird_dict_interaction, - test_write, - test_write_ElementTreeDoctest, - test_write_fail, - test_write_method_html, - test_write_method_text -

- -

Inherited from common_imports.HelperTestCase: - parse, - tearDown -

-

Inherited from unittest.case.TestCase: - __call__, - __eq__, - __hash__, - __init__, - __ne__, - __repr__, - __str__, - addCleanup, - addTypeEqualityFunc, - assertAlmostEqual, - assertAlmostEquals, - assertDictContainsSubset, - assertDictEqual, - assertEqual, - assertEquals, - assertGreater, - assertGreaterEqual, - assertIn, - assertIs, - assertIsInstance, - assertIsNone, - assertIsNot, - assertIsNotNone, - assertItemsEqual, - assertLess, - assertLessEqual, - assertListEqual, - assertMultiLineEqual, - assertNotAlmostEqual, - assertNotAlmostEquals, - assertNotEqual, - assertNotEquals, - assertNotIn, - assertNotIsInstance, - assertNotRegexpMatches, - assertRaises, - assertRaisesRegexp, - assertRegexpMatches, - assertSequenceEqual, - assertSetEqual, - assertTrue, - assertTupleEqual, - assert_, - countTestCases, - debug, - defaultTestResult, - doCleanups, - fail, - failIf, - failIfAlmostEqual, - failIfEqual, - failUnless, - failUnlessAlmostEqual, - failUnlessEqual, - failUnlessRaises, - id, - run, - setUp, - shortDescription, - skipTest -

-

Inherited from unittest.case.TestCase (private): - _addSkip, - _baseAssertEqual, - _deprecate, - _formatMessage, - _getAssertEqualityFunc, - _truncateMessage -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __new__, - __reduce__, - __reduce_ex__, - __setattr__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Class Methods[hide private]
-
-

Inherited from unittest.case.TestCase: - setUpClass, - tearDownClass -

-
- - - - - - - - - - - - -
- - - - - -
Class Variables[hide private]
-
-   - - etree
- The lxml.etree module implements the extended ElementTree API -for XML. -
-

Inherited from _ETreeTestCaseBase: - required_versions_ET, - required_versions_cET -

-

Inherited from common_imports.HelperTestCase: - assertFalse -

-

Inherited from unittest.case.TestCase: - longMessage, - maxDiff -

-

Inherited from unittest.case.TestCase (private): - _classSetupFailed, - _diffThreshold -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Class Variable Details[hide private]
-
- -
- -
-

etree

- The lxml.etree module implements the extended ElementTree API -for XML. -
-
-
-
Value:
-
lxml.etree
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.test_elementtree.ElementTreeTestCase-class.html b/doc/html/api/lxml.tests.test_elementtree.ElementTreeTestCase-class.html deleted file mode 100644 index 6227dda..0000000 --- a/doc/html/api/lxml.tests.test_elementtree.ElementTreeTestCase-class.html +++ /dev/null @@ -1,661 +0,0 @@ - - - - - lxml.tests.test_elementtree.ElementTreeTestCase - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module test_elementtree :: - Class ElementTreeTestCase - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class ElementTreeTestCase

source code

-
-               object --+            
-                        |            
-   unittest.case.TestCase --+        
-                            |        
-common_imports.HelperTestCase --+    
-                                |    
-               _ETreeTestCaseBase --+
-                                    |
-                                   ElementTreeTestCase
-
- -
- - - - - - - - - -
- - - - - -
Nested Classes[hide private]
-
-

Inherited from unittest.case.TestCase: - failureException -

-
- - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-

Inherited from _ETreeTestCaseBase: - assertEncodingDeclaration, - assertXML, - test_ElementTree, - test_XML, - test_XMLID, - test_attrib_clear, - test_attrib_ns_clear, - test_attrib_pop, - test_attrib_pop_default, - test_attrib_pop_empty_default, - test_attrib_pop_invalid_args, - test_attrib_pop_unknown, - test_attrib_set_clear, - test_attribute_contains, - test_attribute_items, - test_attribute_items2, - test_attribute_items_ns, - test_attribute_iterator, - test_attribute_keys, - test_attribute_keys2, - test_attribute_keys_ns, - test_attribute_manipulation, - test_attribute_namespace_roundtrip, - test_attribute_namespace_roundtrip_replaced, - test_attribute_set, - test_attribute_str, - test_attribute_update_attrib, - test_attribute_update_dict, - test_attribute_update_iter, - test_attribute_update_sequence, - test_attribute_values, - test_attribute_values_ns, - test_attribute_xmlns_move, - test_attributes, - test_attributes2, - test_attributes3, - test_clear, - test_clear_sub, - test_clear_tail, - test_comment, - test_comment_getitem_getslice, - test_comment_nonsense, - test_comment_text, - test_comment_whitespace, - test_crash, - test_deepcopy, - test_deepcopy_append, - test_deepcopy_comment, - test_deepcopy_elementtree, - test_deepcopy_namespaces, - test_deepcopy_subelement, - test_deepcopy_tail, - test_del_attribute_ns, - test_del_attribute_ns_parsed, - test_del_insert, - test_del_setitem, - test_del_setslice, - test_delitem, - test_delitem_tail, - test_delslice, - test_delslice_child_tail, - test_delslice_memory, - test_delslice_negative1, - test_delslice_negative2, - test_delslice_step, - test_delslice_step_negative, - test_delslice_step_negative2, - test_delslice_tail, - test_element, - test_element_contains, - test_element_indexing_negative, - test_element_indexing_only_text, - test_element_indexing_with_text, - test_element_indexing_with_text2, - test_element_with_attributes, - test_element_with_attributes_keywords, - test_element_with_attributes_ns, - test_elementtree, - test_elementtree_getiterator, - test_elementtree_getiterator_filter, - test_elementtree_parser_target, - test_encoding, - test_encoding_8bit_latin1, - test_encoding_8bit_parse_stringio, - test_encoding_8bit_xml, - test_encoding_exact, - test_encoding_sub_tostring_default_encoding, - test_encoding_tostring, - test_encoding_tostring_default_encoding, - test_encoding_tostring_sub, - test_encoding_tostring_sub_tail, - test_encoding_tostring_unknown, - test_encoding_utf8_bom, - test_encoding_write_default_encoding, - test_extend, - test_feed_parser_bytes, - test_feed_parser_error_broken, - test_feed_parser_error_close_empty, - test_feed_parser_error_close_incomplete, - test_feed_parser_error_position, - test_feed_parser_unicode, - test_findall, - test_findall_ns, - test_fromstring, - test_fromstringlist, - test_fromstringlist_characters, - test_fromstringlist_single, - test_getiterator, - test_getiterator_empty, - test_getiterator_filter, - test_getiterator_filter_all, - test_getiterator_filter_comment, - test_getiterator_filter_pi, - test_getiterator_filter_with_text, - test_getiterator_with_text, - test_getslice, - test_getslice_negative, - test_getslice_step, - test_getslice_text, - test_insert, - test_insert_beyond_index, - test_insert_negative, - test_insert_tail, - test_iselement, - test_iter, - test_iteration, - test_iteration_crash, - test_iteration_del_child, - test_iteration_double, - test_iteration_empty, - test_iteration_reversed, - test_iteration_subelement, - test_iteration_text_only, - test_iterparse, - test_iterparse_attrib_ns, - test_iterparse_cdata, - test_iterparse_clear, - test_iterparse_file, - test_iterparse_getiterator, - test_iterparse_large, - test_iterparse_move_elements, - test_iterparse_start, - test_iterparse_start_end, - test_itertext, - test_itertext_child, - test_makeelement, - test_merge_namespaced_subtree_as_slice, - test_multiple_elementrees, - test_namespaces_after_serialize, - test_ns_access, - test_ns_access2, - test_ns_attr, - test_ns_decl_tostring, - test_ns_decl_tostring_default, - test_ns_decl_tostring_element, - test_ns_decl_tostring_root, - test_ns_move, - test_ns_setting, - test_ns_tag_parse, - test_parse_cdata, - test_parse_encoding_8bit_explicit, - test_parse_encoding_8bit_override, - test_parse_error, - test_parse_error_from_file, - test_parse_error_none, - test_parse_file, - test_parse_file_encoding, - test_parse_file_nonexistent, - test_parse_file_object, - test_parse_file_object_encoding, - test_parse_stringio, - test_parse_with_encoding, - test_parser_target_attrib, - test_parser_target_data, - test_parser_target_entity, - test_parser_target_entity_unknown, - test_parser_target_property, - test_parser_target_tag, - test_parser_version, - test_pi, - test_pi_nonsense, - test_processinginstruction, - test_qname, - test_qname_attrib, - test_qname_attrib_resolve, - test_qname_attribute_getset, - test_qname_attribute_resolve, - test_qname_attribute_resolve_new, - test_qname_cmp, - test_register_namespace, - test_remove, - test_remove_nonexisting, - test_remove_ns, - test_remove_tail, - test_replace_slice_tail, - test_set_text, - test_set_text2, - test_set_text_empty, - test_set_text_none, - test_setitem, - test_setitem2, - test_setitem_indexerror, - test_setitem_replace, - test_setitem_tail, - test_setslice, - test_setslice_all, - test_setslice_all_empty, - test_setslice_all_replace, - test_setslice_all_replace_reversed, - test_setslice_all_replace_reversed_ns1, - test_setslice_all_replace_reversed_ns2, - test_setslice_empty, - test_setslice_end, - test_setslice_negative, - test_setslice_negative2, - test_setslice_single, - test_setslice_tail, - test_shallowcopy, - test_shallowcopy_elementtree, - test_simple, - test_subelement, - test_subelement_reference, - test_subelement_with_attributes, - test_subelement_with_attributes_ns, - test_tag_reset_ns, - test_tag_reset_root_ns, - test_tag_str_subclass, - test_tag_write, - test_tail, - test_tail1, - test_tail_append, - test_tail_elementtree_root, - test_tail_set_none, - test_tail_set_twice, - test_tail_str_subclass, - test_text, - test_text_empty, - test_text_escape_in, - test_text_escape_out, - test_text_escape_tostring, - test_text_other, - test_text_str_subclass, - test_tostring, - test_tostring_element, - test_tostring_element_tail, - test_tostring_method_html, - test_tostring_method_text, - test_treebuilder, - test_treebuilder_target, - test_weird_dict_interaction, - test_write, - test_write_ElementTreeDoctest, - test_write_fail, - test_write_method_html, - test_write_method_text -

- -

Inherited from common_imports.HelperTestCase: - parse, - tearDown -

-

Inherited from unittest.case.TestCase: - __call__, - __eq__, - __hash__, - __init__, - __ne__, - __repr__, - __str__, - addCleanup, - addTypeEqualityFunc, - assertAlmostEqual, - assertAlmostEquals, - assertDictContainsSubset, - assertDictEqual, - assertEqual, - assertEquals, - assertGreater, - assertGreaterEqual, - assertIn, - assertIs, - assertIsInstance, - assertIsNone, - assertIsNot, - assertIsNotNone, - assertItemsEqual, - assertLess, - assertLessEqual, - assertListEqual, - assertMultiLineEqual, - assertNotAlmostEqual, - assertNotAlmostEquals, - assertNotEqual, - assertNotEquals, - assertNotIn, - assertNotIsInstance, - assertNotRegexpMatches, - assertRaises, - assertRaisesRegexp, - assertRegexpMatches, - assertSequenceEqual, - assertSetEqual, - assertTrue, - assertTupleEqual, - assert_, - countTestCases, - debug, - defaultTestResult, - doCleanups, - fail, - failIf, - failIfAlmostEqual, - failIfEqual, - failUnless, - failUnlessAlmostEqual, - failUnlessEqual, - failUnlessRaises, - id, - run, - setUp, - shortDescription, - skipTest -

-

Inherited from unittest.case.TestCase (private): - _addSkip, - _baseAssertEqual, - _deprecate, - _formatMessage, - _getAssertEqualityFunc, - _truncateMessage -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __new__, - __reduce__, - __reduce_ex__, - __setattr__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Class Methods[hide private]
-
-

Inherited from unittest.case.TestCase: - setUpClass, - tearDownClass -

-
- - - - - - - - - - - - -
- - - - - -
Class Variables[hide private]
-
-   - - etree
- hash(x) -
-

Inherited from _ETreeTestCaseBase: - required_versions_ET, - required_versions_cET -

-

Inherited from common_imports.HelperTestCase: - assertFalse -

-

Inherited from unittest.case.TestCase: - longMessage, - maxDiff -

-

Inherited from unittest.case.TestCase (private): - _classSetupFailed, - _diffThreshold -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Class Variable Details[hide private]
-
- -
- -
-

etree

- hash(x) -
-
-
-
Value:
-
xml.etree.ElementTree
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.test_elementtree._ETreeTestCaseBase-class.html b/doc/html/api/lxml.tests.test_elementtree._ETreeTestCaseBase-class.html deleted file mode 100644 index 1a74907..0000000 --- a/doc/html/api/lxml.tests.test_elementtree._ETreeTestCaseBase-class.html +++ /dev/null @@ -1,4763 +0,0 @@ - - - - - lxml.tests.test_elementtree._ETreeTestCaseBase - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module test_elementtree :: - Class _ETreeTestCaseBase - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class _ETreeTestCaseBase

source code

-
-               object --+        
-                        |        
-   unittest.case.TestCase --+    
-                            |    
-common_imports.HelperTestCase --+
-                                |
-                               _ETreeTestCaseBase
-
- -
Known Subclasses:
-
- -
- -
- - - - - - - - - -
- - - - - -
Nested Classes[hide private]
-
-

Inherited from unittest.case.TestCase: - failureException -

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
test_element(self) - source code - -
- -
-   - - - - - - -
test_simple(self) - source code - -
- -
-   - - - - - - -
test_weird_dict_interaction(self) - source code - -
- -
-   - - - - - - -
test_subelement(self) - source code - -
- -
-   - - - - - - -
test_element_contains(self) - source code - -
- -
-   - - - - - - -
test_element_indexing_with_text(self) - source code - -
- -
-   - - - - - - -
test_element_indexing_with_text2(self) - source code - -
- -
-   - - - - - - -
test_element_indexing_only_text(self) - source code - -
- -
-   - - - - - - -
test_element_indexing_negative(self) - source code - -
- -
-   - - - - - - -
test_elementtree(self) - source code - -
- -
-   - - - - - - -
test_text(self) - source code - -
- -
-   - - - - - - -
test_text_empty(self) - source code - -
- -
-   - - - - - - -
test_text_other(self) - source code - -
- -
-   - - - - - - -
test_text_escape_in(self) - source code - -
- -
-   - - - - - - -
test_text_escape_out(self) - source code - -
- -
-   - - - - - - -
test_text_escape_tostring(self) - source code - -
- -
-   - - - - - - -
test_text_str_subclass(self) - source code - -
- -
-   - - - - - - -
test_tail(self) - source code - -
- -
-   - - - - - - -
test_tail_str_subclass(self) - source code - -
- -
-   - - - - - - -
_test_del_tail(self) - source code - -
- -
-   - - - - - - -
test_ElementTree(self) - source code - -
- -
-   - - - - - - -
test_attributes(self) - source code - -
- -
-   - - - - - - -
test_attributes2(self) - source code - -
- -
-   - - - - - - -
test_attributes3(self) - source code - -
- -
-   - - - - - - -
test_attrib_clear(self) - source code - -
- -
-   - - - - - - -
test_attrib_set_clear(self) - source code - -
- -
-   - - - - - - -
test_attrib_ns_clear(self) - source code - -
- -
-   - - - - - - -
test_attrib_pop(self) - source code - -
- -
-   - - - - - - -
test_attrib_pop_unknown(self) - source code - -
- -
-   - - - - - - -
test_attrib_pop_default(self) - source code - -
- -
-   - - - - - - -
test_attrib_pop_empty_default(self) - source code - -
- -
-   - - - - - - -
test_attrib_pop_invalid_args(self) - source code - -
- -
-   - - - - - - -
test_attribute_update_dict(self) - source code - -
- -
-   - - - - - - -
test_attribute_update_sequence(self) - source code - -
- -
-   - - - - - - -
test_attribute_update_iter(self) - source code - -
- -
-   - - - - - - -
test_attribute_update_attrib(self) - source code - -
- -
-   - - - - - - -
test_attribute_keys(self) - source code - -
- -
-   - - - - - - -
test_attribute_keys2(self) - source code - -
- -
-   - - - - - - -
test_attribute_items2(self) - source code - -
- -
-   - - - - - - -
test_attribute_keys_ns(self) - source code - -
- -
-   - - - - - - -
test_attribute_values(self) - source code - -
- -
-   - - - - - - -
test_attribute_values_ns(self) - source code - -
- -
-   - - - - - - -
test_attribute_items(self) - source code - -
- -
-   - - - - - - -
test_attribute_items_ns(self) - source code - -
- -
-   - - - - - - -
test_attribute_str(self) - source code - -
- -
-   - - - - - - -
test_attribute_contains(self) - source code - -
- -
-   - - - - - - -
test_attribute_set(self) - source code - -
- -
-   - - - - - - -
test_attribute_iterator(self) - source code - -
- -
-   - - - - - - -
test_attribute_manipulation(self) - source code - -
- -
-   - - - - - - -
test_del_attribute_ns(self) - source code - -
- -
-   - - - - - - -
test_del_attribute_ns_parsed(self) - source code - -
- -
-   - - - - - - -
test_XML(self) - source code - -
- -
-   - - - - - - -
test_XMLID(self) - source code - -
- -
-   - - - - - - -
test_fromstring(self) - source code - -
- -
-   - - - - - - -
test_fromstringlist(self) - source code - -
- -
-   - - - - - - -
test_fromstringlist_characters(self) - source code - -
- -
-   - - - - - - -
test_fromstringlist_single(self) - source code - -
- -
-   - - - - - - -
test_iselement(self) - source code - -
- -
-   - - - - - - -
test_iteration(self) - source code - -
- -
-   - - - - - - -
test_iteration_empty(self) - source code - -
- -
-   - - - - - - -
test_iteration_text_only(self) - source code - -
- -
-   - - - - - - -
test_iteration_crash(self) - source code - -
- -
-   - - - - - - -
test_iteration_reversed(self) - source code - -
- -
-   - - - - - - -
test_iteration_subelement(self) - source code - -
- -
-   - - - - - - -
test_iteration_del_child(self) - source code - -
- -
-   - - - - - - -
test_iteration_double(self) - source code - -
- -
-   - - - - - - -
test_itertext(self) - source code - -
- -
-   - - - - - - -
test_itertext_child(self) - source code - -
- -
-   - - - - - - -
test_findall(self) - source code - -
- -
-   - - - - - - -
test_findall_ns(self) - source code - -
- -
-   - - - - - - -
test_element_with_attributes_keywords(self) - source code - -
- -
-   - - - - - - -
test_element_with_attributes(self) - source code - -
- -
-   - - - - - - -
test_element_with_attributes_ns(self) - source code - -
- -
-   - - - - - - -
test_subelement_with_attributes(self) - source code - -
- -
-   - - - - - - -
test_subelement_with_attributes_ns(self) - source code - -
- -
-   - - - - - - -
test_write(self) - source code - -
- -
-   - - - - - - -
test_write_method_html(self) - source code - -
- -
-   - - - - - - -
test_write_method_text(self) - source code - -
- -
-   - - - - - - -
test_write_fail(self) - source code - -
- -
-   - - - - - - -
test_crash(self) - source code - -
- -
-   - - - - - - -
test_write_ElementTreeDoctest(self) - source code - -
- -
-   - - - - - - -
test_subelement_reference(self) - source code - -
- -
-   - - - - - - -
test_set_text(self) - source code - -
- -
-   - - - - - - -
test_set_text2(self) - source code - -
- -
-   - - - - - - -
test_set_text_none(self) - source code - -
- -
-   - - - - - - -
test_set_text_empty(self) - source code - -
- -
-   - - - - - - -
test_tail1(self) - source code - -
- -
-   - - - - - - -
test_tail_append(self) - source code - -
- -
-   - - - - - - -
test_tail_set_twice(self) - source code - -
- -
-   - - - - - - -
test_tail_set_none(self) - source code - -
- -
-   - - - - - - -
test_extend(self) - source code - -
- -
-   - - - - - - -
test_comment(self) - source code - -
- -
-   - - - - - - -
test_comment_text(self) - source code - -
- -
-   - - - - - - -
test_comment_whitespace(self) - source code - -
- -
-   - - - - - - -
test_comment_nonsense(self) - source code - -
- -
-   - - - - - - -
test_pi(self) - source code - -
- -
-   - - - - - - -
test_processinginstruction(self) - source code - -
- -
-   - - - - - - -
test_pi_nonsense(self) - source code - -
- -
-   - - - - - - -
test_setitem(self) - source code - -
- -
-   - - - - - - -
test_setitem2(self) - source code - -
- -
-   - - - - - - -
test_setitem_replace(self) - source code - -
- -
-   - - - - - - -
test_setitem_indexerror(self) - source code - -
- -
-   - - - - - - -
test_setitem_tail(self) - source code - -
- -
-   - - - - - - -
test_tag_write(self) - source code - -
- -
-   - - - - - - -
test_tag_reset_ns(self) - source code - -
- -
-   - - - - - - -
test_tag_reset_root_ns(self) - source code - -
- -
-   - - - - - - -
test_tag_str_subclass(self) - source code - -
- -
-   - - - - - - -
test_delitem(self) - source code - -
- -
-   - - - - - - -
test_del_insert(self) - source code - -
- -
-   - - - - - - -
test_del_setitem(self) - source code - -
- -
-   - - - - - - -
test_del_setslice(self) - source code - -
- -
-   - - - - - - -
test_replace_slice_tail(self) - source code - -
- -
-   - - - - - - -
test_merge_namespaced_subtree_as_slice(self) - source code - -
- -
-   - - - - - - -
test_delitem_tail(self) - source code - -
- -
-   - - - - - - -
test_clear(self) - source code - -
- -
-   - - - - - - -
test_clear_sub(self) - source code - -
- -
-   - - - - - - -
test_clear_tail(self) - source code - -
- -
-   - - - - - - -
test_insert(self) - source code - -
- -
-   - - - - - - -
test_insert_beyond_index(self) - source code - -
- -
-   - - - - - - -
test_insert_negative(self) - source code - -
- -
-   - - - - - - -
test_insert_tail(self) - source code - -
- -
-   - - - - - - -
test_remove(self) - source code - -
- -
-   - - - - - - -
test_remove_ns(self) - source code - -
- -
-   - - - - - - -
test_remove_nonexisting(self) - source code - -
- -
-   - - - - - - -
test_remove_tail(self) - source code - -
- -
-   - - - - - - -
_test_getchildren(self) - source code - -
- -
-   - - - - - - -
test_makeelement(self) - source code - -
- -
-   - - - - - - -
test_iter(self) - source code - -
- -
-   - - - - - - -
test_getiterator(self) - source code - -
- -
-   - - - - - - -
test_getiterator_empty(self) - source code - -
- -
-   - - - - - - -
test_getiterator_filter(self) - source code - -
- -
-   - - - - - - -
test_getiterator_filter_all(self) - source code - -
- -
-   - - - - - - -
test_getiterator_filter_comment(self) - source code - -
- -
-   - - - - - - -
test_getiterator_filter_pi(self) - source code - -
- -
-   - - - - - - -
test_getiterator_with_text(self) - source code - -
- -
-   - - - - - - -
test_getiterator_filter_with_text(self) - source code - -
- -
-   - - - - - - -
test_getslice(self) - source code - -
- -
-   - - - - - - -
test_getslice_negative(self) - source code - -
- -
-   - - - - - - -
test_getslice_step(self) - source code - -
- -
-   - - - - - - -
test_getslice_text(self) - source code - -
- -
-   - - - - - - -
test_comment_getitem_getslice(self) - source code - -
- -
-   - - - - - - -
test_delslice(self) - source code - -
- -
-   - - - - - - -
test_delslice_negative1(self) - source code - -
- -
-   - - - - - - -
test_delslice_negative2(self) - source code - -
- -
-   - - - - - - -
test_delslice_step(self) - source code - -
- -
-   - - - - - - -
test_delslice_step_negative(self) - source code - -
- -
-   - - - - - - -
test_delslice_step_negative2(self) - source code - -
- -
-   - - - - - - -
test_delslice_child_tail(self) - source code - -
- -
-   - - - - - - -
test_delslice_tail(self) - source code - -
- -
-   - - - - - - -
test_delslice_memory(self) - source code - -
- -
-   - - - - - - -
test_setslice(self) - source code - -
- -
-   - - - - - - -
test_setslice_all(self) - source code - -
- -
-   - - - - - - -
test_setslice_all_empty(self) - source code - -
- -
-   - - - - - - -
test_setslice_all_replace(self) - source code - -
- -
-   - - - - - - -
test_setslice_all_replace_reversed(self) - source code - -
- -
-   - - - - - - -
test_setslice_all_replace_reversed_ns1(self) - source code - -
- -
-   - - - - - - -
test_setslice_all_replace_reversed_ns2(self) - source code - -
- -
-   - - - - - - -
test_setslice_single(self) - source code - -
- -
-   - - - - - - -
test_setslice_tail(self) - source code - -
- -
-   - - - - - - -
test_setslice_negative(self) - source code - -
- -
-   - - - - - - -
test_setslice_negative2(self) - source code - -
- -
-   - - - - - - -
test_setslice_end(self) - source code - -
- -
-   - - - - - - -
test_setslice_empty(self) - source code - -
- -
-   - - - - - - -
test_tail_elementtree_root(self) - source code - -
- -
-   - - - - - - -
test_elementtree_getiterator(self) - source code - -
- -
-   - - - - - - -
test_elementtree_getiterator_filter(self) - source code - -
- -
-   - - - - - - -
test_ns_access(self) - source code - -
- -
-   - - - - - - -
test_ns_access2(self) - source code - -
- -
-   - - - - - - -
test_ns_setting(self) - source code - -
- -
-   - - - - - - -
test_ns_tag_parse(self) - source code - -
- -
-   - - - - - - -
test_ns_attr(self) - source code - -
- -
-   - - - - - - -
test_ns_move(self) - source code - -
- -
-   - - - - - - -
test_ns_decl_tostring(self) - source code - -
- -
-   - - - - - - -
test_ns_decl_tostring_default(self) - source code - -
- -
-   - - - - - - -
test_ns_decl_tostring_root(self) - source code - -
- -
-   - - - - - - -
test_ns_decl_tostring_element(self) - source code - -
- -
-   - - - - - - -
test_attribute_xmlns_move(self) - source code - -
- -
-   - - - - - - -
test_namespaces_after_serialize(self) - source code - -
- -
-   - - - - - - -
test_attribute_namespace_roundtrip(self) - source code - -
- -
-   - - - - - - -
test_attribute_namespace_roundtrip_replaced(self) - source code - -
- -
-   - - - - - - -
test_register_namespace(self) - source code - -
- -
-   - - - - - - -
test_tostring(self) - source code - -
- -
-   - - - - - - -
test_tostring_element(self) - source code - -
- -
-   - - - - - - -
test_tostring_element_tail(self) - source code - -
- -
-   - - - - - - -
test_tostring_method_html(self) - source code - -
- -
-   - - - - - - -
test_tostring_method_text(self) - source code - -
- -
-   - - - - - - -
test_iterparse(self) - source code - -
- -
-   - - - - - - -
test_iterparse_file(self) - source code - -
- -
-   - - - - - - -
test_iterparse_start(self) - source code - -
- -
-   - - - - - - -
test_iterparse_start_end(self) - source code - -
- -
-   - - - - - - -
test_iterparse_clear(self) - source code - -
- -
-   - - - - - - -
test_iterparse_large(self) - source code - -
- -
-   - - - - - - -
test_iterparse_attrib_ns(self) - source code - -
- -
-   - - - - - - -
test_iterparse_getiterator(self) - source code - -
- -
-   - - - - - - -
test_iterparse_move_elements(self) - source code - -
- -
-   - - - - - - -
test_iterparse_cdata(self) - source code - -
- -
-   - - - - - - -
test_parse_file(self) - source code - -
- -
-   - - - - - - -
test_parse_file_nonexistent(self) - source code - -
- -
-   - - - - - - -
test_parse_error_none(self) - source code - -
- -
-   - - - - - - -
test_parse_error(self) - source code - -
- -
-   - - - - - - -
test_parse_error_from_file(self) - source code - -
- -
-   - - - - - - -
test_parse_file_object(self) - source code - -
- -
-   - - - - - - -
test_parse_stringio(self) - source code - -
- -
-   - - - - - - -
test_parse_cdata(self) - source code - -
- -
-   - - - - - - -
test_parse_with_encoding(self) - source code - -
- -
-   - - - - - - -
test_encoding(self) - source code - -
- -
-   - - - - - - -
test_encoding_exact(self) - source code - -
- -
-   - - - - - - -
test_parse_file_encoding(self) - source code - -
- -
-   - - - - - - -
test_parse_file_object_encoding(self) - source code - -
- -
-   - - - - - - -
test_encoding_8bit_latin1(self) - source code - -
- -
-   - - - - - - -
test_parse_encoding_8bit_explicit(self) - source code - -
- -
-   - - - - - - -
test_parse_encoding_8bit_override(self) - source code - -
- -
-   - - - - - - -
_test_wrong_unicode_encoding(self) - source code - -
- -
-   - - - - - - -
test_encoding_write_default_encoding(self) - source code - -
- -
-   - - - - - - -
test_encoding_tostring(self) - source code - -
- -
-   - - - - - - -
test_encoding_tostring_unknown(self) - source code - -
- -
-   - - - - - - -
test_encoding_tostring_sub(self) - source code - -
- -
-   - - - - - - -
test_encoding_tostring_sub_tail(self) - source code - -
- -
-   - - - - - - -
test_encoding_tostring_default_encoding(self) - source code - -
- -
-   - - - - - - -
test_encoding_sub_tostring_default_encoding(self) - source code - -
- -
-   - - - - - - -
test_encoding_8bit_xml(self) - source code - -
- -
-   - - - - - - -
test_encoding_utf8_bom(self) - source code - -
- -
-   - - - - - - -
test_encoding_8bit_parse_stringio(self) - source code - -
- -
-   - - - - - - -
test_deepcopy_elementtree(self) - source code - -
- -
-   - - - - - - -
test_deepcopy(self) - source code - -
- -
-   - - - - - - -
test_deepcopy_tail(self) - source code - -
- -
-   - - - - - - -
test_deepcopy_subelement(self) - source code - -
- -
-   - - - - - - -
test_deepcopy_namespaces(self) - source code - -
- -
-   - - - - - - -
test_deepcopy_append(self) - source code - -
- -
-   - - - - - - -
test_deepcopy_comment(self) - source code - -
- -
-   - - - - - - -
test_shallowcopy(self) - source code - -
- -
-   - - - - - - -
test_shallowcopy_elementtree(self) - source code - -
- -
-   - - - - - - -
_test_element_boolean(self) - source code - -
- -
-   - - - - - - -
test_multiple_elementrees(self) - source code - -
- -
-   - - - - - - -
test_qname(self) - source code - -
- -
-   - - - - - - -
test_qname_cmp(self) - source code - -
- -
-   - - - - - - -
test_qname_attribute_getset(self) - source code - -
- -
-   - - - - - - -
test_qname_attrib(self) - source code - -
- -
-   - - - - - - -
test_qname_attribute_resolve(self) - source code - -
- -
-   - - - - - - -
test_qname_attribute_resolve_new(self) - source code - -
- -
-   - - - - - - -
test_qname_attrib_resolve(self) - source code - -
- -
-   - - - - - - -
test_parser_version(self) - source code - -
- -
-   - - - - - - -
test_feed_parser_bytes(self) - source code - -
- -
-   - - - - - - -
test_feed_parser_unicode(self) - source code - -
- -
-   - - - - - - -
test_feed_parser_error_close_empty(self) - source code - -
- -
-   - - - - - - -
test_feed_parser_error_close_incomplete(self) - source code - -
- -
-   - - - - - - -
test_feed_parser_error_broken(self) - source code - -
- -
-   - - - - - - -
test_feed_parser_error_position(self) - source code - -
- -
-   - - - - - - -
test_parser_target_property(self) - source code - -
- -
-   - - - - - - -
test_parser_target_tag(self) - source code - -
- -
-   - - - - - - -
test_elementtree_parser_target(self) - source code - -
- -
-   - - - - - - -
test_parser_target_attrib(self) - source code - -
- -
-   - - - - - - -
test_parser_target_data(self) - source code - -
- -
-   - - - - - - -
test_parser_target_entity(self) - source code - -
- -
-   - - - - - - -
test_parser_target_entity_unknown(self) - source code - -
- -
-   - - - - - - -
test_treebuilder(self) - source code - -
- -
-   - - - - - - -
test_treebuilder_target(self) - source code - -
- -
-   - - - - - - -
_writeElement(self, - element, - encoding='us-ascii')
- Write out element for comparison.
- source code - -
- -
-   - - - - - - -
_writeElementFile(self, - element, - encoding='us-ascii')
- Write out element for comparison, using real file.
- source code - -
- -
-   - - - - - - -
assertXML(self, - expected, - element, - encoding='us-ascii')
- Writes element out and checks whether it is expected.
- source code - -
- -
-   - - - - - - -
assertEncodingDeclaration(self, - result, - encoding)
- Checks if the result XML byte string specifies the encoding.
- source code - -
- -
-   - - - - - - -
_rootstring(self, - tree) - source code - -
- -
-   - - - - - - -
_check_element_tree(self, - tree) - source code - -
- -
-   - - - - - - -
_check_element(self, - element) - source code - -
- -
-   - - - - - - -
_check_string(self, - string) - source code - -
- -
-   - - - - - - -
_check_mapping(self, - mapping) - source code - -
- -
-

Inherited from common_imports.HelperTestCase: - parse, - tearDown -

-

Inherited from unittest.case.TestCase: - __call__, - __eq__, - __hash__, - __init__, - __ne__, - __repr__, - __str__, - addCleanup, - addTypeEqualityFunc, - assertAlmostEqual, - assertAlmostEquals, - assertDictContainsSubset, - assertDictEqual, - assertEqual, - assertEquals, - assertGreater, - assertGreaterEqual, - assertIn, - assertIs, - assertIsInstance, - assertIsNone, - assertIsNot, - assertIsNotNone, - assertItemsEqual, - assertLess, - assertLessEqual, - assertListEqual, - assertMultiLineEqual, - assertNotAlmostEqual, - assertNotAlmostEquals, - assertNotEqual, - assertNotEquals, - assertNotIn, - assertNotIsInstance, - assertNotRegexpMatches, - assertRaises, - assertRaisesRegexp, - assertRegexpMatches, - assertSequenceEqual, - assertSetEqual, - assertTrue, - assertTupleEqual, - assert_, - countTestCases, - debug, - defaultTestResult, - doCleanups, - fail, - failIf, - failIfAlmostEqual, - failIfEqual, - failUnless, - failUnlessAlmostEqual, - failUnlessEqual, - failUnlessRaises, - id, - run, - setUp, - shortDescription, - skipTest -

-

Inherited from unittest.case.TestCase (private): - _addSkip, - _baseAssertEqual, - _deprecate, - _formatMessage, - _getAssertEqualityFunc, - _truncateMessage -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __new__, - __reduce__, - __reduce_ex__, - __setattr__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Class Methods[hide private]
-
-

Inherited from unittest.case.TestCase: - setUpClass, - tearDownClass -

-
- - - - - - - - - - - - - - - - - - -
- - - - - -
Class Variables[hide private]
-
-   - - etree = None
- hash(x) -
-   - - required_versions_ET = {'test_comment_text': (1, 3), 'test_com... -
-   - - required_versions_cET = {} -
-

Inherited from common_imports.HelperTestCase: - assertFalse -

-

Inherited from unittest.case.TestCase: - longMessage, - maxDiff -

-

Inherited from unittest.case.TestCase (private): - _classSetupFailed, - _diffThreshold -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

assertXML(self, - expected, - element, - encoding='us-ascii') -

-
source code  -
- -

Writes element out and checks whether it is expected.

-

Does this two ways; once using BytesIO, once using a real file.

-
-
-
-
- -
- -
- - -
-

_rootstring(self, - tree) -

-
source code  -
- - -
-
Overrides: - common_imports.HelperTestCase._rootstring -
-
-
-
-
- - - - - - -
- - - - - -
Class Variable Details[hide private]
-
- -
- -
-

required_versions_ET

- -
-
-
-
Value:
-
-{'test_comment_text': (1, 3),
- 'test_comment_whitespace': (1, 3),
- 'test_extend': (1, 3),
- 'test_feed_parser_error_broken': (1, 3),
- 'test_feed_parser_error_close_empty': (1, 3),
- 'test_feed_parser_error_close_incomplete': (1, 3),
- 'test_feed_parser_error_position': (1, 3),
- 'test_fromstringlist': (1, 3),
-...
-
-
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.test_errors-module.html b/doc/html/api/lxml.tests.test_errors-module.html deleted file mode 100644 index 2d5749b..0000000 --- a/doc/html/api/lxml.tests.test_errors-module.html +++ /dev/null @@ -1,243 +0,0 @@ - - - - - lxml.tests.test_errors - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module test_errors - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Module test_errors

source code

- - - - - - - - - -
- - - - - -
Classes[hide private]
-
-   - - ErrorTestCase -
- - - - - - - - - -
- - - - - -
Functions[hide private]
-
-   - - - - - - -
test_suite() - source code - -
- -
- - - - - - - - - - - - -
- - - - - -
Variables[hide private]
-
-   - - this_dir = '/home/sbehnel/source/Python/lxml/lxml-release/src/... -
-   - - __package__ = 'lxml.tests' -
- - - - - - -
- - - - - -
Variables Details[hide private]
-
- -
- -
-

this_dir

- -
-
-
-
Value:
-
-'/home/sbehnel/source/Python/lxml/lxml-release/src/lxml/tests'
-
-
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.test_errors-pysrc.html b/doc/html/api/lxml.tests.test_errors-pysrc.html deleted file mode 100644 index 35037f4..0000000 --- a/doc/html/api/lxml.tests.test_errors-pysrc.html +++ /dev/null @@ -1,275 +0,0 @@ - - - - - lxml.tests.test_errors - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module test_errors - - - - - - -
[hide private]
[frames] | no frames]
-
-

Source Code for Module lxml.tests.test_errors

-
- 1  # -*- coding: utf-8 -*- 
- 2  import unittest, doctest 
- 3   
- 4  # These tests check that error handling in the Pyrex code is 
- 5  # complete. 
- 6  # It is likely that if there are errors, instead of failing the code 
- 7  # will simply crash. 
- 8   
- 9  import sys, gc, os.path 
-10  from lxml import etree 
-11   
-12  this_dir = os.path.dirname(__file__) 
-13  if this_dir not in sys.path: 
-14      sys.path.insert(0, this_dir) # needed for Py3 
-15   
-16  from common_imports import HelperTestCase 
-17   
-
18 -class ErrorTestCase(HelperTestCase): -
19 etree = etree -20 -
21 - def test_bad_element(self): -
22 # attrib argument of Element() should be a dictionary, so if -23 # we pass a string we should get an error. -24 self.assertRaises(TypeError, self.etree.Element, 'a', 'b') -
25 -
26 - def test_empty_parse(self): -
27 self.assertRaises(etree.XMLSyntaxError, etree.fromstring, '') -
28 -
30 # test if cyclic reference can crash etree -31 Element = self.etree.Element -32 gc.collect() -33 -34 count = sys.getrefcount(None) -35 -36 l = [Element('name'), Element('name')] -37 l.append(l) -38 -39 del l -40 gc.collect() -41 -42 self.assertEquals(sys.getrefcount(None), count) -
43 -
44 -def test_suite(): -
45 suite = unittest.TestSuite() -46 suite.addTests([unittest.makeSuite(ErrorTestCase)]) -47 return suite -
48 -49 if __name__ == '__main__': -50 print('to test use test.py %s' % __file__) -51 -
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.test_errors.ErrorTestCase-class.html b/doc/html/api/lxml.tests.test_errors.ErrorTestCase-class.html deleted file mode 100644 index 371382e..0000000 --- a/doc/html/api/lxml.tests.test_errors.ErrorTestCase-class.html +++ /dev/null @@ -1,438 +0,0 @@ - - - - - lxml.tests.test_errors.ErrorTestCase - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module test_errors :: - Class ErrorTestCase - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class ErrorTestCase

source code

-
-               object --+        
-                        |        
-   unittest.case.TestCase --+    
-                            |    
-common_imports.HelperTestCase --+
-                                |
-                               ErrorTestCase
-
- -
- - - - - - - - - -
- - - - - -
Nested Classes[hide private]
-
-

Inherited from unittest.case.TestCase: - failureException -

-
- - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
test_bad_element(self) - source code - -
- -
-   - - - - - - -
test_empty_parse(self) - source code - -
- -
-   - - - - - - -
test_element_cyclic_gc_none(self) - source code - -
- -
-

Inherited from common_imports.HelperTestCase: - parse, - tearDown -

-

Inherited from common_imports.HelperTestCase (private): - _rootstring -

-

Inherited from unittest.case.TestCase: - __call__, - __eq__, - __hash__, - __init__, - __ne__, - __repr__, - __str__, - addCleanup, - addTypeEqualityFunc, - assertAlmostEqual, - assertAlmostEquals, - assertDictContainsSubset, - assertDictEqual, - assertEqual, - assertEquals, - assertGreater, - assertGreaterEqual, - assertIn, - assertIs, - assertIsInstance, - assertIsNone, - assertIsNot, - assertIsNotNone, - assertItemsEqual, - assertLess, - assertLessEqual, - assertListEqual, - assertMultiLineEqual, - assertNotAlmostEqual, - assertNotAlmostEquals, - assertNotEqual, - assertNotEquals, - assertNotIn, - assertNotIsInstance, - assertNotRegexpMatches, - assertRaises, - assertRaisesRegexp, - assertRegexpMatches, - assertSequenceEqual, - assertSetEqual, - assertTrue, - assertTupleEqual, - assert_, - countTestCases, - debug, - defaultTestResult, - doCleanups, - fail, - failIf, - failIfAlmostEqual, - failIfEqual, - failUnless, - failUnlessAlmostEqual, - failUnlessEqual, - failUnlessRaises, - id, - run, - setUp, - shortDescription, - skipTest -

-

Inherited from unittest.case.TestCase (private): - _addSkip, - _baseAssertEqual, - _deprecate, - _formatMessage, - _getAssertEqualityFunc, - _truncateMessage -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __new__, - __reduce__, - __reduce_ex__, - __setattr__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Class Methods[hide private]
-
-

Inherited from unittest.case.TestCase: - setUpClass, - tearDownClass -

-
- - - - - - - - - - - - -
- - - - - -
Class Variables[hide private]
-
-   - - etree
- The lxml.etree module implements the extended ElementTree API -for XML. -
-

Inherited from common_imports.HelperTestCase: - assertFalse -

-

Inherited from unittest.case.TestCase: - longMessage, - maxDiff -

-

Inherited from unittest.case.TestCase (private): - _classSetupFailed, - _diffThreshold -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Class Variable Details[hide private]
-
- -
- -
-

etree

- The lxml.etree module implements the extended ElementTree API -for XML. -
-
-
-
Value:
-
lxml.etree
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.test_etree-module.html b/doc/html/api/lxml.tests.test_etree-module.html deleted file mode 100644 index 622f554..0000000 --- a/doc/html/api/lxml.tests.test_etree-module.html +++ /dev/null @@ -1,290 +0,0 @@ - - - - - lxml.tests.test_etree - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module test_etree - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Module test_etree

source code

-

Tests specific to the extended etree API

-

Tests that apply to the general ElementTree API should go into -test_elementtree

- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Classes[hide private]
-
-   - - ETreeOnlyTestCase
- Tests only for etree, not ElementTree -
-   - - _XIncludeTestCase -
-   - - ETreeXIncludeTestCase -
-   - - ElementIncludeTestCase -
-   - - ETreeC14NTestCase -
-   - - ETreeWriteTestCase -
-   - - ETreeErrorLogTest -
- - - - - - - - - -
- - - - - -
Functions[hide private]
-
-   - - - - - - -
test_suite() - source code - -
- -
- - - - - - - - - - - - -
- - - - - -
Variables[hide private]
-
-   - - this_dir = '/home/sbehnel/source/Python/lxml/lxml-release/src/... -
-   - - __package__ = 'lxml.tests' -
- - - - - - -
- - - - - -
Variables Details[hide private]
-
- -
- -
-

this_dir

- -
-
-
-
Value:
-
-'/home/sbehnel/source/Python/lxml/lxml-release/src/lxml/tests'
-
-
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.test_etree-pysrc.html b/doc/html/api/lxml.tests.test_etree-pysrc.html deleted file mode 100644 index ce2ed50..0000000 --- a/doc/html/api/lxml.tests.test_etree-pysrc.html +++ /dev/null @@ -1,9244 +0,0 @@ - - - - - lxml.tests.test_etree - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module test_etree - - - - - - -
[hide private]
[frames] | no frames]
-
-

Source Code for Module lxml.tests.test_etree

-
-   1  # -*- coding: utf-8 -*- 
-   2   
-   3  """ 
-   4  Tests specific to the extended etree API 
-   5   
-   6  Tests that apply to the general ElementTree API should go into 
-   7  test_elementtree 
-   8  """ 
-   9   
-  10  import os.path 
-  11  import unittest 
-  12  import copy 
-  13  import sys 
-  14  import re 
-  15  import gc 
-  16  import operator 
-  17  import tempfile 
-  18  import gzip 
-  19   
-  20  this_dir = os.path.dirname(__file__) 
-  21  if this_dir not in sys.path: 
-  22      sys.path.insert(0, this_dir) # needed for Py3 
-  23   
-  24  from common_imports import etree, StringIO, BytesIO, HelperTestCase, fileInTestDir, read_file 
-  25  from common_imports import SillyFileLike, LargeFileLikeUnicode, doctest, make_doctest 
-  26  from common_imports import canonicalize, sorted, _str, _bytes 
-  27   
-  28  print("") 
-  29  print("TESTED VERSION: %s" % etree.__version__) 
-  30  print("    Python:           " + repr(sys.version_info)) 
-  31  print("    lxml.etree:       " + repr(etree.LXML_VERSION)) 
-  32  print("    libxml used:      " + repr(etree.LIBXML_VERSION)) 
-  33  print("    libxml compiled:  " + repr(etree.LIBXML_COMPILED_VERSION)) 
-  34  print("    libxslt used:     " + repr(etree.LIBXSLT_VERSION)) 
-  35  print("    libxslt compiled: " + repr(etree.LIBXSLT_COMPILED_VERSION)) 
-  36  print("") 
-  37   
-  38  try: 
-  39      _unicode = unicode 
-  40  except NameError: 
-  41      # Python 3 
-  42      _unicode = str 
-  43   
-
44 -class ETreeOnlyTestCase(HelperTestCase): -
45 """Tests only for etree, not ElementTree""" - 46 etree = etree - 47 -
48 - def test_version(self): -
49 self.assert_(isinstance(etree.__version__, _unicode)) - 50 self.assert_(isinstance(etree.LXML_VERSION, tuple)) - 51 self.assertEqual(len(etree.LXML_VERSION), 4) - 52 self.assert_(isinstance(etree.LXML_VERSION[0], int)) - 53 self.assert_(isinstance(etree.LXML_VERSION[1], int)) - 54 self.assert_(isinstance(etree.LXML_VERSION[2], int)) - 55 self.assert_(isinstance(etree.LXML_VERSION[3], int)) - 56 self.assert_(etree.__version__.startswith( - 57 str(etree.LXML_VERSION[0]))) -
58 -
59 - def test_c_api(self): -
60 if hasattr(self.etree, '__pyx_capi__'): - 61 # newer Pyrex compatible C-API - 62 self.assert_(isinstance(self.etree.__pyx_capi__, dict)) - 63 self.assert_(len(self.etree.__pyx_capi__) > 0) - 64 else: - 65 # older C-API mechanism - 66 self.assert_(hasattr(self.etree, '_import_c_api')) -
67 -
68 - def test_element_names(self): -
69 Element = self.etree.Element - 70 el = Element('name') - 71 self.assertEquals(el.tag, 'name') - 72 el = Element('{}name') - 73 self.assertEquals(el.tag, 'name') -
74 -
75 - def test_element_name_empty(self): -
76 Element = self.etree.Element - 77 el = Element('name') - 78 self.assertRaises(ValueError, Element, '{}') - 79 self.assertRaises(ValueError, setattr, el, 'tag', '{}') - 80 - 81 self.assertRaises(ValueError, Element, '{test}') - 82 self.assertRaises(ValueError, setattr, el, 'tag', '{test}') -
83 -
84 - def test_element_name_colon(self): -
85 Element = self.etree.Element - 86 self.assertRaises(ValueError, Element, 'p:name') - 87 self.assertRaises(ValueError, Element, '{test}p:name') - 88 - 89 el = Element('name') - 90 self.assertRaises(ValueError, setattr, el, 'tag', 'p:name') -
91 -
92 - def test_element_name_quote(self): -
93 Element = self.etree.Element - 94 self.assertRaises(ValueError, Element, "p'name") - 95 self.assertRaises(ValueError, Element, 'p"name') - 96 - 97 self.assertRaises(ValueError, Element, "{test}p'name") - 98 self.assertRaises(ValueError, Element, '{test}p"name') - 99 - 100 el = Element('name') - 101 self.assertRaises(ValueError, setattr, el, 'tag', "p'name") - 102 self.assertRaises(ValueError, setattr, el, 'tag', 'p"name') -
103 -
104 - def test_element_name_space(self): -
105 Element = self.etree.Element - 106 self.assertRaises(ValueError, Element, ' name ') - 107 self.assertRaises(ValueError, Element, 'na me') - 108 self.assertRaises(ValueError, Element, '{test} name') - 109 - 110 el = Element('name') - 111 self.assertRaises(ValueError, setattr, el, 'tag', ' name ') -
112 -
113 - def test_subelement_name_empty(self): -
114 Element = self.etree.Element - 115 SubElement = self.etree.SubElement - 116 - 117 el = Element('name') - 118 self.assertRaises(ValueError, SubElement, el, '{}') - 119 self.assertRaises(ValueError, SubElement, el, '{test}') -
120 -
121 - def test_subelement_name_colon(self): -
122 Element = self.etree.Element - 123 SubElement = self.etree.SubElement - 124 - 125 el = Element('name') - 126 self.assertRaises(ValueError, SubElement, el, 'p:name') - 127 self.assertRaises(ValueError, SubElement, el, '{test}p:name') -
128 -
129 - def test_subelement_name_quote(self): -
130 Element = self.etree.Element - 131 SubElement = self.etree.SubElement - 132 - 133 el = Element('name') - 134 self.assertRaises(ValueError, SubElement, el, "p'name") - 135 self.assertRaises(ValueError, SubElement, el, "{test}p'name") - 136 - 137 self.assertRaises(ValueError, SubElement, el, 'p"name') - 138 self.assertRaises(ValueError, SubElement, el, '{test}p"name') -
139 -
140 - def test_subelement_name_space(self): -
141 Element = self.etree.Element - 142 SubElement = self.etree.SubElement - 143 - 144 el = Element('name') - 145 self.assertRaises(ValueError, SubElement, el, ' name ') - 146 self.assertRaises(ValueError, SubElement, el, 'na me') - 147 self.assertRaises(ValueError, SubElement, el, '{test} name') -
148 -
150 Element = self.etree.Element - 151 SubElement = self.etree.SubElement - 152 - 153 el = Element('name') - 154 self.assertRaises(ValueError, SubElement, el, 'name', {'a b c' : 'abc'}) - 155 self.assertRaises(ValueError, SubElement, el, 'name', {'a' : 'a\0\n'}) - 156 self.assertEquals(0, len(el)) -
157 -
158 - def test_qname_empty(self): -
159 QName = self.etree.QName - 160 self.assertRaises(ValueError, QName, '') - 161 self.assertRaises(ValueError, QName, 'test', '') -
162 -
163 - def test_qname_colon(self): -
164 QName = self.etree.QName - 165 self.assertRaises(ValueError, QName, 'p:name') - 166 self.assertRaises(ValueError, QName, 'test', 'p:name') -
167 -
168 - def test_qname_space(self): -
169 QName = self.etree.QName - 170 self.assertRaises(ValueError, QName, ' name ') - 171 self.assertRaises(ValueError, QName, 'na me') - 172 self.assertRaises(ValueError, QName, 'test', ' name') -
173 -
175 # ET doesn't have namespace/localname properties on QNames - 176 QName = self.etree.QName - 177 namespace, localname = 'http://myns', 'a' - 178 qname = QName(namespace, localname) - 179 self.assertEquals(namespace, qname.namespace) - 180 self.assertEquals(localname, qname.localname) -
181 -
182 - def test_qname_element(self): -
183 # ET doesn't have namespace/localname properties on QNames - 184 QName = self.etree.QName - 185 qname1 = QName('http://myns', 'a') - 186 a = self.etree.Element(qname1, nsmap={'p' : 'http://myns'}) - 187 - 188 qname2 = QName(a) - 189 self.assertEquals(a.tag, qname1.text) - 190 self.assertEquals(qname1.text, qname2.text) - 191 self.assertEquals(qname1, qname2) -
192 -
193 - def test_qname_text_resolve(self): -
194 # ET doesn't resove QNames as text values - 195 etree = self.etree - 196 qname = etree.QName('http://myns', 'a') - 197 a = etree.Element(qname, nsmap={'p' : 'http://myns'}) - 198 a.text = qname - 199 - 200 self.assertEquals("p:a", a.text) -
201 -
202 - def test_nsmap_prefix_invalid(self): -
203 etree = self.etree - 204 self.assertRaises(ValueError, - 205 etree.Element, "root", nsmap={'"' : 'testns'}) - 206 self.assertRaises(ValueError, - 207 etree.Element, "root", nsmap={'&' : 'testns'}) - 208 self.assertRaises(ValueError, - 209 etree.Element, "root", nsmap={'a:b' : 'testns'}) -
210 -
211 - def test_attribute_has_key(self): -
212 # ET in Py 3.x has no "attrib.has_key()" method - 213 XML = self.etree.XML - 214 - 215 root = XML(_bytes('<foo bar="Bar" xmlns:ns="http://ns.codespeak.net/test" ns:baz="Baz" />')) - 216 self.assertEquals( - 217 True, root.attrib.has_key('bar')) - 218 self.assertEquals( - 219 False, root.attrib.has_key('baz')) - 220 self.assertEquals( - 221 False, root.attrib.has_key('hah')) - 222 self.assertEquals( - 223 True, - 224 root.attrib.has_key('{http://ns.codespeak.net/test}baz')) -
225 -
226 - def test_attribute_set(self): -
227 Element = self.etree.Element - 228 root = Element("root") - 229 root.set("attr", "TEST") - 230 self.assertEquals("TEST", root.get("attr")) -
231 -
232 - def test_attribute_set_invalid(self): -
233 # ElementTree accepts arbitrary attribute values - 234 # lxml.etree allows only strings - 235 Element = self.etree.Element - 236 root = Element("root") - 237 self.assertRaises(TypeError, root.set, "newattr", 5) - 238 self.assertRaises(TypeError, root.set, "newattr", None) -
239 -
240 - def test_strip_attributes(self): -
241 XML = self.etree.XML - 242 xml = _bytes('<test a="5" b="10" c="20"><x a="4" b="2"/></test>') - 243 - 244 root = XML(xml) - 245 self.etree.strip_attributes(root, 'a') - 246 self.assertEquals(_bytes('<test b="10" c="20"><x b="2"></x></test>'), - 247 self._writeElement(root)) - 248 - 249 root = XML(xml) - 250 self.etree.strip_attributes(root, 'b', 'c') - 251 self.assertEquals(_bytes('<test a="5"><x a="4"></x></test>'), - 252 self._writeElement(root)) -
253 -
254 - def test_strip_attributes_ns(self): -
255 XML = self.etree.XML - 256 xml = _bytes('<test xmlns:n="http://test/ns" a="6" b="10" c="20" n:a="5"><x a="4" n:b="2"/></test>') - 257 - 258 root = XML(xml) - 259 self.etree.strip_attributes(root, 'a') - 260 self.assertEquals( - 261 _bytes('<test xmlns:n="http://test/ns" b="10" c="20" n:a="5"><x n:b="2"></x></test>'), - 262 self._writeElement(root)) - 263 - 264 root = XML(xml) - 265 self.etree.strip_attributes(root, '{http://test/ns}a', 'c') - 266 self.assertEquals( - 267 _bytes('<test xmlns:n="http://test/ns" a="6" b="10"><x a="4" n:b="2"></x></test>'), - 268 self._writeElement(root)) - 269 - 270 root = XML(xml) - 271 self.etree.strip_attributes(root, '{http://test/ns}*') - 272 self.assertEquals( - 273 _bytes('<test xmlns:n="http://test/ns" a="6" b="10" c="20"><x a="4"></x></test>'), - 274 self._writeElement(root)) -
275 -
276 - def test_strip_elements(self): -
277 XML = self.etree.XML - 278 xml = _bytes('<test><a><b><c/></b></a><x><a><b/><c/></a></x></test>') - 279 - 280 root = XML(xml) - 281 self.etree.strip_elements(root, 'a') - 282 self.assertEquals(_bytes('<test><x></x></test>'), - 283 self._writeElement(root)) - 284 - 285 root = XML(xml) - 286 self.etree.strip_elements(root, 'b', 'c', 'X', 'Y', 'Z') - 287 self.assertEquals(_bytes('<test><a></a><x><a></a></x></test>'), - 288 self._writeElement(root)) - 289 - 290 root = XML(xml) - 291 self.etree.strip_elements(root, 'c') - 292 self.assertEquals(_bytes('<test><a><b></b></a><x><a><b></b></a></x></test>'), - 293 self._writeElement(root)) -
294 -
295 - def test_strip_elements_ns(self): -
296 XML = self.etree.XML - 297 xml = _bytes('<test>TEST<n:a xmlns:n="urn:a">A<b>B<c xmlns="urn:c"/>C</b>BT</n:a>AT<x>X<a>A<b xmlns="urn:a"/>BT<c xmlns="urn:x"/>CT</a>AT</x>XT</test>') - 298 - 299 root = XML(xml) - 300 self.etree.strip_elements(root, 'a') - 301 self.assertEquals(_bytes('<test>TEST<n:a xmlns:n="urn:a">A<b>B<c xmlns="urn:c"></c>C</b>BT</n:a>AT<x>X</x>XT</test>'), - 302 self._writeElement(root)) - 303 - 304 root = XML(xml) - 305 self.etree.strip_elements(root, '{urn:a}b', 'c') - 306 self.assertEquals(_bytes('<test>TEST<n:a xmlns:n="urn:a">A<b>B<c xmlns="urn:c"></c>C</b>BT</n:a>AT<x>X<a>A<c xmlns="urn:x"></c>CT</a>AT</x>XT</test>'), - 307 self._writeElement(root)) - 308 - 309 root = XML(xml) - 310 self.etree.strip_elements(root, '{urn:a}*', 'c') - 311 self.assertEquals(_bytes('<test>TEST<x>X<a>A<c xmlns="urn:x"></c>CT</a>AT</x>XT</test>'), - 312 self._writeElement(root)) - 313 - 314 root = XML(xml) - 315 self.etree.strip_elements(root, '{urn:a}*', 'c', with_tail=False) - 316 self.assertEquals(_bytes('<test>TESTAT<x>X<a>ABT<c xmlns="urn:x"></c>CT</a>AT</x>XT</test>'), - 317 self._writeElement(root)) -
318 -
319 - def test_strip_tags(self): -
320 XML = self.etree.XML - 321 xml = _bytes('<test>TEST<a>A<b>B<c/>CT</b>BT</a>AT<x>X<a>A<b/>BT<c/>CT</a>AT</x>XT</test>') - 322 - 323 root = XML(xml) - 324 self.etree.strip_tags(root, 'a') - 325 self.assertEquals(_bytes('<test>TESTA<b>B<c></c>CT</b>BTAT<x>XA<b></b>BT<c></c>CTAT</x>XT</test>'), - 326 self._writeElement(root)) - 327 - 328 root = XML(xml) - 329 self.etree.strip_tags(root, 'b', 'c', 'X', 'Y', 'Z') - 330 self.assertEquals(_bytes('<test>TEST<a>ABCTBT</a>AT<x>X<a>ABTCT</a>AT</x>XT</test>'), - 331 self._writeElement(root)) - 332 - 333 root = XML(xml) - 334 self.etree.strip_tags(root, 'c') - 335 self.assertEquals(_bytes('<test>TEST<a>A<b>BCT</b>BT</a>AT<x>X<a>A<b></b>BTCT</a>AT</x>XT</test>'), - 336 self._writeElement(root)) -
337 -
338 - def test_strip_tags_pi_comment(self): -
339 XML = self.etree.XML - 340 PI = self.etree.ProcessingInstruction - 341 Comment = self.etree.Comment - 342 xml = _bytes('<!--comment1-->\n<?PI1?>\n<test>TEST<!--comment2-->XT<?PI2?></test>\n<!--comment3-->\n<?PI1?>') - 343 - 344 root = XML(xml) - 345 self.etree.strip_tags(root, PI) - 346 self.assertEquals(_bytes('<!--comment1-->\n<?PI1?>\n<test>TEST<!--comment2-->XT</test>\n<!--comment3-->\n<?PI1?>'), - 347 self._writeElement(root)) - 348 - 349 root = XML(xml) - 350 self.etree.strip_tags(root, Comment) - 351 self.assertEquals(_bytes('<!--comment1-->\n<?PI1?>\n<test>TESTXT<?PI2?></test>\n<!--comment3-->\n<?PI1?>'), - 352 self._writeElement(root)) - 353 - 354 root = XML(xml) - 355 self.etree.strip_tags(root, PI, Comment) - 356 self.assertEquals(_bytes('<!--comment1-->\n<?PI1?>\n<test>TESTXT</test>\n<!--comment3-->\n<?PI1?>'), - 357 self._writeElement(root)) - 358 - 359 root = XML(xml) - 360 self.etree.strip_tags(root, Comment, PI) - 361 self.assertEquals(_bytes('<!--comment1-->\n<?PI1?>\n<test>TESTXT</test>\n<!--comment3-->\n<?PI1?>'), - 362 self._writeElement(root)) -
363 -
365 XML = self.etree.XML - 366 ElementTree = self.etree.ElementTree - 367 PI = self.etree.ProcessingInstruction - 368 Comment = self.etree.Comment - 369 xml = _bytes('<!--comment1-->\n<?PI1?>\n<test>TEST<!--comment2-->XT<?PI2?></test>\n<!--comment3-->\n<?PI1?>') - 370 - 371 root = XML(xml) - 372 self.etree.strip_tags(ElementTree(root), PI) - 373 self.assertEquals(_bytes('<!--comment1-->\n<test>TEST<!--comment2-->XT</test>\n<!--comment3-->'), - 374 self._writeElement(root)) - 375 - 376 root = XML(xml) - 377 self.etree.strip_tags(ElementTree(root), Comment) - 378 self.assertEquals(_bytes('<?PI1?>\n<test>TESTXT<?PI2?></test>\n<?PI1?>'), - 379 self._writeElement(root)) - 380 - 381 root = XML(xml) - 382 self.etree.strip_tags(ElementTree(root), PI, Comment) - 383 self.assertEquals(_bytes('<test>TESTXT</test>'), - 384 self._writeElement(root)) - 385 - 386 root = XML(xml) - 387 self.etree.strip_tags(ElementTree(root), Comment, PI) - 388 self.assertEquals(_bytes('<test>TESTXT</test>'), - 389 self._writeElement(root)) -
390 -
391 - def test_strip_tags_doc_style(self): -
392 XML = self.etree.XML - 393 xml = _bytes(''' - 394 <div> - 395 <div> - 396 I like <strong>sheep</strong>. - 397 <br/> - 398 I like lots of <strong>sheep</strong>. - 399 <br/> - 400 Click <a href="http://www.sheep.com">here</a> for <a href="http://www.sheep.com">those</a> sheep. - 401 <br/> - 402 </div> - 403 </div> - 404 '''.strip()) - 405 - 406 root = XML(xml) - 407 self.etree.strip_tags(root, 'a') - 408 self.assertEquals(re.sub(_bytes('</?a[^>]*>'), _bytes(''), xml).replace(_bytes('<br/>'), _bytes('<br></br>')), - 409 self._writeElement(root)) - 410 - 411 root = XML(xml) - 412 self.etree.strip_tags(root, 'a', 'br') - 413 self.assertEquals(re.sub(_bytes('</?a[^>]*>'), _bytes(''), - 414 re.sub(_bytes('<br[^>]*>'), _bytes(''), xml)), - 415 self._writeElement(root)) -
416 -
417 - def test_strip_tags_ns(self): -
418 XML = self.etree.XML - 419 xml = _bytes('<test>TEST<n:a xmlns:n="urn:a">A<b>B<c xmlns="urn:c"/>CT</b>BT</n:a>AT<x>X<a>A<b xmlns="urn:a"/>BT<c xmlns="urn:x"/>CT</a>AT</x>XT</test>') - 420 - 421 root = XML(xml) - 422 self.etree.strip_tags(root, 'a') - 423 self.assertEquals(_bytes('<test>TEST<n:a xmlns:n="urn:a">A<b>B<c xmlns="urn:c"></c>CT</b>BT</n:a>AT<x>XA<b xmlns="urn:a"></b>BT<c xmlns="urn:x"></c>CTAT</x>XT</test>'), - 424 self._writeElement(root)) - 425 - 426 root = XML(xml) - 427 self.etree.strip_tags(root, '{urn:a}b', 'c') - 428 self.assertEquals(_bytes('<test>TEST<n:a xmlns:n="urn:a">A<b>B<c xmlns="urn:c"></c>CT</b>BT</n:a>AT<x>X<a>ABT<c xmlns="urn:x"></c>CT</a>AT</x>XT</test>'), - 429 self._writeElement(root)) - 430 - 431 root = XML(xml) - 432 self.etree.strip_tags(root, '{urn:a}*', 'c') - 433 self.assertEquals(_bytes('<test>TESTA<b>B<c xmlns="urn:c"></c>CT</b>BTAT<x>X<a>ABT<c xmlns="urn:x"></c>CT</a>AT</x>XT</test>'), - 434 self._writeElement(root)) -
435 -
436 - def test_strip_tags_and_remove(self): -
437 # previously crashed - 438 HTML = self.etree.HTML - 439 root = HTML(_bytes('<div><h1>title</h1> <b>foo</b> <p>boo</p></div>'))[0][0] - 440 self.assertEquals(_bytes('<div><h1>title</h1> <b>foo</b> <p>boo</p></div>'), - 441 self.etree.tostring(root)) - 442 self.etree.strip_tags(root, 'b') - 443 self.assertEquals(_bytes('<div><h1>title</h1> foo <p>boo</p></div>'), - 444 self.etree.tostring(root)) - 445 root.remove(root[0]) - 446 self.assertEquals(_bytes('<div><p>boo</p></div>'), - 447 self.etree.tostring(root)) -
448 -
449 - def test_pi(self): -
450 # lxml.etree separates target and text - 451 Element = self.etree.Element - 452 SubElement = self.etree.SubElement - 453 ProcessingInstruction = self.etree.ProcessingInstruction - 454 - 455 a = Element('a') - 456 a.append(ProcessingInstruction('foo', 'some more text')) - 457 self.assertEquals(a[0].target, 'foo') - 458 self.assertEquals(a[0].text, 'some more text') -
459 -
460 - def test_pi_parse(self): -
461 XML = self.etree.XML - 462 root = XML(_bytes("<test><?mypi my test ?></test>")) - 463 self.assertEquals(root[0].target, "mypi") - 464 self.assertEquals(root[0].text, "my test ") -
465 -
467 XML = self.etree.XML - 468 root = XML(_bytes("<test><?mypi my='1' test=\" abc \" quotes=\"' '\" only names ?></test>")) - 469 self.assertEquals(root[0].target, "mypi") - 470 self.assertEquals(root[0].get('my'), "1") - 471 self.assertEquals(root[0].get('test'), " abc ") - 472 self.assertEquals(root[0].get('quotes'), "' '") - 473 self.assertEquals(root[0].get('only'), None) - 474 self.assertEquals(root[0].get('names'), None) - 475 self.assertEquals(root[0].get('nope'), None) -
476 -
478 XML = self.etree.XML - 479 root = XML(_bytes("<test><?mypi my='1' test=\" abc \" quotes=\"' '\" only names ?></test>")) - 480 self.assertEquals(root[0].target, "mypi") - 481 self.assertEquals(root[0].attrib['my'], "1") - 482 self.assertEquals(root[0].attrib['test'], " abc ") - 483 self.assertEquals(root[0].attrib['quotes'], "' '") - 484 self.assertRaises(KeyError, root[0].attrib.__getitem__, 'only') - 485 self.assertRaises(KeyError, root[0].attrib.__getitem__, 'names') - 486 self.assertRaises(KeyError, root[0].attrib.__getitem__, 'nope') -
487 -
488 - def test_deepcopy_pi(self): -
489 # previously caused a crash - 490 ProcessingInstruction = self.etree.ProcessingInstruction - 491 - 492 a = ProcessingInstruction("PI", "ONE") - 493 b = copy.deepcopy(a) - 494 b.text = "ANOTHER" - 495 - 496 self.assertEquals('ONE', a.text) - 497 self.assertEquals('ANOTHER', b.text) -
498 -
500 XML = self.etree.XML - 501 tostring = self.etree.tostring - 502 root = XML(_bytes("<?mypi my test ?><test/><!--comment -->")) - 503 tree1 = self.etree.ElementTree(root) - 504 self.assertEquals(_bytes("<?mypi my test ?><test/><!--comment -->"), - 505 tostring(tree1)) - 506 - 507 tree2 = copy.deepcopy(tree1) - 508 self.assertEquals(_bytes("<?mypi my test ?><test/><!--comment -->"), - 509 tostring(tree2)) - 510 - 511 root2 = copy.deepcopy(tree1.getroot()) - 512 self.assertEquals(_bytes("<test/>"), - 513 tostring(root2)) -
514 -
516 XML = self.etree.XML - 517 tostring = self.etree.tostring - 518 xml = _bytes('<!DOCTYPE test [\n<!ENTITY entity "tasty">\n]>\n<test/>') - 519 root = XML(xml) - 520 tree1 = self.etree.ElementTree(root) - 521 self.assertEquals(xml, tostring(tree1)) - 522 - 523 tree2 = copy.deepcopy(tree1) - 524 self.assertEquals(xml, tostring(tree2)) - 525 - 526 root2 = copy.deepcopy(tree1.getroot()) - 527 self.assertEquals(_bytes("<test/>"), - 528 tostring(root2)) -
529 -
530 - def test_attribute_set(self): -
531 # ElementTree accepts arbitrary attribute values - 532 # lxml.etree allows only strings - 533 Element = self.etree.Element - 534 - 535 root = Element("root") - 536 root.set("attr", "TEST") - 537 self.assertEquals("TEST", root.get("attr")) - 538 self.assertRaises(TypeError, root.set, "newattr", 5) -
539 -
540 - def test_parse_remove_comments(self): -
541 fromstring = self.etree.fromstring - 542 tostring = self.etree.tostring - 543 XMLParser = self.etree.XMLParser - 544 - 545 xml = _bytes('<a><!--A--><b><!-- B --><c/></b><!--C--></a>') - 546 parser = XMLParser(remove_comments=True) - 547 root = fromstring(xml, parser) - 548 self.assertEquals( - 549 _bytes('<a><b><c/></b></a>'), - 550 tostring(root)) -
551 -
552 - def test_parse_remove_pis(self): -
553 parse = self.etree.parse - 554 tostring = self.etree.tostring - 555 XMLParser = self.etree.XMLParser - 556 - 557 xml = _bytes('<?test?><a><?A?><b><?B?><c/></b><?C?></a><?tail?>') - 558 - 559 f = BytesIO(xml) - 560 tree = parse(f) - 561 self.assertEquals( - 562 xml, - 563 tostring(tree)) - 564 - 565 parser = XMLParser(remove_pis=True) - 566 tree = parse(f, parser) - 567 self.assertEquals( - 568 _bytes('<a><b><c/></b></a>'), - 569 tostring(tree)) -
570 -
572 # ET raises IOError only - 573 parse = self.etree.parse - 574 self.assertRaises(TypeError, parse, 'notthere.xml', object()) -
575 -
577 # ET removes comments - 578 iterparse = self.etree.iterparse - 579 tostring = self.etree.tostring - 580 - 581 f = BytesIO('<a><!--A--><b><!-- B --><c/></b><!--C--></a>') - 582 events = list(iterparse(f)) - 583 root = events[-1][1] - 584 self.assertEquals(3, len(events)) - 585 self.assertEquals( - 586 _bytes('<a><!--A--><b><!-- B --><c/></b><!--C--></a>'), - 587 tostring(root)) -
588 -
589 - def test_iterparse_comments(self): -
590 # ET removes comments - 591 iterparse = self.etree.iterparse - 592 tostring = self.etree.tostring - 593 - 594 def name(event, el): - 595 if event == 'comment': - 596 return el.text - 597 else: - 598 return el.tag -
599 - 600 f = BytesIO('<a><!--A--><b><!-- B --><c/></b><!--C--></a>') - 601 events = list(iterparse(f, events=('end', 'comment'))) - 602 root = events[-1][1] - 603 self.assertEquals(6, len(events)) - 604 self.assertEquals(['A', ' B ', 'c', 'b', 'C', 'a'], - 605 [ name(*item) for item in events ]) - 606 self.assertEquals( - 607 _bytes('<a><!--A--><b><!-- B --><c/></b><!--C--></a>'), - 608 tostring(root)) -
609 -
610 - def test_iterparse_pis(self): -
611 # ET removes pis - 612 iterparse = self.etree.iterparse - 613 tostring = self.etree.tostring - 614 ElementTree = self.etree.ElementTree - 615 - 616 def name(event, el): - 617 if event == 'pi': - 618 return (el.target, el.text) - 619 else: - 620 return el.tag -
621 - 622 f = BytesIO('<?pia a?><a><?pib b?><b><?pic c?><c/></b><?pid d?></a><?pie e?>') - 623 events = list(iterparse(f, events=('end', 'pi'))) - 624 root = events[-2][1] - 625 self.assertEquals(8, len(events)) - 626 self.assertEquals([('pia','a'), ('pib','b'), ('pic','c'), 'c', 'b', - 627 ('pid','d'), 'a', ('pie','e')], - 628 [ name(*item) for item in events ]) - 629 self.assertEquals( - 630 _bytes('<?pia a?><a><?pib b?><b><?pic c?><c/></b><?pid d?></a><?pie e?>'), - 631 tostring(ElementTree(root))) - 632 -
634 iterparse = self.etree.iterparse - 635 tostring = self.etree.tostring - 636 - 637 f = BytesIO('<a><!--A--><b><!-- B --><c/></b><!--C--></a>') - 638 events = list(iterparse(f, remove_comments=True, - 639 events=('end', 'comment'))) - 640 root = events[-1][1] - 641 self.assertEquals(3, len(events)) - 642 self.assertEquals(['c', 'b', 'a'], - 643 [ el.tag for (event, el) in events ]) - 644 self.assertEquals( - 645 _bytes('<a><b><c/></b></a>'), - 646 tostring(root)) -
647 -
648 - def test_iterparse_broken(self): -
649 iterparse = self.etree.iterparse - 650 f = BytesIO('<a><b><c/></a>') - 651 # ET raises ExpatError, lxml raises XMLSyntaxError - 652 self.assertRaises(self.etree.XMLSyntaxError, list, iterparse(f)) -
653 -
654 - def test_iterparse_strip(self): -
655 iterparse = self.etree.iterparse - 656 f = BytesIO(""" - 657 <a> \n \n <b> b test </b> \n - 658 - 659 \n\t <c> \n </c> </a> \n """) - 660 iterator = iterparse(f, remove_blank_text=True) - 661 text = [ (element.text, element.tail) - 662 for event, element in iterator ] - 663 self.assertEquals( - 664 [(" b test ", None), (" \n ", None), (None, None)], - 665 text) -
666 -
667 - def test_iterparse_tag(self): -
668 iterparse = self.etree.iterparse - 669 f = BytesIO('<a><b><d/></b><c/></a>') - 670 - 671 iterator = iterparse(f, tag="b", events=('start', 'end')) - 672 events = list(iterator) - 673 root = iterator.root - 674 self.assertEquals( - 675 [('start', root[0]), ('end', root[0])], - 676 events) -
677 -
678 - def test_iterparse_tag_all(self): -
679 iterparse = self.etree.iterparse - 680 f = BytesIO('<a><b><d/></b><c/></a>') - 681 - 682 iterator = iterparse(f, tag="*", events=('start', 'end')) - 683 events = list(iterator) - 684 self.assertEquals( - 685 8, - 686 len(events)) -
687 -
688 - def test_iterparse_tag_ns(self): -
689 iterparse = self.etree.iterparse - 690 f = BytesIO('<a xmlns="urn:test:1"><b><d/></b><c/></a>') - 691 - 692 iterator = iterparse(f, tag="{urn:test:1}b", events=('start', 'end')) - 693 events = list(iterator) - 694 root = iterator.root - 695 self.assertEquals( - 696 [('start', root[0]), ('end', root[0])], - 697 events) -
698 -
699 - def test_iterparse_tag_ns_empty(self): -
700 iterparse = self.etree.iterparse - 701 f = BytesIO('<a><b><d/></b><c/></a>') - 702 iterator = iterparse(f, tag="{}b", events=('start', 'end')) - 703 events = list(iterator) - 704 root = iterator.root - 705 self.assertEquals( - 706 [('start', root[0]), ('end', root[0])], - 707 events) - 708 - 709 f = BytesIO('<a xmlns="urn:test:1"><b><d/></b><c/></a>') - 710 iterator = iterparse(f, tag="{}b", events=('start', 'end')) - 711 events = list(iterator) - 712 root = iterator.root - 713 self.assertEquals([], events) -
714 -
715 - def test_iterparse_tag_ns_all(self): -
716 iterparse = self.etree.iterparse - 717 f = BytesIO('<a xmlns="urn:test:1"><b><d/></b><c/></a>') - 718 iterator = iterparse(f, tag="{urn:test:1}*", events=('start', 'end')) - 719 events = list(iterator) - 720 self.assertEquals(8, len(events)) -
721 -
723 iterparse = self.etree.iterparse - 724 f = BytesIO('<a xmlns="urn:test:1"><b><d/></b><c/></a>') - 725 iterator = iterparse(f, tag="{}*", events=('start', 'end')) - 726 events = list(iterator) - 727 self.assertEquals([], events) - 728 - 729 f = BytesIO('<a><b><d/></b><c/></a>') - 730 iterator = iterparse(f, tag="{}*", events=('start', 'end')) - 731 events = list(iterator) - 732 self.assertEquals(8, len(events)) -
733 -
735 text = _str('Søk på nettet') - 736 wrong_declaration = "<?xml version='1.0' encoding='UTF-8'?>" - 737 xml_latin1 = (_str('%s<a>%s</a>') % (wrong_declaration, text) - 738 ).encode('iso-8859-1') - 739 - 740 self.assertRaises(self.etree.ParseError, - 741 list, self.etree.iterparse(BytesIO(xml_latin1))) -
742 -
744 text = _str('Søk på nettet', encoding="UTF-8") - 745 wrong_declaration = "<?xml version='1.0' encoding='UTF-8'?>" - 746 xml_latin1 = (_str('%s<a>%s</a>') % (wrong_declaration, text) - 747 ).encode('iso-8859-1') - 748 - 749 iterator = self.etree.iterparse(BytesIO(xml_latin1), - 750 encoding="iso-8859-1") - 751 self.assertEquals(1, len(list(iterator))) - 752 - 753 a = iterator.root - 754 self.assertEquals(a.text, text) -
755 -
756 - def test_iterparse_keep_cdata(self): -
757 tostring = self.etree.tostring - 758 f = BytesIO('<root><![CDATA[test]]></root>') - 759 context = self.etree.iterparse(f, strip_cdata=False) - 760 content = [ el.text for event,el in context ] - 761 - 762 self.assertEquals(['test'], content) - 763 self.assertEquals(_bytes('<root><![CDATA[test]]></root>'), - 764 tostring(context.root)) -
765 -
767 self.assertRaises( - 768 LookupError, self.etree.XMLParser, encoding="hopefully unknown") -
769 -
770 - def test_parser_encoding(self): -
771 self.etree.XMLParser(encoding="ascii") - 772 self.etree.XMLParser(encoding="utf-8") - 773 self.etree.XMLParser(encoding="iso-8859-1") -
774 -
775 - def test_feed_parser_recover(self): -
776 parser = self.etree.XMLParser(recover=True) - 777 - 778 parser.feed('<?xml version=') - 779 parser.feed('"1.0"?><ro') - 780 parser.feed('ot><') - 781 parser.feed('a test="works"') - 782 parser.feed('><othertag/></root') # <a> not closed! - 783 parser.feed('>') - 784 - 785 root = parser.close() - 786 - 787 self.assertEquals(root.tag, "root") - 788 self.assertEquals(len(root), 1) - 789 self.assertEquals(root[0].tag, "a") - 790 self.assertEquals(root[0].get("test"), "works") - 791 self.assertEquals(len(root[0]), 1) - 792 self.assertEquals(root[0][0].tag, "othertag") -
793 # FIXME: would be nice to get some errors logged ... - 794 #self.assert_(len(parser.error_log) > 0, "error log is empty") - 795 -
797 assertEquals = self.assertEquals - 798 assertFalse = self.assertFalse - 799 - 800 events = [] - 801 class Target(object): - 802 def start(self, tag, attrib): - 803 events.append("start") - 804 assertFalse(attrib) - 805 assertEquals("TAG", tag) -
806 def end(self, tag): - 807 events.append("end") - 808 assertEquals("TAG", tag) - 809 def close(self): - 810 return "DONE" # no Element! - 811 - 812 parser = self.etree.XMLParser(target=Target()) - 813 tree = self.etree.ElementTree() - 814 - 815 self.assertRaises(TypeError, - 816 tree.parse, BytesIO("<TAG/>"), parser=parser) - 817 self.assertEquals(["start", "end"], events) - 818 -
820 # ET doesn't call .close() on errors - 821 events = [] - 822 class Target(object): - 823 def start(self, tag, attrib): - 824 events.append("start-" + tag) -
825 def end(self, tag): - 826 events.append("end-" + tag) - 827 if tag == 'a': - 828 raise ValueError("dead and gone") - 829 def data(self, data): - 830 events.append("data-" + data) - 831 def close(self): - 832 events.append("close") - 833 return "DONE" - 834 - 835 parser = self.etree.XMLParser(target=Target()) - 836 - 837 try: - 838 parser.feed(_bytes('<root>A<a>ca</a>B</root>')) - 839 done = parser.close() - 840 self.fail("error expected, but parsing succeeded") - 841 except ValueError: - 842 done = 'value error received as expected' - 843 - 844 self.assertEquals(["start-root", "data-A", "start-a", - 845 "data-ca", "end-a", "close"], - 846 events) - 847 -
849 # ET doesn't call .close() on errors - 850 events = [] - 851 class Target(object): - 852 def start(self, tag, attrib): - 853 events.append("start-" + tag) -
854 def end(self, tag): - 855 events.append("end-" + tag) - 856 if tag == 'a': - 857 raise ValueError("dead and gone") - 858 def data(self, data): - 859 events.append("data-" + data) - 860 def close(self): - 861 events.append("close") - 862 return "DONE" - 863 - 864 parser = self.etree.XMLParser(target=Target()) - 865 - 866 try: - 867 done = self.etree.fromstring(_bytes('<root>A<a>ca</a>B</root>'), - 868 parser=parser) - 869 self.fail("error expected, but parsing succeeded") - 870 except ValueError: - 871 done = 'value error received as expected' - 872 - 873 self.assertEquals(["start-root", "data-A", "start-a", - 874 "data-ca", "end-a", "close"], - 875 events) - 876 -
877 - def test_parser_target_comment(self): -
878 events = [] - 879 class Target(object): - 880 def start(self, tag, attrib): - 881 events.append("start-" + tag) -
882 def end(self, tag): - 883 events.append("end-" + tag) - 884 def data(self, data): - 885 events.append("data-" + data) - 886 def comment(self, text): - 887 events.append("comment-" + text) - 888 def close(self): - 889 return "DONE" - 890 - 891 parser = self.etree.XMLParser(target=Target()) - 892 - 893 parser.feed(_bytes('<!--a--><root>A<!--b--><sub/><!--c-->B</root><!--d-->')) - 894 done = parser.close() - 895 - 896 self.assertEquals("DONE", done) - 897 self.assertEquals(["comment-a", "start-root", "data-A", "comment-b", - 898 "start-sub", "end-sub", "comment-c", "data-B", - 899 "end-root", "comment-d"], - 900 events) - 901 -
902 - def test_parser_target_pi(self): -
903 events = [] - 904 class Target(object): - 905 def start(self, tag, attrib): - 906 events.append("start-" + tag) -
907 def end(self, tag): - 908 events.append("end-" + tag) - 909 def data(self, data): - 910 events.append("data-" + data) - 911 def pi(self, target, data): - 912 events.append("pi-" + target + "-" + data) - 913 def close(self): - 914 return "DONE" - 915 - 916 parser = self.etree.XMLParser(target=Target()) - 917 - 918 parser.feed(_bytes('<?test a?><root>A<?test b?>B</root><?test c?>')) - 919 done = parser.close() - 920 - 921 self.assertEquals("DONE", done) - 922 self.assertEquals(["pi-test-a", "start-root", "data-A", "pi-test-b", - 923 "data-B", "end-root", "pi-test-c"], - 924 events) - 925 -
926 - def test_parser_target_cdata(self): -
927 events = [] - 928 class Target(object): - 929 def start(self, tag, attrib): - 930 events.append("start-" + tag) -
931 def end(self, tag): - 932 events.append("end-" + tag) - 933 def data(self, data): - 934 events.append("data-" + data) - 935 def close(self): - 936 return "DONE" - 937 - 938 parser = self.etree.XMLParser(target=Target(), - 939 strip_cdata=False) - 940 - 941 parser.feed(_bytes('<root>A<a><![CDATA[ca]]></a>B</root>')) - 942 done = parser.close() - 943 - 944 self.assertEquals("DONE", done) - 945 self.assertEquals(["start-root", "data-A", "start-a", - 946 "data-ca", "end-a", "data-B", "end-root"], - 947 events) - 948 -
949 - def test_parser_target_recover(self): -
950 events = [] - 951 class Target(object): - 952 def start(self, tag, attrib): - 953 events.append("start-" + tag) -
954 def end(self, tag): - 955 events.append("end-" + tag) - 956 def data(self, data): - 957 events.append("data-" + data) - 958 def close(self): - 959 events.append("close") - 960 return "DONE" - 961 - 962 parser = self.etree.XMLParser(target=Target(), - 963 recover=True) - 964 - 965 parser.feed(_bytes('<root>A<a>ca</a>B</not-root>')) - 966 done = parser.close() - 967 - 968 self.assertEquals("DONE", done) - 969 self.assertEquals(["start-root", "data-A", "start-a", - 970 "data-ca", "end-a", "data-B", - 971 "end-root", "close"], - 972 events) - 973 -
974 - def test_iterwalk_tag(self): -
975 iterwalk = self.etree.iterwalk - 976 root = self.etree.XML(_bytes('<a><b><d/></b><c/></a>')) - 977 - 978 iterator = iterwalk(root, tag="b", events=('start', 'end')) - 979 events = list(iterator) - 980 self.assertEquals( - 981 [('start', root[0]), ('end', root[0])], - 982 events) -
983 -
984 - def test_iterwalk_tag_all(self): -
985 iterwalk = self.etree.iterwalk - 986 root = self.etree.XML(_bytes('<a><b><d/></b><c/></a>')) - 987 - 988 iterator = iterwalk(root, tag="*", events=('start', 'end')) - 989 events = list(iterator) - 990 self.assertEquals( - 991 8, - 992 len(events)) -
993 -
994 - def test_iterwalk(self): -
995 iterwalk = self.etree.iterwalk - 996 root = self.etree.XML(_bytes('<a><b></b><c/></a>')) - 997 - 998 events = list(iterwalk(root)) - 999 self.assertEquals( -1000 [('end', root[0]), ('end', root[1]), ('end', root)], -1001 events) -
1002 -
1003 - def test_iterwalk_start(self): -
1004 iterwalk = self.etree.iterwalk -1005 root = self.etree.XML(_bytes('<a><b></b><c/></a>')) -1006 -1007 iterator = iterwalk(root, events=('start',)) -1008 events = list(iterator) -1009 self.assertEquals( -1010 [('start', root), ('start', root[0]), ('start', root[1])], -1011 events) -
1012 -
1013 - def test_iterwalk_start_end(self): -
1014 iterwalk = self.etree.iterwalk -1015 root = self.etree.XML(_bytes('<a><b></b><c/></a>')) -1016 -1017 iterator = iterwalk(root, events=('start','end')) -1018 events = list(iterator) -1019 self.assertEquals( -1020 [('start', root), ('start', root[0]), ('end', root[0]), -1021 ('start', root[1]), ('end', root[1]), ('end', root)], -1022 events) -
1023 -
1024 - def test_iterwalk_clear(self): -
1025 iterwalk = self.etree.iterwalk -1026 root = self.etree.XML(_bytes('<a><b></b><c/></a>')) -1027 -1028 iterator = iterwalk(root) -1029 for event, elem in iterator: -1030 elem.clear() -1031 -1032 self.assertEquals(0, -1033 len(root)) -
1034 -
1035 - def test_iterwalk_attrib_ns(self): -
1036 iterwalk = self.etree.iterwalk -1037 root = self.etree.XML(_bytes('<a xmlns="ns1"><b><c xmlns="ns2"/></b></a>')) -1038 -1039 attr_name = '{testns}bla' -1040 events = [] -1041 iterator = iterwalk(root, events=('start','end','start-ns','end-ns')) -1042 for event, elem in iterator: -1043 events.append(event) -1044 if event == 'start': -1045 if elem.tag != '{ns1}a': -1046 elem.set(attr_name, 'value') -1047 -1048 self.assertEquals( -1049 ['start-ns', 'start', 'start', 'start-ns', 'start', -1050 'end', 'end-ns', 'end', 'end', 'end-ns'], -1051 events) -1052 -1053 self.assertEquals( -1054 None, -1055 root.get(attr_name)) -1056 self.assertEquals( -1057 'value', -1058 root[0].get(attr_name)) -
1059 -
1060 - def test_iterwalk_getiterator(self): -
1061 iterwalk = self.etree.iterwalk -1062 root = self.etree.XML(_bytes('<a><b><d/></b><c/></a>')) -1063 -1064 counts = [] -1065 for event, elem in iterwalk(root): -1066 counts.append(len(list(elem.getiterator()))) -1067 self.assertEquals( -1068 [1,2,1,4], -1069 counts) -
1070 -
1071 - def test_resolve_string_dtd(self): -
1072 parse = self.etree.parse -1073 parser = self.etree.XMLParser(dtd_validation=True) -1074 assertEqual = self.assertEqual -1075 test_url = _str("__nosuch.dtd") -1076 -1077 class MyResolver(self.etree.Resolver): -1078 def resolve(self, url, id, context): -1079 assertEqual(url, test_url) -1080 return self.resolve_string( -1081 _str('''<!ENTITY myentity "%s"> -1082 <!ELEMENT doc ANY>''') % url, context) -
1083 -1084 parser.resolvers.add(MyResolver()) -1085 -1086 xml = _str('<!DOCTYPE doc SYSTEM "%s"><doc>&myentity;</doc>') % test_url -1087 tree = parse(StringIO(xml), parser) -1088 root = tree.getroot() -1089 self.assertEquals(root.text, test_url) -1090 -
1091 - def test_resolve_bytes_dtd(self): -
1092 parse = self.etree.parse -1093 parser = self.etree.XMLParser(dtd_validation=True) -1094 assertEqual = self.assertEqual -1095 test_url = _str("__nosuch.dtd") -1096 -1097 class MyResolver(self.etree.Resolver): -1098 def resolve(self, url, id, context): -1099 assertEqual(url, test_url) -1100 return self.resolve_string( -1101 (_str('''<!ENTITY myentity "%s"> -1102 <!ELEMENT doc ANY>''') % url).encode('utf-8'), -1103 context) -
1104 -1105 parser.resolvers.add(MyResolver()) -1106 -1107 xml = _str('<!DOCTYPE doc SYSTEM "%s"><doc>&myentity;</doc>') % test_url -1108 tree = parse(StringIO(xml), parser) -1109 root = tree.getroot() -1110 self.assertEquals(root.text, test_url) -1111 -
1112 - def test_resolve_filelike_dtd(self): -
1113 parse = self.etree.parse -1114 parser = self.etree.XMLParser(dtd_validation=True) -1115 assertEqual = self.assertEqual -1116 test_url = _str("__nosuch.dtd") -1117 -1118 class MyResolver(self.etree.Resolver): -1119 def resolve(self, url, id, context): -1120 assertEqual(url, test_url) -1121 return self.resolve_file( -1122 SillyFileLike( -1123 _str('''<!ENTITY myentity "%s"> -1124 <!ELEMENT doc ANY>''') % url), context) -
1125 -1126 parser.resolvers.add(MyResolver()) -1127 -1128 xml = _str('<!DOCTYPE doc SYSTEM "%s"><doc>&myentity;</doc>') % test_url -1129 tree = parse(StringIO(xml), parser) -1130 root = tree.getroot() -1131 self.assertEquals(root.text, test_url) -1132 -
1133 - def test_resolve_filename_dtd(self): -
1134 parse = self.etree.parse -1135 parser = self.etree.XMLParser(attribute_defaults=True) -1136 assertEqual = self.assertEqual -1137 test_url = _str("__nosuch.dtd") -1138 -1139 class MyResolver(self.etree.Resolver): -1140 def resolve(self, url, id, context): -1141 assertEqual(url, test_url) -1142 return self.resolve_filename( -1143 fileInTestDir('test.dtd'), context) -
1144 -1145 parser.resolvers.add(MyResolver()) -1146 -1147 xml = _str('<!DOCTYPE a SYSTEM "%s"><a><b/></a>') % test_url -1148 tree = parse(StringIO(xml), parser) -1149 root = tree.getroot() -1150 self.assertEquals( -1151 root.attrib, {'default': 'valueA'}) -1152 self.assertEquals( -1153 root[0].attrib, {'default': 'valueB'}) -1154 -
1156 parse = self.etree.parse -1157 parser = self.etree.XMLParser(attribute_defaults=True) -1158 assertEqual = self.assertEqual -1159 test_url = _str("__nosuch.dtd") -1160 -1161 class MyResolver(self.etree.Resolver): -1162 def resolve(self, url, id, context): -1163 assertEqual(url, fileInTestDir(test_url)) -1164 return self.resolve_filename( -1165 fileInTestDir('test.dtd'), context) -
1166 -1167 parser.resolvers.add(MyResolver()) -1168 -1169 xml = _str('<!DOCTYPE a SYSTEM "%s"><a><b/></a>') % test_url -1170 tree = parse(StringIO(xml), parser, -1171 base_url=fileInTestDir('__test.xml')) -1172 root = tree.getroot() -1173 self.assertEquals( -1174 root.attrib, {'default': 'valueA'}) -1175 self.assertEquals( -1176 root[0].attrib, {'default': 'valueB'}) -1177 -
1178 - def test_resolve_file_dtd(self): -
1179 parse = self.etree.parse -1180 parser = self.etree.XMLParser(attribute_defaults=True) -1181 assertEqual = self.assertEqual -1182 test_url = _str("__nosuch.dtd") -1183 -1184 class MyResolver(self.etree.Resolver): -1185 def resolve(self, url, id, context): -1186 assertEqual(url, test_url) -1187 return self.resolve_file( -1188 open(fileInTestDir('test.dtd'), 'rb'), context) -
1189 -1190 parser.resolvers.add(MyResolver()) -1191 -1192 xml = _str('<!DOCTYPE a SYSTEM "%s"><a><b/></a>') % test_url -1193 tree = parse(StringIO(xml), parser) -1194 root = tree.getroot() -1195 self.assertEquals( -1196 root.attrib, {'default': 'valueA'}) -1197 self.assertEquals( -1198 root[0].attrib, {'default': 'valueB'}) -1199 -
1200 - def test_resolve_empty(self): -
1201 parse = self.etree.parse -1202 parser = self.etree.XMLParser(load_dtd=True) -1203 assertEqual = self.assertEqual -1204 test_url = _str("__nosuch.dtd") -1205 -1206 class check(object): -1207 resolved = False -
1208 -1209 class MyResolver(self.etree.Resolver): -1210 def resolve(self, url, id, context): -1211 assertEqual(url, test_url) -1212 check.resolved = True -1213 return self.resolve_empty(context) -1214 -1215 parser.resolvers.add(MyResolver()) -1216 -1217 xml = _str('<!DOCTYPE doc SYSTEM "%s"><doc>&myentity;</doc>') % test_url -1218 self.assertRaises(etree.XMLSyntaxError, parse, StringIO(xml), parser) -1219 self.assert_(check.resolved) -1220 -
1221 - def test_resolve_error(self): -
1222 parse = self.etree.parse -1223 parser = self.etree.XMLParser(dtd_validation=True) -1224 -1225 class _LocalException(Exception): -1226 pass -
1227 -1228 class MyResolver(self.etree.Resolver): -1229 def resolve(self, url, id, context): -1230 raise _LocalException -1231 -1232 parser.resolvers.add(MyResolver()) -1233 -1234 xml = '<!DOCTYPE doc SYSTEM "test"><doc>&myentity;</doc>' -1235 self.assertRaises(_LocalException, parse, BytesIO(xml), parser) -1236 -1237 if etree.LIBXML_VERSION > (2,6,20): -
1238 - def test_entity_parse(self): -
1239 parse = self.etree.parse -1240 tostring = self.etree.tostring -1241 parser = self.etree.XMLParser(resolve_entities=False) -1242 Entity = self.etree.Entity -1243 -1244 xml = _bytes('<!DOCTYPE doc SYSTEM "test"><doc>&myentity;</doc>') -1245 tree = parse(BytesIO(xml), parser) -1246 root = tree.getroot() -1247 self.assertEquals(root[0].tag, Entity) -1248 self.assertEquals(root[0].text, "&myentity;") -1249 self.assertEquals(root[0].tail, None) -1250 self.assertEquals(root[0].name, "myentity") -1251 -1252 self.assertEquals(_bytes('<doc>&myentity;</doc>'), -1253 tostring(root)) -
1254 -
1255 - def test_entity_restructure(self): -
1256 xml = _bytes('''<!DOCTYPE root [ <!ENTITY nbsp "&#160;"> ]> -1257 <root> -1258 <child1/> -1259 <child2/> -1260 <child3>&nbsp;</child3> -1261 </root>''') -1262 -1263 parser = self.etree.XMLParser(resolve_entities=False) -1264 root = etree.fromstring(xml, parser) -1265 self.assertEquals([ el.tag for el in root ], -1266 ['child1', 'child2', 'child3']) -1267 -1268 root[0] = root[-1] -1269 self.assertEquals([ el.tag for el in root ], -1270 ['child3', 'child2']) -1271 self.assertEquals(root[0][0].text, '&nbsp;') -1272 self.assertEquals(root[0][0].name, 'nbsp') -
1273 -
1274 - def test_entity_append(self): -
1275 Entity = self.etree.Entity -1276 Element = self.etree.Element -1277 tostring = self.etree.tostring -1278 -1279 root = Element("root") -1280 root.append( Entity("test") ) -1281 -1282 self.assertEquals(root[0].tag, Entity) -1283 self.assertEquals(root[0].text, "&test;") -1284 self.assertEquals(root[0].tail, None) -1285 self.assertEquals(root[0].name, "test") -1286 -1287 self.assertEquals(_bytes('<root>&test;</root>'), -1288 tostring(root)) -
1289 -
1290 - def test_entity_values(self): -
1291 Entity = self.etree.Entity -1292 self.assertEquals(Entity("test").text, '&test;') -1293 self.assertEquals(Entity("#17683").text, '&#17683;') -1294 self.assertEquals(Entity("#x1768").text, '&#x1768;') -1295 self.assertEquals(Entity("#x98AF").text, '&#x98AF;') -
1296 -
1297 - def test_entity_error(self): -
1298 Entity = self.etree.Entity -1299 self.assertRaises(ValueError, Entity, 'a b c') -1300 self.assertRaises(ValueError, Entity, 'a,b') -1301 self.assertRaises(ValueError, Entity, 'a\0b') -1302 self.assertRaises(ValueError, Entity, '#abc') -1303 self.assertRaises(ValueError, Entity, '#xxyz') -
1304 -
1305 - def test_cdata(self): -
1306 CDATA = self.etree.CDATA -1307 Element = self.etree.Element -1308 tostring = self.etree.tostring -1309 -1310 root = Element("root") -1311 root.text = CDATA('test') -1312 -1313 self.assertEquals('test', -1314 root.text) -1315 self.assertEquals(_bytes('<root><![CDATA[test]]></root>'), -1316 tostring(root)) -
1317 -
1318 - def test_cdata_type(self): -
1319 CDATA = self.etree.CDATA -1320 Element = self.etree.Element -1321 root = Element("root") -1322 -1323 root.text = CDATA("test") -1324 self.assertEquals('test', root.text) -1325 -1326 root.text = CDATA(_str("test")) -1327 self.assertEquals('test', root.text) -1328 -1329 self.assertRaises(TypeError, CDATA, 1) -
1330 -
1331 - def test_cdata_errors(self): -
1332 CDATA = self.etree.CDATA -1333 Element = self.etree.Element -1334 -1335 root = Element("root") -1336 cdata = CDATA('test') -1337 -1338 self.assertRaises(TypeError, -1339 setattr, root, 'tail', cdata) -1340 self.assertRaises(TypeError, -1341 root.set, 'attr', cdata) -1342 self.assertRaises(TypeError, -1343 operator.setitem, root.attrib, 'attr', cdata) -
1344 -
1345 - def test_cdata_parser(self): -
1346 tostring = self.etree.tostring -1347 parser = self.etree.XMLParser(strip_cdata=False) -1348 root = self.etree.XML(_bytes('<root><![CDATA[test]]></root>'), parser) -1349 -1350 self.assertEquals('test', root.text) -1351 self.assertEquals(_bytes('<root><![CDATA[test]]></root>'), -1352 tostring(root)) -
1353 -
1354 - def test_cdata_xpath(self): -
1355 tostring = self.etree.tostring -1356 parser = self.etree.XMLParser(strip_cdata=False) -1357 root = self.etree.XML(_bytes('<root><![CDATA[test]]></root>'), parser) -1358 self.assertEquals(_bytes('<root><![CDATA[test]]></root>'), -1359 tostring(root)) -1360 -1361 self.assertEquals(['test'], root.xpath('//text()')) -
1362 -1363 # TypeError in etree, AssertionError in ElementTree; -
1364 - def test_setitem_assert(self): -
1365 Element = self.etree.Element -1366 SubElement = self.etree.SubElement -1367 -1368 a = Element('a') -1369 b = SubElement(a, 'b') -1370 -1371 self.assertRaises(TypeError, -1372 a.__setitem__, 0, 'foo') -
1373 -
1374 - def test_append_error(self): -
1375 Element = self.etree.Element -1376 root = Element('root') -1377 # raises AssertionError in ElementTree -1378 self.assertRaises(TypeError, root.append, None) -1379 self.assertRaises(TypeError, root.extend, [None]) -1380 self.assertRaises(TypeError, root.extend, [Element('one'), None]) -1381 self.assertEquals('one', root[0].tag) -
1382 -
1383 - def test_addnext(self): -
1384 Element = self.etree.Element -1385 SubElement = self.etree.SubElement -1386 root = Element('root') -1387 SubElement(root, 'a') -1388 SubElement(root, 'b') -1389 -1390 self.assertEquals(['a', 'b'], -1391 [c.tag for c in root]) -1392 root[1].addnext(root[0]) -1393 self.assertEquals(['b', 'a'], -1394 [c.tag for c in root]) -
1395 -
1396 - def test_addprevious(self): -
1397 Element = self.etree.Element -1398 SubElement = self.etree.SubElement -1399 root = Element('root') -1400 SubElement(root, 'a') -1401 SubElement(root, 'b') -1402 -1403 self.assertEquals(['a', 'b'], -1404 [c.tag for c in root]) -1405 root[0].addprevious(root[1]) -1406 self.assertEquals(['b', 'a'], -1407 [c.tag for c in root]) -
1408 -
1409 - def test_addnext_root(self): -
1410 Element = self.etree.Element -1411 a = Element('a') -1412 b = Element('b') -1413 self.assertRaises(TypeError, a.addnext, b) -
1414 -
1415 - def test_addnext_root(self): -
1416 Element = self.etree.Element -1417 a = Element('a') -1418 b = Element('b') -1419 self.assertRaises(TypeError, a.addnext, b) -
1420 -
1421 - def test_addprevious_pi(self): -
1422 Element = self.etree.Element -1423 SubElement = self.etree.SubElement -1424 PI = self.etree.PI -1425 root = Element('root') -1426 SubElement(root, 'a') -1427 pi = PI('TARGET', 'TEXT') -1428 pi.tail = "TAIL" -1429 -1430 self.assertEquals(_bytes('<root><a></a></root>'), -1431 self._writeElement(root)) -1432 root[0].addprevious(pi) -1433 self.assertEquals(_bytes('<root><?TARGET TEXT?>TAIL<a></a></root>'), -1434 self._writeElement(root)) -
1435 -
1436 - def test_addprevious_root_pi(self): -
1437 Element = self.etree.Element -1438 PI = self.etree.PI -1439 root = Element('root') -1440 pi = PI('TARGET', 'TEXT') -1441 pi.tail = "TAIL" -1442 -1443 self.assertEquals(_bytes('<root></root>'), -1444 self._writeElement(root)) -1445 root.addprevious(pi) -1446 self.assertEquals(_bytes('<?TARGET TEXT?>\n<root></root>'), -1447 self._writeElement(root)) -
1448 -
1449 - def test_addnext_pi(self): -
1450 Element = self.etree.Element -1451 SubElement = self.etree.SubElement -1452 PI = self.etree.PI -1453 root = Element('root') -1454 SubElement(root, 'a') -1455 pi = PI('TARGET', 'TEXT') -1456 pi.tail = "TAIL" -1457 -1458 self.assertEquals(_bytes('<root><a></a></root>'), -1459 self._writeElement(root)) -1460 root[0].addnext(pi) -1461 self.assertEquals(_bytes('<root><a></a><?TARGET TEXT?>TAIL</root>'), -1462 self._writeElement(root)) -
1463 -
1464 - def test_addnext_root_pi(self): -
1465 Element = self.etree.Element -1466 PI = self.etree.PI -1467 root = Element('root') -1468 pi = PI('TARGET', 'TEXT') -1469 pi.tail = "TAIL" -1470 -1471 self.assertEquals(_bytes('<root></root>'), -1472 self._writeElement(root)) -1473 root.addnext(pi) -1474 self.assertEquals(_bytes('<root></root>\n<?TARGET TEXT?>'), -1475 self._writeElement(root)) -
1476 -
1477 - def test_addnext_comment(self): -
1478 Element = self.etree.Element -1479 SubElement = self.etree.SubElement -1480 Comment = self.etree.Comment -1481 root = Element('root') -1482 SubElement(root, 'a') -1483 comment = Comment('TEXT ') -1484 comment.tail = "TAIL" -1485 -1486 self.assertEquals(_bytes('<root><a></a></root>'), -1487 self._writeElement(root)) -1488 root[0].addnext(comment) -1489 self.assertEquals(_bytes('<root><a></a><!--TEXT -->TAIL</root>'), -1490 self._writeElement(root)) -
1491 -
1492 - def test_addnext_root_comment(self): -
1493 Element = self.etree.Element -1494 Comment = self.etree.Comment -1495 root = Element('root') -1496 comment = Comment('TEXT ') -1497 comment.tail = "TAIL" -1498 -1499 self.assertEquals(_bytes('<root></root>'), -1500 self._writeElement(root)) -1501 root.addnext(comment) -1502 self.assertEquals(_bytes('<root></root>\n<!--TEXT -->'), -1503 self._writeElement(root)) -
1504 -
1505 - def test_addprevious_comment(self): -
1506 Element = self.etree.Element -1507 SubElement = self.etree.SubElement -1508 Comment = self.etree.Comment -1509 root = Element('root') -1510 SubElement(root, 'a') -1511 comment = Comment('TEXT ') -1512 comment.tail = "TAIL" -1513 -1514 self.assertEquals(_bytes('<root><a></a></root>'), -1515 self._writeElement(root)) -1516 root[0].addprevious(comment) -1517 self.assertEquals(_bytes('<root><!--TEXT -->TAIL<a></a></root>'), -1518 self._writeElement(root)) -
1519 -
1521 Element = self.etree.Element -1522 Comment = self.etree.Comment -1523 root = Element('root') -1524 comment = Comment('TEXT ') -1525 comment.tail = "TAIL" -1526 -1527 self.assertEquals(_bytes('<root></root>'), -1528 self._writeElement(root)) -1529 root.addprevious(comment) -1530 self.assertEquals(_bytes('<!--TEXT -->\n<root></root>'), -1531 self._writeElement(root)) -
1532 -1533 # ET's Elements have items() and key(), but not values() -
1534 - def test_attribute_values(self): -
1535 XML = self.etree.XML -1536 -1537 root = XML(_bytes('<doc alpha="Alpha" beta="Beta" gamma="Gamma"/>')) -1538 values = root.values() -1539 values.sort() -1540 self.assertEquals(['Alpha', 'Beta', 'Gamma'], values) -
1541 -1542 # gives error in ElementTree -
1543 - def test_comment_empty(self): -
1544 Element = self.etree.Element -1545 Comment = self.etree.Comment -1546 -1547 a = Element('a') -1548 a.append(Comment()) -1549 self.assertEquals( -1550 _bytes('<a><!----></a>'), -1551 self._writeElement(a)) -
1552 -1553 # ElementTree ignores comments -
1554 - def test_comment_parse_empty(self): -
1555 ElementTree = self.etree.ElementTree -1556 tostring = self.etree.tostring -1557 -1558 xml = _bytes('<a><b/><!----><c/></a>') -1559 f = BytesIO(xml) -1560 doc = ElementTree(file=f) -1561 a = doc.getroot() -1562 self.assertEquals( -1563 '', -1564 a[1].text) -1565 self.assertEquals( -1566 xml, -1567 tostring(a)) -
1568 -1569 # ElementTree ignores comments -
1570 - def test_comment_no_proxy_yet(self): -
1571 ElementTree = self.etree.ElementTree -1572 -1573 f = BytesIO('<a><b></b><!-- hoi --><c></c></a>') -1574 doc = ElementTree(file=f) -1575 a = doc.getroot() -1576 self.assertEquals( -1577 ' hoi ', -1578 a[1].text) -
1579 -1580 # does not raise an exception in ElementTree -
1581 - def test_comment_immutable(self): -
1582 Element = self.etree.Element -1583 Comment = self.etree.Comment -1584 -1585 c = Comment() -1586 el = Element('myel') -1587 -1588 self.assertRaises(TypeError, c.append, el) -1589 self.assertRaises(TypeError, c.insert, 0, el) -1590 self.assertRaises(TypeError, c.set, "myattr", "test") -
1591 -1592 # test passing 'None' to dump -
1593 - def test_dump_none(self): -
1594 self.assertRaises(TypeError, self.etree.dump, None) -
1595 -
1596 - def test_prefix(self): -
1597 ElementTree = self.etree.ElementTree -1598 -1599 f = BytesIO('<a xmlns:foo="http://www.infrae.com/ns/1"><foo:b/></a>') -1600 doc = ElementTree(file=f) -1601 a = doc.getroot() -1602 self.assertEquals( -1603 None, -1604 a.prefix) -1605 self.assertEquals( -1606 'foo', -1607 a[0].prefix) -
1608 -
1609 - def test_prefix_default_ns(self): -
1610 ElementTree = self.etree.ElementTree -1611 -1612 f = BytesIO('<a xmlns="http://www.infrae.com/ns/1"><b/></a>') -1613 doc = ElementTree(file=f) -1614 a = doc.getroot() -1615 self.assertEquals( -1616 None, -1617 a.prefix) -1618 self.assertEquals( -1619 None, -1620 a[0].prefix) -
1621 -
1622 - def test_getparent(self): -
1623 Element = self.etree.Element -1624 SubElement = self.etree.SubElement -1625 -1626 a = Element('a') -1627 b = SubElement(a, 'b') -1628 c = SubElement(a, 'c') -1629 d = SubElement(b, 'd') -1630 self.assertEquals( -1631 None, -1632 a.getparent()) -1633 self.assertEquals( -1634 a, -1635 b.getparent()) -1636 self.assertEquals( -1637 b.getparent(), -1638 c.getparent()) -1639 self.assertEquals( -1640 b, -1641 d.getparent()) -
1642 -
1643 - def test_iterchildren(self): -
1644 XML = self.etree.XML -1645 -1646 root = XML(_bytes('<doc><one/><two>Two</two>Hm<three/></doc>')) -1647 result = [] -1648 for el in root.iterchildren(): -1649 result.append(el.tag) -1650 self.assertEquals(['one', 'two', 'three'], result) -
1651 -
1652 - def test_iterchildren_reversed(self): -
1653 XML = self.etree.XML -1654 -1655 root = XML(_bytes('<doc><one/><two>Two</two>Hm<three/></doc>')) -1656 result = [] -1657 for el in root.iterchildren(reversed=True): -1658 result.append(el.tag) -1659 self.assertEquals(['three', 'two', 'one'], result) -
1660 -
1661 - def test_iterchildren_tag(self): -
1662 XML = self.etree.XML -1663 -1664 root = XML(_bytes('<doc><one/><two>Two</two>Hm<two>Bla</two></doc>')) -1665 result = [] -1666 for el in root.iterchildren(tag='two'): -1667 result.append(el.text) -1668 self.assertEquals(['Two', 'Bla'], result) -
1669 -
1671 XML = self.etree.XML -1672 -1673 root = XML(_bytes('<doc><one/><two>Two</two>Hm<two>Bla</two></doc>')) -1674 result = [] -1675 for el in root.iterchildren(reversed=True, tag='two'): -1676 result.append(el.text) -1677 self.assertEquals(['Bla', 'Two'], result) -
1678 -
1680 XML = self.etree.XML -1681 -1682 root = XML(_bytes('<doc><one/><two>Two</two>Hm<two>Bla</two><three/></doc>')) -1683 result = [] -1684 for el in root.iterchildren(tag=['two', 'three']): -1685 result.append(el.text) -1686 self.assertEquals(['Two', 'Bla', None], result) -
1687 -
1689 XML = self.etree.XML -1690 -1691 root = XML(_bytes('<doc><one/><two>Two</two>Hm<two>Bla</two><three/></doc>')) -1692 result = [] -1693 for el in root.iterchildren(reversed=True, tag=['two', 'three']): -1694 result.append(el.text) -1695 self.assertEquals([None, 'Bla', 'Two'], result) -
1696 -
1697 - def test_iterancestors(self): -
1698 Element = self.etree.Element -1699 SubElement = self.etree.SubElement -1700 -1701 a = Element('a') -1702 b = SubElement(a, 'b') -1703 c = SubElement(a, 'c') -1704 d = SubElement(b, 'd') -1705 self.assertEquals( -1706 [], -1707 list(a.iterancestors())) -1708 self.assertEquals( -1709 [a], -1710 list(b.iterancestors())) -1711 self.assertEquals( -1712 [a], -1713 list(c.iterancestors())) -1714 self.assertEquals( -1715 [b, a], -1716 list(d.iterancestors())) -
1717 -
1718 - def test_iterancestors_tag(self): -
1719 Element = self.etree.Element -1720 SubElement = self.etree.SubElement -1721 -1722 a = Element('a') -1723 b = SubElement(a, 'b') -1724 c = SubElement(a, 'c') -1725 d = SubElement(b, 'd') -1726 self.assertEquals( -1727 [a], -1728 list(d.iterancestors(tag='a'))) -1729 self.assertEquals( -1730 [b, a], -1731 list(d.iterancestors(tag='*'))) -
1732 -
1734 Element = self.etree.Element -1735 SubElement = self.etree.SubElement -1736 -1737 a = Element('a') -1738 b = SubElement(a, 'b') -1739 c = SubElement(a, 'c') -1740 d = SubElement(b, 'd') -1741 self.assertEquals( -1742 [b, a], -1743 list(d.iterancestors(tag=('a', 'b')))) -1744 self.assertEquals( -1745 [], -1746 list(d.iterancestors(tag=('w', 'x', 'y', 'z')))) -1747 self.assertEquals( -1748 [], -1749 list(d.iterancestors(tag=('d', 'x')))) -1750 self.assertEquals( -1751 [b, a], -1752 list(d.iterancestors(tag=('b', '*')))) -1753 self.assertEquals( -1754 [b], -1755 list(d.iterancestors(tag=('b', 'c')))) -
1756 -
1757 - def test_iterdescendants(self): -
1758 Element = self.etree.Element -1759 SubElement = self.etree.SubElement -1760 -1761 a = Element('a') -1762 b = SubElement(a, 'b') -1763 c = SubElement(a, 'c') -1764 d = SubElement(b, 'd') -1765 e = SubElement(c, 'e') -1766 -1767 self.assertEquals( -1768 [b, d, c, e], -1769 list(a.iterdescendants())) -1770 self.assertEquals( -1771 [], -1772 list(d.iterdescendants())) -
1773 -
1774 - def test_iterdescendants_tag(self): -
1775 Element = self.etree.Element -1776 SubElement = self.etree.SubElement -1777 -1778 a = Element('a') -1779 b = SubElement(a, 'b') -1780 c = SubElement(a, 'c') -1781 d = SubElement(b, 'd') -1782 e = SubElement(c, 'e') -1783 -1784 self.assertEquals( -1785 [], -1786 list(a.iterdescendants('a'))) -1787 a2 = SubElement(e, 'a') -1788 self.assertEquals( -1789 [a2], -1790 list(a.iterdescendants('a'))) -1791 self.assertEquals( -1792 [a2], -1793 list(c.iterdescendants('a'))) -
1794 -
1796 Element = self.etree.Element -1797 SubElement = self.etree.SubElement -1798 -1799 a = Element('a') -1800 b = SubElement(a, 'b') -1801 c = SubElement(a, 'c') -1802 d = SubElement(b, 'd') -1803 e = SubElement(c, 'e') -1804 -1805 self.assertEquals( -1806 [b, e], -1807 list(a.iterdescendants(tag=('a', 'b', 'e')))) -1808 a2 = SubElement(e, 'a') -1809 self.assertEquals( -1810 [b, a2], -1811 list(a.iterdescendants(tag=('a', 'b')))) -1812 self.assertEquals( -1813 [], -1814 list(c.iterdescendants(tag=('x', 'y', 'z')))) -1815 self.assertEquals( -1816 [b, d, c, e, a2], -1817 list(a.iterdescendants(tag=('x', 'y', 'z', '*')))) -
1818 -
1819 - def test_getroottree(self): -
1820 Element = self.etree.Element -1821 SubElement = self.etree.SubElement -1822 -1823 a = Element('a') -1824 b = SubElement(a, 'b') -1825 c = SubElement(a, 'c') -1826 d = SubElement(b, 'd') -1827 self.assertEquals( -1828 a, -1829 a.getroottree().getroot()) -1830 self.assertEquals( -1831 a, -1832 b.getroottree().getroot()) -1833 self.assertEquals( -1834 a, -1835 d.getroottree().getroot()) -
1836 -
1837 - def test_getnext(self): -
1838 Element = self.etree.Element -1839 SubElement = self.etree.SubElement -1840 -1841 a = Element('a') -1842 b = SubElement(a, 'b') -1843 c = SubElement(a, 'c') -1844 self.assertEquals( -1845 None, -1846 a.getnext()) -1847 self.assertEquals( -1848 c, -1849 b.getnext()) -1850 self.assertEquals( -1851 None, -1852 c.getnext()) -
1853 -
1854 - def test_getprevious(self): -
1855 Element = self.etree.Element -1856 SubElement = self.etree.SubElement -1857 -1858 a = Element('a') -1859 b = SubElement(a, 'b') -1860 c = SubElement(a, 'c') -1861 d = SubElement(b, 'd') -1862 self.assertEquals( -1863 None, -1864 a.getprevious()) -1865 self.assertEquals( -1866 b, -1867 c.getprevious()) -1868 self.assertEquals( -1869 None, -1870 b.getprevious()) -
1871 -
1872 - def test_itersiblings(self): -
1873 Element = self.etree.Element -1874 SubElement = self.etree.SubElement -1875 -1876 a = Element('a') -1877 b = SubElement(a, 'b') -1878 c = SubElement(a, 'c') -1879 d = SubElement(b, 'd') -1880 self.assertEquals( -1881 [], -1882 list(a.itersiblings())) -1883 self.assertEquals( -1884 [c], -1885 list(b.itersiblings())) -1886 self.assertEquals( -1887 [], -1888 list(c.itersiblings())) -1889 self.assertEquals( -1890 [b], -1891 list(c.itersiblings(preceding=True))) -1892 self.assertEquals( -1893 [], -1894 list(b.itersiblings(preceding=True))) -
1895 -
1896 - def test_itersiblings_tag(self): -
1897 Element = self.etree.Element -1898 SubElement = self.etree.SubElement -1899 -1900 a = Element('a') -1901 b = SubElement(a, 'b') -1902 c = SubElement(a, 'c') -1903 d = SubElement(b, 'd') -1904 self.assertEquals( -1905 [], -1906 list(a.itersiblings(tag='XXX'))) -1907 self.assertEquals( -1908 [c], -1909 list(b.itersiblings(tag='c'))) -1910 self.assertEquals( -1911 [c], -1912 list(b.itersiblings(tag='*'))) -1913 self.assertEquals( -1914 [b], -1915 list(c.itersiblings(preceding=True, tag='b'))) -1916 self.assertEquals( -1917 [], -1918 list(c.itersiblings(preceding=True, tag='c'))) -
1919 -
1921 Element = self.etree.Element -1922 SubElement = self.etree.SubElement -1923 -1924 a = Element('a') -1925 b = SubElement(a, 'b') -1926 c = SubElement(a, 'c') -1927 d = SubElement(b, 'd') -1928 e = SubElement(a, 'e') -1929 self.assertEquals( -1930 [], -1931 list(a.itersiblings(tag=('XXX', 'YYY')))) -1932 self.assertEquals( -1933 [c, e], -1934 list(b.itersiblings(tag=('c', 'd', 'e')))) -1935 self.assertEquals( -1936 [b], -1937 list(c.itersiblings(preceding=True, tag=('b', 'b', 'c', 'd')))) -1938 self.assertEquals( -1939 [c, b], -1940 list(e.itersiblings(preceding=True, tag=('c', '*')))) -
1941 -
1942 - def test_parseid(self): -
1943 parseid = self.etree.parseid -1944 XML = self.etree.XML -1945 xml_text = _bytes(''' -1946 <!DOCTYPE document [ -1947 <!ELEMENT document (h1,p)*> -1948 <!ELEMENT h1 (#PCDATA)> -1949 <!ATTLIST h1 myid ID #REQUIRED> -1950 <!ELEMENT p (#PCDATA)> -1951 <!ATTLIST p someid ID #REQUIRED> -1952 ]> -1953 <document> -1954 <h1 myid="chapter1">...</h1> -1955 <p id="note1" class="note">...</p> -1956 <p>Regular paragraph.</p> -1957 <p xml:id="xmlid">XML:ID paragraph.</p> -1958 <p someid="warn1" class="warning">...</p> -1959 </document> -1960 ''') -1961 -1962 tree, dic = parseid(BytesIO(xml_text)) -1963 root = tree.getroot() -1964 root2 = XML(xml_text) -1965 self.assertEquals(self._writeElement(root), -1966 self._writeElement(root2)) -1967 expected = { -1968 "chapter1" : root[0], -1969 "xmlid" : root[3], -1970 "warn1" : root[4] -1971 } -1972 self.assert_("chapter1" in dic) -1973 self.assert_("warn1" in dic) -1974 self.assert_("xmlid" in dic) -1975 self._checkIDDict(dic, expected) -
1976 -
1977 - def test_XMLDTDID(self): -
1978 XMLDTDID = self.etree.XMLDTDID -1979 XML = self.etree.XML -1980 xml_text = _bytes(''' -1981 <!DOCTYPE document [ -1982 <!ELEMENT document (h1,p)*> -1983 <!ELEMENT h1 (#PCDATA)> -1984 <!ATTLIST h1 myid ID #REQUIRED> -1985 <!ELEMENT p (#PCDATA)> -1986 <!ATTLIST p someid ID #REQUIRED> -1987 ]> -1988 <document> -1989 <h1 myid="chapter1">...</h1> -1990 <p id="note1" class="note">...</p> -1991 <p>Regular paragraph.</p> -1992 <p xml:id="xmlid">XML:ID paragraph.</p> -1993 <p someid="warn1" class="warning">...</p> -1994 </document> -1995 ''') -1996 -1997 root, dic = XMLDTDID(xml_text) -1998 root2 = XML(xml_text) -1999 self.assertEquals(self._writeElement(root), -2000 self._writeElement(root2)) -2001 expected = { -2002 "chapter1" : root[0], -2003 "xmlid" : root[3], -2004 "warn1" : root[4] -2005 } -2006 self.assert_("chapter1" in dic) -2007 self.assert_("warn1" in dic) -2008 self.assert_("xmlid" in dic) -2009 self._checkIDDict(dic, expected) -
2010 -
2011 - def test_XMLDTDID_empty(self): -
2012 XMLDTDID = self.etree.XMLDTDID -2013 XML = self.etree.XML -2014 xml_text = _bytes(''' -2015 <document> -2016 <h1 myid="chapter1">...</h1> -2017 <p id="note1" class="note">...</p> -2018 <p>Regular paragraph.</p> -2019 <p someid="warn1" class="warning">...</p> -2020 </document> -2021 ''') -2022 -2023 root, dic = XMLDTDID(xml_text) -2024 root2 = XML(xml_text) -2025 self.assertEquals(self._writeElement(root), -2026 self._writeElement(root2)) -2027 expected = {} -2028 self._checkIDDict(dic, expected) -
2029 -
2030 - def _checkIDDict(self, dic, expected): -
2031 self.assertEquals(len(dic), -2032 len(expected)) -2033 self.assertEquals(sorted(dic.items()), -2034 sorted(expected.items())) -2035 if sys.version_info < (3,): -2036 self.assertEquals(sorted(dic.iteritems()), -2037 sorted(expected.iteritems())) -2038 self.assertEquals(sorted(dic.keys()), -2039 sorted(expected.keys())) -2040 if sys.version_info < (3,): -2041 self.assertEquals(sorted(dic.iterkeys()), -2042 sorted(expected.iterkeys())) -2043 if sys.version_info < (3,): -2044 self.assertEquals(sorted(dic.values()), -2045 sorted(expected.values())) -2046 self.assertEquals(sorted(dic.itervalues()), -2047 sorted(expected.itervalues())) -
2048 -
2049 - def test_namespaces(self): -
2050 etree = self.etree -2051 -2052 r = {'foo': 'http://ns.infrae.com/foo'} -2053 e = etree.Element('{http://ns.infrae.com/foo}bar', nsmap=r) -2054 self.assertEquals( -2055 'foo', -2056 e.prefix) -2057 self.assertEquals( -2058 _bytes('<foo:bar xmlns:foo="http://ns.infrae.com/foo"></foo:bar>'), -2059 self._writeElement(e)) -
2060 -
2061 - def test_namespaces_default(self): -
2062 etree = self.etree -2063 -2064 r = {None: 'http://ns.infrae.com/foo'} -2065 e = etree.Element('{http://ns.infrae.com/foo}bar', nsmap=r) -2066 self.assertEquals( -2067 None, -2068 e.prefix) -2069 self.assertEquals( -2070 '{http://ns.infrae.com/foo}bar', -2071 e.tag) -2072 self.assertEquals( -2073 _bytes('<bar xmlns="http://ns.infrae.com/foo"></bar>'), -2074 self._writeElement(e)) -
2075 -
2077 etree = self.etree -2078 -2079 r = {None: 'http://ns.infrae.com/foo', -2080 'hoi': 'http://ns.infrae.com/hoi'} -2081 e = etree.Element('{http://ns.infrae.com/foo}bar', nsmap=r) -2082 e.set('{http://ns.infrae.com/hoi}test', 'value') -2083 self.assertEquals( -2084 _bytes('<bar xmlns="http://ns.infrae.com/foo" xmlns:hoi="http://ns.infrae.com/hoi" hoi:test="value"></bar>'), -2085 self._writeElement(e)) -
2086 -
2087 - def test_namespaces_elementtree(self): -
2088 etree = self.etree -2089 r = {None: 'http://ns.infrae.com/foo', -2090 'hoi': 'http://ns.infrae.com/hoi'} -2091 e = etree.Element('{http://ns.infrae.com/foo}z', nsmap=r) -2092 tree = etree.ElementTree(element=e) -2093 etree.SubElement(e, '{http://ns.infrae.com/hoi}x') -2094 self.assertEquals( -2095 _bytes('<z xmlns="http://ns.infrae.com/foo" xmlns:hoi="http://ns.infrae.com/hoi"><hoi:x></hoi:x></z>'), -2096 self._writeElement(e)) -
2097 -
2099 etree = self.etree -2100 -2101 r = {None: 'http://ns.infrae.com/foo'} -2102 e1 = etree.Element('{http://ns.infrae.com/foo}bar', nsmap=r) -2103 e2 = etree.Element('{http://ns.infrae.com/foo}bar', nsmap=r) -2104 -2105 e1.append(e2) -2106 -2107 self.assertEquals( -2108 None, -2109 e1.prefix) -2110 self.assertEquals( -2111 None, -2112 e1[0].prefix) -2113 self.assertEquals( -2114 '{http://ns.infrae.com/foo}bar', -2115 e1.tag) -2116 self.assertEquals( -2117 '{http://ns.infrae.com/foo}bar', -2118 e1[0].tag) -
2119 -
2121 etree = self.etree -2122 -2123 r = {None: 'http://ns.infrae.com/BAR'} -2124 e1 = etree.Element('{http://ns.infrae.com/BAR}bar', nsmap=r) -2125 e2 = etree.Element('{http://ns.infrae.com/foo}bar', nsmap=r) -2126 -2127 e1.append(e2) -2128 -2129 self.assertEquals( -2130 None, -2131 e1.prefix) -2132 self.assertNotEquals( -2133 None, -2134 e2.prefix) -2135 self.assertEquals( -2136 '{http://ns.infrae.com/BAR}bar', -2137 e1.tag) -2138 self.assertEquals( -2139 '{http://ns.infrae.com/foo}bar', -2140 e2.tag) -
2141 -
2143 ns_href = "http://a.b.c" -2144 one = self.etree.fromstring( -2145 _bytes('<foo><bar xmlns:ns="%s"><ns:baz/></bar></foo>' % ns_href)) -2146 baz = one[0][0] -2147 -2148 two = self.etree.fromstring( -2149 _bytes('<root xmlns:ns="%s"/>' % ns_href)) -2150 two.append(baz) -2151 del one # make sure the source document is deallocated -2152 -2153 self.assertEquals('{%s}baz' % ns_href, baz.tag) -2154 self.assertEquals( -2155 _bytes('<root xmlns:ns="%s"><ns:baz/></root>' % ns_href), -2156 self.etree.tostring(two)) -
2157 -
2158 - def test_namespace_cleanup(self): -
2159 xml = _bytes('<foo xmlns="F" xmlns:x="x"><bar xmlns:ns="NS" xmlns:b="b" xmlns="B"><ns:baz/></bar></foo>') -2160 root = self.etree.fromstring(xml) -2161 self.assertEquals(xml, -2162 self.etree.tostring(root)) -2163 self.etree.cleanup_namespaces(root) -2164 self.assertEquals( -2165 _bytes('<foo xmlns="F"><bar xmlns:ns="NS" xmlns="B"><ns:baz/></bar></foo>'), -2166 self.etree.tostring(root)) -
2167 -
2168 - def test_element_nsmap(self): -
2169 etree = self.etree -2170 -2171 r = {None: 'http://ns.infrae.com/foo', -2172 'hoi': 'http://ns.infrae.com/hoi'} -2173 e = etree.Element('{http://ns.infrae.com/foo}bar', nsmap=r) -2174 self.assertEquals( -2175 r, -2176 e.nsmap) -
2177 -
2178 - def test_subelement_nsmap(self): -
2179 etree = self.etree -2180 -2181 re = {None: 'http://ns.infrae.com/foo', -2182 'hoi': 'http://ns.infrae.com/hoi'} -2183 e = etree.Element('{http://ns.infrae.com/foo}bar', nsmap=re) -2184 -2185 rs = {None: 'http://ns.infrae.com/honk', -2186 'top': 'http://ns.infrae.com/top'} -2187 s = etree.SubElement(e, '{http://ns.infrae.com/honk}bar', nsmap=rs) -2188 -2189 r = re.copy() -2190 r.update(rs) -2191 self.assertEquals(re, e.nsmap) -2192 self.assertEquals(r, s.nsmap) -
2193 -
2194 - def test_html_prefix_nsmap(self): -
2195 etree = self.etree -2196 el = etree.HTML('<hha:page-description>aa</hha:page-description>').find('.//page-description') -2197 self.assertEquals({'hha': None}, el.nsmap) -
2198 -
2200 Element = self.etree.Element -2201 SubElement = self.etree.SubElement -2202 -2203 a = Element('a') -2204 b = SubElement(a, 'b') -2205 c = SubElement(a, 'c') -2206 d = SubElement(b, 'd') -2207 e = SubElement(c, 'e') -2208 f = SubElement(c, 'f') -2209 -2210 self.assertEquals( -2211 [a, b], -2212 list(a.getiterator('a', 'b'))) -2213 self.assertEquals( -2214 [], -2215 list(a.getiterator('x', 'y'))) -2216 self.assertEquals( -2217 [a, f], -2218 list(a.getiterator('f', 'a'))) -2219 self.assertEquals( -2220 [c, e, f], -2221 list(c.getiterator('c', '*', 'a'))) -2222 self.assertEquals( -2223 [], -2224 list(a.getiterator( (), () ))) -
2225 -
2227 Element = self.etree.Element -2228 SubElement = self.etree.SubElement -2229 -2230 a = Element('a') -2231 b = SubElement(a, 'b') -2232 c = SubElement(a, 'c') -2233 d = SubElement(b, 'd') -2234 e = SubElement(c, 'e') -2235 f = SubElement(c, 'f') -2236 -2237 self.assertEquals( -2238 [a, b], -2239 list(a.getiterator( ('a', 'b') ))) -2240 self.assertEquals( -2241 [], -2242 list(a.getiterator( ('x', 'y') ))) -2243 self.assertEquals( -2244 [a, f], -2245 list(a.getiterator( ('f', 'a') ))) -2246 self.assertEquals( -2247 [c, e, f], -2248 list(c.getiterator( ('c', '*', 'a') ))) -2249 self.assertEquals( -2250 [], -2251 list(a.getiterator( () ))) -
2252 -
2254 Element = self.etree.Element -2255 SubElement = self.etree.SubElement -2256 -2257 a = Element('{a}a') -2258 b = SubElement(a, '{a}b') -2259 c = SubElement(a, '{a}c') -2260 d = SubElement(b, '{b}d') -2261 e = SubElement(c, '{a}e') -2262 f = SubElement(c, '{b}f') -2263 g = SubElement(c, 'g') -2264 -2265 self.assertEquals( -2266 [a], -2267 list(a.getiterator('{a}a'))) -2268 self.assertEquals( -2269 [], -2270 list(a.getiterator('{b}a'))) -2271 self.assertEquals( -2272 [], -2273 list(a.getiterator('a'))) -2274 self.assertEquals( -2275 [a,b,d,c,e,f,g], -2276 list(a.getiterator('*'))) -2277 self.assertEquals( -2278 [f], -2279 list(c.getiterator('{b}*'))) -2280 self.assertEquals( -2281 [d, f], -2282 list(a.getiterator('{b}*'))) -2283 self.assertEquals( -2284 [g], -2285 list(a.getiterator('g'))) -2286 self.assertEquals( -2287 [g], -2288 list(a.getiterator('{}g'))) -2289 self.assertEquals( -2290 [g], -2291 list(a.getiterator('{}*'))) -
2292 -
2294 Element = self.etree.Element -2295 SubElement = self.etree.SubElement -2296 -2297 a = Element('{a}a') -2298 b = SubElement(a, '{nsA}b') -2299 c = SubElement(b, '{nsB}b') -2300 d = SubElement(a, 'b') -2301 e = SubElement(a, '{nsA}e') -2302 f = SubElement(e, '{nsB}e') -2303 g = SubElement(e, 'e') -2304 -2305 self.assertEquals( -2306 [b, c, d], -2307 list(a.getiterator('{*}b'))) -2308 self.assertEquals( -2309 [e, f, g], -2310 list(a.getiterator('{*}e'))) -2311 self.assertEquals( -2312 [a, b, c, d, e, f, g], -2313 list(a.getiterator('{*}*'))) -
2314 -
2316 Element = self.etree.Element -2317 Entity = self.etree.Entity -2318 SubElement = self.etree.SubElement -2319 -2320 a = Element('a') -2321 b = SubElement(a, 'b') -2322 entity_b = Entity("TEST-b") -2323 b.append(entity_b) -2324 -2325 self.assertEquals( -2326 [entity_b], -2327 list(a.getiterator(Entity))) -2328 -2329 entity_a = Entity("TEST-a") -2330 a.append(entity_a) -2331 -2332 self.assertEquals( -2333 [entity_b, entity_a], -2334 list(a.getiterator(Entity))) -2335 -2336 self.assertEquals( -2337 [entity_b], -2338 list(b.getiterator(Entity))) -
2339 -
2341 Element = self.etree.Element -2342 Comment = self.etree.Comment -2343 PI = self.etree.PI -2344 SubElement = self.etree.SubElement -2345 -2346 a = Element('a') -2347 b = SubElement(a, 'b') -2348 a.append(Comment("test")) -2349 a.append(PI("pi", "content")) -2350 c = SubElement(a, 'c') -2351 -2352 self.assertEquals( -2353 [a, b, c], -2354 list(a.getiterator(Element))) -
2355 -
2357 # ElementTree iterates over everything here -2358 Element = self.etree.Element -2359 Comment = self.etree.Comment -2360 PI = self.etree.PI -2361 SubElement = self.etree.SubElement -2362 -2363 a = Element('a') -2364 b = SubElement(a, 'b') -2365 a.append(Comment("test")) -2366 a.append(PI("pi", "content")) -2367 c = SubElement(a, 'c') -2368 -2369 self.assertEquals( -2370 [a, b, c], -2371 list(a.getiterator('*'))) -
2372 -
2373 - def test_elementtree_find_qname(self): -
2374 XML = self.etree.XML -2375 ElementTree = self.etree.ElementTree -2376 QName = self.etree.QName -2377 tree = ElementTree(XML(_bytes('<a><b><c/></b><b/><c><b/></c></a>'))) -2378 self.assertEquals(tree.find(QName("c")), tree.getroot()[2]) -
2379 -
2381 XML = self.etree.XML -2382 ElementTree = self.etree.ElementTree -2383 QName = self.etree.QName -2384 tree = ElementTree(XML(_bytes('<a><b><c/></b><b/><c><b/></c></a>'))) -2385 self.assertEquals(len(list(tree.findall(QName("c")))), 1) -
2386 -
2388 XML = self.etree.XML -2389 ElementTree = self.etree.ElementTree -2390 QName = self.etree.QName -2391 tree = ElementTree(XML( -2392 _bytes('<a xmlns:x="X" xmlns:y="Y"><x:b><c/></x:b><b/><c><x:b/><b/></c><b/></a>'))) -2393 self.assertEquals(len(list(tree.findall(QName("b")))), 2) -2394 self.assertEquals(len(list(tree.findall(QName("X", "b")))), 1) -
2395 -
2396 - def test_findall_ns(self): -
2397 XML = self.etree.XML -2398 root = XML(_bytes('<a xmlns:x="X" xmlns:y="Y"><x:b><c/></x:b><b/><c><x:b/><b/></c><b/></a>')) -2399 self.assertEquals(len(root.findall(".//{X}b")), 2) -2400 self.assertEquals(len(root.findall(".//{X}*")), 2) -2401 self.assertEquals(len(root.findall(".//b")), 3) -
2402 -
2403 - def test_findall_syntax_error(self): -
2404 XML = self.etree.XML -2405 root = XML(_bytes('<a><b><c/></b><b/><c><b/><b/></c><b/></a>')) -2406 self.assertRaises(SyntaxError, root.findall, '') -2407 self.assertRaises(SyntaxError, root.findall, '//') # absolute path on Element -2408 self.assertRaises(SyntaxError, root.findall, './//') -
2409 -
2410 - def test_index(self): -
2411 etree = self.etree -2412 e = etree.Element('foo') -2413 for i in range(10): -2414 etree.SubElement(e, 'a%s' % i) -2415 for i in range(10): -2416 self.assertEquals( -2417 i, -2418 e.index(e[i])) -2419 self.assertEquals( -2420 3, e.index(e[3], 3)) -2421 self.assertRaises( -2422 ValueError, e.index, e[3], 4) -2423 self.assertRaises( -2424 ValueError, e.index, e[3], 0, 2) -2425 self.assertRaises( -2426 ValueError, e.index, e[8], 0, -3) -2427 self.assertRaises( -2428 ValueError, e.index, e[8], -5, -3) -2429 self.assertEquals( -2430 8, e.index(e[8], 0, -1)) -2431 self.assertEquals( -2432 8, e.index(e[8], -12, -1)) -2433 self.assertEquals( -2434 0, e.index(e[0], -12, -1)) -
2435 -
2436 - def test_replace(self): -
2437 etree = self.etree -2438 e = etree.Element('foo') -2439 for i in range(10): -2440 el = etree.SubElement(e, 'a%s' % i) -2441 el.text = "text%d" % i -2442 el.tail = "tail%d" % i -2443 -2444 child0 = e[0] -2445 child1 = e[1] -2446 child2 = e[2] -2447 -2448 e.replace(e[0], e[1]) -2449 self.assertEquals( -2450 9, len(e)) -2451 self.assertEquals( -2452 child1, e[0]) -2453 self.assertEquals( -2454 child1.text, "text1") -2455 self.assertEquals( -2456 child1.tail, "tail1") -2457 self.assertEquals( -2458 child0.tail, "tail0") -2459 self.assertEquals( -2460 child2, e[1]) -2461 -2462 e.replace(e[-1], e[0]) -2463 self.assertEquals( -2464 child1, e[-1]) -2465 self.assertEquals( -2466 child1.text, "text1") -2467 self.assertEquals( -2468 child1.tail, "tail1") -2469 self.assertEquals( -2470 child2, e[0]) -
2471 -
2472 - def test_replace_new(self): -
2473 etree = self.etree -2474 e = etree.Element('foo') -2475 for i in range(10): -2476 etree.SubElement(e, 'a%s' % i) -2477 -2478 new_element = etree.Element("test") -2479 new_element.text = "TESTTEXT" -2480 new_element.tail = "TESTTAIL" -2481 child1 = e[1] -2482 e.replace(e[0], new_element) -2483 self.assertEquals( -2484 new_element, e[0]) -2485 self.assertEquals( -2486 "TESTTEXT", -2487 e[0].text) -2488 self.assertEquals( -2489 "TESTTAIL", -2490 e[0].tail) -2491 self.assertEquals( -2492 child1, e[1]) -
2493 -
2495 Element = self.etree.Element -2496 SubElement = self.etree.SubElement -2497 -2498 a = Element('a') -2499 -2500 e = Element('e') -2501 f = Element('f') -2502 g = Element('g') -2503 -2504 s = [e, f, g] -2505 a[::-1] = s -2506 self.assertEquals( -2507 [g, f, e], -2508 list(a)) -
2509 -
2510 - def test_setslice_step(self): -
2511 Element = self.etree.Element -2512 SubElement = self.etree.SubElement -2513 -2514 a = Element('a') -2515 b = SubElement(a, 'b') -2516 c = SubElement(a, 'c') -2517 d = SubElement(a, 'd') -2518 e = SubElement(a, 'e') -2519 -2520 x = Element('x') -2521 y = Element('y') -2522 -2523 a[1::2] = [x, y] -2524 self.assertEquals( -2525 [b, x, d, y], -2526 list(a)) -
2527 -
2528 - def test_setslice_step_negative(self): -
2529 Element = self.etree.Element -2530 SubElement = self.etree.SubElement -2531 -2532 a = Element('a') -2533 b = SubElement(a, 'b') -2534 c = SubElement(a, 'c') -2535 d = SubElement(a, 'd') -2536 e = SubElement(a, 'e') -2537 -2538 x = Element('x') -2539 y = Element('y') -2540 -2541 a[1::-1] = [x, y] -2542 self.assertEquals( -2543 [y, x, d, e], -2544 list(a)) -
2545 -
2547 Element = self.etree.Element -2548 SubElement = self.etree.SubElement -2549 -2550 a = Element('a') -2551 b = SubElement(a, 'b') -2552 c = SubElement(a, 'c') -2553 d = SubElement(a, 'd') -2554 e = SubElement(a, 'e') -2555 -2556 x = Element('x') -2557 y = Element('y') -2558 -2559 a[::-2] = [x, y] -2560 self.assertEquals( -2561 [b, y, d, x], -2562 list(a)) -
2563 -
2564 - def test_setslice_step_overrun(self): -
2565 Element = self.etree.Element -2566 SubElement = self.etree.SubElement -2567 try: -2568 slice -2569 except NameError: -2570 print("slice() not found") -2571 return -2572 -2573 a = Element('a') -2574 b = SubElement(a, 'b') -2575 c = SubElement(a, 'c') -2576 d = SubElement(a, 'd') -2577 e = SubElement(a, 'e') -2578 -2579 x = Element('x') -2580 y = Element('y') -2581 z = Element('z') -2582 -2583 self.assertRaises( -2584 ValueError, -2585 operator.setitem, a, slice(1,None,2), [x, y, z]) -2586 -2587 self.assertEquals( -2588 [b, c, d, e], -2589 list(a)) -
2590 -
2591 - def test_sourceline_XML(self): -
2592 XML = self.etree.XML -2593 root = XML(_bytes('''<?xml version="1.0"?> -2594 <root><test> -2595 -2596 <bla/></test> -2597 </root> -2598 ''')) -2599 -2600 self.assertEquals( -2601 [2, 2, 4], -2602 [ el.sourceline for el in root.getiterator() ]) -
2603 -
2604 - def test_sourceline_parse(self): -
2605 parse = self.etree.parse -2606 tree = parse(fileInTestDir('include/test_xinclude.xml')) -2607 -2608 self.assertEquals( -2609 [1, 2, 3], -2610 [ el.sourceline for el in tree.getiterator() ]) -
2611 -
2613 iterparse = self.etree.iterparse -2614 lines = [ el.sourceline for (event, el) in -2615 iterparse(fileInTestDir('include/test_xinclude.xml')) ] -2616 -2617 self.assertEquals( -2618 [2, 3, 1], -2619 lines) -
2620 -
2622 iterparse = self.etree.iterparse -2623 lines = [ el.sourceline for (event, el) in -2624 iterparse(fileInTestDir('include/test_xinclude.xml'), -2625 events=("start",)) ] -2626 -2627 self.assertEquals( -2628 [1, 2, 3], -2629 lines) -
2630 -
2631 - def test_sourceline_element(self): -
2632 Element = self.etree.Element -2633 SubElement = self.etree.SubElement -2634 el = Element("test") -2635 self.assertEquals(None, el.sourceline) -2636 -2637 child = SubElement(el, "test") -2638 self.assertEquals(None, el.sourceline) -2639 self.assertEquals(None, child.sourceline) -
2640 -
2641 - def test_XML_base_url_docinfo(self): -
2642 etree = self.etree -2643 root = etree.XML(_bytes("<root/>"), base_url="http://no/such/url") -2644 docinfo = root.getroottree().docinfo -2645 self.assertEquals(docinfo.URL, "http://no/such/url") -
2646 -
2648 etree = self.etree -2649 root = etree.XML(_bytes("<root/>"), base_url="http://no/such/url") -2650 docinfo = root.getroottree().docinfo -2651 self.assertEquals(docinfo.URL, "http://no/such/url") -2652 docinfo.URL = "https://secret/url" -2653 self.assertEquals(docinfo.URL, "https://secret/url") -
2654 -
2656 etree = self.etree -2657 tree = etree.parse(BytesIO("<root/>"), base_url="http://no/such/url") -2658 docinfo = tree.docinfo -2659 self.assertEquals(docinfo.URL, "http://no/such/url") -
2660 -
2661 - def test_parse_base_url_docinfo(self): -
2662 etree = self.etree -2663 tree = etree.parse(fileInTestDir('include/test_xinclude.xml'), -2664 base_url="http://no/such/url") -2665 docinfo = tree.docinfo -2666 self.assertEquals(docinfo.URL, "http://no/such/url") -
2667 -
2668 - def test_HTML_base_url_docinfo(self): -
2669 etree = self.etree -2670 root = etree.HTML(_bytes("<html/>"), base_url="http://no/such/url") -2671 docinfo = root.getroottree().docinfo -2672 self.assertEquals(docinfo.URL, "http://no/such/url") -
2673 -
2674 - def test_docinfo_public(self): -
2675 etree = self.etree -2676 xml_header = '<?xml version="1.0" encoding="ascii"?>' -2677 pub_id = "-//W3C//DTD XHTML 1.0 Transitional//EN" -2678 sys_id = "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" -2679 doctype_string = '<!DOCTYPE html PUBLIC "%s" "%s">' % (pub_id, sys_id) -2680 -2681 xml = _bytes(xml_header + doctype_string + '<html><body></body></html>') -2682 -2683 tree = etree.parse(BytesIO(xml)) -2684 docinfo = tree.docinfo -2685 self.assertEquals(docinfo.encoding, "ascii") -2686 self.assertEquals(docinfo.xml_version, "1.0") -2687 self.assertEquals(docinfo.public_id, pub_id) -2688 self.assertEquals(docinfo.system_url, sys_id) -2689 self.assertEquals(docinfo.root_name, 'html') -2690 self.assertEquals(docinfo.doctype, doctype_string) -
2691 -
2692 - def test_docinfo_system(self): -
2693 etree = self.etree -2694 xml_header = '<?xml version="1.0" encoding="UTF-8"?>' -2695 sys_id = "some.dtd" -2696 doctype_string = '<!DOCTYPE html SYSTEM "%s">' % sys_id -2697 xml = _bytes(xml_header + doctype_string + '<html><body></body></html>') -2698 -2699 tree = etree.parse(BytesIO(xml)) -2700 docinfo = tree.docinfo -2701 self.assertEquals(docinfo.encoding, "UTF-8") -2702 self.assertEquals(docinfo.xml_version, "1.0") -2703 self.assertEquals(docinfo.public_id, None) -2704 self.assertEquals(docinfo.system_url, sys_id) -2705 self.assertEquals(docinfo.root_name, 'html') -2706 self.assertEquals(docinfo.doctype, doctype_string) -
2707 -
2708 - def test_docinfo_empty(self): -
2709 etree = self.etree -2710 xml = _bytes('<html><body></body></html>') -2711 tree = etree.parse(BytesIO(xml)) -2712 docinfo = tree.docinfo -2713 self.assertEquals(docinfo.encoding, "UTF-8") -2714 self.assertEquals(docinfo.xml_version, "1.0") -2715 self.assertEquals(docinfo.public_id, None) -2716 self.assertEquals(docinfo.system_url, None) -2717 self.assertEquals(docinfo.root_name, 'html') -2718 self.assertEquals(docinfo.doctype, '') -
2719 -
2720 - def test_docinfo_name_only(self): -
2721 etree = self.etree -2722 xml = _bytes('<!DOCTYPE root><root></root>') -2723 tree = etree.parse(BytesIO(xml)) -2724 docinfo = tree.docinfo -2725 self.assertEquals(docinfo.encoding, "UTF-8") -2726 self.assertEquals(docinfo.xml_version, "1.0") -2727 self.assertEquals(docinfo.public_id, None) -2728 self.assertEquals(docinfo.system_url, None) -2729 self.assertEquals(docinfo.root_name, 'root') -2730 self.assertEquals(docinfo.doctype, '<!DOCTYPE root>') -
2731 -
2733 etree = self.etree -2734 xml = _bytes('<!DOCTYPE root>\n<root/>') -2735 tree = etree.parse(BytesIO(xml)) -2736 self.assertEquals(xml, etree.tostring(tree)) -
2737 -
2739 etree = self.etree -2740 pub_id = "-//W3C//DTD XHTML 1.0 Transitional//EN" -2741 sys_id = "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" -2742 doctype_string = _bytes('<!DOCTYPE html PUBLIC "%s" "%s">' % (pub_id, sys_id)) -2743 -2744 xml = _bytes('<!DOCTYPE root>\n<root/>') -2745 tree = etree.parse(BytesIO(xml)) -2746 self.assertEquals(xml.replace(_bytes('<!DOCTYPE root>'), doctype_string), -2747 etree.tostring(tree, doctype=doctype_string)) -
2748 -
2749 - def test_xml_base(self): -
2750 etree = self.etree -2751 root = etree.XML(_bytes("<root/>"), base_url="http://no/such/url") -2752 self.assertEquals(root.base, "http://no/such/url") -2753 self.assertEquals( -2754 root.get('{http://www.w3.org/XML/1998/namespace}base'), None) -2755 root.base = "https://secret/url" -2756 self.assertEquals(root.base, "https://secret/url") -2757 self.assertEquals( -2758 root.get('{http://www.w3.org/XML/1998/namespace}base'), -2759 "https://secret/url") -
2760 -
2761 - def test_xml_base_attribute(self): -
2762 etree = self.etree -2763 root = etree.XML(_bytes("<root/>"), base_url="http://no/such/url") -2764 self.assertEquals(root.base, "http://no/such/url") -2765 self.assertEquals( -2766 root.get('{http://www.w3.org/XML/1998/namespace}base'), None) -2767 root.set('{http://www.w3.org/XML/1998/namespace}base', -2768 "https://secret/url") -2769 self.assertEquals(root.base, "https://secret/url") -2770 self.assertEquals( -2771 root.get('{http://www.w3.org/XML/1998/namespace}base'), -2772 "https://secret/url") -
2773 -
2774 - def test_html_base(self): -
2775 etree = self.etree -2776 root = etree.HTML(_bytes("<html><body></body></html>"), -2777 base_url="http://no/such/url") -2778 self.assertEquals(root.base, "http://no/such/url") -
2779 -
2780 - def test_html_base_tag(self): -
2781 etree = self.etree -2782 root = etree.HTML(_bytes('<html><head><base href="http://no/such/url"></head></html>')) -2783 self.assertEquals(root.base, "http://no/such/url") -
2784 -
2786 # parse from a file object that returns unicode strings -2787 f = LargeFileLikeUnicode() -2788 tree = self.etree.parse(f) -2789 root = tree.getroot() -2790 self.assert_(root.tag.endswith('root')) -
2791 -
2792 - def test_dtd_io(self): -
2793 # check that DTDs that go in also go back out -2794 xml = _bytes('''\ -2795 <!DOCTYPE test SYSTEM "test.dtd" [ -2796 <!ENTITY entity "tasty"> -2797 <!ELEMENT test (a)> -2798 <!ELEMENT a (#PCDATA)> -2799 ]> -2800 <test><a>test-test</a></test>\ -2801 ''') -2802 tree = self.etree.parse(BytesIO(xml)) -2803 self.assertEqual(self.etree.tostring(tree).replace(_bytes(" "), _bytes("")), -2804 xml.replace(_bytes(" "), _bytes(""))) -
2805 -
2806 - def test_byte_zero(self): -
2807 Element = self.etree.Element -2808 -2809 a = Element('a') -2810 self.assertRaises(ValueError, setattr, a, "text", 'ha\0ho') -2811 self.assertRaises(ValueError, setattr, a, "tail", 'ha\0ho') -2812 -2813 self.assertRaises(ValueError, Element, 'ha\0ho') -
2814 -
2815 - def test_unicode_byte_zero(self): -
2816 Element = self.etree.Element -2817 -2818 a = Element('a') -2819 self.assertRaises(ValueError, setattr, a, "text", -2820 _str('ha\0ho')) -2821 self.assertRaises(ValueError, setattr, a, "tail", -2822 _str('ha\0ho')) -2823 -2824 self.assertRaises(ValueError, Element, -2825 _str('ha\0ho')) -
2826 -
2827 - def test_byte_invalid(self): -
2828 Element = self.etree.Element -2829 -2830 a = Element('a') -2831 self.assertRaises(ValueError, setattr, a, "text", 'ha\x07ho') -2832 self.assertRaises(ValueError, setattr, a, "text", 'ha\x02ho') -2833 -2834 self.assertRaises(ValueError, setattr, a, "tail", 'ha\x07ho') -2835 self.assertRaises(ValueError, setattr, a, "tail", 'ha\x02ho') -2836 -2837 self.assertRaises(ValueError, Element, 'ha\x07ho') -2838 self.assertRaises(ValueError, Element, 'ha\x02ho') -
2839 -
2840 - def test_unicode_byte_invalid(self): -
2841 Element = self.etree.Element -2842 -2843 a = Element('a') -2844 self.assertRaises(ValueError, setattr, a, "text", -2845 _str('ha\x07ho')) -2846 self.assertRaises(ValueError, setattr, a, "text", -2847 _str('ha\x02ho')) -2848 -2849 self.assertRaises(ValueError, setattr, a, "tail", -2850 _str('ha\x07ho')) -2851 self.assertRaises(ValueError, setattr, a, "tail", -2852 _str('ha\x02ho')) -2853 -2854 self.assertRaises(ValueError, Element, -2855 _str('ha\x07ho')) -2856 self.assertRaises(ValueError, Element, -2857 _str('ha\x02ho')) -
2858 -
2860 Element = self.etree.Element -2861 -2862 a = Element('a') -2863 self.assertRaises(ValueError, setattr, a, "text", -2864 _str('ha\u1234\x07ho')) -2865 self.assertRaises(ValueError, setattr, a, "text", -2866 _str('ha\u1234\x02ho')) -2867 -2868 self.assertRaises(ValueError, setattr, a, "tail", -2869 _str('ha\u1234\x07ho')) -2870 self.assertRaises(ValueError, setattr, a, "tail", -2871 _str('ha\u1234\x02ho')) -2872 -2873 self.assertRaises(ValueError, Element, -2874 _str('ha\u1234\x07ho')) -2875 self.assertRaises(ValueError, Element, -2876 _str('ha\u1234\x02ho')) -
2877 -
2879 # ElementTree fails to serialize this -2880 tostring = self.etree.tostring -2881 Element = self.etree.Element -2882 SubElement = self.etree.SubElement -2883 -2884 a = Element('a') -2885 b = SubElement(a, 'b') -2886 c = SubElement(a, 'c') -2887 -2888 result = tostring(a, encoding='UTF-16') -2889 self.assertEquals(_bytes('<a><b></b><c></c></a>'), -2890 canonicalize(result)) -
2891 -
2892 - def test_tostring_none(self): -
2893 # ElementTree raises an AssertionError here -2894 tostring = self.etree.tostring -2895 self.assertRaises(TypeError, self.etree.tostring, None) -
2896 -
2897 - def test_tostring_pretty(self): -
2898 tostring = self.etree.tostring -2899 Element = self.etree.Element -2900 SubElement = self.etree.SubElement -2901 -2902 a = Element('a') -2903 b = SubElement(a, 'b') -2904 c = SubElement(a, 'c') -2905 -2906 result = tostring(a) -2907 self.assertEquals(result, _bytes("<a><b/><c/></a>")) -2908 -2909 result = tostring(a, pretty_print=False) -2910 self.assertEquals(result, _bytes("<a><b/><c/></a>")) -2911 -2912 result = tostring(a, pretty_print=True) -2913 self.assertEquals(result, _bytes("<a>\n <b/>\n <c/>\n</a>\n")) -
2914 -
2915 - def test_tostring_with_tail(self): -
2916 tostring = self.etree.tostring -2917 Element = self.etree.Element -2918 SubElement = self.etree.SubElement -2919 -2920 a = Element('a') -2921 a.tail = "aTAIL" -2922 b = SubElement(a, 'b') -2923 b.tail = "bTAIL" -2924 c = SubElement(a, 'c') -2925 -2926 result = tostring(a) -2927 self.assertEquals(result, _bytes("<a><b/>bTAIL<c/></a>aTAIL")) -2928 -2929 result = tostring(a, with_tail=False) -2930 self.assertEquals(result, _bytes("<a><b/>bTAIL<c/></a>")) -2931 -2932 result = tostring(a, with_tail=True) -2933 self.assertEquals(result, _bytes("<a><b/>bTAIL<c/></a>aTAIL")) -
2934 -
2935 - def test_standalone(self): -
2936 tostring = self.etree.tostring -2937 XML = self.etree.XML -2938 ElementTree = self.etree.ElementTree -2939 Element = self.etree.Element -2940 -2941 tree = Element("root").getroottree() -2942 self.assertEquals(None, tree.docinfo.standalone) -2943 -2944 tree = XML(_bytes("<root/>")).getroottree() -2945 self.assertEquals(None, tree.docinfo.standalone) -2946 -2947 tree = XML(_bytes( -2948 "<?xml version='1.0' encoding='ASCII' standalone='yes'?>\n<root/>" -2949 )).getroottree() -2950 self.assertEquals(True, tree.docinfo.standalone) -2951 -2952 tree = XML(_bytes( -2953 "<?xml version='1.0' encoding='ASCII' standalone='no'?>\n<root/>" -2954 )).getroottree() -2955 self.assertEquals(False, tree.docinfo.standalone) -
2956 -
2957 - def test_tostring_standalone(self): -
2958 tostring = self.etree.tostring -2959 XML = self.etree.XML -2960 ElementTree = self.etree.ElementTree -2961 -2962 root = XML(_bytes("<root/>")) -2963 -2964 tree = ElementTree(root) -2965 self.assertEquals(None, tree.docinfo.standalone) -2966 -2967 result = tostring(root, xml_declaration=True, encoding="ASCII") -2968 self.assertEquals(result, _bytes( -2969 "<?xml version='1.0' encoding='ASCII'?>\n<root/>")) -2970 -2971 result = tostring(root, xml_declaration=True, encoding="ASCII", -2972 standalone=True) -2973 self.assertEquals(result, _bytes( -2974 "<?xml version='1.0' encoding='ASCII' standalone='yes'?>\n<root/>")) -2975 -2976 tree = ElementTree(XML(result)) -2977 self.assertEquals(True, tree.docinfo.standalone) -2978 -2979 result = tostring(root, xml_declaration=True, encoding="ASCII", -2980 standalone=False) -2981 self.assertEquals(result, _bytes( -2982 "<?xml version='1.0' encoding='ASCII' standalone='no'?>\n<root/>")) -2983 -2984 tree = ElementTree(XML(result)) -2985 self.assertEquals(False, tree.docinfo.standalone) -
2986 -
2988 tostring = self.etree.tostring -2989 XML = self.etree.XML -2990 ElementTree = self.etree.ElementTree -2991 -2992 root = XML(_bytes( -2993 "<?xml version='1.0' encoding='UTF-8' standalone='yes'?>\n<root/>")) -2994 -2995 tree = ElementTree(root) -2996 self.assertEquals(True, tree.docinfo.standalone) -2997 -2998 result = tostring(root, xml_declaration=True, encoding="ASCII") -2999 self.assertEquals(result, _bytes( -3000 "<?xml version='1.0' encoding='ASCII'?>\n<root/>")) -3001 -3002 result = tostring(root, xml_declaration=True, encoding="ASCII", -3003 standalone=True) -3004 self.assertEquals(result, _bytes( -3005 "<?xml version='1.0' encoding='ASCII' standalone='yes'?>\n<root/>")) -
3006 -
3008 tostring = self.etree.tostring -3009 Element = self.etree.Element -3010 SubElement = self.etree.SubElement -3011 -3012 a = Element('a') -3013 a.text = "A" -3014 a.tail = "tail" -3015 b = SubElement(a, 'b') -3016 b.text = "B" -3017 b.tail = _str("Søk på nettet") -3018 c = SubElement(a, 'c') -3019 c.text = "C" -3020 -3021 result = tostring(a, method="text", encoding="UTF-16") -3022 -3023 self.assertEquals(_str('ABSøk på nettetCtail').encode("UTF-16"), -3024 result) -
3025 -
3027 tostring = self.etree.tostring -3028 Element = self.etree.Element -3029 SubElement = self.etree.SubElement -3030 -3031 a = Element('a') -3032 a.text = _str('Søk på nettetA') -3033 a.tail = "tail" -3034 b = SubElement(a, 'b') -3035 b.text = "B" -3036 b.tail = _str('Søk på nettetB') -3037 c = SubElement(a, 'c') -3038 c.text = "C" -3039 -3040 self.assertRaises(UnicodeEncodeError, -3041 tostring, a, method="text") -3042 -3043 self.assertEquals( -3044 _str('Søk på nettetABSøk på nettetBCtail').encode('utf-8'), -3045 tostring(a, encoding="UTF-8", method="text")) -
3046 -
3047 - def test_tounicode(self): -
3048 tounicode = self.etree.tounicode -3049 Element = self.etree.Element -3050 SubElement = self.etree.SubElement -3051 -3052 a = Element('a') -3053 b = SubElement(a, 'b') -3054 c = SubElement(a, 'c') -3055 -3056 self.assert_(isinstance(tounicode(a), _unicode)) -3057 self.assertEquals(_bytes('<a><b></b><c></c></a>'), -3058 canonicalize(tounicode(a))) -
3059 -
3060 - def test_tounicode_element(self): -
3061 tounicode = self.etree.tounicode -3062 Element = self.etree.Element -3063 SubElement = self.etree.SubElement -3064 -3065 a = Element('a') -3066 b = SubElement(a, 'b') -3067 c = SubElement(a, 'c') -3068 d = SubElement(c, 'd') -3069 self.assert_(isinstance(tounicode(b), _unicode)) -3070 self.assert_(isinstance(tounicode(c), _unicode)) -3071 self.assertEquals(_bytes('<b></b>'), -3072 canonicalize(tounicode(b))) -3073 self.assertEquals(_bytes('<c><d></d></c>'), -3074 canonicalize(tounicode(c))) -
3075 -
3076 - def test_tounicode_none(self): -
3077 tounicode = self.etree.tounicode -3078 self.assertRaises(TypeError, self.etree.tounicode, None) -
3079 -
3080 - def test_tounicode_element_tail(self): -
3081 tounicode = self.etree.tounicode -3082 Element = self.etree.Element -3083 SubElement = self.etree.SubElement -3084 -3085 a = Element('a') -3086 b = SubElement(a, 'b') -3087 c = SubElement(a, 'c') -3088 d = SubElement(c, 'd') -3089 b.tail = 'Foo' -3090 -3091 self.assert_(isinstance(tounicode(b), _unicode)) -3092 self.assert_(tounicode(b) == '<b/>Foo' or -3093 tounicode(b) == '<b />Foo') -
3094 -
3095 - def test_tounicode_pretty(self): -
3096 tounicode = self.etree.tounicode -3097 Element = self.etree.Element -3098 SubElement = self.etree.SubElement -3099 -3100 a = Element('a') -3101 b = SubElement(a, 'b') -3102 c = SubElement(a, 'c') -3103 -3104 result = tounicode(a) -3105 self.assertEquals(result, "<a><b/><c/></a>") -3106 -3107 result = tounicode(a, pretty_print=False) -3108 self.assertEquals(result, "<a><b/><c/></a>") -3109 -3110 result = tounicode(a, pretty_print=True) -3111 self.assertEquals(result, "<a>\n <b/>\n <c/>\n</a>\n") -
3112 -
3113 - def test_tostring_unicode(self): -
3114 tostring = self.etree.tostring -3115 Element = self.etree.Element -3116 SubElement = self.etree.SubElement -3117 -3118 a = Element('a') -3119 b = SubElement(a, 'b') -3120 c = SubElement(a, 'c') -3121 -3122 self.assert_(isinstance(tostring(a, encoding=_unicode), _unicode)) -3123 self.assertEquals(_bytes('<a><b></b><c></c></a>'), -3124 canonicalize(tostring(a, encoding=_unicode))) -
3125 -
3127 tostring = self.etree.tostring -3128 Element = self.etree.Element -3129 SubElement = self.etree.SubElement -3130 -3131 a = Element('a') -3132 b = SubElement(a, 'b') -3133 c = SubElement(a, 'c') -3134 d = SubElement(c, 'd') -3135 self.assert_(isinstance(tostring(b, encoding=_unicode), _unicode)) -3136 self.assert_(isinstance(tostring(c, encoding=_unicode), _unicode)) -3137 self.assertEquals(_bytes('<b></b>'), -3138 canonicalize(tostring(b, encoding=_unicode))) -3139 self.assertEquals(_bytes('<c><d></d></c>'), -3140 canonicalize(tostring(c, encoding=_unicode))) -
3141 -
3142 - def test_tostring_unicode_none(self): -
3143 tostring = self.etree.tostring -3144 self.assertRaises(TypeError, self.etree.tostring, -3145 None, encoding=_unicode) -
3146 -
3148 tostring = self.etree.tostring -3149 Element = self.etree.Element -3150 SubElement = self.etree.SubElement -3151 -3152 a = Element('a') -3153 b = SubElement(a, 'b') -3154 c = SubElement(a, 'c') -3155 d = SubElement(c, 'd') -3156 b.tail = 'Foo' -3157 -3158 self.assert_(isinstance(tostring(b, encoding=_unicode), _unicode)) -3159 self.assert_(tostring(b, encoding=_unicode) == '<b/>Foo' or -3160 tostring(b, encoding=_unicode) == '<b />Foo') -
3161 -
3163 tostring = self.etree.tostring -3164 Element = self.etree.Element -3165 SubElement = self.etree.SubElement -3166 -3167 a = Element('a') -3168 b = SubElement(a, 'b') -3169 c = SubElement(a, 'c') -3170 -3171 result = tostring(a, encoding=_unicode) -3172 self.assertEquals(result, "<a><b/><c/></a>") -3173 -3174 result = tostring(a, encoding=_unicode, pretty_print=False) -3175 self.assertEquals(result, "<a><b/><c/></a>") -3176 -3177 result = tostring(a, encoding=_unicode, pretty_print=True) -3178 self.assertEquals(result, "<a>\n <b/>\n <c/>\n</a>\n") -
3179 -
3180 - def test_pypy_proxy_collect(self): -
3181 root = etree.Element('parent') -3182 etree.SubElement(root, 'child') -3183 -3184 self.assertEquals(len(root), 1) -3185 self.assertEquals(root[0].tag, 'child') -3186 -3187 # in PyPy, GC used to kill the Python proxy instance without cleanup -3188 gc.collect() -3189 self.assertEquals(len(root), 1) -3190 self.assertEquals(root[0].tag, 'child') -
3191 -3192 # helper methods -3193 -
3194 - def _writeElement(self, element, encoding='us-ascii', compression=0): -
3195 """Write out element for comparison. -3196 """ -3197 ElementTree = self.etree.ElementTree -3198 f = BytesIO() -3199 tree = ElementTree(element=element) -3200 tree.write(f, encoding=encoding, compression=compression) -3201 data = f.getvalue() -3202 if compression: -3203 data = zlib.decompress(data) -3204 return canonicalize(data) -
3205 -3206 -
3207 -class _XIncludeTestCase(HelperTestCase): -
3208 - def test_xinclude_text(self): -
3209 filename = fileInTestDir('test_broken.xml') -3210 root = etree.XML(_bytes('''\ -3211 <doc xmlns:xi="http://www.w3.org/2001/XInclude"> -3212 <xi:include href="%s" parse="text"/> -3213 </doc> -3214 ''' % filename)) -3215 old_text = root.text -3216 content = read_file(filename) -3217 old_tail = root[0].tail -3218 -3219 self.include( etree.ElementTree(root) ) -3220 self.assertEquals(old_text + content + old_tail, -3221 root.text) -
3222 -
3223 - def test_xinclude(self): -
3224 tree = etree.parse(fileInTestDir('include/test_xinclude.xml')) -3225 self.assertNotEquals( -3226 'a', -3227 tree.getroot()[1].tag) -3228 # process xincludes -3229 self.include( tree ) -3230 # check whether we find it replaced with included data -3231 self.assertEquals( -3232 'a', -3233 tree.getroot()[1].tag) -
3234 -
3235 - def test_xinclude_resolver(self): -
3236 class res(etree.Resolver): -3237 include_text = read_file(fileInTestDir('test.xml')) -3238 called = {} -3239 def resolve(self, url, id, context): -3240 if url.endswith(".dtd"): -3241 self.called["dtd"] = True -3242 return self.resolve_filename( -3243 fileInTestDir('test.dtd'), context) -3244 elif url.endswith("test_xinclude.xml"): -3245 self.called["input"] = True -3246 return None # delegate to default resolver -3247 else: -3248 self.called["include"] = True -3249 return self.resolve_string(self.include_text, context) -
3250 -3251 res_instance = res() -3252 parser = etree.XMLParser(load_dtd = True) -3253 parser.resolvers.add(res_instance) -3254 -3255 tree = etree.parse(fileInTestDir('include/test_xinclude.xml'), -3256 parser = parser) -3257 -3258 self.include(tree) -3259 -3260 called = list(res_instance.called.items()) -3261 called.sort() -3262 self.assertEquals( -3263 [("dtd", True), ("include", True), ("input", True)], -3264 called) -3265 -
3266 -class ETreeXIncludeTestCase(_XIncludeTestCase): -
3267 - def include(self, tree): -
3268 tree.xinclude() -
3269 -3270 -
3271 -class ElementIncludeTestCase(_XIncludeTestCase): -
3272 from lxml import ElementInclude -
3273 - def include(self, tree): -
3274 self.ElementInclude.include(tree.getroot()) -
3275 -3276 -
3277 -class ETreeC14NTestCase(HelperTestCase): -
3278 - def test_c14n(self): -
3279 tree = self.parse(_bytes('<a><b/></a>')) -3280 f = BytesIO() -3281 tree.write_c14n(f) -3282 s = f.getvalue() -3283 self.assertEquals(_bytes('<a><b></b></a>'), -3284 s) -
3285 -
3286 - def test_c14n_gzip(self): -
3287 tree = self.parse(_bytes('<a>'+'<b/>'*200+'</a>')) -3288 f = BytesIO() -3289 tree.write_c14n(f, compression=9) -3290 gzfile = gzip.GzipFile(fileobj=BytesIO(f.getvalue())) -3291 try: -3292 s = gzfile.read() -3293 finally: -3294 gzfile.close() -3295 self.assertEquals(_bytes('<a>'+'<b></b>'*200+'</a>'), -3296 s) -
3297 -
3298 - def test_c14n_file(self): -
3299 tree = self.parse(_bytes('<a><b/></a>')) -3300 handle, filename = tempfile.mkstemp() -3301 try: -3302 tree.write_c14n(filename) -3303 data = read_file(filename, 'rb') -3304 finally: -3305 os.close(handle) -3306 os.remove(filename) -3307 self.assertEquals(_bytes('<a><b></b></a>'), -3308 data) -
3309 -
3310 - def test_c14n_file_gzip(self): -
3311 tree = self.parse(_bytes('<a>'+'<b/>'*200+'</a>')) -3312 handle, filename = tempfile.mkstemp() -3313 try: -3314 tree.write_c14n(filename, compression=9) -3315 f = gzip.open(filename, 'rb') -3316 try: -3317 data = f.read() -3318 finally: -3319 f.close() -3320 finally: -3321 os.close(handle) -3322 os.remove(filename) -3323 self.assertEquals(_bytes('<a>'+'<b></b>'*200+'</a>'), -3324 data) -
3325 -
3326 - def test_c14n_with_comments(self): -
3327 tree = self.parse(_bytes('<!--hi--><a><!--ho--><b/></a><!--hu-->')) -3328 f = BytesIO() -3329 tree.write_c14n(f) -3330 s = f.getvalue() -3331 self.assertEquals(_bytes('<!--hi-->\n<a><!--ho--><b></b></a>\n<!--hu-->'), -3332 s) -3333 f = BytesIO() -3334 tree.write_c14n(f, with_comments=True) -3335 s = f.getvalue() -3336 self.assertEquals(_bytes('<!--hi-->\n<a><!--ho--><b></b></a>\n<!--hu-->'), -3337 s) -3338 f = BytesIO() -3339 tree.write_c14n(f, with_comments=False) -3340 s = f.getvalue() -3341 self.assertEquals(_bytes('<a><b></b></a>'), -3342 s) -
3343 -
3345 tree = self.parse(_bytes('<!--hi--><a><!--ho--><b/></a><!--hu-->')) -3346 s = etree.tostring(tree, method='c14n') -3347 self.assertEquals(_bytes('<!--hi-->\n<a><!--ho--><b></b></a>\n<!--hu-->'), -3348 s) -3349 s = etree.tostring(tree, method='c14n', with_comments=True) -3350 self.assertEquals(_bytes('<!--hi-->\n<a><!--ho--><b></b></a>\n<!--hu-->'), -3351 s) -3352 s = etree.tostring(tree, method='c14n', with_comments=False) -3353 self.assertEquals(_bytes('<a><b></b></a>'), -3354 s) -
3355 -
3357 tree = self.parse(_bytes('<!--hi--><a><!--ho--><b/></a><!--hu-->')) -3358 s = etree.tostring(tree.getroot(), method='c14n') -3359 self.assertEquals(_bytes('<a><!--ho--><b></b></a>'), -3360 s) -3361 s = etree.tostring(tree.getroot(), method='c14n', with_comments=True) -3362 self.assertEquals(_bytes('<a><!--ho--><b></b></a>'), -3363 s) -3364 s = etree.tostring(tree.getroot(), method='c14n', with_comments=False) -3365 self.assertEquals(_bytes('<a><b></b></a>'), -3366 s) -
3367 -
3368 - def test_c14n_exclusive(self): -
3369 tree = self.parse(_bytes( -3370 '<a xmlns="http://abc" xmlns:y="http://bcd" xmlns:z="http://cde"><z:b/></a>')) -3371 f = BytesIO() -3372 tree.write_c14n(f) -3373 s = f.getvalue() -3374 self.assertEquals(_bytes('<a xmlns="http://abc" xmlns:y="http://bcd" xmlns:z="http://cde"><z:b></z:b></a>'), -3375 s) -3376 f = BytesIO() -3377 tree.write_c14n(f, exclusive=False) -3378 s = f.getvalue() -3379 self.assertEquals(_bytes('<a xmlns="http://abc" xmlns:y="http://bcd" xmlns:z="http://cde"><z:b></z:b></a>'), -3380 s) -3381 f = BytesIO() -3382 tree.write_c14n(f, exclusive=True) -3383 s = f.getvalue() -3384 self.assertEquals(_bytes('<a xmlns="http://abc"><z:b xmlns:z="http://cde"></z:b></a>'), -3385 s) -3386 -3387 f = BytesIO() -3388 tree.write_c14n(f, exclusive=True, inclusive_ns_prefixes=['z']) -3389 s = f.getvalue() -3390 self.assertEquals(_bytes('<a xmlns="http://abc" xmlns:z="http://cde"><z:b></z:b></a>'), -3391 s) -
3392 -
3394 tree = self.parse(_bytes( -3395 '<a xmlns="http://abc" xmlns:y="http://bcd" xmlns:z="http://cde"><z:b/></a>')) -3396 s = etree.tostring(tree, method='c14n') -3397 self.assertEquals(_bytes('<a xmlns="http://abc" xmlns:y="http://bcd" xmlns:z="http://cde"><z:b></z:b></a>'), -3398 s) -3399 s = etree.tostring(tree, method='c14n', exclusive=False) -3400 self.assertEquals(_bytes('<a xmlns="http://abc" xmlns:y="http://bcd" xmlns:z="http://cde"><z:b></z:b></a>'), -3401 s) -3402 s = etree.tostring(tree, method='c14n', exclusive=True) -3403 self.assertEquals(_bytes('<a xmlns="http://abc"><z:b xmlns:z="http://cde"></z:b></a>'), -3404 s) -3405 -3406 s = etree.tostring(tree, method='c14n', exclusive=True, inclusive_ns_prefixes=['y']) -3407 self.assertEquals(_bytes('<a xmlns="http://abc" xmlns:y="http://bcd"><z:b xmlns:z="http://cde"></z:b></a>'), -3408 s) -
3409 -
3411 tree = self.parse(_bytes( -3412 '<a xmlns="http://abc" xmlns:y="http://bcd" xmlns:z="http://cde"><z:b/></a>')) -3413 s = etree.tostring(tree.getroot(), method='c14n') -3414 self.assertEquals(_bytes('<a xmlns="http://abc" xmlns:y="http://bcd" xmlns:z="http://cde"><z:b></z:b></a>'), -3415 s) -3416 s = etree.tostring(tree.getroot(), method='c14n', exclusive=False) -3417 self.assertEquals(_bytes('<a xmlns="http://abc" xmlns:y="http://bcd" xmlns:z="http://cde"><z:b></z:b></a>'), -3418 s) -3419 s = etree.tostring(tree.getroot(), method='c14n', exclusive=True) -3420 self.assertEquals(_bytes('<a xmlns="http://abc"><z:b xmlns:z="http://cde"></z:b></a>'), -3421 s) -3422 -3423 s = etree.tostring(tree.getroot()[0], method='c14n', exclusive=False) -3424 self.assertEquals(_bytes('<z:b xmlns="http://abc" xmlns:y="http://bcd" xmlns:z="http://cde"></z:b>'), -3425 s) -3426 s = etree.tostring(tree.getroot()[0], method='c14n', exclusive=True) -3427 self.assertEquals(_bytes('<z:b xmlns:z="http://cde"></z:b>'), -3428 s) -3429 -3430 s = etree.tostring(tree.getroot()[0], method='c14n', exclusive=True, inclusive_ns_prefixes=['y']) -3431 self.assertEquals(_bytes('<z:b xmlns:y="http://bcd" xmlns:z="http://cde"></z:b>'), -3432 s) -
3433 -
3435 """ Regression test to fix memory allocation issues (use 3+ inclusive NS spaces)""" -3436 tree = self.parse(_bytes( -3437 '<a xmlns:x="http://abc" xmlns:y="http://bcd" xmlns:z="http://cde"><z:b/></a>')) -3438 -3439 s = etree.tostring(tree, method='c14n', exclusive=True, inclusive_ns_prefixes=['x', 'y', 'z']) -3440 self.assertEquals(_bytes('<a xmlns:x="http://abc" xmlns:y="http://bcd" xmlns:z="http://cde"><z:b></z:b></a>'), -3441 s) -
3442 -3443 -
3444 -class ETreeWriteTestCase(HelperTestCase): -
3445 - def test_write(self): -
3446 tree = self.parse(_bytes('<a><b/></a>')) -3447 f = BytesIO() -3448 tree.write(f) -3449 s = f.getvalue() -3450 self.assertEquals(_bytes('<a><b/></a>'), -3451 s) -
3452 -
3453 - def test_write_gzip(self): -
3454 tree = self.parse(_bytes('<a>'+'<b/>'*200+'</a>')) -3455 f = BytesIO() -3456 tree.write(f, compression=9) -3457 gzfile = gzip.GzipFile(fileobj=BytesIO(f.getvalue())) -3458 try: -3459 s = gzfile.read() -3460 finally: -3461 gzfile.close() -3462 self.assertEquals(_bytes('<a>'+'<b/>'*200+'</a>'), -3463 s) -
3464 -
3465 - def test_write_gzip_level(self): -
3466 tree = self.parse(_bytes('<a>'+'<b/>'*200+'</a>')) -3467 f = BytesIO() -3468 tree.write(f, compression=0) -3469 s0 = f.getvalue() -3470 -3471 f = BytesIO() -3472 tree.write(f) -3473 self.assertEquals(f.getvalue(), s0) -3474 -3475 f = BytesIO() -3476 tree.write(f, compression=1) -3477 s = f.getvalue() -3478 self.assert_(len(s) <= len(s0)) -3479 gzfile = gzip.GzipFile(fileobj=BytesIO(s)) -3480 try: -3481 s1 = gzfile.read() -3482 finally: -3483 gzfile.close() -3484 -3485 f = BytesIO() -3486 tree.write(f, compression=9) -3487 s = f.getvalue() -3488 self.assert_(len(s) <= len(s0)) -3489 gzfile = gzip.GzipFile(fileobj=BytesIO(s)) -3490 try: -3491 s9 = gzfile.read() -3492 finally: -3493 gzfile.close() -3494 -3495 self.assertEquals(_bytes('<a>'+'<b/>'*200+'</a>'), -3496 s0) -3497 self.assertEquals(_bytes('<a>'+'<b/>'*200+'</a>'), -3498 s1) -3499 self.assertEquals(_bytes('<a>'+'<b/>'*200+'</a>'), -3500 s9) -
3501 -
3502 - def test_write_file(self): -
3503 tree = self.parse(_bytes('<a><b/></a>')) -3504 handle, filename = tempfile.mkstemp() -3505 try: -3506 tree.write(filename) -3507 data = read_file(filename, 'rb') -3508 finally: -3509 os.close(handle) -3510 os.remove(filename) -3511 self.assertEquals(_bytes('<a><b/></a>'), -3512 data) -
3513 -
3514 - def test_write_file_gzip(self): -
3515 tree = self.parse(_bytes('<a>'+'<b/>'*200+'</a>')) -3516 handle, filename = tempfile.mkstemp() -3517 try: -3518 tree.write(filename, compression=9) -3519 f = gzip.open(filename, 'rb') -3520 try: -3521 data = f.read() -3522 finally: -3523 f.close() -3524 finally: -3525 os.close(handle) -3526 os.remove(filename) -3527 self.assertEquals(_bytes('<a>'+'<b/>'*200+'</a>'), -3528 data) -
3529 -
3530 - def test_write_file_gzip_parse(self): -
3531 tree = self.parse(_bytes('<a>'+'<b/>'*200+'</a>')) -3532 handle, filename = tempfile.mkstemp() -3533 try: -3534 tree.write(filename, compression=9) -3535 data = etree.tostring(etree.parse(filename)) -3536 finally: -3537 os.close(handle) -3538 os.remove(filename) -3539 self.assertEquals(_bytes('<a>'+'<b/>'*200+'</a>'), -3540 data) -
3541 -
3543 tree = self.parse(_bytes('<a>'+'<b/>'*200+'</a>')) -3544 handle, filename = tempfile.mkstemp() -3545 try: -3546 tree.write(filename, compression=9) -3547 data = etree.tostring(etree.parse( -3548 gzip.GzipFile(filename))) -3549 finally: -3550 os.close(handle) -3551 os.remove(filename) -3552 self.assertEquals(_bytes('<a>'+'<b/>'*200+'</a>'), -3553 data) -
3554 -
3555 -class ETreeErrorLogTest(HelperTestCase): -
3556 etree = etree -3557 -
3558 - def test_parse_error_logging(self): -
3559 parse = self.etree.parse -3560 f = BytesIO('<a><b></c></b></a>') -3561 self.etree.clear_error_log() -3562 try: -3563 parse(f) -3564 logs = None -3565 except SyntaxError: -3566 e = sys.exc_info()[1] -3567 logs = e.error_log -3568 f.close() -3569 self.assert_([ log for log in logs -3570 if 'mismatch' in log.message ]) -3571 self.assert_([ log for log in logs -3572 if 'PARSER' in log.domain_name]) -3573 self.assert_([ log for log in logs -3574 if 'ERR_TAG_NAME_MISMATCH' in log.type_name ]) -3575 self.assert_([ log for log in logs -3576 if 1 == log.line ]) -3577 self.assert_([ log for log in logs -3578 if 15 == log.column ]) -
3579 -
3580 - def _test_python_error_logging(self): -
3581 """This can't really be tested as long as there isn't a way to -3582 reset the logging setup ... -3583 """ -3584 parse = self.etree.parse -3585 -3586 messages = [] -3587 class Logger(self.etree.PyErrorLog): -3588 def log(self, entry, message, *args): -3589 messages.append(message) -
3590 -3591 self.etree.use_global_python_log(Logger()) -3592 f = BytesIO('<a><b></c></b></a>') -3593 try: -3594 parse(f) -3595 except SyntaxError: -3596 pass -3597 f.close() -3598 -3599 self.assert_([ message for message in messages -3600 if 'mismatch' in message ]) -3601 self.assert_([ message for message in messages -3602 if ':PARSER:' in message]) -3603 self.assert_([ message for message in messages -3604 if ':ERR_TAG_NAME_MISMATCH:' in message ]) -3605 self.assert_([ message for message in messages -3606 if ':1:15:' in message ]) -3607 -
3608 -def test_suite(): -
3609 suite = unittest.TestSuite() -3610 suite.addTests([unittest.makeSuite(ETreeOnlyTestCase)]) -3611 suite.addTests([unittest.makeSuite(ETreeXIncludeTestCase)]) -3612 suite.addTests([unittest.makeSuite(ElementIncludeTestCase)]) -3613 suite.addTests([unittest.makeSuite(ETreeC14NTestCase)]) -3614 suite.addTests([unittest.makeSuite(ETreeWriteTestCase)]) -3615 suite.addTests([unittest.makeSuite(ETreeErrorLogTest)]) -3616 suite.addTests( -3617 [make_doctest('../../../doc/tutorial.txt')]) -3618 suite.addTests( -3619 [make_doctest('../../../doc/api.txt')]) -3620 suite.addTests( -3621 [make_doctest('../../../doc/FAQ.txt')]) -3622 suite.addTests( -3623 [make_doctest('../../../doc/parsing.txt')]) -3624 suite.addTests( -3625 [make_doctest('../../../doc/resolvers.txt')]) -3626 return suite -
3627 -3628 if __name__ == '__main__': -3629 print('to test use test.py %s' % __file__) -3630 -
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.test_etree.ETreeC14NTestCase-class.html b/doc/html/api/lxml.tests.test_etree.ETreeC14NTestCase-class.html deleted file mode 100644 index 7c92351..0000000 --- a/doc/html/api/lxml.tests.test_etree.ETreeC14NTestCase-class.html +++ /dev/null @@ -1,523 +0,0 @@ - - - - - lxml.tests.test_etree.ETreeC14NTestCase - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module test_etree :: - Class ETreeC14NTestCase - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class ETreeC14NTestCase

source code

-
-               object --+        
-                        |        
-   unittest.case.TestCase --+    
-                            |    
-common_imports.HelperTestCase --+
-                                |
-                               ETreeC14NTestCase
-
- -
- - - - - - - - - -
- - - - - -
Nested Classes[hide private]
-
-

Inherited from unittest.case.TestCase: - failureException -

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
test_c14n(self) - source code - -
- -
-   - - - - - - -
test_c14n_gzip(self) - source code - -
- -
-   - - - - - - -
test_c14n_file(self) - source code - -
- -
-   - - - - - - -
test_c14n_file_gzip(self) - source code - -
- -
-   - - - - - - -
test_c14n_with_comments(self) - source code - -
- -
-   - - - - - - -
test_c14n_tostring_with_comments(self) - source code - -
- -
-   - - - - - - -
test_c14n_element_tostring_with_comments(self) - source code - -
- -
-   - - - - - - -
test_c14n_exclusive(self) - source code - -
- -
-   - - - - - - -
test_c14n_tostring_exclusive(self) - source code - -
- -
-   - - - - - - -
test_c14n_element_tostring_exclusive(self) - source code - -
- -
-   - - - - - - -
test_c14n_tostring_inclusive_ns_prefixes(self)
- Regression test to fix memory allocation issues (use 3+ inclusive NS spaces)
- source code - -
- -
-

Inherited from common_imports.HelperTestCase: - parse, - tearDown -

-

Inherited from common_imports.HelperTestCase (private): - _rootstring -

-

Inherited from unittest.case.TestCase: - __call__, - __eq__, - __hash__, - __init__, - __ne__, - __repr__, - __str__, - addCleanup, - addTypeEqualityFunc, - assertAlmostEqual, - assertAlmostEquals, - assertDictContainsSubset, - assertDictEqual, - assertEqual, - assertEquals, - assertGreater, - assertGreaterEqual, - assertIn, - assertIs, - assertIsInstance, - assertIsNone, - assertIsNot, - assertIsNotNone, - assertItemsEqual, - assertLess, - assertLessEqual, - assertListEqual, - assertMultiLineEqual, - assertNotAlmostEqual, - assertNotAlmostEquals, - assertNotEqual, - assertNotEquals, - assertNotIn, - assertNotIsInstance, - assertNotRegexpMatches, - assertRaises, - assertRaisesRegexp, - assertRegexpMatches, - assertSequenceEqual, - assertSetEqual, - assertTrue, - assertTupleEqual, - assert_, - countTestCases, - debug, - defaultTestResult, - doCleanups, - fail, - failIf, - failIfAlmostEqual, - failIfEqual, - failUnless, - failUnlessAlmostEqual, - failUnlessEqual, - failUnlessRaises, - id, - run, - setUp, - shortDescription, - skipTest -

-

Inherited from unittest.case.TestCase (private): - _addSkip, - _baseAssertEqual, - _deprecate, - _formatMessage, - _getAssertEqualityFunc, - _truncateMessage -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __new__, - __reduce__, - __reduce_ex__, - __setattr__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Class Methods[hide private]
-
-

Inherited from unittest.case.TestCase: - setUpClass, - tearDownClass -

-
- - - - - - - - - -
- - - - - -
Class Variables[hide private]
-
-

Inherited from common_imports.HelperTestCase: - assertFalse -

-

Inherited from unittest.case.TestCase: - longMessage, - maxDiff -

-

Inherited from unittest.case.TestCase (private): - _classSetupFailed, - _diffThreshold -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.test_etree.ETreeErrorLogTest-class.html b/doc/html/api/lxml.tests.test_etree.ETreeErrorLogTest-class.html deleted file mode 100644 index 5be1a24..0000000 --- a/doc/html/api/lxml.tests.test_etree.ETreeErrorLogTest-class.html +++ /dev/null @@ -1,424 +0,0 @@ - - - - - lxml.tests.test_etree.ETreeErrorLogTest - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module test_etree :: - Class ETreeErrorLogTest - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class ETreeErrorLogTest

source code

-
-               object --+        
-                        |        
-   unittest.case.TestCase --+    
-                            |    
-common_imports.HelperTestCase --+
-                                |
-                               ETreeErrorLogTest
-
- -
- - - - - - - - - -
- - - - - -
Nested Classes[hide private]
-
-

Inherited from unittest.case.TestCase: - failureException -

-
- - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
test_parse_error_logging(self) - source code - -
- -
-   - - - - - - -
_test_python_error_logging(self)
- This can't really be tested as long as there isn't a way to -reset the logging setup ...
- source code - -
- -
-

Inherited from common_imports.HelperTestCase: - parse, - tearDown -

-

Inherited from common_imports.HelperTestCase (private): - _rootstring -

-

Inherited from unittest.case.TestCase: - __call__, - __eq__, - __hash__, - __init__, - __ne__, - __repr__, - __str__, - addCleanup, - addTypeEqualityFunc, - assertAlmostEqual, - assertAlmostEquals, - assertDictContainsSubset, - assertDictEqual, - assertEqual, - assertEquals, - assertGreater, - assertGreaterEqual, - assertIn, - assertIs, - assertIsInstance, - assertIsNone, - assertIsNot, - assertIsNotNone, - assertItemsEqual, - assertLess, - assertLessEqual, - assertListEqual, - assertMultiLineEqual, - assertNotAlmostEqual, - assertNotAlmostEquals, - assertNotEqual, - assertNotEquals, - assertNotIn, - assertNotIsInstance, - assertNotRegexpMatches, - assertRaises, - assertRaisesRegexp, - assertRegexpMatches, - assertSequenceEqual, - assertSetEqual, - assertTrue, - assertTupleEqual, - assert_, - countTestCases, - debug, - defaultTestResult, - doCleanups, - fail, - failIf, - failIfAlmostEqual, - failIfEqual, - failUnless, - failUnlessAlmostEqual, - failUnlessEqual, - failUnlessRaises, - id, - run, - setUp, - shortDescription, - skipTest -

-

Inherited from unittest.case.TestCase (private): - _addSkip, - _baseAssertEqual, - _deprecate, - _formatMessage, - _getAssertEqualityFunc, - _truncateMessage -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __new__, - __reduce__, - __reduce_ex__, - __setattr__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Class Methods[hide private]
-
-

Inherited from unittest.case.TestCase: - setUpClass, - tearDownClass -

-
- - - - - - - - - - - - -
- - - - - -
Class Variables[hide private]
-
-   - - etree
- The lxml.etree module implements the extended ElementTree API -for XML. -
-

Inherited from common_imports.HelperTestCase: - assertFalse -

-

Inherited from unittest.case.TestCase: - longMessage, - maxDiff -

-

Inherited from unittest.case.TestCase (private): - _classSetupFailed, - _diffThreshold -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Class Variable Details[hide private]
-
- -
- -
-

etree

- The lxml.etree module implements the extended ElementTree API -for XML. -
-
-
-
Value:
-
lxml.etree
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.test_etree.ETreeOnlyTestCase-class.html b/doc/html/api/lxml.tests.test_etree.ETreeOnlyTestCase-class.html deleted file mode 100644 index a8098f0..0000000 --- a/doc/html/api/lxml.tests.test_etree.ETreeOnlyTestCase-class.html +++ /dev/null @@ -1,3854 +0,0 @@ - - - - - lxml.tests.test_etree.ETreeOnlyTestCase - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module test_etree :: - Class ETreeOnlyTestCase - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class ETreeOnlyTestCase

source code

-
-               object --+        
-                        |        
-   unittest.case.TestCase --+    
-                            |    
-common_imports.HelperTestCase --+
-                                |
-                               ETreeOnlyTestCase
-
- -
-Tests only for etree, not ElementTree - - - - - - - - - - -
- - - - - -
Nested Classes[hide private]
-
-

Inherited from unittest.case.TestCase: - failureException -

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
test_version(self) - source code - -
- -
-   - - - - - - -
test_c_api(self) - source code - -
- -
-   - - - - - - -
test_element_names(self) - source code - -
- -
-   - - - - - - -
test_element_name_empty(self) - source code - -
- -
-   - - - - - - -
test_element_name_colon(self) - source code - -
- -
-   - - - - - - -
test_element_name_quote(self) - source code - -
- -
-   - - - - - - -
test_element_name_space(self) - source code - -
- -
-   - - - - - - -
test_subelement_name_empty(self) - source code - -
- -
-   - - - - - - -
test_subelement_name_colon(self) - source code - -
- -
-   - - - - - - -
test_subelement_name_quote(self) - source code - -
- -
-   - - - - - - -
test_subelement_name_space(self) - source code - -
- -
-   - - - - - - -
test_subelement_attribute_invalid(self) - source code - -
- -
-   - - - - - - -
test_qname_empty(self) - source code - -
- -
-   - - - - - - -
test_qname_colon(self) - source code - -
- -
-   - - - - - - -
test_qname_space(self) - source code - -
- -
-   - - - - - - -
test_qname_namespace_localname(self) - source code - -
- -
-   - - - - - - -
test_qname_element(self) - source code - -
- -
-   - - - - - - -
test_qname_text_resolve(self) - source code - -
- -
-   - - - - - - -
test_nsmap_prefix_invalid(self) - source code - -
- -
-   - - - - - - -
test_attribute_has_key(self) - source code - -
- -
-   - - - - - - -
test_attribute_set_invalid(self) - source code - -
- -
-   - - - - - - -
test_strip_attributes(self) - source code - -
- -
-   - - - - - - -
test_strip_attributes_ns(self) - source code - -
- -
-   - - - - - - -
test_strip_elements(self) - source code - -
- -
-   - - - - - - -
test_strip_elements_ns(self) - source code - -
- -
-   - - - - - - -
test_strip_tags(self) - source code - -
- -
-   - - - - - - -
test_strip_tags_pi_comment(self) - source code - -
- -
-   - - - - - - -
test_strip_tags_pi_comment_all(self) - source code - -
- -
-   - - - - - - -
test_strip_tags_doc_style(self) - source code - -
- -
-   - - - - - - -
test_strip_tags_ns(self) - source code - -
- -
-   - - - - - - -
test_strip_tags_and_remove(self) - source code - -
- -
-   - - - - - - -
test_pi(self) - source code - -
- -
-   - - - - - - -
test_pi_parse(self) - source code - -
- -
-   - - - - - - -
test_pi_pseudo_attributes_get(self) - source code - -
- -
-   - - - - - - -
test_pi_pseudo_attributes_attrib(self) - source code - -
- -
-   - - - - - - -
test_deepcopy_pi(self) - source code - -
- -
-   - - - - - - -
test_deepcopy_elementtree_pi(self) - source code - -
- -
-   - - - - - - -
test_deepcopy_elementtree_dtd(self) - source code - -
- -
-   - - - - - - -
test_attribute_set(self) - source code - -
- -
-   - - - - - - -
test_parse_remove_comments(self) - source code - -
- -
-   - - - - - - -
test_parse_remove_pis(self) - source code - -
- -
-   - - - - - - -
test_parse_parser_type_error(self) - source code - -
- -
-   - - - - - - -
test_iterparse_tree_comments(self) - source code - -
- -
-   - - - - - - -
test_iterparse_comments(self) - source code - -
- -
-   - - - - - - -
test_iterparse_pis(self) - source code - -
- -
-   - - - - - - -
test_iterparse_remove_comments(self) - source code - -
- -
-   - - - - - - -
test_iterparse_broken(self) - source code - -
- -
-   - - - - - - -
test_iterparse_strip(self) - source code - -
- -
-   - - - - - - -
test_iterparse_tag(self) - source code - -
- -
-   - - - - - - -
test_iterparse_tag_all(self) - source code - -
- -
-   - - - - - - -
test_iterparse_tag_ns(self) - source code - -
- -
-   - - - - - - -
test_iterparse_tag_ns_empty(self) - source code - -
- -
-   - - - - - - -
test_iterparse_tag_ns_all(self) - source code - -
- -
-   - - - - - - -
test_iterparse_tag_ns_empty_all(self) - source code - -
- -
-   - - - - - - -
test_iterparse_encoding_error(self) - source code - -
- -
-   - - - - - - -
test_iterparse_encoding_8bit_override(self) - source code - -
- -
-   - - - - - - -
test_iterparse_keep_cdata(self) - source code - -
- -
-   - - - - - - -
test_parser_encoding_unknown(self) - source code - -
- -
-   - - - - - - -
test_parser_encoding(self) - source code - -
- -
-   - - - - - - -
test_feed_parser_recover(self) - source code - -
- -
-   - - - - - - -
test_elementtree_parser_target_type_error(self) - source code - -
- -
-   - - - - - - -
test_parser_target_feed_exception(self) - source code - -
- -
-   - - - - - - -
test_parser_target_fromstring_exception(self) - source code - -
- -
-   - - - - - - -
test_parser_target_comment(self) - source code - -
- -
-   - - - - - - -
test_parser_target_pi(self) - source code - -
- -
-   - - - - - - -
test_parser_target_cdata(self) - source code - -
- -
-   - - - - - - -
test_parser_target_recover(self) - source code - -
- -
-   - - - - - - -
test_iterwalk_tag(self) - source code - -
- -
-   - - - - - - -
test_iterwalk_tag_all(self) - source code - -
- -
-   - - - - - - -
test_iterwalk(self) - source code - -
- -
-   - - - - - - -
test_iterwalk_start(self) - source code - -
- -
-   - - - - - - -
test_iterwalk_start_end(self) - source code - -
- -
-   - - - - - - -
test_iterwalk_clear(self) - source code - -
- -
-   - - - - - - -
test_iterwalk_attrib_ns(self) - source code - -
- -
-   - - - - - - -
test_iterwalk_getiterator(self) - source code - -
- -
-   - - - - - - -
test_resolve_string_dtd(self) - source code - -
- -
-   - - - - - - -
test_resolve_bytes_dtd(self) - source code - -
- -
-   - - - - - - -
test_resolve_filelike_dtd(self) - source code - -
- -
-   - - - - - - -
test_resolve_filename_dtd(self) - source code - -
- -
-   - - - - - - -
test_resolve_filename_dtd_relative(self) - source code - -
- -
-   - - - - - - -
test_resolve_file_dtd(self) - source code - -
- -
-   - - - - - - -
test_resolve_empty(self) - source code - -
- -
-   - - - - - - -
test_resolve_error(self) - source code - -
- -
-   - - - - - - -
test_entity_parse(self) - source code - -
- -
-   - - - - - - -
test_entity_restructure(self) - source code - -
- -
-   - - - - - - -
test_entity_append(self) - source code - -
- -
-   - - - - - - -
test_entity_values(self) - source code - -
- -
-   - - - - - - -
test_entity_error(self) - source code - -
- -
-   - - - - - - -
test_cdata(self) - source code - -
- -
-   - - - - - - -
test_cdata_type(self) - source code - -
- -
-   - - - - - - -
test_cdata_errors(self) - source code - -
- -
-   - - - - - - -
test_cdata_parser(self) - source code - -
- -
-   - - - - - - -
test_cdata_xpath(self) - source code - -
- -
-   - - - - - - -
test_setitem_assert(self) - source code - -
- -
-   - - - - - - -
test_append_error(self) - source code - -
- -
-   - - - - - - -
test_addnext(self) - source code - -
- -
-   - - - - - - -
test_addprevious(self) - source code - -
- -
-   - - - - - - -
test_addnext_root(self) - source code - -
- -
-   - - - - - - -
test_addprevious_pi(self) - source code - -
- -
-   - - - - - - -
test_addprevious_root_pi(self) - source code - -
- -
-   - - - - - - -
test_addnext_pi(self) - source code - -
- -
-   - - - - - - -
test_addnext_root_pi(self) - source code - -
- -
-   - - - - - - -
test_addnext_comment(self) - source code - -
- -
-   - - - - - - -
test_addnext_root_comment(self) - source code - -
- -
-   - - - - - - -
test_addprevious_comment(self) - source code - -
- -
-   - - - - - - -
test_addprevious_root_comment(self) - source code - -
- -
-   - - - - - - -
test_attribute_values(self) - source code - -
- -
-   - - - - - - -
test_comment_empty(self) - source code - -
- -
-   - - - - - - -
test_comment_parse_empty(self) - source code - -
- -
-   - - - - - - -
test_comment_no_proxy_yet(self) - source code - -
- -
-   - - - - - - -
test_comment_immutable(self) - source code - -
- -
-   - - - - - - -
test_dump_none(self) - source code - -
- -
-   - - - - - - -
test_prefix(self) - source code - -
- -
-   - - - - - - -
test_prefix_default_ns(self) - source code - -
- -
-   - - - - - - -
test_getparent(self) - source code - -
- -
-   - - - - - - -
test_iterchildren(self) - source code - -
- -
-   - - - - - - -
test_iterchildren_reversed(self) - source code - -
- -
-   - - - - - - -
test_iterchildren_tag(self) - source code - -
- -
-   - - - - - - -
test_iterchildren_tag_reversed(self) - source code - -
- -
-   - - - - - - -
test_iterchildren_tag_multiple(self) - source code - -
- -
-   - - - - - - -
test_iterchildren_tag_multiple_reversed(self) - source code - -
- -
-   - - - - - - -
test_iterancestors(self) - source code - -
- -
-   - - - - - - -
test_iterancestors_tag(self) - source code - -
- -
-   - - - - - - -
test_iterancestors_tag_multiple(self) - source code - -
- -
-   - - - - - - -
test_iterdescendants(self) - source code - -
- -
-   - - - - - - -
test_iterdescendants_tag(self) - source code - -
- -
-   - - - - - - -
test_iterdescendants_tag_multiple(self) - source code - -
- -
-   - - - - - - -
test_getroottree(self) - source code - -
- -
-   - - - - - - -
test_getnext(self) - source code - -
- -
-   - - - - - - -
test_getprevious(self) - source code - -
- -
-   - - - - - - -
test_itersiblings(self) - source code - -
- -
-   - - - - - - -
test_itersiblings_tag(self) - source code - -
- -
-   - - - - - - -
test_itersiblings_tag_multiple(self) - source code - -
- -
-   - - - - - - -
test_parseid(self) - source code - -
- -
-   - - - - - - -
test_XMLDTDID(self) - source code - -
- -
-   - - - - - - -
test_XMLDTDID_empty(self) - source code - -
- -
-   - - - - - - -
_checkIDDict(self, - dic, - expected) - source code - -
- -
-   - - - - - - -
test_namespaces(self) - source code - -
- -
-   - - - - - - -
test_namespaces_default(self) - source code - -
- -
-   - - - - - - -
test_namespaces_default_and_attr(self) - source code - -
- -
-   - - - - - - -
test_namespaces_elementtree(self) - source code - -
- -
-   - - - - - - -
test_namespaces_default_copy_element(self) - source code - -
- -
-   - - - - - - -
test_namespaces_copy_element(self) - source code - -
- -
-   - - - - - - -
test_namespaces_reuse_after_move(self) - source code - -
- -
-   - - - - - - -
test_namespace_cleanup(self) - source code - -
- -
-   - - - - - - -
test_element_nsmap(self) - source code - -
- -
-   - - - - - - -
test_subelement_nsmap(self) - source code - -
- -
-   - - - - - - -
test_html_prefix_nsmap(self) - source code - -
- -
-   - - - - - - -
test_getiterator_filter_multiple(self) - source code - -
- -
-   - - - - - - -
test_getiterator_filter_multiple_tuple(self) - source code - -
- -
-   - - - - - - -
test_getiterator_filter_namespace(self) - source code - -
- -
-   - - - - - - -
test_getiterator_filter_local_name(self) - source code - -
- -
-   - - - - - - -
test_getiterator_filter_entities(self) - source code - -
- -
-   - - - - - - -
test_getiterator_filter_element(self) - source code - -
- -
-   - - - - - - -
test_getiterator_filter_all_comment_pi(self) - source code - -
- -
-   - - - - - - -
test_elementtree_find_qname(self) - source code - -
- -
-   - - - - - - -
test_elementtree_findall_qname(self) - source code - -
- -
-   - - - - - - -
test_elementtree_findall_ns_qname(self) - source code - -
- -
-   - - - - - - -
test_findall_ns(self) - source code - -
- -
-   - - - - - - -
test_findall_syntax_error(self) - source code - -
- -
-   - - - - - - -
test_index(self) - source code - -
- -
-   - - - - - - -
test_replace(self) - source code - -
- -
-   - - - - - - -
test_replace_new(self) - source code - -
- -
-   - - - - - - -
test_setslice_all_empty_reversed(self) - source code - -
- -
-   - - - - - - -
test_setslice_step(self) - source code - -
- -
-   - - - - - - -
test_setslice_step_negative(self) - source code - -
- -
-   - - - - - - -
test_setslice_step_negative2(self) - source code - -
- -
-   - - - - - - -
test_setslice_step_overrun(self) - source code - -
- -
-   - - - - - - -
test_sourceline_XML(self) - source code - -
- -
-   - - - - - - -
test_sourceline_parse(self) - source code - -
- -
-   - - - - - - -
test_sourceline_iterparse_end(self) - source code - -
- -
-   - - - - - - -
test_sourceline_iterparse_start(self) - source code - -
- -
-   - - - - - - -
test_sourceline_element(self) - source code - -
- -
-   - - - - - - -
test_XML_base_url_docinfo(self) - source code - -
- -
-   - - - - - - -
test_XML_set_base_url_docinfo(self) - source code - -
- -
-   - - - - - - -
test_parse_stringio_base_url(self) - source code - -
- -
-   - - - - - - -
test_parse_base_url_docinfo(self) - source code - -
- -
-   - - - - - - -
test_HTML_base_url_docinfo(self) - source code - -
- -
-   - - - - - - -
test_docinfo_public(self) - source code - -
- -
-   - - - - - - -
test_docinfo_system(self) - source code - -
- -
-   - - - - - - -
test_docinfo_empty(self) - source code - -
- -
-   - - - - - - -
test_docinfo_name_only(self) - source code - -
- -
-   - - - - - - -
test_doctype_name_only_roundtrip(self) - source code - -
- -
-   - - - - - - -
test_doctype_output_override(self) - source code - -
- -
-   - - - - - - -
test_xml_base(self) - source code - -
- -
-   - - - - - - -
test_xml_base_attribute(self) - source code - -
- -
-   - - - - - - -
test_html_base(self) - source code - -
- -
-   - - - - - - -
test_html_base_tag(self) - source code - -
- -
-   - - - - - - -
test_parse_fileobject_unicode(self) - source code - -
- -
-   - - - - - - -
test_dtd_io(self) - source code - -
- -
-   - - - - - - -
test_byte_zero(self) - source code - -
- -
-   - - - - - - -
test_unicode_byte_zero(self) - source code - -
- -
-   - - - - - - -
test_byte_invalid(self) - source code - -
- -
-   - - - - - - -
test_unicode_byte_invalid(self) - source code - -
- -
-   - - - - - - -
test_unicode_byte_invalid_sequence(self) - source code - -
- -
-   - - - - - - -
test_encoding_tostring_utf16(self) - source code - -
- -
-   - - - - - - -
test_tostring_none(self) - source code - -
- -
-   - - - - - - -
test_tostring_pretty(self) - source code - -
- -
-   - - - - - - -
test_tostring_with_tail(self) - source code - -
- -
-   - - - - - - -
test_standalone(self) - source code - -
- -
-   - - - - - - -
test_tostring_standalone(self) - source code - -
- -
-   - - - - - - -
test_tostring_standalone_in_out(self) - source code - -
- -
-   - - - - - - -
test_tostring_method_text_encoding(self) - source code - -
- -
-   - - - - - - -
test_tostring_method_text_unicode(self) - source code - -
- -
-   - - - - - - -
test_tounicode(self) - source code - -
- -
-   - - - - - - -
test_tounicode_element(self) - source code - -
- -
-   - - - - - - -
test_tounicode_none(self) - source code - -
- -
-   - - - - - - -
test_tounicode_element_tail(self) - source code - -
- -
-   - - - - - - -
test_tounicode_pretty(self) - source code - -
- -
-   - - - - - - -
test_tostring_unicode(self) - source code - -
- -
-   - - - - - - -
test_tostring_unicode_element(self) - source code - -
- -
-   - - - - - - -
test_tostring_unicode_none(self) - source code - -
- -
-   - - - - - - -
test_tostring_unicode_element_tail(self) - source code - -
- -
-   - - - - - - -
test_tostring_unicode_pretty(self) - source code - -
- -
-   - - - - - - -
test_pypy_proxy_collect(self) - source code - -
- -
-   - - - - - - -
_writeElement(self, - element, - encoding='us-ascii', - compression=0)
- Write out element for comparison.
- source code - -
- -
-

Inherited from common_imports.HelperTestCase: - parse, - tearDown -

-

Inherited from common_imports.HelperTestCase (private): - _rootstring -

-

Inherited from unittest.case.TestCase: - __call__, - __eq__, - __hash__, - __init__, - __ne__, - __repr__, - __str__, - addCleanup, - addTypeEqualityFunc, - assertAlmostEqual, - assertAlmostEquals, - assertDictContainsSubset, - assertDictEqual, - assertEqual, - assertEquals, - assertGreater, - assertGreaterEqual, - assertIn, - assertIs, - assertIsInstance, - assertIsNone, - assertIsNot, - assertIsNotNone, - assertItemsEqual, - assertLess, - assertLessEqual, - assertListEqual, - assertMultiLineEqual, - assertNotAlmostEqual, - assertNotAlmostEquals, - assertNotEqual, - assertNotEquals, - assertNotIn, - assertNotIsInstance, - assertNotRegexpMatches, - assertRaises, - assertRaisesRegexp, - assertRegexpMatches, - assertSequenceEqual, - assertSetEqual, - assertTrue, - assertTupleEqual, - assert_, - countTestCases, - debug, - defaultTestResult, - doCleanups, - fail, - failIf, - failIfAlmostEqual, - failIfEqual, - failUnless, - failUnlessAlmostEqual, - failUnlessEqual, - failUnlessRaises, - id, - run, - setUp, - shortDescription, - skipTest -

-

Inherited from unittest.case.TestCase (private): - _addSkip, - _baseAssertEqual, - _deprecate, - _formatMessage, - _getAssertEqualityFunc, - _truncateMessage -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __new__, - __reduce__, - __reduce_ex__, - __setattr__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Class Methods[hide private]
-
-

Inherited from unittest.case.TestCase: - setUpClass, - tearDownClass -

-
- - - - - - - - - - - - -
- - - - - -
Class Variables[hide private]
-
-   - - etree
- The lxml.etree module implements the extended ElementTree API -for XML. -
-

Inherited from common_imports.HelperTestCase: - assertFalse -

-

Inherited from unittest.case.TestCase: - longMessage, - maxDiff -

-

Inherited from unittest.case.TestCase (private): - _classSetupFailed, - _diffThreshold -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Class Variable Details[hide private]
-
- -
- -
-

etree

- The lxml.etree module implements the extended ElementTree API -for XML. -
-
-
-
Value:
-
lxml.etree
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.test_etree.ETreeWriteTestCase-class.html b/doc/html/api/lxml.tests.test_etree.ETreeWriteTestCase-class.html deleted file mode 100644 index 4326a2a..0000000 --- a/doc/html/api/lxml.tests.test_etree.ETreeWriteTestCase-class.html +++ /dev/null @@ -1,458 +0,0 @@ - - - - - lxml.tests.test_etree.ETreeWriteTestCase - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module test_etree :: - Class ETreeWriteTestCase - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class ETreeWriteTestCase

source code

-
-               object --+        
-                        |        
-   unittest.case.TestCase --+    
-                            |    
-common_imports.HelperTestCase --+
-                                |
-                               ETreeWriteTestCase
-
- -
- - - - - - - - - -
- - - - - -
Nested Classes[hide private]
-
-

Inherited from unittest.case.TestCase: - failureException -

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
test_write(self) - source code - -
- -
-   - - - - - - -
test_write_gzip(self) - source code - -
- -
-   - - - - - - -
test_write_gzip_level(self) - source code - -
- -
-   - - - - - - -
test_write_file(self) - source code - -
- -
-   - - - - - - -
test_write_file_gzip(self) - source code - -
- -
-   - - - - - - -
test_write_file_gzip_parse(self) - source code - -
- -
-   - - - - - - -
test_write_file_gzipfile_parse(self) - source code - -
- -
-

Inherited from common_imports.HelperTestCase: - parse, - tearDown -

-

Inherited from common_imports.HelperTestCase (private): - _rootstring -

-

Inherited from unittest.case.TestCase: - __call__, - __eq__, - __hash__, - __init__, - __ne__, - __repr__, - __str__, - addCleanup, - addTypeEqualityFunc, - assertAlmostEqual, - assertAlmostEquals, - assertDictContainsSubset, - assertDictEqual, - assertEqual, - assertEquals, - assertGreater, - assertGreaterEqual, - assertIn, - assertIs, - assertIsInstance, - assertIsNone, - assertIsNot, - assertIsNotNone, - assertItemsEqual, - assertLess, - assertLessEqual, - assertListEqual, - assertMultiLineEqual, - assertNotAlmostEqual, - assertNotAlmostEquals, - assertNotEqual, - assertNotEquals, - assertNotIn, - assertNotIsInstance, - assertNotRegexpMatches, - assertRaises, - assertRaisesRegexp, - assertRegexpMatches, - assertSequenceEqual, - assertSetEqual, - assertTrue, - assertTupleEqual, - assert_, - countTestCases, - debug, - defaultTestResult, - doCleanups, - fail, - failIf, - failIfAlmostEqual, - failIfEqual, - failUnless, - failUnlessAlmostEqual, - failUnlessEqual, - failUnlessRaises, - id, - run, - setUp, - shortDescription, - skipTest -

-

Inherited from unittest.case.TestCase (private): - _addSkip, - _baseAssertEqual, - _deprecate, - _formatMessage, - _getAssertEqualityFunc, - _truncateMessage -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __new__, - __reduce__, - __reduce_ex__, - __setattr__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Class Methods[hide private]
-
-

Inherited from unittest.case.TestCase: - setUpClass, - tearDownClass -

-
- - - - - - - - - -
- - - - - -
Class Variables[hide private]
-
-

Inherited from common_imports.HelperTestCase: - assertFalse -

-

Inherited from unittest.case.TestCase: - longMessage, - maxDiff -

-

Inherited from unittest.case.TestCase (private): - _classSetupFailed, - _diffThreshold -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.test_etree.ETreeXIncludeTestCase-class.html b/doc/html/api/lxml.tests.test_etree.ETreeXIncludeTestCase-class.html deleted file mode 100644 index 0b6690f..0000000 --- a/doc/html/api/lxml.tests.test_etree.ETreeXIncludeTestCase-class.html +++ /dev/null @@ -1,370 +0,0 @@ - - - - - lxml.tests.test_etree.ETreeXIncludeTestCase - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module test_etree :: - Class ETreeXIncludeTestCase - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class ETreeXIncludeTestCase

source code

-
-               object --+            
-                        |            
-   unittest.case.TestCase --+        
-                            |        
-common_imports.HelperTestCase --+    
-                                |    
-                _XIncludeTestCase --+
-                                    |
-                                   ETreeXIncludeTestCase
-
- -
- - - - - - - - - -
- - - - - -
Nested Classes[hide private]
-
-

Inherited from unittest.case.TestCase: - failureException -

-
- - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
include(self, - tree) - source code - -
- -
-

Inherited from _XIncludeTestCase: - test_xinclude, - test_xinclude_resolver, - test_xinclude_text -

-

Inherited from common_imports.HelperTestCase: - parse, - tearDown -

-

Inherited from common_imports.HelperTestCase (private): - _rootstring -

-

Inherited from unittest.case.TestCase: - __call__, - __eq__, - __hash__, - __init__, - __ne__, - __repr__, - __str__, - addCleanup, - addTypeEqualityFunc, - assertAlmostEqual, - assertAlmostEquals, - assertDictContainsSubset, - assertDictEqual, - assertEqual, - assertEquals, - assertGreater, - assertGreaterEqual, - assertIn, - assertIs, - assertIsInstance, - assertIsNone, - assertIsNot, - assertIsNotNone, - assertItemsEqual, - assertLess, - assertLessEqual, - assertListEqual, - assertMultiLineEqual, - assertNotAlmostEqual, - assertNotAlmostEquals, - assertNotEqual, - assertNotEquals, - assertNotIn, - assertNotIsInstance, - assertNotRegexpMatches, - assertRaises, - assertRaisesRegexp, - assertRegexpMatches, - assertSequenceEqual, - assertSetEqual, - assertTrue, - assertTupleEqual, - assert_, - countTestCases, - debug, - defaultTestResult, - doCleanups, - fail, - failIf, - failIfAlmostEqual, - failIfEqual, - failUnless, - failUnlessAlmostEqual, - failUnlessEqual, - failUnlessRaises, - id, - run, - setUp, - shortDescription, - skipTest -

-

Inherited from unittest.case.TestCase (private): - _addSkip, - _baseAssertEqual, - _deprecate, - _formatMessage, - _getAssertEqualityFunc, - _truncateMessage -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __new__, - __reduce__, - __reduce_ex__, - __setattr__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Class Methods[hide private]
-
-

Inherited from unittest.case.TestCase: - setUpClass, - tearDownClass -

-
- - - - - - - - - -
- - - - - -
Class Variables[hide private]
-
-

Inherited from common_imports.HelperTestCase: - assertFalse -

-

Inherited from unittest.case.TestCase: - longMessage, - maxDiff -

-

Inherited from unittest.case.TestCase (private): - _classSetupFailed, - _diffThreshold -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.test_etree.ElementIncludeTestCase-class.html b/doc/html/api/lxml.tests.test_etree.ElementIncludeTestCase-class.html deleted file mode 100644 index 1fd7e33..0000000 --- a/doc/html/api/lxml.tests.test_etree.ElementIncludeTestCase-class.html +++ /dev/null @@ -1,370 +0,0 @@ - - - - - lxml.tests.test_etree.ElementIncludeTestCase - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module test_etree :: - Class ElementIncludeTestCase - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class ElementIncludeTestCase

source code

-
-               object --+            
-                        |            
-   unittest.case.TestCase --+        
-                            |        
-common_imports.HelperTestCase --+    
-                                |    
-                _XIncludeTestCase --+
-                                    |
-                                   ElementIncludeTestCase
-
- -
- - - - - - - - - -
- - - - - -
Nested Classes[hide private]
-
-

Inherited from unittest.case.TestCase: - failureException -

-
- - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
include(self, - tree) - source code - -
- -
-

Inherited from _XIncludeTestCase: - test_xinclude, - test_xinclude_resolver, - test_xinclude_text -

-

Inherited from common_imports.HelperTestCase: - parse, - tearDown -

-

Inherited from common_imports.HelperTestCase (private): - _rootstring -

-

Inherited from unittest.case.TestCase: - __call__, - __eq__, - __hash__, - __init__, - __ne__, - __repr__, - __str__, - addCleanup, - addTypeEqualityFunc, - assertAlmostEqual, - assertAlmostEquals, - assertDictContainsSubset, - assertDictEqual, - assertEqual, - assertEquals, - assertGreater, - assertGreaterEqual, - assertIn, - assertIs, - assertIsInstance, - assertIsNone, - assertIsNot, - assertIsNotNone, - assertItemsEqual, - assertLess, - assertLessEqual, - assertListEqual, - assertMultiLineEqual, - assertNotAlmostEqual, - assertNotAlmostEquals, - assertNotEqual, - assertNotEquals, - assertNotIn, - assertNotIsInstance, - assertNotRegexpMatches, - assertRaises, - assertRaisesRegexp, - assertRegexpMatches, - assertSequenceEqual, - assertSetEqual, - assertTrue, - assertTupleEqual, - assert_, - countTestCases, - debug, - defaultTestResult, - doCleanups, - fail, - failIf, - failIfAlmostEqual, - failIfEqual, - failUnless, - failUnlessAlmostEqual, - failUnlessEqual, - failUnlessRaises, - id, - run, - setUp, - shortDescription, - skipTest -

-

Inherited from unittest.case.TestCase (private): - _addSkip, - _baseAssertEqual, - _deprecate, - _formatMessage, - _getAssertEqualityFunc, - _truncateMessage -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __new__, - __reduce__, - __reduce_ex__, - __setattr__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Class Methods[hide private]
-
-

Inherited from unittest.case.TestCase: - setUpClass, - tearDownClass -

-
- - - - - - - - - -
- - - - - -
Class Variables[hide private]
-
-

Inherited from common_imports.HelperTestCase: - assertFalse -

-

Inherited from unittest.case.TestCase: - longMessage, - maxDiff -

-

Inherited from unittest.case.TestCase (private): - _classSetupFailed, - _diffThreshold -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.test_etree._XIncludeTestCase-class.html b/doc/html/api/lxml.tests.test_etree._XIncludeTestCase-class.html deleted file mode 100644 index f928f6e..0000000 --- a/doc/html/api/lxml.tests.test_etree._XIncludeTestCase-class.html +++ /dev/null @@ -1,400 +0,0 @@ - - - - - lxml.tests.test_etree._XIncludeTestCase - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module test_etree :: - Class _XIncludeTestCase - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class _XIncludeTestCase

source code

-
-               object --+        
-                        |        
-   unittest.case.TestCase --+    
-                            |    
-common_imports.HelperTestCase --+
-                                |
-                               _XIncludeTestCase
-
- -
Known Subclasses:
-
- -
- -
- - - - - - - - - -
- - - - - -
Nested Classes[hide private]
-
-

Inherited from unittest.case.TestCase: - failureException -

-
- - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
test_xinclude_text(self) - source code - -
- -
-   - - - - - - -
test_xinclude(self) - source code - -
- -
-   - - - - - - -
test_xinclude_resolver(self) - source code - -
- -
-

Inherited from common_imports.HelperTestCase: - parse, - tearDown -

-

Inherited from common_imports.HelperTestCase (private): - _rootstring -

-

Inherited from unittest.case.TestCase: - __call__, - __eq__, - __hash__, - __init__, - __ne__, - __repr__, - __str__, - addCleanup, - addTypeEqualityFunc, - assertAlmostEqual, - assertAlmostEquals, - assertDictContainsSubset, - assertDictEqual, - assertEqual, - assertEquals, - assertGreater, - assertGreaterEqual, - assertIn, - assertIs, - assertIsInstance, - assertIsNone, - assertIsNot, - assertIsNotNone, - assertItemsEqual, - assertLess, - assertLessEqual, - assertListEqual, - assertMultiLineEqual, - assertNotAlmostEqual, - assertNotAlmostEquals, - assertNotEqual, - assertNotEquals, - assertNotIn, - assertNotIsInstance, - assertNotRegexpMatches, - assertRaises, - assertRaisesRegexp, - assertRegexpMatches, - assertSequenceEqual, - assertSetEqual, - assertTrue, - assertTupleEqual, - assert_, - countTestCases, - debug, - defaultTestResult, - doCleanups, - fail, - failIf, - failIfAlmostEqual, - failIfEqual, - failUnless, - failUnlessAlmostEqual, - failUnlessEqual, - failUnlessRaises, - id, - run, - setUp, - shortDescription, - skipTest -

-

Inherited from unittest.case.TestCase (private): - _addSkip, - _baseAssertEqual, - _deprecate, - _formatMessage, - _getAssertEqualityFunc, - _truncateMessage -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __new__, - __reduce__, - __reduce_ex__, - __setattr__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Class Methods[hide private]
-
-

Inherited from unittest.case.TestCase: - setUpClass, - tearDownClass -

-
- - - - - - - - - -
- - - - - -
Class Variables[hide private]
-
-

Inherited from common_imports.HelperTestCase: - assertFalse -

-

Inherited from unittest.case.TestCase: - longMessage, - maxDiff -

-

Inherited from unittest.case.TestCase (private): - _classSetupFailed, - _diffThreshold -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.test_htmlparser-module.html b/doc/html/api/lxml.tests.test_htmlparser-module.html deleted file mode 100644 index 466f3f3..0000000 --- a/doc/html/api/lxml.tests.test_htmlparser-module.html +++ /dev/null @@ -1,254 +0,0 @@ - - - - - lxml.tests.test_htmlparser - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module test_htmlparser - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Module test_htmlparser

source code

-HTML parser test cases for etree - - - - - - - - - - - - - -
- - - - - -
Classes[hide private]
-
-   - - unicode
- str(object) -> string -
-   - - HtmlParserTestCase
- HTML parser test cases -
- - - - - - - - - -
- - - - - -
Functions[hide private]
-
-   - - - - - - -
test_suite() - source code - -
- -
- - - - - - - - - - - - -
- - - - - -
Variables[hide private]
-
-   - - this_dir = '/home/sbehnel/source/Python/lxml/lxml-release/src/... -
-   - - __package__ = 'lxml.tests' -
- - - - - - -
- - - - - -
Variables Details[hide private]
-
- -
- -
-

this_dir

- -
-
-
-
Value:
-
-'/home/sbehnel/source/Python/lxml/lxml-release/src/lxml/tests'
-
-
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.test_htmlparser-pysrc.html b/doc/html/api/lxml.tests.test_htmlparser-pysrc.html deleted file mode 100644 index 2179afa..0000000 --- a/doc/html/api/lxml.tests.test_htmlparser-pysrc.html +++ /dev/null @@ -1,1305 +0,0 @@ - - - - - lxml.tests.test_htmlparser - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module test_htmlparser - - - - - - -
[hide private]
[frames] | no frames]
-
-

Source Code for Module lxml.tests.test_htmlparser

-
-  1  # -*- coding: utf-8 -*- 
-  2   
-  3  """ 
-  4  HTML parser test cases for etree 
-  5  """ 
-  6   
-  7  import unittest 
-  8  import tempfile, os, os.path, sys 
-  9   
- 10  this_dir = os.path.dirname(__file__) 
- 11  if this_dir not in sys.path: 
- 12      sys.path.insert(0, this_dir) # needed for Py3 
- 13   
- 14  from common_imports import etree, StringIO, BytesIO, fileInTestDir, _bytes, _str 
- 15  from common_imports import SillyFileLike, HelperTestCase, write_to_file 
- 16   
- 17  try: 
- 18      unicode 
- 19  except NameError: 
- 20      unicode = str 
- 21   
-
22 -class HtmlParserTestCase(HelperTestCase): -
23 """HTML parser test cases - 24 """ - 25 etree = etree - 26 - 27 html_str = _bytes("<html><head><title>test</title></head><body><h1>page title</h1></body></html>") - 28 html_str_pretty = _bytes("""\ - 29 <html> - 30 <head><title>test</title></head> - 31 <body><h1>page title</h1></body> - 32 </html> - 33 """) - 34 broken_html_str = _bytes("<html><head><title>test<body><h1>page title</h3></p></html>") - 35 uhtml_str = _str("<html><head><title>test á\uF8D2</title></head><body><h1>page á\uF8D2 title</h1></body></html>") - 36 -
37 - def tearDown(self): -
38 super(HtmlParserTestCase, self).tearDown() - 39 self.etree.set_default_parser() -
40 -
41 - def test_module_HTML(self): -
42 element = self.etree.HTML(self.html_str) - 43 self.assertEqual(self.etree.tostring(element, method="html"), - 44 self.html_str) -
45 -
46 - def test_module_HTML_unicode(self): -
47 element = self.etree.HTML(self.uhtml_str) - 48 self.assertEqual(unicode(self.etree.tostring(element, method="html", - 49 encoding='UTF8'), 'UTF8'), - 50 unicode(self.uhtml_str.encode('UTF8'), 'UTF8')) -
51 -
53 element = self.etree.HTML(self.html_str) - 54 self.assertEqual(self.etree.tostring(element, method="html", pretty_print=True), - 55 self.html_str_pretty) -
56 -
58 parser = self.etree.HTMLParser(recover=False) - 59 parse = self.etree.parse - 60 f = BytesIO("<html></body>") - 61 self.assertRaises(self.etree.XMLSyntaxError, - 62 parse, f, parser) -
63 -
65 parser = self.etree.HTMLParser() - 66 Element = parser.makeelement - 67 - 68 el = Element('name') - 69 self.assertRaises(ValueError, Element, '{}') - 70 self.assertRaises(ValueError, setattr, el, 'tag', '{}') - 71 - 72 self.assertRaises(ValueError, Element, '{test}') - 73 self.assertRaises(ValueError, setattr, el, 'tag', '{test}') -
74 -
76 parser = self.etree.HTMLParser() - 77 Element = parser.makeelement - 78 - 79 pname = Element('p:name') - 80 self.assertEquals(pname.tag, 'p:name') - 81 - 82 pname = Element('{test}p:name') - 83 self.assertEquals(pname.tag, '{test}p:name') - 84 - 85 pname = Element('name') - 86 pname.tag = 'p:name' - 87 self.assertEquals(pname.tag, 'p:name') -
88 -
90 parser = self.etree.HTMLParser() - 91 Element = parser.makeelement - 92 - 93 self.assertRaises(ValueError, Element, 'p"name') - 94 self.assertRaises(ValueError, Element, "na'me") - 95 self.assertRaises(ValueError, Element, '{test}"name') - 96 self.assertRaises(ValueError, Element, "{test}name'") - 97 - 98 el = Element('name') - 99 self.assertRaises(ValueError, setattr, el, 'tag', "pname'") -100 self.assertRaises(ValueError, setattr, el, 'tag', '"pname') -101 self.assertEquals(el.tag, "name") -
102 -
104 parser = self.etree.HTMLParser() -105 Element = parser.makeelement -106 -107 self.assertRaises(ValueError, Element, ' name ') -108 self.assertRaises(ValueError, Element, 'na me') -109 self.assertRaises(ValueError, Element, '{test} name') -110 -111 el = Element('name') -112 self.assertRaises(ValueError, setattr, el, 'tag', ' name ') -113 self.assertEquals(el.tag, "name") -
114 -
116 parser = self.etree.HTMLParser() -117 Element = parser.makeelement -118 -119 SubElement = self.etree.SubElement -120 -121 el = Element('name') -122 self.assertRaises(ValueError, SubElement, el, '{}') -123 self.assertRaises(ValueError, SubElement, el, '{test}') -
124 -
126 parser = self.etree.HTMLParser() -127 Element = parser.makeelement -128 SubElement = self.etree.SubElement -129 -130 el = Element('name') -131 pname = SubElement(el, 'p:name') -132 self.assertEquals(pname.tag, 'p:name') -133 -134 pname = SubElement(el, '{test}p:name') -135 self.assertEquals(pname.tag, '{test}p:name') -
136 -
138 parser = self.etree.HTMLParser() -139 Element = parser.makeelement -140 SubElement = self.etree.SubElement -141 -142 el = Element('name') -143 self.assertRaises(ValueError, SubElement, el, "name'") -144 self.assertRaises(ValueError, SubElement, el, 'na"me') -145 self.assertRaises(ValueError, SubElement, el, "{test}na'me") -146 self.assertRaises(ValueError, SubElement, el, '{test}"name') -
147 -
149 parser = self.etree.HTMLParser() -150 Element = parser.makeelement -151 SubElement = self.etree.SubElement -152 -153 el = Element('name') -154 self.assertRaises(ValueError, SubElement, el, ' name ') -155 self.assertRaises(ValueError, SubElement, el, 'na me') -156 self.assertRaises(ValueError, SubElement, el, '{test} name') -
157 -
159 parser = self.etree.HTMLParser(recover=False) -160 parse = self.etree.parse -161 f = BytesIO(self.broken_html_str) -162 self.assertRaises(self.etree.XMLSyntaxError, -163 parse, f, parser) -
164 -
166 text = _str('Søk på nettet') -167 html_latin1 = (_str('<p>%s</p>') % text).encode('iso-8859-1') -168 -169 tree = self.etree.parse( -170 BytesIO(html_latin1), -171 self.etree.HTMLParser(encoding="iso-8859-1")) -172 p = tree.find("//p") -173 self.assertEquals(p.text, text) -
174 -
176 text = _str('Søk på nettet') -177 wrong_head = _str(''' -178 <head> -179 <meta http-equiv="Content-Type" -180 content="text/html; charset=UTF-8" /> -181 </head>''') -182 html_latin1 = (_str('<html>%s<body><p>%s</p></body></html>') % (wrong_head, -183 text) -184 ).encode('iso-8859-1') -185 -186 self.assertRaises(self.etree.ParseError, -187 self.etree.parse, -188 BytesIO(html_latin1)) -189 -190 tree = self.etree.parse( -191 BytesIO(html_latin1), -192 self.etree.HTMLParser(encoding="iso-8859-1")) -193 p = tree.find("//p") -194 self.assertEquals(p.text, text) -
195 -
196 - def test_module_HTML_broken(self): -
197 element = self.etree.HTML(self.broken_html_str) -198 self.assertEqual(self.etree.tostring(element, method="html"), -199 self.html_str) -
200 -
201 - def test_module_HTML_cdata(self): -
202 # by default, libxml2 generates CDATA nodes for <script> content -203 html = _bytes('<html><head><style>foo</style></head></html>') -204 element = self.etree.HTML(html) -205 self.assertEquals(element[0][0].text, "foo") -
206 -
207 - def test_module_HTML_access(self): -
208 element = self.etree.HTML(self.html_str) -209 self.assertEqual(element[0][0].tag, 'title') -
210 -
211 - def test_module_parse_html(self): -
212 parser = self.etree.HTMLParser() -213 filename = tempfile.mktemp(suffix=".html") -214 write_to_file(filename, self.html_str, 'wb') -215 try: -216 f = open(filename, 'rb') -217 tree = self.etree.parse(f, parser) -218 f.close() -219 self.assertEqual(self.etree.tostring(tree.getroot(), method="html"), -220 self.html_str) -221 finally: -222 os.remove(filename) -
223 -
225 parser = self.etree.HTMLParser() -226 f = SillyFileLike(self.html_str) -227 tree = self.etree.parse(f, parser) -228 html = self.etree.tostring(tree.getroot(), -229 method="html", encoding='UTF-8') -230 self.assertEqual(html, self.html_str) -
231 -232 ## def test_module_parse_html_filelike_unicode(self): -233 ## parser = self.etree.HTMLParser() -234 ## f = SillyFileLike(self.uhtml_str) -235 ## tree = self.etree.parse(f, parser) -236 ## html = self.etree.tostring(tree.getroot(), encoding='UTF-8') -237 ## self.assertEqual(unicode(html, 'UTF-8'), self.uhtml_str) -238 -
239 - def test_html_file_error(self): -
240 parser = self.etree.HTMLParser() -241 parse = self.etree.parse -242 self.assertRaises(IOError, -243 parse, "__some_hopefully_nonexisting_file__.html", -244 parser) -
245 -
247 self.assertRaises(self.etree.XMLSyntaxError, -248 self.etree.parse, BytesIO(self.broken_html_str)) -249 -250 self.etree.set_default_parser( self.etree.HTMLParser() ) -251 -252 tree = self.etree.parse(BytesIO(self.broken_html_str)) -253 self.assertEqual(self.etree.tostring(tree.getroot(), method="html"), -254 self.html_str) -255 -256 self.etree.set_default_parser() -257 -258 self.assertRaises(self.etree.XMLSyntaxError, -259 self.etree.parse, BytesIO(self.broken_html_str)) -
260 -
261 - def test_html_iterparse(self): -
262 iterparse = self.etree.iterparse -263 f = BytesIO( -264 '<html><head><title>TITLE</title><body><p>P</p></body></html>') -265 -266 iterator = iterparse(f, html=True) -267 self.assertEquals(None, iterator.root) -268 -269 events = list(iterator) -270 root = iterator.root -271 self.assert_(root is not None) -272 self.assertEquals( -273 [('end', root[0][0]), ('end', root[0]), ('end', root[1][0]), -274 ('end', root[1]), ('end', root)], -275 events) -
276 -
277 - def test_html_iterparse_file(self): -
278 iterparse = self.etree.iterparse -279 iterator = iterparse(fileInTestDir("shakespeare.html"), -280 html=True) -281 -282 self.assertEquals(None, iterator.root) -283 events = list(iterator) -284 root = iterator.root -285 self.assert_(root is not None) -286 self.assertEquals(249, len(events)) -287 self.assertEquals( -288 [], -289 [ event for (event, element) in events if event != 'end' ]) -
290 -
291 - def test_html_iterparse_start(self): -
292 iterparse = self.etree.iterparse -293 f = BytesIO( -294 '<html><head><title>TITLE</title><body><p>P</p></body></html>') -295 -296 iterator = iterparse(f, html=True, events=('start',)) -297 self.assertEquals(None, iterator.root) -298 -299 events = list(iterator) -300 root = iterator.root -301 self.assert_(root is not None) -302 self.assertEquals( -303 [('start', root), ('start', root[0]), ('start', root[0][0]), -304 ('start', root[1]), ('start', root[1][0])], -305 events) -
306 -
308 assertFalse = self.assertFalse -309 events = [] -310 class Target(object): -311 def start(self, tag, attrib): -312 events.append(("start", tag)) -313 assertFalse(attrib) -
314 def end(self, tag): -315 events.append(("end", tag)) -
316 def close(self): -317 return "DONE" -318 -319 parser = self.etree.HTMLParser(target=Target()) -320 -321 parser.feed("<html><body></body></html>") -322 done = parser.close() -323 -324 self.assertEquals("DONE", done) -325 self.assertEquals([ -326 ("start", "html"), ("start", "body"), -327 ("end", "body"), ("end", "html")], events) -328 -
330 assertFalse = self.assertFalse -331 events = [] -332 class Target(object): -333 def start(self, tag, attrib): -334 events.append(("start", tag)) -335 assertFalse(attrib) -
336 def end(self, tag): -337 events.append(("end", tag)) -338 def doctype(self, *args): -339 events.append(("doctype", args)) -340 def close(self): -341 return "DONE" -342 -343 parser = self.etree.HTMLParser(target=Target()) -344 parser.feed("<!DOCTYPE><html><body></body></html>") -345 done = parser.close() -346 -347 self.assertEquals("DONE", done) -348 self.assertEquals([ -349 ("doctype", (None, None, None)), -350 ("start", "html"), ("start", "body"), -351 ("end", "body"), ("end", "html")], events) -352 -
354 assertFalse = self.assertFalse -355 events = [] -356 class Target(object): -357 def start(self, tag, attrib): -358 events.append(("start", tag)) -359 assertFalse(attrib) -
360 def end(self, tag): -361 events.append(("end", tag)) -362 def doctype(self, *args): -363 events.append(("doctype", args)) -364 def close(self): -365 return "DONE" -366 -367 parser = self.etree.HTMLParser(target=Target()) -368 parser.feed("<!DOCTYPE html><html><body></body></html>") -369 done = parser.close() -370 -371 self.assertEquals("DONE", done) -372 self.assertEquals([ -373 ("doctype", ("html", None, None)), -374 ("start", "html"), ("start", "body"), -375 ("end", "body"), ("end", "html")], events) -376 -
378 assertFalse = self.assertFalse -379 events = [] -380 class Target(object): -381 def start(self, tag, attrib): -382 events.append(("start", tag)) -383 assertFalse(attrib) -
384 def end(self, tag): -385 events.append(("end", tag)) -386 def doctype(self, *args): -387 events.append(("doctype", args)) -388 def close(self): -389 return "DONE" -390 -391 parser = self.etree.HTMLParser(target=Target()) -392 parser.feed('<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "sys.dtd">' -393 '<html><body></body></html>') -394 done = parser.close() -395 -396 self.assertEquals("DONE", done) -397 self.assertEquals([ -398 ("doctype", ("html", "-//W3C//DTD HTML 4.01//EN", "sys.dtd")), -399 ("start", "html"), ("start", "body"), -400 ("end", "body"), ("end", "html")], events) -401 -402 -
403 -def test_suite(): -
404 suite = unittest.TestSuite() -405 suite.addTests([unittest.makeSuite(HtmlParserTestCase)]) -406 return suite -
407 -408 if __name__ == '__main__': -409 print('to test use test.py %s' % __file__) -410 -
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.test_htmlparser.HtmlParserTestCase-class.html b/doc/html/api/lxml.tests.test_htmlparser.HtmlParserTestCase-class.html deleted file mode 100644 index b3ed759..0000000 --- a/doc/html/api/lxml.tests.test_htmlparser.HtmlParserTestCase-class.html +++ /dev/null @@ -1,1026 +0,0 @@ - - - - - lxml.tests.test_htmlparser.HtmlParserTestCase - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module test_htmlparser :: - Class HtmlParserTestCase - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class HtmlParserTestCase

source code

-
-               object --+        
-                        |        
-   unittest.case.TestCase --+    
-                            |    
-common_imports.HelperTestCase --+
-                                |
-                               HtmlParserTestCase
-
- -
-HTML parser test cases - - - - - - - - - - -
- - - - - -
Nested Classes[hide private]
-
-

Inherited from unittest.case.TestCase: - failureException -

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
tearDown(self)
- Hook method for deconstructing the test fixture after testing it.
- source code - -
- -
-   - - - - - - -
test_module_HTML(self) - source code - -
- -
-   - - - - - - -
test_module_HTML_unicode(self) - source code - -
- -
-   - - - - - - -
test_module_HTML_pretty_print(self) - source code - -
- -
-   - - - - - - -
test_module_parse_html_error(self) - source code - -
- -
-   - - - - - - -
test_html_element_name_empty(self) - source code - -
- -
-   - - - - - - -
test_html_element_name_colon(self) - source code - -
- -
-   - - - - - - -
test_html_element_name_quote(self) - source code - -
- -
-   - - - - - - -
test_html_element_name_space(self) - source code - -
- -
-   - - - - - - -
test_html_subelement_name_empty(self) - source code - -
- -
-   - - - - - - -
test_html_subelement_name_colon(self) - source code - -
- -
-   - - - - - - -
test_html_subelement_name_quote(self) - source code - -
- -
-   - - - - - - -
test_html_subelement_name_space(self) - source code - -
- -
-   - - - - - - -
test_module_parse_html_norecover(self) - source code - -
- -
-   - - - - - - -
test_parse_encoding_8bit_explicit(self) - source code - -
- -
-   - - - - - - -
test_parse_encoding_8bit_override(self) - source code - -
- -
-   - - - - - - -
test_module_HTML_broken(self) - source code - -
- -
-   - - - - - - -
test_module_HTML_cdata(self) - source code - -
- -
-   - - - - - - -
test_module_HTML_access(self) - source code - -
- -
-   - - - - - - -
test_module_parse_html(self) - source code - -
- -
-   - - - - - - -
test_module_parse_html_filelike(self) - source code - -
- -
-   - - - - - - -
test_html_file_error(self) - source code - -
- -
-   - - - - - - -
test_default_parser_HTML_broken(self) - source code - -
- -
-   - - - - - - -
test_html_iterparse(self) - source code - -
- -
-   - - - - - - -
test_html_iterparse_file(self) - source code - -
- -
-   - - - - - - -
test_html_iterparse_start(self) - source code - -
- -
-   - - - - - - -
test_html_parser_target_tag(self) - source code - -
- -
-   - - - - - - -
test_html_parser_target_doctype_empty(self) - source code - -
- -
-   - - - - - - -
test_html_parser_target_doctype_html(self) - source code - -
- -
-   - - - - - - -
test_html_parser_target_doctype_html_full(self) - source code - -
- -
-

Inherited from common_imports.HelperTestCase: - parse -

-

Inherited from common_imports.HelperTestCase (private): - _rootstring -

-

Inherited from unittest.case.TestCase: - __call__, - __eq__, - __hash__, - __init__, - __ne__, - __repr__, - __str__, - addCleanup, - addTypeEqualityFunc, - assertAlmostEqual, - assertAlmostEquals, - assertDictContainsSubset, - assertDictEqual, - assertEqual, - assertEquals, - assertGreater, - assertGreaterEqual, - assertIn, - assertIs, - assertIsInstance, - assertIsNone, - assertIsNot, - assertIsNotNone, - assertItemsEqual, - assertLess, - assertLessEqual, - assertListEqual, - assertMultiLineEqual, - assertNotAlmostEqual, - assertNotAlmostEquals, - assertNotEqual, - assertNotEquals, - assertNotIn, - assertNotIsInstance, - assertNotRegexpMatches, - assertRaises, - assertRaisesRegexp, - assertRegexpMatches, - assertSequenceEqual, - assertSetEqual, - assertTrue, - assertTupleEqual, - assert_, - countTestCases, - debug, - defaultTestResult, - doCleanups, - fail, - failIf, - failIfAlmostEqual, - failIfEqual, - failUnless, - failUnlessAlmostEqual, - failUnlessEqual, - failUnlessRaises, - id, - run, - setUp, - shortDescription, - skipTest -

-

Inherited from unittest.case.TestCase (private): - _addSkip, - _baseAssertEqual, - _deprecate, - _formatMessage, - _getAssertEqualityFunc, - _truncateMessage -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __new__, - __reduce__, - __reduce_ex__, - __setattr__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Class Methods[hide private]
-
-

Inherited from unittest.case.TestCase: - setUpClass, - tearDownClass -

-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Class Variables[hide private]
-
-   - - etree
- The lxml.etree module implements the extended ElementTree API -for XML. -
-   - - html_str = '<html><head><title>test</title></head><body><h1>pa... -
-   - - html_str_pretty = '<html>\n<head><title>test</title></head>\n<... -
-   - - broken_html_str = '<html><head><title>test<body><h1>page title... -
-   - - uhtml_str = u'<html><head><title>test á\uF8D2</title></head><... -
-

Inherited from common_imports.HelperTestCase: - assertFalse -

-

Inherited from unittest.case.TestCase: - longMessage, - maxDiff -

-

Inherited from unittest.case.TestCase (private): - _classSetupFailed, - _diffThreshold -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

tearDown(self) -

-
source code  -
- - Hook method for deconstructing the test fixture after testing it. -
-
Overrides: - unittest.case.TestCase.tearDown -
(inherited documentation)
- -
-
-
-
- - - - - - -
- - - - - -
Class Variable Details[hide private]
-
- -
- -
-

etree

- The lxml.etree module implements the extended ElementTree API -for XML. -
-
-
-
Value:
-
lxml.etree
-
-
-
- -
- -
-

html_str

- -
-
-
-
Value:
-
-'<html><head><title>test</title></head><body><h1>page title</h1></body\
-></html>'
-
-
-
-
-
- -
- -
-

html_str_pretty

- -
-
-
-
Value:
-
-'''<html>
-<head><title>test</title></head>
-<body><h1>page title</h1></body>
-</html>
-'''
-
-
-
-
-
- -
- -
-

broken_html_str

- -
-
-
-
Value:
-
-'<html><head><title>test<body><h1>page title</h3></p></html>'
-
-
-
-
-
- -
- -
-

uhtml_str

- -
-
-
-
Value:
-
-u'<html><head><title>test á\uF8D2</title></head><body><h1>page á\uF8\
-D2 title</h1></body></html>'
-
-
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.test_io-module.html b/doc/html/api/lxml.tests.test_io-module.html deleted file mode 100644 index bdd4696..0000000 --- a/doc/html/api/lxml.tests.test_io-module.html +++ /dev/null @@ -1,260 +0,0 @@ - - - - - lxml.tests.test_io - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module test_io - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Module test_io

source code

-IO test cases that apply to both etree and ElementTree - - - - - - - - - - - - - - - - -
- - - - - -
Classes[hide private]
-
-   - - _IOTestCaseBase
- (c)ElementTree compatibility for IO functions/methods -
-   - - ETreeIOTestCase -
-   - - ElementTreeIOTestCase -
- - - - - - - - - -
- - - - - -
Functions[hide private]
-
-   - - - - - - -
test_suite() - source code - -
- -
- - - - - - - - - - - - -
- - - - - -
Variables[hide private]
-
-   - - this_dir = '/home/sbehnel/source/Python/lxml/lxml-release/src/... -
-   - - __package__ = 'lxml.tests' -
- - - - - - -
- - - - - -
Variables Details[hide private]
-
- -
- -
-

this_dir

- -
-
-
-
Value:
-
-'/home/sbehnel/source/Python/lxml/lxml-release/src/lxml/tests'
-
-
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.test_io-pysrc.html b/doc/html/api/lxml.tests.test_io-pysrc.html deleted file mode 100644 index 135c03e..0000000 --- a/doc/html/api/lxml.tests.test_io-pysrc.html +++ /dev/null @@ -1,818 +0,0 @@ - - - - - lxml.tests.test_io - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module test_io - - - - - - -
[hide private]
[frames] | no frames]
-
-

Source Code for Module lxml.tests.test_io

-
-  1  # -*- coding: utf-8 -*- 
-  2   
-  3  """ 
-  4  IO test cases that apply to both etree and ElementTree 
-  5  """ 
-  6   
-  7  import unittest 
-  8  import tempfile, gzip, os, os.path, sys, gc, shutil 
-  9   
- 10  this_dir = os.path.dirname(__file__) 
- 11  if this_dir not in sys.path: 
- 12      sys.path.insert(0, this_dir) # needed for Py3 
- 13   
- 14  from common_imports import etree, ElementTree, fileInTestDir, _str, _bytes 
- 15  from common_imports import SillyFileLike, LargeFileLike, HelperTestCase 
- 16  from common_imports import read_file, write_to_file 
- 17   
-
18 -class _IOTestCaseBase(HelperTestCase): -
19 """(c)ElementTree compatibility for IO functions/methods - 20 """ - 21 etree = None - 22 -
23 - def setUp(self): -
24 """Setting up a minimal tree - 25 """ - 26 self.root = self.etree.Element('a') - 27 self.root_str = self.etree.tostring(self.root) - 28 self.tree = self.etree.ElementTree(self.root) - 29 self._temp_dir = tempfile.mkdtemp() -
30 -
31 - def tearDown(self): -
32 gc.collect() - 33 shutil.rmtree(self._temp_dir) -
34 -
35 - def getTestFilePath(self, name): -
36 return os.path.join(self._temp_dir, name) -
37 -
38 - def buildNodes(self, element, children, depth): -
39 Element = self.etree.Element - 40 - 41 if depth == 0: - 42 return - 43 for i in range(children): - 44 new_element = Element('element_%s_%s' % (depth, i)) - 45 self.buildNodes(new_element, children, depth - 1) - 46 element.append(new_element) -
47 -
48 - def test_tree_io(self): -
49 Element = self.etree.Element - 50 ElementTree = self.etree.ElementTree - 51 - 52 element = Element('top') - 53 element.text = _str("qwrtioüöä\uAABB") - 54 tree = ElementTree(element) - 55 self.buildNodes(element, 10, 3) - 56 f = open(self.getTestFilePath('testdump.xml'), 'wb') - 57 tree.write(f, encoding='UTF-8') - 58 f.close() - 59 f = open(self.getTestFilePath('testdump.xml'), 'rb') - 60 tree = ElementTree(file=f) - 61 f.close() - 62 f = open(self.getTestFilePath('testdump2.xml'), 'wb') - 63 tree.write(f, encoding='UTF-8') - 64 f.close() - 65 f = open(self.getTestFilePath('testdump.xml'), 'rb') - 66 data1 = f.read() - 67 f.close() - 68 f = open(self.getTestFilePath('testdump2.xml'), 'rb') - 69 data2 = f.read() - 70 f.close() - 71 self.assertEquals(data1, data2) -
72 -
73 - def test_tree_io_latin1(self): -
74 Element = self.etree.Element - 75 ElementTree = self.etree.ElementTree - 76 - 77 element = Element('top') - 78 element.text = _str("qwrtioüöäßá") - 79 tree = ElementTree(element) - 80 self.buildNodes(element, 10, 3) - 81 f = open(self.getTestFilePath('testdump.xml'), 'wb') - 82 tree.write(f, encoding='iso-8859-1') - 83 f.close() - 84 f = open(self.getTestFilePath('testdump.xml'), 'rb') - 85 tree = ElementTree(file=f) - 86 f.close() - 87 f = open(self.getTestFilePath('testdump2.xml'), 'wb') - 88 tree.write(f, encoding='iso-8859-1') - 89 f.close() - 90 f = open(self.getTestFilePath('testdump.xml'), 'rb') - 91 data1 = f.read() - 92 f.close() - 93 f = open(self.getTestFilePath('testdump2.xml'), 'rb') - 94 data2 = f.read() - 95 f.close() - 96 self.assertEquals(data1, data2) -
97 -
98 - def test_write_filename(self): -
99 # (c)ElementTree supports filename strings as write argument -100 -101 handle, filename = tempfile.mkstemp(suffix=".xml") -102 self.tree.write(filename) -103 try: -104 self.assertEqual(read_file(filename, 'rb').replace(_bytes('\n'), _bytes('')), -105 self.root_str) -106 finally: -107 os.close(handle) -108 os.remove(filename) -
109 -
111 filename = os.path.join( -112 os.path.join('hopefullynonexistingpathname'), -113 'invalid_file.xml') -114 try: -115 self.tree.write(filename) -116 except IOError: -117 pass -118 else: -119 self.assertTrue( -120 False, "writing to an invalid file path should fail") -
121 -
123 # (c)ElementTree supports gzip instance as parse argument -124 handle, filename = tempfile.mkstemp(suffix=".xml.gz") -125 f = gzip.open(filename, 'wb') -126 f.write(self.root_str) -127 f.close() -128 try: -129 f_gz = gzip.open(filename, 'rb') -130 tree = self.etree.parse(f_gz) -131 f_gz.close() -132 self.assertEqual(self.etree.tostring(tree.getroot()), self.root_str) -133 finally: -134 os.close(handle) -135 os.remove(filename) -
136 -
137 - def test_class_parse_filename(self): -
138 # (c)ElementTree class ElementTree has a 'parse' method that returns -139 # the root of the tree -140 -141 # parse from filename -142 -143 handle, filename = tempfile.mkstemp(suffix=".xml") -144 write_to_file(filename, self.root_str, 'wb') -145 try: -146 tree = self.etree.ElementTree() -147 root = tree.parse(filename) -148 self.assertEqual(self.etree.tostring(root), self.root_str) -149 finally: -150 os.close(handle) -151 os.remove(filename) -
152 -
154 handle, filename = tempfile.mkstemp(suffix=".xml") -155 write_to_file(filename, self.root_str, 'wb') -156 try: -157 tree = self.etree.ElementTree() -158 root = tree.parse(filename) -159 # and now do it again; previous content should still be there -160 root2 = tree.parse(filename) -161 self.assertEquals('a', root.tag) -162 self.assertEquals('a', root2.tag) -163 # now remove all references to root2, and parse again -164 del root2 -165 root3 = tree.parse(filename) -166 self.assertEquals('a', root.tag) -167 self.assertEquals('a', root3.tag) -168 # root2's memory should've been freed here -169 # XXX how to check? -170 finally: -171 os.close(handle) -172 os.remove(filename) -
173 -
175 # (c)ElementTree class ElementTree has a 'parse' method that returns -176 # the root of the tree -177 -178 # parse from file object -179 -180 handle, filename = tempfile.mkstemp(suffix=".xml") -181 try: -182 os.write(handle, self.root_str) -183 f = open(filename, 'rb') -184 tree = self.etree.ElementTree() -185 root = tree.parse(f) -186 f.close() -187 self.assertEqual(self.etree.tostring(root), self.root_str) -188 finally: -189 os.close(handle) -190 os.remove(filename) -
191 -
193 # (c)ElementTree class ElementTree has a 'parse' method that returns -194 # the root of the tree -195 -196 # parse from unamed file object -197 f = SillyFileLike() -198 root = self.etree.ElementTree().parse(f) -199 self.assert_(root.tag.endswith('foo')) -
200 -
202 # parse from unamed file object -203 f = LargeFileLike() -204 tree = self.etree.parse(f) -205 root = tree.getroot() -206 self.assert_(root.tag.endswith('root')) -
207 -
209 class LocalError(Exception): -210 pass -
211 class TestFile: -212 def read(*args): -213 raise LocalError -
214 f = TestFile() -215 self.assertRaises(LocalError, self.etree.parse, f) -216 -
218 class LocalError(Exception): -219 pass -
220 class TestFile: -221 data = '<root>test</' -222 try: -223 next_char = iter(data).next -224 except AttributeError: -225 # Python 3 -226 next_char = iter(data).__next__ -227 counter = 0 -228 def read(self, amount=None): -229 if amount is None: -230 while True: -231 self.read(1) -232 else: -233 try: -234 self.counter += 1 -235 return _bytes(self.next_char()) -236 except StopIteration: -237 raise LocalError -238 f = TestFile() -239 self.assertRaises(LocalError, self.etree.parse, f) -240 self.assertEquals(f.counter, len(f.data)+1) -241 -
243 class TestFile: -244 def read(*args): -245 return 1 -
246 f = TestFile() -247 -248 try: -249 expect_exc = (TypeError, self.etree.ParseError) -250 except AttributeError: -251 expect_exc = TypeError -252 self.assertRaises(expect_exc, self.etree.parse, f) -253 -254 -
255 -class ETreeIOTestCase(_IOTestCaseBase): -
256 etree = etree -
257 -258 if ElementTree: -
259 - class ElementTreeIOTestCase(_IOTestCaseBase): -
261 -
262 -def test_suite(): -
263 suite = unittest.TestSuite() -264 suite.addTests([unittest.makeSuite(ETreeIOTestCase)]) -265 if ElementTree: -266 suite.addTests([unittest.makeSuite(ElementTreeIOTestCase)]) -267 return suite -
268 -269 if __name__ == '__main__': -270 print('to test use test.py %s' % __file__) -271 -
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.test_io.ETreeIOTestCase-class.html b/doc/html/api/lxml.tests.test_io.ETreeIOTestCase-class.html deleted file mode 100644 index 5fff990..0000000 --- a/doc/html/api/lxml.tests.test_io.ETreeIOTestCase-class.html +++ /dev/null @@ -1,409 +0,0 @@ - - - - - lxml.tests.test_io.ETreeIOTestCase - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module test_io :: - Class ETreeIOTestCase - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class ETreeIOTestCase

source code

-
-               object --+            
-                        |            
-   unittest.case.TestCase --+        
-                            |        
-common_imports.HelperTestCase --+    
-                                |    
-                  _IOTestCaseBase --+
-                                    |
-                                   ETreeIOTestCase
-
- -
- - - - - - - - - -
- - - - - -
Nested Classes[hide private]
-
-

Inherited from unittest.case.TestCase: - failureException -

-
- - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-

Inherited from _IOTestCaseBase: - buildNodes, - getTestFilePath, - setUp, - tearDown, - test_class_parse_filename, - test_class_parse_filename_remove_previous, - test_class_parse_fileobject, - test_class_parse_unamed_fileobject, - test_module_parse_fileobject_error, - test_module_parse_fileobject_late_error, - test_module_parse_fileobject_type_error, - test_module_parse_gzipobject, - test_module_parse_large_fileobject, - test_tree_io, - test_tree_io_latin1, - test_write_filename, - test_write_invalid_filename -

-

Inherited from common_imports.HelperTestCase: - parse -

-

Inherited from common_imports.HelperTestCase (private): - _rootstring -

-

Inherited from unittest.case.TestCase: - __call__, - __eq__, - __hash__, - __init__, - __ne__, - __repr__, - __str__, - addCleanup, - addTypeEqualityFunc, - assertAlmostEqual, - assertAlmostEquals, - assertDictContainsSubset, - assertDictEqual, - assertEqual, - assertEquals, - assertGreater, - assertGreaterEqual, - assertIn, - assertIs, - assertIsInstance, - assertIsNone, - assertIsNot, - assertIsNotNone, - assertItemsEqual, - assertLess, - assertLessEqual, - assertListEqual, - assertMultiLineEqual, - assertNotAlmostEqual, - assertNotAlmostEquals, - assertNotEqual, - assertNotEquals, - assertNotIn, - assertNotIsInstance, - assertNotRegexpMatches, - assertRaises, - assertRaisesRegexp, - assertRegexpMatches, - assertSequenceEqual, - assertSetEqual, - assertTrue, - assertTupleEqual, - assert_, - countTestCases, - debug, - defaultTestResult, - doCleanups, - fail, - failIf, - failIfAlmostEqual, - failIfEqual, - failUnless, - failUnlessAlmostEqual, - failUnlessEqual, - failUnlessRaises, - id, - run, - shortDescription, - skipTest -

-

Inherited from unittest.case.TestCase (private): - _addSkip, - _baseAssertEqual, - _deprecate, - _formatMessage, - _getAssertEqualityFunc, - _truncateMessage -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __new__, - __reduce__, - __reduce_ex__, - __setattr__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Class Methods[hide private]
-
-

Inherited from unittest.case.TestCase: - setUpClass, - tearDownClass -

-
- - - - - - - - - - - - -
- - - - - -
Class Variables[hide private]
-
-   - - etree
- The lxml.etree module implements the extended ElementTree API -for XML. -
-

Inherited from common_imports.HelperTestCase: - assertFalse -

-

Inherited from unittest.case.TestCase: - longMessage, - maxDiff -

-

Inherited from unittest.case.TestCase (private): - _classSetupFailed, - _diffThreshold -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Class Variable Details[hide private]
-
- -
- -
-

etree

- The lxml.etree module implements the extended ElementTree API -for XML. -
-
-
-
Value:
-
lxml.etree
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.test_io.ElementTreeIOTestCase-class.html b/doc/html/api/lxml.tests.test_io.ElementTreeIOTestCase-class.html deleted file mode 100644 index 14a3080..0000000 --- a/doc/html/api/lxml.tests.test_io.ElementTreeIOTestCase-class.html +++ /dev/null @@ -1,407 +0,0 @@ - - - - - lxml.tests.test_io.ElementTreeIOTestCase - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module test_io :: - Class ElementTreeIOTestCase - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class ElementTreeIOTestCase

source code

-
-               object --+            
-                        |            
-   unittest.case.TestCase --+        
-                            |        
-common_imports.HelperTestCase --+    
-                                |    
-                  _IOTestCaseBase --+
-                                    |
-                                   ElementTreeIOTestCase
-
- -
- - - - - - - - - -
- - - - - -
Nested Classes[hide private]
-
-

Inherited from unittest.case.TestCase: - failureException -

-
- - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-

Inherited from _IOTestCaseBase: - buildNodes, - getTestFilePath, - setUp, - tearDown, - test_class_parse_filename, - test_class_parse_filename_remove_previous, - test_class_parse_fileobject, - test_class_parse_unamed_fileobject, - test_module_parse_fileobject_error, - test_module_parse_fileobject_late_error, - test_module_parse_fileobject_type_error, - test_module_parse_gzipobject, - test_module_parse_large_fileobject, - test_tree_io, - test_tree_io_latin1, - test_write_filename, - test_write_invalid_filename -

-

Inherited from common_imports.HelperTestCase: - parse -

-

Inherited from common_imports.HelperTestCase (private): - _rootstring -

-

Inherited from unittest.case.TestCase: - __call__, - __eq__, - __hash__, - __init__, - __ne__, - __repr__, - __str__, - addCleanup, - addTypeEqualityFunc, - assertAlmostEqual, - assertAlmostEquals, - assertDictContainsSubset, - assertDictEqual, - assertEqual, - assertEquals, - assertGreater, - assertGreaterEqual, - assertIn, - assertIs, - assertIsInstance, - assertIsNone, - assertIsNot, - assertIsNotNone, - assertItemsEqual, - assertLess, - assertLessEqual, - assertListEqual, - assertMultiLineEqual, - assertNotAlmostEqual, - assertNotAlmostEquals, - assertNotEqual, - assertNotEquals, - assertNotIn, - assertNotIsInstance, - assertNotRegexpMatches, - assertRaises, - assertRaisesRegexp, - assertRegexpMatches, - assertSequenceEqual, - assertSetEqual, - assertTrue, - assertTupleEqual, - assert_, - countTestCases, - debug, - defaultTestResult, - doCleanups, - fail, - failIf, - failIfAlmostEqual, - failIfEqual, - failUnless, - failUnlessAlmostEqual, - failUnlessEqual, - failUnlessRaises, - id, - run, - shortDescription, - skipTest -

-

Inherited from unittest.case.TestCase (private): - _addSkip, - _baseAssertEqual, - _deprecate, - _formatMessage, - _getAssertEqualityFunc, - _truncateMessage -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __new__, - __reduce__, - __reduce_ex__, - __setattr__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Class Methods[hide private]
-
-

Inherited from unittest.case.TestCase: - setUpClass, - tearDownClass -

-
- - - - - - - - - - - - -
- - - - - -
Class Variables[hide private]
-
-   - - etree
- hash(x) -
-

Inherited from common_imports.HelperTestCase: - assertFalse -

-

Inherited from unittest.case.TestCase: - longMessage, - maxDiff -

-

Inherited from unittest.case.TestCase (private): - _classSetupFailed, - _diffThreshold -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Class Variable Details[hide private]
-
- -
- -
-

etree

- hash(x) -
-
-
-
Value:
-
xml.etree.ElementTree
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.test_io._IOTestCaseBase-class.html b/doc/html/api/lxml.tests.test_io._IOTestCaseBase-class.html deleted file mode 100644 index a0b530d..0000000 --- a/doc/html/api/lxml.tests.test_io._IOTestCaseBase-class.html +++ /dev/null @@ -1,702 +0,0 @@ - - - - - lxml.tests.test_io._IOTestCaseBase - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module test_io :: - Class _IOTestCaseBase - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class _IOTestCaseBase

source code

-
-               object --+        
-                        |        
-   unittest.case.TestCase --+    
-                            |    
-common_imports.HelperTestCase --+
-                                |
-                               _IOTestCaseBase
-
- -
Known Subclasses:
-
- -
- -
-(c)ElementTree compatibility for IO functions/methods - - - - - - - - - - -
- - - - - -
Nested Classes[hide private]
-
-

Inherited from unittest.case.TestCase: - failureException -

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
setUp(self)
- Setting up a minimal tree
- source code - -
- -
-   - - - - - - -
tearDown(self)
- Hook method for deconstructing the test fixture after testing it.
- source code - -
- -
-   - - - - - - -
getTestFilePath(self, - name) - source code - -
- -
-   - - - - - - -
buildNodes(self, - element, - children, - depth) - source code - -
- -
-   - - - - - - -
test_tree_io(self) - source code - -
- -
-   - - - - - - -
test_tree_io_latin1(self) - source code - -
- -
-   - - - - - - -
test_write_filename(self) - source code - -
- -
-   - - - - - - -
test_write_invalid_filename(self) - source code - -
- -
-   - - - - - - -
test_module_parse_gzipobject(self) - source code - -
- -
-   - - - - - - -
test_class_parse_filename(self) - source code - -
- -
-   - - - - - - -
test_class_parse_filename_remove_previous(self) - source code - -
- -
-   - - - - - - -
test_class_parse_fileobject(self) - source code - -
- -
-   - - - - - - -
test_class_parse_unamed_fileobject(self) - source code - -
- -
-   - - - - - - -
test_module_parse_large_fileobject(self) - source code - -
- -
-   - - - - - - -
test_module_parse_fileobject_error(self) - source code - -
- -
-   - - - - - - -
test_module_parse_fileobject_late_error(self) - source code - -
- -
-   - - - - - - -
test_module_parse_fileobject_type_error(self) - source code - -
- -
-

Inherited from common_imports.HelperTestCase: - parse -

-

Inherited from common_imports.HelperTestCase (private): - _rootstring -

-

Inherited from unittest.case.TestCase: - __call__, - __eq__, - __hash__, - __init__, - __ne__, - __repr__, - __str__, - addCleanup, - addTypeEqualityFunc, - assertAlmostEqual, - assertAlmostEquals, - assertDictContainsSubset, - assertDictEqual, - assertEqual, - assertEquals, - assertGreater, - assertGreaterEqual, - assertIn, - assertIs, - assertIsInstance, - assertIsNone, - assertIsNot, - assertIsNotNone, - assertItemsEqual, - assertLess, - assertLessEqual, - assertListEqual, - assertMultiLineEqual, - assertNotAlmostEqual, - assertNotAlmostEquals, - assertNotEqual, - assertNotEquals, - assertNotIn, - assertNotIsInstance, - assertNotRegexpMatches, - assertRaises, - assertRaisesRegexp, - assertRegexpMatches, - assertSequenceEqual, - assertSetEqual, - assertTrue, - assertTupleEqual, - assert_, - countTestCases, - debug, - defaultTestResult, - doCleanups, - fail, - failIf, - failIfAlmostEqual, - failIfEqual, - failUnless, - failUnlessAlmostEqual, - failUnlessEqual, - failUnlessRaises, - id, - run, - shortDescription, - skipTest -

-

Inherited from unittest.case.TestCase (private): - _addSkip, - _baseAssertEqual, - _deprecate, - _formatMessage, - _getAssertEqualityFunc, - _truncateMessage -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __new__, - __reduce__, - __reduce_ex__, - __setattr__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Class Methods[hide private]
-
-

Inherited from unittest.case.TestCase: - setUpClass, - tearDownClass -

-
- - - - - - - - - - - - -
- - - - - -
Class Variables[hide private]
-
-   - - etree = None
- hash(x) -
-

Inherited from common_imports.HelperTestCase: - assertFalse -

-

Inherited from unittest.case.TestCase: - longMessage, - maxDiff -

-

Inherited from unittest.case.TestCase (private): - _classSetupFailed, - _diffThreshold -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

setUp(self) -

-
source code  -
- - Setting up a minimal tree -
-
Overrides: - unittest.case.TestCase.setUp -
-
-
-
- -
- -
- - -
-

tearDown(self) -

-
source code  -
- - Hook method for deconstructing the test fixture after testing it. -
-
Overrides: - unittest.case.TestCase.tearDown -
(inherited documentation)
- -
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.test_isoschematron-module.html b/doc/html/api/lxml.tests.test_isoschematron-module.html deleted file mode 100644 index ab9fedd..0000000 --- a/doc/html/api/lxml.tests.test_isoschematron-module.html +++ /dev/null @@ -1,245 +0,0 @@ - - - - - lxml.tests.test_isoschematron - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module test_isoschematron - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Module test_isoschematron

source code

-Test cases related to ISO-Schematron parsing and validation - - - - - - - - - - -
- - - - - -
Classes[hide private]
-
-   - - ETreeISOSchematronTestCase -
- - - - - - - - - -
- - - - - -
Functions[hide private]
-
-   - - - - - - -
test_suite() - source code - -
- -
- - - - - - - - - - - - -
- - - - - -
Variables[hide private]
-
-   - - this_dir = '/home/sbehnel/source/Python/lxml/lxml-release/src/... -
-   - - __package__ = 'lxml.tests' -
- - - - - - -
- - - - - -
Variables Details[hide private]
-
- -
- -
-

this_dir

- -
-
-
-
Value:
-
-'/home/sbehnel/source/Python/lxml/lxml-release/src/lxml/tests'
-
-
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.test_isoschematron-pysrc.html b/doc/html/api/lxml.tests.test_isoschematron-pysrc.html deleted file mode 100644 index bbd4825..0000000 --- a/doc/html/api/lxml.tests.test_isoschematron-pysrc.html +++ /dev/null @@ -1,1668 +0,0 @@ - - - - - lxml.tests.test_isoschematron - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module test_isoschematron - - - - - - -
[hide private]
[frames] | no frames]
-
-

Source Code for Module lxml.tests.test_isoschematron

-
-  1  # -*- coding: utf-8 -*- 
-  2   
-  3  """ 
-  4  Test cases related to ISO-Schematron parsing and validation 
-  5  """ 
-  6   
-  7  import unittest, sys, os.path 
-  8  from lxml import isoschematron 
-  9   
- 10  this_dir = os.path.dirname(__file__) 
- 11  if this_dir not in sys.path: 
- 12      sys.path.insert(0, this_dir) # needed for Py3 
- 13   
- 14  from common_imports import etree, HelperTestCase, fileInTestDir 
- 15  from common_imports import doctest, make_doctest 
- 16   
-
17 -class ETreeISOSchematronTestCase(HelperTestCase): -
18 - def test_schematron(self): -
19 tree_valid = self.parse('<AAA><BBB/><CCC/></AAA>') - 20 tree_invalid = self.parse('<AAA><BBB/><CCC/><DDD/></AAA>') - 21 schema = self.parse('''\ - 22 <schema xmlns="http://purl.oclc.org/dsdl/schematron" > - 23 <pattern id="OpenModel"> - 24 <title>Open Model</title> - 25 <rule context="AAA"> - 26 <assert test="BBB"> BBB element is not present</assert> - 27 <assert test="CCC"> CCC element is not present</assert> - 28 </rule> - 29 </pattern> - 30 <pattern id="ClosedModel"> - 31 <title>Closed model"</title> - 32 <rule context="AAA"> - 33 <assert test="BBB"> BBB element is not present</assert> - 34 <assert test="CCC"> CCC element is not present</assert> - 35 <assert test="count(BBB|CCC) = count (*)">There is an extra element</assert> - 36 </rule> - 37 </pattern> - 38 </schema> - 39 ''') - 40 schema = isoschematron.Schematron(schema) - 41 self.assert_(schema.validate(tree_valid)) - 42 self.assert_(not schema.validate(tree_invalid)) -
43 -
45 self.assertRaises(ValueError, isoschematron.Schematron, etree.ElementTree()) -
46 - 47 # an empty pattern is valid in iso schematron -
49 schema = self.parse('''\ - 50 <schema xmlns="http://purl.oclc.org/dsdl/schematron" > - 51 <pattern id="OpenModel"> - 52 <title>Open model</title> - 53 </pattern> - 54 </schema> - 55 ''') - 56 schema = isoschematron.Schematron(schema) - 57 self.assert_(schema) -
58 -
60 schema = self.parse('''\ - 61 <schema xmlns="http://purl.oclc.org/dsdl/schematron" /> - 62 ''') - 63 self.assertRaises(etree.SchematronParseError, - 64 isoschematron.Schematron, schema) -
65 -
67 schema = self.parse('''\ - 68 <schema xmlns="mynamespace" /> - 69 ''') - 70 self.assertRaises(etree.SchematronParseError, - 71 isoschematron.Schematron, schema) -
72 -
73 - def test_schematron_from_tree(self): -
74 schema = self.parse('''\ - 75 <sch:schema xmlns:sch="http://purl.oclc.org/dsdl/schematron"> - 76 <sch:pattern id="number_of_entries"> - 77 <sch:title>mandatory number_of_entries tests</sch:title> - 78 <sch:rule context="number_of_entries"> - 79 <sch:assert test="text()=count(../entries/entry)">[ERROR] number_of_entries (<sch:value-of select="."/>) must equal the number of entries/entry elements (<sch:value-of select="count(../entries/entry)"/>)</sch:assert> - 80 </sch:rule> - 81 </sch:pattern> - 82 </sch:schema> - 83 ''') - 84 schematron = isoschematron.Schematron(schema) - 85 self.assert_(isinstance(schematron, isoschematron.Schematron)) -
86 -
88 schema = self.parse('''\ - 89 <sch:schema xmlns:sch="http://purl.oclc.org/dsdl/schematron"> - 90 <sch:pattern id="number_of_entries"> - 91 <sch:title>mandatory number_of_entries tests</sch:title> - 92 <sch:rule context="number_of_entries"> - 93 <sch:assert test="text()=count(../entries/entry)">[ERROR] number_of_entries (<sch:value-of select="."/>) must equal the number of entries/entry elements (<sch:value-of select="count(../entries/entry)"/>)</sch:assert> - 94 </sch:rule> - 95 </sch:pattern> - 96 </sch:schema> - 97 ''') - 98 schematron = isoschematron.Schematron(schema.getroot()) - 99 self.assert_(isinstance(schematron, isoschematron.Schematron)) -
100 -
101 - def test_schematron_from_file(self): -
104 -
105 - def test_schematron_call(self): -
106 schema = self.parse('''\ -107 <sch:schema xmlns:sch="http://purl.oclc.org/dsdl/schematron"> -108 <sch:pattern id="number_of_entries"> -109 <sch:title>mandatory number_of_entries tests</sch:title> -110 <sch:rule context="number_of_entries"> -111 <sch:assert test="text()=count(../entries/entry)">[ERROR] number_of_entries (<sch:value-of select="."/>) must equal the number of entries/entry elements (<sch:value-of select="count(../entries/entry)"/>)</sch:assert> -112 </sch:rule> -113 </sch:pattern> -114 </sch:schema> -115 ''') -116 tree_valid = self.parse('''\ -117 <message> -118 <number_of_entries>0</number_of_entries> -119 <entries> -120 </entries> -121 </message> -122 ''') -123 tree_invalid = self.parse('''\ -124 <message> -125 <number_of_entries>3</number_of_entries> -126 <entries> -127 <entry>Entry 1</entry> -128 <entry>Entry 2</entry> -129 </entries> -130 </message> -131 ''') -132 schematron = isoschematron.Schematron(schema) -133 self.assert_(schematron(tree_valid), schematron.error_log) -134 valid = schematron(tree_invalid) -135 self.assert_(not valid) -
136 -
137 - def test_schematron_validate(self): -
138 schema = self.parse('''\ -139 <sch:schema xmlns:sch="http://purl.oclc.org/dsdl/schematron"> -140 <sch:pattern id="number_of_entries"> -141 <sch:title>mandatory number_of_entries tests</sch:title> -142 <sch:rule context="number_of_entries"> -143 <sch:assert test="text()=count(../entries/entry)">[ERROR] number_of_entries (<sch:value-of select="."/>) must equal the number of entries/entry elements (<sch:value-of select="count(../entries/entry)"/>)</sch:assert> -144 </sch:rule> -145 </sch:pattern> -146 </sch:schema> -147 ''') -148 tree_valid = self.parse('''\ -149 <message> -150 <number_of_entries>0</number_of_entries> -151 <entries> -152 </entries> -153 </message> -154 ''') -155 tree_invalid = self.parse('''\ -156 <message> -157 <number_of_entries>3</number_of_entries> -158 <entries> -159 <entry>Entry 1</entry> -160 <entry>Entry 2</entry> -161 </entries> -162 </message> -163 ''') -164 schematron = isoschematron.Schematron(schema) -165 self.assert_(schematron.validate(tree_valid), schematron.error_log) -166 valid = schematron.validate(tree_invalid) -167 self.assert_(not valid) -
168 -
170 schema = self.parse('''\ -171 <sch:schema xmlns:sch="http://purl.oclc.org/dsdl/schematron"> -172 <sch:pattern id="number_of_entries"> -173 <sch:title>mandatory number_of_entries tests</sch:title> -174 <sch:rule context="number_of_entries"> -175 <sch:assert test="text()=count(../entries/entry)">[ERROR] number_of_entries (<sch:value-of select="."/>) must equal the number of entries/entry elements (<sch:value-of select="count(../entries/entry)"/>)</sch:assert> -176 </sch:rule> -177 </sch:pattern> -178 </sch:schema> -179 ''') -180 tree_valid = self.parse('''\ -181 <message> -182 <number_of_entries>0</number_of_entries> -183 <entries> -184 </entries> -185 </message> -186 ''') -187 tree_invalid = self.parse('''\ -188 <message> -189 <number_of_entries>3</number_of_entries> -190 <entries> -191 <entry>Entry 1</entry> -192 <entry>Entry 2</entry> -193 </entries> -194 </message> -195 ''') -196 schematron = isoschematron.Schematron(schema) -197 self.assert_(schematron(tree_valid), schematron.error_log) -198 self.assertRaises(etree.DocumentInvalid, schematron.assertValid, -199 tree_invalid) -
200 -
201 - def test_schematron_error_log(self): -
202 schema = self.parse('''\ -203 <sch:schema xmlns:sch="http://purl.oclc.org/dsdl/schematron"> -204 <sch:pattern id="number_of_entries"> -205 <sch:title>mandatory number_of_entries tests</sch:title> -206 <sch:rule context="number_of_entries"> -207 <sch:assert test="text()=count(../entries/entry)">[ERROR] number_of_entries (<sch:value-of select="."/>) must equal the number of entries/entry elements (<sch:value-of select="count(../entries/entry)"/>)</sch:assert> -208 </sch:rule> -209 </sch:pattern> -210 </sch:schema> -211 ''') -212 tree_valid = self.parse('''\ -213 <message> -214 <number_of_entries>0</number_of_entries> -215 <entries> -216 </entries> -217 </message> -218 ''') -219 tree_invalid = self.parse('''\ -220 <message> -221 <number_of_entries>3</number_of_entries> -222 <entries> -223 <entry>Entry 1</entry> -224 <entry>Entry 2</entry> -225 </entries> -226 </message> -227 ''') -228 schematron = isoschematron.Schematron(schema) -229 self.assert_(schematron(tree_valid), schematron.error_log) -230 valid = schematron(tree_invalid) -231 self.assert_(not valid) -232 self.assertEquals(len(schematron.error_log), 1, -233 'expected single error: %s (%s errors)' % -234 (schematron.error_log, len(schematron.error_log))) -
235 -
237 schema = self.parse('''\ -238 <sch:schema xmlns:sch="http://purl.oclc.org/dsdl/schematron"> -239 <sch:pattern id="number_of_entries"> -240 <sch:title>mandatory number_of_entries tests</sch:title> -241 <sch:rule context="number_of_entries"> -242 <sch:assert test="text()=count(../entries/entry)">[ERROR] number_of_entries (<sch:value-of select="."/>) must equal the number of entries/entry elements (<sch:value-of select="count(../entries/entry)"/>)</sch:assert> -243 </sch:rule> -244 </sch:pattern> -245 </sch:schema> -246 ''') -247 tree_valid = self.parse('''\ -248 <message> -249 <number_of_entries>0</number_of_entries> -250 <entries> -251 </entries> -252 </message> -253 ''') -254 tree_invalid = self.parse('''\ -255 <message> -256 <number_of_entries>3</number_of_entries> -257 <entries> -258 <entry>Entry 1</entry> -259 <entry>Entry 2</entry> -260 </entries> -261 </message> -262 ''') -263 schematron = isoschematron.Schematron(schema, store_report=True) -264 self.assert_(schematron(tree_valid), schematron.error_log) -265 valid = schematron(tree_invalid) -266 self.assert_(not valid) -267 self.assert_( -268 isinstance(schematron.validation_report, etree._ElementTree), -269 'expected a validation report result tree, got: %s' % -270 (schematron.validation_report)) -271 -272 schematron = isoschematron.Schematron(schema, store_report=False) -273 self.assert_(schematron(tree_valid), schematron.error_log) -274 valid = schematron(tree_invalid) -275 self.assert_(not valid) -276 self.assert_(schematron.validation_report is None, -277 'validation reporting switched off, still: %s' % -278 (schematron.validation_report)) -
279 -
281 schema = self.parse('''\ -282 <sch:schema xmlns:sch="http://purl.oclc.org/dsdl/schematron"> -283 <sch:pattern id="number_of_entries"> -284 <sch:title>mandatory number_of_entries tests</sch:title> -285 <sch:rule context="number_of_entries"> -286 <sch:assert test="text()=count(../entries/entry)">[ERROR] number_of_entries (<sch:value-of select="."/>) must equal the number of entries/entry elements (<sch:value-of select="count(../entries/entry)"/>)</sch:assert> -287 </sch:rule> -288 </sch:pattern> -289 </sch:schema> -290 ''') -291 schematron = isoschematron.Schematron(schema) -292 self.assert_(schematron.validator_xslt is None) -293 -294 schematron = isoschematron.Schematron(schema, store_schematron=True) -295 self.assert_(isinstance(schematron.schematron, etree._ElementTree), -296 'expected schematron schema to be stored') -
297 -
298 - def test_schematron_store_xslt(self): -
299 schema = self.parse('''\ -300 <sch:schema xmlns:sch="http://purl.oclc.org/dsdl/schematron"> -301 <sch:pattern id="number_of_entries"> -302 <sch:title>mandatory number_of_entries tests</sch:title> -303 <sch:rule context="number_of_entries"> -304 <sch:assert test="text()=count(../entries/entry)">[ERROR] number_of_entries (<sch:value-of select="."/>) must equal the number of entries/entry elements (<sch:value-of select="count(../entries/entry)"/>)</sch:assert> -305 </sch:rule> -306 </sch:pattern> -307 </sch:schema> -308 ''') -309 schematron = isoschematron.Schematron(schema) -310 self.assert_(schematron.validator_xslt is None) -311 -312 schematron = isoschematron.Schematron(schema, store_xslt=True) -313 self.assert_(isinstance(schematron.validator_xslt, etree._ElementTree), -314 'expected validator xslt to be stored') -
315 -
316 - def test_schematron_abstract(self): -
317 schema = self.parse('''\ -318 <sch:schema xmlns:sch="http://purl.oclc.org/dsdl/schematron"> -319 <sch:title>iso schematron validation</sch:title> -320 <sch:ns uri="http://www.w3.org/2001/XMLSchema-instance" prefix="xsi"/> -321 <sch:ns uri="http://codespeak.net/lxml/objectify/pytype" prefix="py"/> -322 -323 <!-- of course, these only really make sense when combined with a schema that -324 ensures datatype xs:dateTime --> -325 -326 <sch:pattern abstract="true" id="abstract.dateTime.tz_utc"> -327 <sch:rule context="$datetime"> -328 <sch:let name="tz" value="concat(substring-after(substring-after(./text(), 'T'), '+'), substring-after(substring-after(./text(), 'T'), '-'))"/> -329 <sch:let name="lastchar" value="substring(./text(), string-length(./text()))"/> -330 <sch:assert test="$lastchar='Z' or $tz='00:00'">[ERROR] element (<sch:value-of select="name(.)"/>) dateTime value (<sch:value-of select="."/>) is not qualified as UTC (tz: <sch:value-of select="$tz"/>)</sch:assert> -331 </sch:rule> -332 </sch:pattern> -333 -334 <sch:pattern abstract="true" id="abstract.dateTime.tz_utc_nillable"> -335 <sch:rule context="$datetime"> -336 <sch:let name="tz" value="concat(substring-after(substring-after(./text(), 'T'), '+'), substring-after(substring-after(./text(), 'T'), '-'))"/> -337 <sch:let name="lastchar" value="substring(./text(), string-length(./text()))"/> -338 <sch:assert test="@xsi:nil='true' or ($lastchar='Z' or $tz='00:00')">[ERROR] element (<sch:value-of select="name(.)"/>) dateTime value (<sch:value-of select="."/>) is not qualified as UTC (tz: <sch:value-of select="$tz"/>)</sch:assert> -339 </sch:rule> -340 </sch:pattern> -341 -342 <sch:pattern is-a="abstract.dateTime.tz_utc" id="datetime" > -343 <sch:param name="datetime" value="datetime"/> -344 </sch:pattern> -345 -346 <sch:pattern is-a="abstract.dateTime.tz_utc_nillable" id="nillableDatetime"> -347 <sch:param name="datetime" value="nillableDatetime"/> -348 </sch:pattern> -349 -350 </sch:schema> -351 ''') -352 valid_trees = [ -353 self.parse('''\ -354 <root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> -355 <datetime>2009-12-10T15:21:00Z</datetime> -356 <nillableDatetime xsi:nil="true"/> -357 </root> -358 '''), -359 self.parse('''\ -360 <root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> -361 <datetime>2009-12-10T15:21:00Z</datetime> -362 <nillableDatetime>2009-12-10T15:21:00Z</nillableDatetime> -363 </root> -364 '''), -365 self.parse('''\ -366 <root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> -367 <datetime>2009-12-10T15:21:00+00:00</datetime> -368 <nillableDatetime>2009-12-10T15:21:00-00:00</nillableDatetime> -369 </root> -370 '''), -371 ] -372 -373 schematron = isoschematron.Schematron(schema) -374 for tree_valid in valid_trees: -375 self.assert_(schematron(tree_valid), schematron.error_log) -376 -377 tree_invalid = self.parse('''\ -378 <root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> -379 <datetime>2009-12-10T16:21:00+01:00</datetime> -380 <nillableDatetime>2009-12-10T16:21:00+01:00</nillableDatetime> -381 </root> -382 ''') -383 expected = 2 -384 valid = schematron(tree_invalid) -385 self.assert_(not valid) -386 self.assertEquals( -387 len(schematron.error_log), expected, -388 'expected %s errors: %s (%s errors)' % -389 (expected, schematron.error_log, len(schematron.error_log))) -390 -391 tree_invalid = self.parse('''\ -392 <root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> -393 <datetime xsi:nil="true"/> -394 <nillableDatetime>2009-12-10T16:21:00Z</nillableDatetime> -395 </root> -396 ''') -397 expected = 1 -398 valid = schematron(tree_invalid) -399 self.assert_(not valid) -400 self.assertEquals( -401 len(schematron.error_log), expected, -402 'expected %s errors: %s (%s errors)' % -403 (expected, schematron.error_log, len(schematron.error_log))) -
404 -
405 - def test_schematron_phases(self): -
406 schema = self.parse('''\ -407 <sch:schema xmlns:sch="http://purl.oclc.org/dsdl/schematron"> -408 <sch:title>iso schematron validation</sch:title> -409 <sch:ns uri="http://www.w3.org/2001/XMLSchema-instance" prefix="xsi"/> -410 <sch:ns uri="http://codespeak.net/lxml/objectify/pytype" prefix="py"/> -411 -412 <sch:phase id="mandatory"> -413 <sch:active pattern="number_of_entries"/> -414 </sch:phase> -415 -416 <sch:phase id="datetime_checks"> -417 <sch:active pattern="datetime"/> -418 <sch:active pattern="nillableDatetime"/> -419 </sch:phase> -420 -421 <sch:phase id="full"> -422 <sch:active pattern="number_of_entries"/> -423 <sch:active pattern="datetime"/> -424 <sch:active pattern="nillableDatetime"/> -425 </sch:phase> -426 -427 <!-- of course, these only really make sense when combined with a schema that -428 ensures datatype xs:dateTime --> -429 -430 <sch:pattern abstract="true" id="abstract.dateTime.tz_utc"> -431 <sch:rule context="$datetime"> -432 <sch:let name="tz" value="concat(substring-after(substring-after(./text(), 'T'), '+'), substring-after(substring-after(./text(), 'T'), '-'))"/> -433 <sch:let name="lastchar" value="substring(./text(), string-length(./text()))"/> -434 <sch:assert test="$lastchar='Z' or $tz='00:00'">[ERROR] element (<sch:value-of select="name(.)"/>) dateTime value (<sch:value-of select="."/>) is not qualified as UTC (tz: <sch:value-of select="$tz"/>)</sch:assert> -435 </sch:rule> -436 </sch:pattern> -437 -438 <sch:pattern abstract="true" id="abstract.dateTime.tz_utc_nillable"> -439 <sch:rule context="$datetime"> -440 <sch:let name="tz" value="concat(substring-after(substring-after(./text(), 'T'), '+'), substring-after(substring-after(./text(), 'T'), '-'))"/> -441 <sch:let name="lastchar" value="substring(./text(), string-length(./text()))"/> -442 <sch:assert test="@xsi:nil='true' or ($lastchar='Z' or $tz='00:00')">[ERROR] element (<sch:value-of select="name(.)"/>) dateTime value (<sch:value-of select="."/>) is not qualified as UTC (tz: <sch:value-of select="$tz"/>)</sch:assert> -443 </sch:rule> -444 </sch:pattern> -445 -446 <sch:pattern id="number_of_entries"> -447 <sch:title>mandatory number_of_entries test</sch:title> -448 <sch:rule context="number_of_entries"> -449 <sch:assert test="text()=count(../entries/entry)">[ERROR] number_of_entries (<sch:value-of select="."/>) must equal the number of entries/entry elements (<sch:value-of select="count(../entries/entry)"/>)</sch:assert> -450 </sch:rule> -451 </sch:pattern> -452 -453 <sch:pattern id="datetime" is-a="abstract.dateTime.tz_utc"> -454 <sch:param name="datetime" value="datetime"/> -455 </sch:pattern> -456 -457 <sch:pattern id="nillableDatetime" is-a="abstract.dateTime.tz_utc_nillable"> -458 <sch:param name="datetime" value="nillableDatetime"/> -459 </sch:pattern> -460 -461 </sch:schema> -462 ''') -463 tree_valid = self.parse('''\ -464 <message xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> -465 <datetime>2009-12-10T15:21:00Z</datetime> -466 <nillableDatetime xsi:nil="true"/> -467 <number_of_entries>0</number_of_entries> -468 <entries> -469 </entries> -470 </message> -471 ''') -472 tree_invalid = self.parse('''\ -473 <message> -474 <datetime>2009-12-10T16:21:00+01:00</datetime> -475 <nillableDatetime>2009-12-10T16:21:00+01:00</nillableDatetime> -476 <number_of_entries>3</number_of_entries> -477 <entries> -478 <entry>Entry 1</entry> -479 <entry>Entry 2</entry> -480 </entries> -481 </message> -482 ''') -483 # check everything (default phase #ALL) -484 schematron = isoschematron.Schematron(schema) -485 self.assert_(schematron(tree_valid), schematron.error_log) -486 expected = 3 -487 valid = schematron(tree_invalid) -488 self.assert_(not valid) -489 self.assertEquals( -490 len(schematron.error_log), expected, -491 'expected %s errors: %s (%s errors)' % -492 (expected, schematron.error_log, len(schematron.error_log))) -493 -494 # check phase mandatory -495 schematron = isoschematron.Schematron( -496 schema, compile_params={'phase': 'mandatory'}) -497 self.assert_(schematron(tree_valid), schematron.error_log) -498 expected = 1 -499 valid = schematron(tree_invalid) -500 self.assert_(not valid) -501 self.assertEquals( -502 len(schematron.error_log), expected, -503 'expected %s errors: %s (%s errors)' % -504 (expected, schematron.error_log, len(schematron.error_log))) -505 -506 # check phase datetime_checks -507 schematron = isoschematron.Schematron( -508 schema, compile_params={'phase': 'datetime_checks'}) -509 self.assert_(schematron(tree_valid), schematron.error_log) -510 expected = 2 -511 valid = schematron(tree_invalid) -512 self.assert_(not valid) -513 self.assertEquals( -514 len(schematron.error_log), expected, -515 'expected %s errors: %s (%s errors)' % -516 (expected, schematron.error_log, len(schematron.error_log))) -517 -518 # check phase full -519 schematron = isoschematron.Schematron( -520 schema, compile_params={'phase': 'full'}) -521 self.assert_(schematron(tree_valid), schematron.error_log) -522 expected = 3 -523 valid = schematron(tree_invalid) -524 self.assert_(not valid) -525 self.assertEquals( -526 len(schematron.error_log), expected, -527 'expected %s errors: %s (%s errors)' % -528 (expected, schematron.error_log, len(schematron.error_log))) -
529 -
531 schema = self.parse('''\ -532 <sch:schema xmlns:sch="http://purl.oclc.org/dsdl/schematron"> -533 <sch:title>iso schematron validation</sch:title> -534 <sch:ns uri="http://www.w3.org/2001/XMLSchema-instance" prefix="xsi"/> -535 <sch:ns uri="http://codespeak.net/lxml/objectify/pytype" prefix="py"/> -536 -537 <sch:phase id="mandatory"> -538 <sch:active pattern="number_of_entries"/> -539 </sch:phase> -540 -541 <sch:phase id="datetime_checks"> -542 <sch:active pattern="datetime"/> -543 <sch:active pattern="nillableDatetime"/> -544 </sch:phase> -545 -546 <sch:phase id="full"> -547 <sch:active pattern="number_of_entries"/> -548 <sch:active pattern="datetime"/> -549 <sch:active pattern="nillableDatetime"/> -550 </sch:phase> -551 -552 <!-- of course, these only really make sense when combined with a schema that -553 ensures datatype xs:dateTime --> -554 -555 <sch:pattern abstract="true" id="abstract.dateTime.tz_utc"> -556 <sch:rule context="$datetime"> -557 <sch:let name="tz" value="concat(substring-after(substring-after(./text(), 'T'), '+'), substring-after(substring-after(./text(), 'T'), '-'))"/> -558 <sch:let name="lastchar" value="substring(./text(), string-length(./text()))"/> -559 <sch:assert test="$lastchar='Z' or $tz='00:00'">[ERROR] element (<sch:value-of select="name(.)"/>) dateTime value (<sch:value-of select="."/>) is not qualified as UTC (tz: <sch:value-of select="$tz"/>)</sch:assert> -560 </sch:rule> -561 </sch:pattern> -562 -563 <sch:pattern abstract="true" id="abstract.dateTime.tz_utc_nillable"> -564 <sch:rule context="$datetime"> -565 <sch:let name="tz" value="concat(substring-after(substring-after(./text(), 'T'), '+'), substring-after(substring-after(./text(), 'T'), '-'))"/> -566 <sch:let name="lastchar" value="substring(./text(), string-length(./text()))"/> -567 <sch:assert test="@xsi:nil='true' or ($lastchar='Z' or $tz='00:00')">[ERROR] element (<sch:value-of select="name(.)"/>) dateTime value (<sch:value-of select="."/>) is not qualified as UTC (tz: <sch:value-of select="$tz"/>)</sch:assert> -568 </sch:rule> -569 </sch:pattern> -570 -571 <sch:pattern id="number_of_entries"> -572 <sch:title>mandatory number_of_entries test</sch:title> -573 <sch:rule context="number_of_entries"> -574 <sch:assert test="text()=count(../entries/entry)">[ERROR] number_of_entries (<sch:value-of select="."/>) must equal the number of entries/entry elements (<sch:value-of select="count(../entries/entry)"/>)</sch:assert> -575 </sch:rule> -576 </sch:pattern> -577 -578 <sch:pattern id="datetime" is-a="abstract.dateTime.tz_utc"> -579 <sch:param name="datetime" value="datetime"/> -580 </sch:pattern> -581 -582 <sch:pattern id="nillableDatetime" is-a="abstract.dateTime.tz_utc_nillable"> -583 <sch:param name="datetime" value="nillableDatetime"/> -584 </sch:pattern> -585 -586 </sch:schema> -587 ''') -588 tree_valid = self.parse('''\ -589 <message xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> -590 <datetime>2009-12-10T15:21:00Z</datetime> -591 <nillableDatetime xsi:nil="true"/> -592 <number_of_entries>0</number_of_entries> -593 <entries> -594 </entries> -595 </message> -596 ''') -597 tree_invalid = self.parse('''\ -598 <message> -599 <datetime>2009-12-10T16:21:00+01:00</datetime> -600 <nillableDatetime>2009-12-10T16:21:00+01:00</nillableDatetime> -601 <number_of_entries>3</number_of_entries> -602 <entries> -603 <entry>Entry 1</entry> -604 <entry>Entry 2</entry> -605 </entries> -606 </message> -607 ''') -608 # check everything (default phase #ALL) -609 schematron = isoschematron.Schematron(schema) -610 self.assert_(schematron(tree_valid), schematron.error_log) -611 expected = 3 -612 valid = schematron(tree_invalid) -613 self.assert_(not valid) -614 self.assertEquals( -615 len(schematron.error_log), expected, -616 'expected %s errors: %s (%s errors)' % -617 (expected, schematron.error_log, len(schematron.error_log))) -618 -619 # check phase mandatory -620 schematron = isoschematron.Schematron(schema, phase='mandatory') -621 self.assert_(schematron(tree_valid), schematron.error_log) -622 expected = 1 -623 valid = schematron(tree_invalid) -624 self.assert_(not valid) -625 self.assertEquals( -626 len(schematron.error_log), expected, -627 'expected %s errors: %s (%s errors)' % -628 (expected, schematron.error_log, len(schematron.error_log))) -629 -630 # check phase datetime_checks -631 schematron = isoschematron.Schematron(schema, phase='datetime_checks') -632 self.assert_(schematron(tree_valid), schematron.error_log) -633 expected = 2 -634 valid = schematron(tree_invalid) -635 self.assert_(not valid) -636 self.assertEquals( -637 len(schematron.error_log), expected, -638 'expected %s errors: %s (%s errors)' % -639 (expected, schematron.error_log, len(schematron.error_log))) -640 -641 # check phase full -642 schematron = isoschematron.Schematron(schema, phase='full') -643 self.assert_(schematron(tree_valid), schematron.error_log) -644 expected = 3 -645 valid = schematron(tree_invalid) -646 self.assert_(not valid) -647 self.assertEquals( -648 len(schematron.error_log), expected, 'expected %s errors: %s (%s errors)' % -649 (expected, schematron.error_log, len(schematron.error_log))) -
650 -
652 schema = self.parse('''\ -653 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" -654 xmlns:sch="http://purl.oclc.org/dsdl/schematron"> -655 <xs:element name="message"> -656 <xs:complexType> -657 <xs:sequence> -658 <xs:element name="number_of_entries" type="xs:positiveInteger"> -659 <xs:annotation> -660 <xs:appinfo> -661 <sch:pattern id="number_of_entries"> -662 <sch:title>mandatory number_of_entries tests</sch:title> -663 <sch:rule context="number_of_entries"> -664 <sch:assert test="text()=count(../entries/entry)">[ERROR] number_of_entries (<sch:value-of select="."/>) must equal the number of entries/entry elements (<sch:value-of select="count(../entries/entry)"/>)</sch:assert> -665 </sch:rule> -666 </sch:pattern> -667 </xs:appinfo> -668 </xs:annotation> -669 </xs:element> -670 <xs:element name="entries"> -671 <xs:complexType> -672 <xs:sequence> -673 <xs:element name="entry" type="xs:string" minOccurs="0" maxOccurs="unbounded"/> -674 </xs:sequence> -675 </xs:complexType> -676 </xs:element> -677 </xs:sequence> -678 </xs:complexType> -679 </xs:element> -680 </xs:schema> -681 ''') -682 tree_valid = self.parse('''\ -683 <message> -684 <number_of_entries>2</number_of_entries> -685 <entries> -686 <entry>Entry 1</entry> -687 <entry>Entry 2</entry> -688 </entries> -689 </message> -690 ''') -691 tree_invalid = self.parse('''\ -692 <message> -693 <number_of_entries>1</number_of_entries> -694 <entries> -695 <entry>Entry 1</entry> -696 <entry>Entry 2</entry> -697 </entries> -698 </message> -699 ''') -700 xmlschema = etree.XMLSchema(schema) -701 schematron = isoschematron.Schematron(schema) -702 # fwiw, this must also be XMLSchema-valid -703 self.assert_(xmlschema(tree_valid), xmlschema.error_log) -704 self.assert_(schematron(tree_valid)) -705 # still schema-valid -706 self.assert_(xmlschema(tree_invalid), xmlschema.error_log) -707 self.assert_(not schematron(tree_invalid)) -
708 -
710 schema = self.parse('''\ -711 <grammar xmlns="http://relaxng.org/ns/structure/1.0" -712 xmlns:sch="http://purl.oclc.org/dsdl/schematron" -713 datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"> -714 <start> -715 <ref name="message"/> -716 </start> -717 <define name="message"> -718 <element name="message"> -719 <element name="number_of_entries"> -720 <!-- RelaxNG can be mixed freely with stuff from other namespaces --> -721 <sch:pattern id="number_of_entries"> -722 <sch:title>mandatory number_of_entries tests</sch:title> -723 <sch:rule context="number_of_entries"> -724 <sch:assert test="text()=count(../entries/entry)">[ERROR] number_of_entries (<sch:value-of select="."/>) must equal the number of entries/entry elements (<sch:value-of select="count(../entries/entry)"/>)</sch:assert> -725 </sch:rule> -726 </sch:pattern> -727 <data type="positiveInteger"/> -728 </element> -729 <element name="entries"> -730 <zeroOrMore> -731 <element name="entry"><data type="string"/></element> -732 </zeroOrMore> -733 </element> -734 </element> -735 </define> -736 </grammar> -737 ''') -738 tree_valid = self.parse('''\ -739 <message> -740 <number_of_entries>2</number_of_entries> -741 <entries> -742 <entry>Entry 1</entry> -743 <entry>Entry 2</entry> -744 </entries> -745 </message> -746 ''') -747 tree_invalid = self.parse('''\ -748 <message> -749 <number_of_entries>1</number_of_entries> -750 <entries> -751 <entry>Entry 1</entry> -752 <entry>Entry 2</entry> -753 </entries> -754 </message> -755 ''') -756 relaxng = etree.RelaxNG(schema) -757 schematron = isoschematron.Schematron(schema) -758 # fwiw, this must also be RelaxNG-valid -759 self.assert_(relaxng(tree_valid), relaxng.error_log) -760 self.assert_(schematron(tree_valid)) -761 # still schema-valid -762 self.assert_(relaxng(tree_invalid), relaxng.error_log) -763 self.assert_(not schematron(tree_invalid)) -
764 -
766 schema = self.parse('''\ -767 <sch:schema xmlns:sch="http://purl.oclc.org/dsdl/schematron"> -768 <sch:pattern id="number_of_entries"> -769 <sch:title>mandatory number_of_entries tests</sch:title> -770 <sch:rule context="number_of_entries"> -771 <sch:assert test="text()=count(../entries/entry)">[ERROR] number_of_entries (<sch:value-of select="."/>) must equal the number of entries/entry elements (<sch:value-of select="count(../entries/entry)"/>)</sch:assert> -772 </sch:rule> -773 </sch:pattern> -774 </sch:schema> -775 ''') -776 # handing phase as keyword arg will *not* raise the type error -777 self.assertRaises(TypeError, isoschematron.Schematron, schema, -778 compile_params={'phase': None}) -
779 -
781 class MySchematron(isoschematron.Schematron): -782 def _extract(self, root): -783 schematron = (root.xpath( -784 '//sch:schema', -785 namespaces={'sch': "http://purl.oclc.org/dsdl/schematron"}) -786 or [None])[0] -787 return schematron -
788 -789 def _include(self, schematron, **kwargs): -790 raise RuntimeError('inclusion unsupported') -
791 -792 def _expand(self, schematron, **kwargs): -793 raise RuntimeError('expansion unsupported') -794 -795 def _validation_errors(self, validationReport): -796 valid = etree.XPath( -797 'count(//svrl:successful-report[@flag="critical"])=1', -798 namespaces={'svrl': isoschematron.SVRL_NS})( -799 validationReport) -800 if valid: -801 return [] -802 error = etree.Element('Error') -803 error.text = 'missing critical condition report' -804 return [error] -805 -806 tree_valid = self.parse('<AAA><BBB/><CCC/></AAA>') -807 tree_invalid = self.parse('<AAA><BBB/><CCC/><DDD/></AAA>') -808 schema = self.parse('''\ -809 <schema xmlns="http://www.example.org/yet/another/schema/dialect"> -810 <schema xmlns="http://purl.oclc.org/dsdl/schematron" > -811 <pattern id="OpenModel"> -812 <title>Open Model</title> -813 <rule context="AAA"> -814 <report test="BBB" flag="info">BBB element must be present</report> -815 <report test="CCC" flag="info">CCC element must be present</report> -816 </rule> -817 </pattern> -818 <pattern id="ClosedModel"> -819 <title>Closed model"</title> -820 <rule context="AAA"> -821 <report test="BBB" flag="info">BBB element must be present</report> -822 <report test="CCC" flag="info">CCC element must be present</report> -823 <report test="count(BBB|CCC) = count(*)" flag="critical">Only BBB and CCC children must be present</report> -824 </rule> -825 </pattern> -826 </schema> -827 </schema> -828 ''') -829 # check if overridden _include is run -830 self.assertRaises(RuntimeError, MySchematron, schema, store_report=True) -831 # check if overridden _expand is run -832 self.assertRaises(RuntimeError, MySchematron, schema, store_report=True, -833 include=False) -834 -835 schema = MySchematron(schema, store_report=True, include=False, -836 expand=False) -837 self.assert_(schema.validate(tree_valid)) -838 self.assert_(not schema.validate(tree_invalid)) -839 -840 #TODO: test xslt parameters for inclusion, expand & compile steps (?) -841 -842 -
843 -def test_suite(): -
844 suite = unittest.TestSuite() -845 suite.addTests([unittest.makeSuite(ETreeISOSchematronTestCase)]) -846 suite.addTests( -847 [make_doctest('../../../doc/validation.txt')]) -848 return suite -
849 -850 if __name__ == '__main__': -851 print('to test use test.py %s' % __file__) -852 -
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.test_isoschematron.ETreeISOSchematronTestCase-class.html b/doc/html/api/lxml.tests.test_isoschematron.ETreeISOSchematronTestCase-class.html deleted file mode 100644 index 0844252..0000000 --- a/doc/html/api/lxml.tests.test_isoschematron.ETreeISOSchematronTestCase-class.html +++ /dev/null @@ -1,698 +0,0 @@ - - - - - lxml.tests.test_isoschematron.ETreeISOSchematronTestCase - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module test_isoschematron :: - Class ETreeISOSchematronTestCase - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class ETreeISOSchematronTestCase

source code

-
-               object --+        
-                        |        
-   unittest.case.TestCase --+    
-                            |    
-common_imports.HelperTestCase --+
-                                |
-                               ETreeISOSchematronTestCase
-
- -
- - - - - - - - - -
- - - - - -
Nested Classes[hide private]
-
-

Inherited from unittest.case.TestCase: - failureException -

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
test_schematron(self) - source code - -
- -
-   - - - - - - -
test_schematron_elementtree_error(self) - source code - -
- -
-   - - - - - - -
test_schematron_empty_pattern(self) - source code - -
- -
-   - - - - - - -
test_schematron_invalid_schema_empty(self) - source code - -
- -
-   - - - - - - -
test_schematron_invalid_schema_namespace(self) - source code - -
- -
-   - - - - - - -
test_schematron_from_tree(self) - source code - -
- -
-   - - - - - - -
test_schematron_from_element(self) - source code - -
- -
-   - - - - - - -
test_schematron_from_file(self) - source code - -
- -
-   - - - - - - -
test_schematron_call(self) - source code - -
- -
-   - - - - - - -
test_schematron_validate(self) - source code - -
- -
-   - - - - - - -
test_schematron_assertValid(self) - source code - -
- -
-   - - - - - - -
test_schematron_error_log(self) - source code - -
- -
-   - - - - - - -
test_schematron_result_report(self) - source code - -
- -
-   - - - - - - -
test_schematron_store_schematron(self) - source code - -
- -
-   - - - - - - -
test_schematron_store_xslt(self) - source code - -
- -
-   - - - - - - -
test_schematron_abstract(self) - source code - -
- -
-   - - - - - - -
test_schematron_phases(self) - source code - -
- -
-   - - - - - - -
test_schematron_phases_kwarg(self) - source code - -
- -
-   - - - - - - -
test_schematron_xmlschema_embedded(self) - source code - -
- -
-   - - - - - - -
test_schematron_relaxng_embedded(self) - source code - -
- -
-   - - - - - - -
test_schematron_invalid_args(self) - source code - -
- -
-   - - - - - - -
test_schematron_customization(self) - source code - -
- -
-

Inherited from common_imports.HelperTestCase: - parse, - tearDown -

-

Inherited from common_imports.HelperTestCase (private): - _rootstring -

-

Inherited from unittest.case.TestCase: - __call__, - __eq__, - __hash__, - __init__, - __ne__, - __repr__, - __str__, - addCleanup, - addTypeEqualityFunc, - assertAlmostEqual, - assertAlmostEquals, - assertDictContainsSubset, - assertDictEqual, - assertEqual, - assertEquals, - assertGreater, - assertGreaterEqual, - assertIn, - assertIs, - assertIsInstance, - assertIsNone, - assertIsNot, - assertIsNotNone, - assertItemsEqual, - assertLess, - assertLessEqual, - assertListEqual, - assertMultiLineEqual, - assertNotAlmostEqual, - assertNotAlmostEquals, - assertNotEqual, - assertNotEquals, - assertNotIn, - assertNotIsInstance, - assertNotRegexpMatches, - assertRaises, - assertRaisesRegexp, - assertRegexpMatches, - assertSequenceEqual, - assertSetEqual, - assertTrue, - assertTupleEqual, - assert_, - countTestCases, - debug, - defaultTestResult, - doCleanups, - fail, - failIf, - failIfAlmostEqual, - failIfEqual, - failUnless, - failUnlessAlmostEqual, - failUnlessEqual, - failUnlessRaises, - id, - run, - setUp, - shortDescription, - skipTest -

-

Inherited from unittest.case.TestCase (private): - _addSkip, - _baseAssertEqual, - _deprecate, - _formatMessage, - _getAssertEqualityFunc, - _truncateMessage -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __new__, - __reduce__, - __reduce_ex__, - __setattr__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Class Methods[hide private]
-
-

Inherited from unittest.case.TestCase: - setUpClass, - tearDownClass -

-
- - - - - - - - - -
- - - - - -
Class Variables[hide private]
-
-

Inherited from common_imports.HelperTestCase: - assertFalse -

-

Inherited from unittest.case.TestCase: - longMessage, - maxDiff -

-

Inherited from unittest.case.TestCase (private): - _classSetupFailed, - _diffThreshold -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.test_nsclasses-module.html b/doc/html/api/lxml.tests.test_nsclasses-module.html deleted file mode 100644 index f1a9781..0000000 --- a/doc/html/api/lxml.tests.test_nsclasses-module.html +++ /dev/null @@ -1,246 +0,0 @@ - - - - - lxml.tests.test_nsclasses - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module test_nsclasses - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Module test_nsclasses

source code

-Test cases related to namespace implementation classes and the -namespace registry mechanism - - - - - - - - - - -
- - - - - -
Classes[hide private]
-
-   - - ETreeNamespaceClassesTestCase -
- - - - - - - - - -
- - - - - -
Functions[hide private]
-
-   - - - - - - -
test_suite() - source code - -
- -
- - - - - - - - - - - - -
- - - - - -
Variables[hide private]
-
-   - - this_dir = '/home/sbehnel/source/Python/lxml/lxml-release/src/... -
-   - - __package__ = 'lxml.tests' -
- - - - - - -
- - - - - -
Variables Details[hide private]
-
- -
- -
-

this_dir

- -
-
-
-
Value:
-
-'/home/sbehnel/source/Python/lxml/lxml-release/src/lxml/tests'
-
-
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.test_nsclasses-pysrc.html b/doc/html/api/lxml.tests.test_nsclasses-pysrc.html deleted file mode 100644 index 80ebfee..0000000 --- a/doc/html/api/lxml.tests.test_nsclasses-pysrc.html +++ /dev/null @@ -1,585 +0,0 @@ - - - - - lxml.tests.test_nsclasses - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module test_nsclasses - - - - - - -
[hide private]
[frames] | no frames]
-
-

Source Code for Module lxml.tests.test_nsclasses

-
-  1  # -*- coding: utf-8 -*- 
-  2   
-  3  """ 
-  4  Test cases related to namespace implementation classes and the 
-  5  namespace registry mechanism 
-  6  """ 
-  7   
-  8  import unittest, sys, os.path 
-  9   
- 10  this_dir = os.path.dirname(__file__) 
- 11  if this_dir not in sys.path: 
- 12      sys.path.insert(0, this_dir) # needed for Py3 
- 13   
- 14  from common_imports import etree, HelperTestCase, _bytes 
- 15  from common_imports import doctest, make_doctest 
- 16   
-
17 -class ETreeNamespaceClassesTestCase(HelperTestCase): -
18 -
19 - class default_class(etree.ElementBase): -
20 pass -
21 - class maeh_class(etree.ElementBase): -
22 - def maeh(self): -
23 return 'maeh' -
24 - class bluff_class(etree.ElementBase): -
25 - def bluff(self): -
26 return 'bluff' -
27 -
28 - def setUp(self): -
35 -
36 - def tearDown(self): -
37 etree.set_default_parser() - 38 del self.Namespace - 39 super(ETreeNamespaceClassesTestCase, self).tearDown() -
40 -
41 - def test_registry(self): -
42 ns = self.Namespace('ns01') - 43 ns['maeh'] = self.maeh_class - 44 - 45 self.Namespace('ns01').clear() - 46 - 47 self.Namespace('ns02').update({'maeh' : self.maeh_class}) - 48 self.Namespace('ns03').update({'bluff' : self.bluff_class}.items()) - 49 self.Namespace('ns02').clear() - 50 self.Namespace('ns03').clear() -
51 -
52 - def test_ns_classes(self): -
53 bluff_dict = {'bluff' : self.bluff_class} - 54 maeh_dict = {'maeh' : self.maeh_class} - 55 - 56 self.Namespace('ns10').update(bluff_dict) - 57 - 58 tree = self.parse(_bytes('<bluff xmlns="ns10"><ns11:maeh xmlns:ns11="ns11"/></bluff>')) - 59 - 60 el = tree.getroot() - 61 self.assert_(isinstance(el, etree.ElementBase)) - 62 self.assert_(hasattr(el, 'bluff')) - 63 self.assertFalse(hasattr(el[0], 'maeh')) - 64 self.assertFalse(hasattr(el[0], 'bluff')) - 65 self.assertEquals(el.bluff(), 'bluff') - 66 del el - 67 - 68 self.Namespace('ns11').update(maeh_dict) - 69 el = tree.getroot() - 70 self.assert_(hasattr(el, 'bluff')) - 71 self.assert_(hasattr(el[0], 'maeh')) - 72 self.assertEquals(el.bluff(), 'bluff') - 73 self.assertEquals(el[0].maeh(), 'maeh') - 74 del el - 75 - 76 self.Namespace('ns10').clear() - 77 - 78 tree = self.parse(_bytes('<bluff xmlns="ns10"><ns11:maeh xmlns:ns11="ns11"/></bluff>')) - 79 el = tree.getroot() - 80 self.assertFalse(hasattr(el, 'bluff')) - 81 self.assertFalse(hasattr(el, 'maeh')) - 82 self.assertFalse(hasattr(el[0], 'bluff')) - 83 self.assert_(hasattr(el[0], 'maeh')) - 84 - 85 self.Namespace('ns11').clear() -
86 -
87 - def test_default_tagname(self): -
88 bluff_dict = { - 89 None : self.bluff_class, - 90 'maeh' : self.maeh_class - 91 } - 92 - 93 ns = self.Namespace("uri:nsDefClass") - 94 ns.update(bluff_dict) - 95 - 96 tree = self.parse(_bytes(''' - 97 <test xmlns="bla" xmlns:ns1="uri:nsDefClass" xmlns:ns2="uri:nsDefClass"> - 98 <ns2:el1/><ns1:el2/><ns1:maeh/><ns2:maeh/><maeh/> - 99 </test> -100 ''')) -101 -102 el = tree.getroot() -103 self.assertFalse(isinstance(el, etree.ElementBase)) -104 for child in el[:-1]: -105 self.assert_(isinstance(child, etree.ElementBase), child.tag) -106 self.assertFalse(isinstance(el[-1], etree.ElementBase)) -107 -108 self.assert_(hasattr(el[0], 'bluff')) -109 self.assert_(hasattr(el[1], 'bluff')) -110 self.assert_(hasattr(el[2], 'maeh')) -111 self.assert_(hasattr(el[3], 'maeh')) -112 self.assertFalse(hasattr(el[4], 'maeh')) -113 del el -114 -115 ns.clear() -
116 -
117 - def test_create_element(self): -
118 bluff_dict = {'bluff' : self.bluff_class} -119 self.Namespace('ns20').update(bluff_dict) -120 -121 maeh_dict = {'maeh' : self.maeh_class} -122 self.Namespace('ns21').update(maeh_dict) -123 -124 el = etree.Element("{ns20}bluff") -125 self.assert_(hasattr(el, 'bluff')) -126 -127 child = etree.SubElement(el, "{ns21}maeh") -128 self.assert_(hasattr(child, 'maeh')) -129 child = etree.SubElement(el, "{ns20}bluff") -130 self.assert_(hasattr(child, 'bluff')) -131 child = etree.SubElement(el, "{ns21}bluff") -132 self.assertFalse(hasattr(child, 'bluff')) -133 self.assertFalse(hasattr(child, 'maeh')) -134 -135 self.assert_(hasattr(el[0], 'maeh')) -136 self.assert_(hasattr(el[1], 'bluff')) -137 self.assertFalse(hasattr(el[2], 'bluff')) -138 self.assertFalse(hasattr(el[2], 'maeh')) -139 -140 self.assertEquals(el.bluff(), 'bluff') -141 self.assertEquals(el[0].maeh(), 'maeh') -142 self.assertEquals(el[1].bluff(), 'bluff') -143 -144 self.Namespace('ns20').clear() -145 self.Namespace('ns21').clear() -
146 -
148 bluff_dict = {None : self.bluff_class} -149 self.Namespace('ns30').update(bluff_dict) -150 -151 maeh_dict = {'maeh' : self.maeh_class} -152 self.Namespace(None).update(maeh_dict) -153 -154 el = etree.Element("{ns30}bluff") -155 etree.SubElement(el, "maeh") -156 self.assert_(hasattr(el, 'bluff')) -157 self.assert_(hasattr(el[0], 'maeh')) -158 self.assertEquals(el.bluff(), 'bluff') -159 self.assertEquals(el[0].maeh(), 'maeh') -160 -161 self.Namespace(None).clear() -162 self.Namespace('ns30').clear() -
163 -
164 - def test_element_creation(self): -
165 default, bluff, maeh = ( -166 self.default_class, self.bluff_class, self.maeh_class) -167 -168 class honk(etree.ElementBase): -169 TAG = 'HONK' -170 NAMESPACE = 'http://a.b/c' -
171 -172 el = default( -173 "test", -174 "text", -175 bluff(honk, "TaIL", maeh), -176 maeh("TeXT", bluff, honk(), "TAiL"), -177 "Tail") -178 -179 self.assertEquals('default_class', el.tag) -180 self.assertEquals('testtext', el.text) -181 self.assertEquals(None, el.tail) -182 self.assertEquals(2, len(el)) -183 self.assertEquals(7, len(list(el.iter()))) -184 -185 self.assertEquals('bluff_class', el[0].tag) -186 self.assertEquals('TaIL', el[0][0].tail) -187 self.assertEquals('TaIL', ''.join(el[0].itertext())) -188 self.assertEquals('{http://a.b/c}HONK', -189 el[0][0].tag) -190 self.assertEquals('maeh_class', -191 el[0][1].tag) -192 -193 self.assertEquals('maeh_class', el[1].tag) -194 self.assertEquals('TeXT', el[1].text) -195 self.assertEquals('bluff_class', el[1][0].tag) -196 self.assertEquals('{http://a.b/c}HONK', el[1][1].tag) -197 self.assertEquals('TAiL', el[1][1].tail) -198 -199 self.assertEquals('TeXTTAiL', -200 ''.join(el[1].itertext())) -201 self.assertEquals('Tail', el[1].tail) -202 self.assertEquals('TAiL', el[1][1].tail) -203 self.assertEquals('bluff_class', el[1][0].tag) -204 self.assertEquals('{http://a.b/c}HONK', el[1][1].tag) -
205 -206 -
207 -def test_suite(): -
208 suite = unittest.TestSuite() -209 suite.addTests([unittest.makeSuite(ETreeNamespaceClassesTestCase)]) -210 suite.addTests( -211 [make_doctest('../../../doc/element_classes.txt')]) -212 return suite -
213 -214 if __name__ == '__main__': -215 print('to test use test.py %s' % __file__) -216 -
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.test_nsclasses.ETreeNamespaceClassesTestCase-class.html b/doc/html/api/lxml.tests.test_nsclasses.ETreeNamespaceClassesTestCase-class.html deleted file mode 100644 index 2153018..0000000 --- a/doc/html/api/lxml.tests.test_nsclasses.ETreeNamespaceClassesTestCase-class.html +++ /dev/null @@ -1,560 +0,0 @@ - - - - - lxml.tests.test_nsclasses.ETreeNamespaceClassesTestCase - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module test_nsclasses :: - Class ETreeNamespaceClassesTestCase - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class ETreeNamespaceClassesTestCase

source code

-
-               object --+        
-                        |        
-   unittest.case.TestCase --+    
-                            |    
-common_imports.HelperTestCase --+
-                                |
-                               ETreeNamespaceClassesTestCase
-
- -
- - - - - - - - - - - - - - - - - - -
- - - - - -
Nested Classes[hide private]
-
-   - - default_class -
-   - - maeh_class -
-   - - bluff_class -
-

Inherited from unittest.case.TestCase: - failureException -

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
setUp(self)
- Hook method for setting up the test fixture before exercising it.
- source code - -
- -
-   - - - - - - -
tearDown(self)
- Hook method for deconstructing the test fixture after testing it.
- source code - -
- -
-   - - - - - - -
test_registry(self) - source code - -
- -
-   - - - - - - -
test_ns_classes(self) - source code - -
- -
-   - - - - - - -
test_default_tagname(self) - source code - -
- -
-   - - - - - - -
test_create_element(self) - source code - -
- -
-   - - - - - - -
test_create_element_default(self) - source code - -
- -
-   - - - - - - -
test_element_creation(self) - source code - -
- -
-

Inherited from common_imports.HelperTestCase: - parse -

-

Inherited from common_imports.HelperTestCase (private): - _rootstring -

-

Inherited from unittest.case.TestCase: - __call__, - __eq__, - __hash__, - __init__, - __ne__, - __repr__, - __str__, - addCleanup, - addTypeEqualityFunc, - assertAlmostEqual, - assertAlmostEquals, - assertDictContainsSubset, - assertDictEqual, - assertEqual, - assertEquals, - assertGreater, - assertGreaterEqual, - assertIn, - assertIs, - assertIsInstance, - assertIsNone, - assertIsNot, - assertIsNotNone, - assertItemsEqual, - assertLess, - assertLessEqual, - assertListEqual, - assertMultiLineEqual, - assertNotAlmostEqual, - assertNotAlmostEquals, - assertNotEqual, - assertNotEquals, - assertNotIn, - assertNotIsInstance, - assertNotRegexpMatches, - assertRaises, - assertRaisesRegexp, - assertRegexpMatches, - assertSequenceEqual, - assertSetEqual, - assertTrue, - assertTupleEqual, - assert_, - countTestCases, - debug, - defaultTestResult, - doCleanups, - fail, - failIf, - failIfAlmostEqual, - failIfEqual, - failUnless, - failUnlessAlmostEqual, - failUnlessEqual, - failUnlessRaises, - id, - run, - shortDescription, - skipTest -

-

Inherited from unittest.case.TestCase (private): - _addSkip, - _baseAssertEqual, - _deprecate, - _formatMessage, - _getAssertEqualityFunc, - _truncateMessage -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __new__, - __reduce__, - __reduce_ex__, - __setattr__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Class Methods[hide private]
-
-

Inherited from unittest.case.TestCase: - setUpClass, - tearDownClass -

-
- - - - - - - - - -
- - - - - -
Class Variables[hide private]
-
-

Inherited from common_imports.HelperTestCase: - assertFalse -

-

Inherited from unittest.case.TestCase: - longMessage, - maxDiff -

-

Inherited from unittest.case.TestCase (private): - _classSetupFailed, - _diffThreshold -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

setUp(self) -

-
source code  -
- - Hook method for setting up the test fixture before exercising it. -
-
Overrides: - unittest.case.TestCase.setUp -
(inherited documentation)
- -
-
-
- -
- -
- - -
-

tearDown(self) -

-
source code  -
- - Hook method for deconstructing the test fixture after testing it. -
-
Overrides: - unittest.case.TestCase.tearDown -
(inherited documentation)
- -
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.test_nsclasses.ETreeNamespaceClassesTestCase.bluff_class-class.html b/doc/html/api/lxml.tests.test_nsclasses.ETreeNamespaceClassesTestCase.bluff_class-class.html deleted file mode 100644 index 712cf82..0000000 --- a/doc/html/api/lxml.tests.test_nsclasses.ETreeNamespaceClassesTestCase.bluff_class-class.html +++ /dev/null @@ -1,265 +0,0 @@ - - - - - lxml.tests.test_nsclasses.ETreeNamespaceClassesTestCase.bluff_class - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module test_nsclasses :: - Class ETreeNamespaceClassesTestCase :: - Class bluff_class - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class bluff_class

source code

-
-    object --+        
-             |        
-etree._Element --+    
-                 |    
- etree.ElementBase --+
-                     |
-                    ETreeNamespaceClassesTestCase.bluff_class
-
- -
- - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
bluff(self) - source code - -
- -
-

Inherited from etree.ElementBase: - __init__, - __new__ -

-

Inherited from etree._Element: - __contains__, - __copy__, - __deepcopy__, - __delitem__, - __getitem__, - __iter__, - __len__, - __nonzero__, - __repr__, - __reversed__, - __setitem__, - addnext, - addprevious, - append, - clear, - extend, - find, - findall, - findtext, - get, - getchildren, - getiterator, - getnext, - getparent, - getprevious, - getroottree, - index, - insert, - items, - iter, - iterancestors, - iterchildren, - iterdescendants, - iterfind, - itersiblings, - itertext, - keys, - makeelement, - remove, - replace, - set, - values, - xpath -

-

Inherited from etree._Element (private): - _init -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __reduce__, - __reduce_ex__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from etree._Element: - attrib, - base, - nsmap, - prefix, - sourceline, - tag, - tail, - text -

-

Inherited from object: - __class__ -

-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.test_nsclasses.ETreeNamespaceClassesTestCase.default_class-class.html b/doc/html/api/lxml.tests.test_nsclasses.ETreeNamespaceClassesTestCase.default_class-class.html deleted file mode 100644 index 797fdd9..0000000 --- a/doc/html/api/lxml.tests.test_nsclasses.ETreeNamespaceClassesTestCase.default_class-class.html +++ /dev/null @@ -1,249 +0,0 @@ - - - - - lxml.tests.test_nsclasses.ETreeNamespaceClassesTestCase.default_class - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module test_nsclasses :: - Class ETreeNamespaceClassesTestCase :: - Class default_class - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class default_class

source code

-
-    object --+        
-             |        
-etree._Element --+    
-                 |    
- etree.ElementBase --+
-                     |
-                    ETreeNamespaceClassesTestCase.default_class
-
- -
- - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-

Inherited from etree.ElementBase: - __init__, - __new__ -

-

Inherited from etree._Element: - __contains__, - __copy__, - __deepcopy__, - __delitem__, - __getitem__, - __iter__, - __len__, - __nonzero__, - __repr__, - __reversed__, - __setitem__, - addnext, - addprevious, - append, - clear, - extend, - find, - findall, - findtext, - get, - getchildren, - getiterator, - getnext, - getparent, - getprevious, - getroottree, - index, - insert, - items, - iter, - iterancestors, - iterchildren, - iterdescendants, - iterfind, - itersiblings, - itertext, - keys, - makeelement, - remove, - replace, - set, - values, - xpath -

-

Inherited from etree._Element (private): - _init -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __reduce__, - __reduce_ex__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from etree._Element: - attrib, - base, - nsmap, - prefix, - sourceline, - tag, - tail, - text -

-

Inherited from object: - __class__ -

-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.test_nsclasses.ETreeNamespaceClassesTestCase.maeh_class-class.html b/doc/html/api/lxml.tests.test_nsclasses.ETreeNamespaceClassesTestCase.maeh_class-class.html deleted file mode 100644 index 12ab2a2..0000000 --- a/doc/html/api/lxml.tests.test_nsclasses.ETreeNamespaceClassesTestCase.maeh_class-class.html +++ /dev/null @@ -1,265 +0,0 @@ - - - - - lxml.tests.test_nsclasses.ETreeNamespaceClassesTestCase.maeh_class - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module test_nsclasses :: - Class ETreeNamespaceClassesTestCase :: - Class maeh_class - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class maeh_class

source code

-
-    object --+        
-             |        
-etree._Element --+    
-                 |    
- etree.ElementBase --+
-                     |
-                    ETreeNamespaceClassesTestCase.maeh_class
-
- -
- - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
maeh(self) - source code - -
- -
-

Inherited from etree.ElementBase: - __init__, - __new__ -

-

Inherited from etree._Element: - __contains__, - __copy__, - __deepcopy__, - __delitem__, - __getitem__, - __iter__, - __len__, - __nonzero__, - __repr__, - __reversed__, - __setitem__, - addnext, - addprevious, - append, - clear, - extend, - find, - findall, - findtext, - get, - getchildren, - getiterator, - getnext, - getparent, - getprevious, - getroottree, - index, - insert, - items, - iter, - iterancestors, - iterchildren, - iterdescendants, - iterfind, - itersiblings, - itertext, - keys, - makeelement, - remove, - replace, - set, - values, - xpath -

-

Inherited from etree._Element (private): - _init -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __reduce__, - __reduce_ex__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from etree._Element: - attrib, - base, - nsmap, - prefix, - sourceline, - tag, - tail, - text -

-

Inherited from object: - __class__ -

-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.test_objectify-module.html b/doc/html/api/lxml.tests.test_objectify-module.html deleted file mode 100644 index 392d2d7..0000000 --- a/doc/html/api/lxml.tests.test_objectify-module.html +++ /dev/null @@ -1,563 +0,0 @@ - - - - - lxml.tests.test_objectify - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module test_objectify - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Module test_objectify

source code

-Tests specific to the lxml.objectify API - - - - - - - - - - -
- - - - - -
Classes[hide private]
-
-   - - ObjectifyTestCase
- Test cases for lxml.objectify -
- - - - - - - - - -
- - - - - -
Functions[hide private]
-
-   - - - - - - -
test_suite() - source code - -
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Variables[hide private]
-
-   - - this_dir = '/home/sbehnel/source/Python/lxml/lxml-release/src/... -
-   - - PYTYPE_NAMESPACE = 'http://codespeak.net/lxml/objectify/pytype' -
-   - - XML_SCHEMA_NS = 'http://www.w3.org/2001/XMLSchema' -
-   - - XML_SCHEMA_INSTANCE_NS = 'http://www.w3.org/2001/XMLSchema-ins... -
-   - - XML_SCHEMA_INSTANCE_TYPE_ATTR = '{http://www.w3.org/2001/XMLSc... -
-   - - XML_SCHEMA_NIL_ATTR = '{http://www.w3.org/2001/XMLSchema-insta... -
-   - - TREE_PYTYPE = 'TREE' -
-   - - DEFAULT_NSMAP = {'py': 'http://codespeak.net/lxml/objectify/py... -
-   - - objectclass2xsitype = {<type 'lxml.objectify.IntElement'>: ('i... -
-   - - xsitype2objclass = {'ENTITY': <type 'lxml.objectify.StringElem... -
-   - - objectclass2pytype = {<type 'lxml.objectify.IntElement'>: 'int... -
-   - - pytype2objclass = {'bool': <type 'lxml.objectify.BoolElement'>... -
-   - - xml_str = '<obj:root xmlns:obj="objectified" xmlns:other="othe... -
-   - - __package__ = 'lxml.tests' -
-   - - v = 'NMTOKEN' -
- - - - - - -
- - - - - -
Variables Details[hide private]
-
- -
- -
-

this_dir

- -
-
-
-
Value:
-
-'/home/sbehnel/source/Python/lxml/lxml-release/src/lxml/tests'
-
-
-
-
-
- -
- -
-

XML_SCHEMA_INSTANCE_NS

- -
-
-
-
Value:
-
-'http://www.w3.org/2001/XMLSchema-instance'
-
-
-
-
-
- -
- -
-

XML_SCHEMA_INSTANCE_TYPE_ATTR

- -
-
-
-
Value:
-
-'{http://www.w3.org/2001/XMLSchema-instance}type'
-
-
-
-
-
- -
- -
-

XML_SCHEMA_NIL_ATTR

- -
-
-
-
Value:
-
-'{http://www.w3.org/2001/XMLSchema-instance}nil'
-
-
-
-
-
- -
- -
-

DEFAULT_NSMAP

- -
-
-
-
Value:
-
-{'py': 'http://codespeak.net/lxml/objectify/pytype',
- 'xsd': 'http://www.w3.org/2001/XMLSchema',
- 'xsi': 'http://www.w3.org/2001/XMLSchema-instance'}
-
-
-
-
-
- -
- -
-

objectclass2xsitype

- -
-
-
-
Value:
-
-{<type 'lxml.objectify.IntElement'>: ('int',
-                                      'short',
-                                      'byte',
-                                      'unsignedShort',
-                                      'unsignedByte',
-                                      'integer',
-                                      'nonPositiveInteger',
-                                      'negativeInteger',
-...
-
-
-
-
-
- -
- -
-

xsitype2objclass

- -
-
-
-
Value:
-
-{'ENTITY': <type 'lxml.objectify.StringElement'>,
- 'ID': <type 'lxml.objectify.StringElement'>,
- 'IDREF': <type 'lxml.objectify.StringElement'>,
- 'NCName': <type 'lxml.objectify.StringElement'>,
- 'NMTOKEN': <type 'lxml.objectify.StringElement'>,
- 'Name': <type 'lxml.objectify.StringElement'>,
- 'boolean': <type 'lxml.objectify.BoolElement'>,
- 'byte': <type 'lxml.objectify.IntElement'>,
-...
-
-
-
-
-
- -
- -
-

objectclass2pytype

- -
-
-
-
Value:
-
-{<type 'lxml.objectify.IntElement'>: 'int',
- <type 'lxml.objectify.FloatElement'>: 'float',
- <type 'lxml.objectify.StringElement'>: 'str',
- <type 'lxml.objectify.BoolElement'>: 'bool'}
-
-
-
-
-
- -
- -
-

pytype2objclass

- -
-
-
-
Value:
-
-{'bool': <type 'lxml.objectify.BoolElement'>,
- 'float': <type 'lxml.objectify.FloatElement'>,
- 'int': <type 'lxml.objectify.IntElement'>,
- 'str': <type 'lxml.objectify.StringElement'>}
-
-
-
-
-
- -
- -
-

xml_str

- -
-
-
-
Value:
-
-'''<obj:root xmlns:obj="objectified" xmlns:other="otherNS">
-  <obj:c1 a1="A1" a2="A2" other:a3="A3">
-    <obj:c2>0</obj:c2>
-    <obj:c2>1</obj:c2>
-    <obj:c2>2</obj:c2>
-    <other:c2>3</other:c2>
-    <c2>4</c2>
-  </obj:c1>
-...
-
-
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.test_objectify-pysrc.html b/doc/html/api/lxml.tests.test_objectify-pysrc.html deleted file mode 100644 index b8fe07c..0000000 --- a/doc/html/api/lxml.tests.test_objectify-pysrc.html +++ /dev/null @@ -1,5608 +0,0 @@ - - - - - lxml.tests.test_objectify - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module test_objectify - - - - - - -
[hide private]
[frames] | no frames]
-
-

Source Code for Module lxml.tests.test_objectify

-
-   1  # -*- coding: utf-8 -*- 
-   2   
-   3  """ 
-   4  Tests specific to the lxml.objectify API 
-   5  """ 
-   6   
-   7   
-   8  import unittest, operator, sys, os.path 
-   9   
-  10  this_dir = os.path.dirname(__file__) 
-  11  if this_dir not in sys.path: 
-  12      sys.path.insert(0, this_dir) # needed for Py3 
-  13   
-  14  from common_imports import etree, HelperTestCase, fileInTestDir 
-  15  from common_imports import SillyFileLike, canonicalize, doctest, make_doctest 
-  16  from common_imports import _bytes, _str, StringIO, BytesIO 
-  17   
-  18  from lxml import objectify 
-  19   
-  20  PYTYPE_NAMESPACE = "http://codespeak.net/lxml/objectify/pytype" 
-  21  XML_SCHEMA_NS = "http://www.w3.org/2001/XMLSchema" 
-  22  XML_SCHEMA_INSTANCE_NS = "http://www.w3.org/2001/XMLSchema-instance" 
-  23  XML_SCHEMA_INSTANCE_TYPE_ATTR = "{%s}type" % XML_SCHEMA_INSTANCE_NS 
-  24  XML_SCHEMA_NIL_ATTR = "{%s}nil" % XML_SCHEMA_INSTANCE_NS 
-  25  TREE_PYTYPE = "TREE" 
-  26  DEFAULT_NSMAP = { "py"  : PYTYPE_NAMESPACE, 
-  27                    "xsi" : XML_SCHEMA_INSTANCE_NS, 
-  28                    "xsd" : XML_SCHEMA_NS} 
-  29   
-  30  objectclass2xsitype = { 
-  31      # objectify built-in 
-  32      objectify.IntElement: ("int", "short", "byte", "unsignedShort", 
-  33                             "unsignedByte", "integer", "nonPositiveInteger", 
-  34                             "negativeInteger", "long", "nonNegativeInteger", 
-  35                             "unsignedLong", "unsignedInt", "positiveInteger",), 
-  36      objectify.FloatElement: ("float", "double"), 
-  37      objectify.BoolElement: ("boolean",), 
-  38      objectify.StringElement: ("string", "normalizedString", "token", "language", 
-  39                                "Name", "NCName", "ID", "IDREF", "ENTITY", 
-  40                                "NMTOKEN", ), 
-  41      # None: xsi:nil="true" 
-  42      } 
-  43   
-  44  xsitype2objclass = dict([ (v, k) for k in objectclass2xsitype 
-  45                            for v in objectclass2xsitype[k] ]) 
-  46   
-  47  objectclass2pytype = { 
-  48      # objectify built-in 
-  49      objectify.IntElement: "int", 
-  50      objectify.FloatElement: "float", 
-  51      objectify.BoolElement: "bool", 
-  52      objectify.StringElement: "str", 
-  53      # None: xsi:nil="true" 
-  54      } 
-  55   
-  56  pytype2objclass = dict([ (objectclass2pytype[k], k) 
-  57                           for k in objectclass2pytype]) 
-  58   
-  59  xml_str = '''\ 
-  60  <obj:root xmlns:obj="objectified" xmlns:other="otherNS"> 
-  61    <obj:c1 a1="A1" a2="A2" other:a3="A3"> 
-  62      <obj:c2>0</obj:c2> 
-  63      <obj:c2>1</obj:c2> 
-  64      <obj:c2>2</obj:c2> 
-  65      <other:c2>3</other:c2> 
-  66      <c2>4</c2> 
-  67    </obj:c1> 
-  68  </obj:root>''' 
-  69   
-
70 -class ObjectifyTestCase(HelperTestCase): -
71 """Test cases for lxml.objectify - 72 """ - 73 etree = etree - 74 -
75 - def XML(self, xml): -
76 return self.etree.XML(xml, self.parser) -
77 -
78 - def setUp(self): -
79 super(ObjectifyTestCase, self).setUp() - 80 self.parser = self.etree.XMLParser(remove_blank_text=True) - 81 self.lookup = etree.ElementNamespaceClassLookup( - 82 objectify.ObjectifyElementClassLookup() ) - 83 self.parser.set_element_class_lookup(self.lookup) - 84 - 85 self.Element = self.parser.makeelement - 86 - 87 ns = self.lookup.get_namespace("otherNS") - 88 ns[None] = self.etree.ElementBase - 89 - 90 self._orig_types = objectify.getRegisteredTypes() -
91 -
92 - def tearDown(self): -
93 self.lookup.get_namespace("otherNS").clear() - 94 objectify.set_pytype_attribute_tag() - 95 del self.lookup - 96 del self.parser - 97 - 98 for pytype in objectify.getRegisteredTypes(): - 99 pytype.unregister() - 100 for pytype in self._orig_types: - 101 pytype.register() - 102 del self._orig_types - 103 - 104 super(ObjectifyTestCase, self).tearDown() -
105 - 106 -
107 - def test_element_nsmap_default(self): -
108 elt = objectify.Element("test") - 109 self.assertEquals(elt.nsmap, DEFAULT_NSMAP) -
110 -
111 - def test_element_nsmap_empty(self): -
112 nsmap = {} - 113 elt = objectify.Element("test", nsmap=nsmap) - 114 self.assertEquals(list(elt.nsmap.values()), [PYTYPE_NAMESPACE]) -
115 -
117 nsmap = {"mypy": PYTYPE_NAMESPACE, - 118 "myxsi": XML_SCHEMA_INSTANCE_NS, - 119 "myxsd": XML_SCHEMA_NS} - 120 elt = objectify.Element("test", nsmap=nsmap) - 121 self.assertEquals(elt.nsmap, nsmap) -
122 -
123 - def test_element_nsmap_custom(self): -
124 nsmap = {"my": "someNS", - 125 "myother": "someOtherNS", - 126 "myxsd": XML_SCHEMA_NS} - 127 elt = objectify.Element("test", nsmap=nsmap) - 128 self.assert_(PYTYPE_NAMESPACE in elt.nsmap.values()) - 129 for prefix, ns in nsmap.items(): - 130 self.assert_(prefix in elt.nsmap) - 131 self.assertEquals(nsmap[prefix], elt.nsmap[prefix]) -
132 -
134 root = objectify.Element("root") - 135 root.sub = objectify.Element("test") - 136 self.assertEquals(root.sub.nsmap, DEFAULT_NSMAP) -
137 -
139 root = objectify.Element("root") - 140 nsmap = {} - 141 root.sub = objectify.Element("test", nsmap=nsmap) - 142 self.assertEquals(root.sub.nsmap, DEFAULT_NSMAP) -
143 -
145 root = objectify.Element("root") - 146 nsmap = {"mypy": PYTYPE_NAMESPACE, - 147 "myxsi": XML_SCHEMA_INSTANCE_NS, - 148 "myxsd": XML_SCHEMA_NS} - 149 root.sub = objectify.Element("test", nsmap=nsmap) - 150 self.assertEquals(root.sub.nsmap, DEFAULT_NSMAP) -
151 -
153 root = objectify.Element("root") - 154 nsmap = {"my": "someNS", - 155 "myother": "someOtherNS", - 156 "myxsd": XML_SCHEMA_NS,} - 157 root.sub = objectify.Element("test", nsmap=nsmap) - 158 expected = nsmap.copy() - 159 del expected["myxsd"] - 160 expected.update(DEFAULT_NSMAP) - 161 self.assertEquals(root.sub.nsmap, expected) -
162 -
164 value = objectify.DataElement("test this") - 165 self.assertEquals(value.nsmap, DEFAULT_NSMAP) -
166 -
168 nsmap = {} - 169 value = objectify.DataElement("test this", nsmap=nsmap) - 170 self.assertEquals(list(value.nsmap.values()), [PYTYPE_NAMESPACE]) -
171 -
173 nsmap = {"mypy": PYTYPE_NAMESPACE, - 174 "myxsi": XML_SCHEMA_INSTANCE_NS, - 175 "myxsd": XML_SCHEMA_NS} - 176 value = objectify.DataElement("test this", nsmap=nsmap) - 177 self.assertEquals(value.nsmap, nsmap) -
178 -
180 nsmap = {"my": "someNS", - 181 "myother": "someOtherNS", - 182 "myxsd": XML_SCHEMA_NS,} - 183 value = objectify.DataElement("test", nsmap=nsmap) - 184 self.assert_(PYTYPE_NAMESPACE in value.nsmap.values()) - 185 for prefix, ns in nsmap.items(): - 186 self.assert_(prefix in value.nsmap) - 187 self.assertEquals(nsmap[prefix], value.nsmap[prefix]) -
188 -
190 root = objectify.Element("root") - 191 root.value = objectify.DataElement("test this") - 192 self.assertEquals(root.value.nsmap, DEFAULT_NSMAP) -
193 -
195 root = objectify.Element("root") - 196 nsmap = {} - 197 root.value = objectify.DataElement("test this", nsmap=nsmap) - 198 self.assertEquals(root.value.nsmap, DEFAULT_NSMAP) -
199 -
201 root = objectify.Element("root") - 202 nsmap = {"mypy": PYTYPE_NAMESPACE, - 203 "myxsi": XML_SCHEMA_INSTANCE_NS, - 204 "myxsd": XML_SCHEMA_NS} - 205 root.value = objectify.DataElement("test this", nsmap=nsmap) - 206 self.assertEquals(root.value.nsmap, DEFAULT_NSMAP) -
207 -
209 root = objectify.Element("root") - 210 nsmap = {"my": "someNS", - 211 "myother": "someOtherNS", - 212 "myxsd": XML_SCHEMA_NS} - 213 root.value = objectify.DataElement("test", nsmap=nsmap) - 214 expected = nsmap.copy() - 215 del expected["myxsd"] - 216 expected.update(DEFAULT_NSMAP) - 217 self.assertEquals(root.value.nsmap, expected) -
218 -
220 # ObjectifiedDataElement can also be used as E-Factory - 221 value = objectify.ObjectifiedDataElement('test', 'toast') - 222 self.assertEquals(value.text, 'testtoast') -
223 -
225 # ObjectifiedDataElement can also be used as E-Factory - 226 value = objectify.ObjectifiedElement(objectify.ObjectifiedDataElement(), 'test', 'toast') - 227 self.assertEquals(value.ObjectifiedDataElement.tail, 'testtoast') -
228 -
230 # keyword arguments override attrib entries - 231 value = objectify.DataElement(23, _pytype="str", _xsi="foobar", - 232 attrib={"gnu": "muh", "cat": "meeow", - 233 "dog": "wuff"}, - 234 bird="tchilp", dog="grrr") - 235 self.assertEquals(value.get("gnu"), "muh") - 236 self.assertEquals(value.get("cat"), "meeow") - 237 self.assertEquals(value.get("dog"), "grrr") - 238 self.assertEquals(value.get("bird"), "tchilp") -
239 -
241 # Check that DataElement preserves all attributes ObjectifiedDataElement - 242 # arguments - 243 arg = objectify.DataElement(23, _pytype="str", _xsi="foobar", - 244 attrib={"gnu": "muh", "cat": "meeow", - 245 "dog": "wuff"}, - 246 bird="tchilp", dog="grrr") - 247 value = objectify.DataElement(arg) - 248 self.assert_(isinstance(value, objectify.StringElement)) - 249 for attr in arg.attrib: - 250 self.assertEquals(value.get(attr), arg.get(attr)) -
251 -
253 # Check that _pytype arg overrides original py:pytype of - 254 # ObjectifiedDataElement - 255 arg = objectify.DataElement(23, _pytype="str", _xsi="foobar", - 256 attrib={"gnu": "muh", "cat": "meeow", - 257 "dog": "wuff"}, - 258 bird="tchilp", dog="grrr") - 259 value = objectify.DataElement(arg, _pytype="NoneType") - 260 self.assert_(isinstance(value, objectify.NoneElement)) - 261 self.assertEquals(value.get(XML_SCHEMA_NIL_ATTR), "true") - 262 self.assertEquals(value.text, None) - 263 self.assertEquals(value.pyval, None) - 264 for attr in arg.attrib: - 265 #if not attr == objectify.PYTYPE_ATTRIBUTE: - 266 self.assertEquals(value.get(attr), arg.get(attr)) -
267 -
269 # Check that _pytype arg overrides original py:pytype of - 270 # ObjectifiedDataElement - 271 arg = objectify.DataElement(23, _pytype="str", _xsi="foobar", - 272 attrib={"gnu": "muh", "cat": "meeow", - 273 "dog": "wuff"}, - 274 bird="tchilp", dog="grrr") - 275 value = objectify.DataElement(arg, _pytype="int") - 276 self.assert_(isinstance(value, objectify.IntElement)) - 277 self.assertEquals(value.get(objectify.PYTYPE_ATTRIBUTE), "int") - 278 for attr in arg.attrib: - 279 if not attr == objectify.PYTYPE_ATTRIBUTE: - 280 self.assertEquals(value.get(attr), arg.get(attr)) -
281 -
283 # Check that _xsi arg overrides original xsi:type of given - 284 # ObjectifiedDataElement - 285 arg = objectify.DataElement(23, _pytype="str", _xsi="foobar", - 286 attrib={"gnu": "muh", "cat": "meeow", - 287 "dog": "wuff"}, - 288 bird="tchilp", dog="grrr") - 289 value = objectify.DataElement(arg, _xsi="xsd:int") - 290 self.assert_(isinstance(value, objectify.IntElement)) - 291 self.assertEquals(value.get(XML_SCHEMA_INSTANCE_TYPE_ATTR), "xsd:int") - 292 self.assertEquals(value.get(objectify.PYTYPE_ATTRIBUTE), "int") - 293 for attr in arg.attrib: - 294 if not attr in [objectify.PYTYPE_ATTRIBUTE, - 295 XML_SCHEMA_INSTANCE_TYPE_ATTR]: - 296 self.assertEquals(value.get(attr), arg.get(attr)) -
297 -
299 # Check that _pytype and _xsi args override original py:pytype and - 300 # xsi:type attributes of given ObjectifiedDataElement - 301 arg = objectify.DataElement(23, _pytype="str", _xsi="foobar", - 302 attrib={"gnu": "muh", "cat": "meeow", - 303 "dog": "wuff"}, - 304 bird="tchilp", dog="grrr") - 305 value = objectify.DataElement(arg, _pytype="int", _xsi="xsd:int") - 306 self.assert_(isinstance(value, objectify.IntElement)) - 307 self.assertEquals(value.get(objectify.PYTYPE_ATTRIBUTE), "int") - 308 self.assertEquals(value.get(XML_SCHEMA_INSTANCE_TYPE_ATTR), "xsd:int") - 309 for attr in arg.attrib: - 310 if not attr in [objectify.PYTYPE_ATTRIBUTE, - 311 XML_SCHEMA_INSTANCE_TYPE_ATTR]: - 312 self.assertEquals(value.get(attr), arg.get(attr)) -
313 -
315 self.assertRaises(ValueError, objectify.DataElement, 3.1415, - 316 _pytype="int") -
317 -
319 self.assertRaises(ValueError, objectify.DataElement, 3.1415, - 320 _xsi="xsd:int") -
321 -
323 arg = objectify.DataElement(3.1415) - 324 self.assertRaises(ValueError, objectify.DataElement, arg, - 325 _pytype="int") -
326 -
328 arg = objectify.DataElement(3.1415) - 329 self.assertRaises(ValueError, objectify.DataElement, arg, - 330 _xsi="xsd:int") -
331 -
333 arg = objectify.Element('arg') - 334 value = objectify.DataElement(arg) - 335 self.assert_(isinstance(value, objectify.ObjectifiedElement)) - 336 for attr in arg.attrib: - 337 self.assertEquals(value.get(attr), arg.get(attr)) -
338 -
339 - def test_root(self): -
340 root = self.Element("test") - 341 self.assert_(isinstance(root, objectify.ObjectifiedElement)) -
342 -
343 - def test_str(self): -
344 root = self.Element("test") - 345 self.assertEquals('', str(root)) -
346 -
347 - def test_child(self): -
348 root = self.XML(xml_str) - 349 self.assertEquals("0", root.c1.c2.text) -
350 -
351 - def test_countchildren(self): -
352 root = self.XML(xml_str) - 353 self.assertEquals(1, root.countchildren()) - 354 self.assertEquals(5, root.c1.countchildren()) -
355 -
356 - def test_child_getattr(self): -
357 root = self.XML(xml_str) - 358 self.assertEquals("0", getattr(root.c1, "{objectified}c2").text) - 359 self.assertEquals("3", getattr(root.c1, "{otherNS}c2").text) -
360 -
361 - def test_child_nonexistant(self): -
362 root = self.XML(xml_str) - 363 self.assertRaises(AttributeError, getattr, root.c1, "NOT_THERE") - 364 self.assertRaises(AttributeError, getattr, root.c1, "{unknownNS}c2") -
365 -
366 - def test_child_getattr_empty_ns(self): -
367 root = self.XML(xml_str) - 368 self.assertEquals("4", getattr(root.c1, "{}c2").text) - 369 self.assertEquals("0", getattr(root.c1, "c2").text) -
370 -
371 - def test_setattr(self): -
372 for val in [ - 373 2, 2**32, 1.2, "Won't get fooled again", - 374 _str("W\xf6n't get f\xf6\xf6led \xe4g\xe4in", 'ISO-8859-1'), True, - 375 False, None]: - 376 root = self.Element('root') - 377 attrname = 'val' - 378 setattr(root, attrname, val) - 379 result = getattr(root, attrname) - 380 self.assertEquals(val, result) - 381 self.assertEquals(type(val), type(result.pyval)) -
382 -
383 - def test_setattr_nonunicode(self): -
384 root = self.Element('root') - 385 attrname = 'val' - 386 val = _bytes("W\xf6n't get f\xf6\xf6led \xe4g\xe4in", 'ISO-8859-1') - 387 self.assertRaises(ValueError, setattr, root, attrname, val) - 388 self.assertRaises(AttributeError, getattr, root, attrname) -
389 -
390 - def test_addattr(self): -
391 root = self.XML(xml_str) - 392 self.assertEquals(1, len(root.c1)) - 393 root.addattr("c1", "test") - 394 self.assertEquals(2, len(root.c1)) - 395 self.assertEquals("test", root.c1[1].text) -
396 -
397 - def test_addattr_element(self): -
398 root = self.XML(xml_str) - 399 self.assertEquals(1, len(root.c1)) - 400 - 401 new_el = self.Element("test", myattr="5") - 402 root.addattr("c1", new_el) - 403 self.assertEquals(2, len(root.c1)) - 404 self.assertEquals(None, root.c1[0].get("myattr")) - 405 self.assertEquals("5", root.c1[1].get("myattr")) -
406 -
407 - def test_addattr_list(self): -
408 root = self.XML(xml_str) - 409 self.assertEquals(1, len(root.c1)) - 410 - 411 new_el = self.Element("test") - 412 self.etree.SubElement(new_el, "a", myattr="A") - 413 self.etree.SubElement(new_el, "a", myattr="B") - 414 - 415 root.addattr("c1", list(new_el.a)) - 416 self.assertEquals(3, len(root.c1)) - 417 self.assertEquals(None, root.c1[0].get("myattr")) - 418 self.assertEquals("A", root.c1[1].get("myattr")) - 419 self.assertEquals("B", root.c1[2].get("myattr")) -
420 -
421 - def test_child_addattr(self): -
422 root = self.XML(xml_str) - 423 self.assertEquals(3, len(root.c1.c2)) - 424 root.c1.addattr("c2", 3) - 425 self.assertEquals(4, len(root.c1.c2)) - 426 self.assertEquals("3", root.c1.c2[3].text) -
427 -
428 - def test_child_index(self): -
429 root = self.XML(xml_str) - 430 self.assertEquals("0", root.c1.c2[0].text) - 431 self.assertEquals("1", root.c1.c2[1].text) - 432 self.assertEquals("2", root.c1.c2[2].text) - 433 self.assertRaises(IndexError, operator.getitem, root.c1.c2, 3) -
434 -
435 - def test_child_index_neg(self): -
436 root = self.XML(xml_str) - 437 self.assertEquals("0", root.c1.c2[0].text) - 438 self.assertEquals("0", root.c1.c2[-3].text) - 439 self.assertEquals("1", root.c1.c2[-2].text) - 440 self.assertEquals("2", root.c1.c2[-1].text) - 441 self.assertRaises(IndexError, operator.getitem, root.c1.c2, -4) -
442 -
443 - def test_child_len(self): -
444 root = self.XML(xml_str) - 445 self.assertEquals(1, len(root)) - 446 self.assertEquals(1, len(root.c1)) - 447 self.assertEquals(3, len(root.c1.c2)) -
448 -
449 - def test_child_iter(self): -
450 root = self.XML(xml_str) - 451 self.assertEquals([root], - 452 list(iter(root))) - 453 self.assertEquals([root.c1], - 454 list(iter(root.c1))) - 455 self.assertEquals([root.c1.c2[0], root.c1.c2[1], root.c1.c2[2]], - 456 list(iter((root.c1.c2)))) -
457 -
458 - def test_class_lookup(self): -
459 root = self.XML(xml_str) - 460 self.assert_(isinstance(root.c1.c2, objectify.ObjectifiedElement)) - 461 self.assertFalse(isinstance(getattr(root.c1, "{otherNS}c2"), - 462 objectify.ObjectifiedElement)) -
463 -
464 - def test_dir(self): -
465 root = self.XML(xml_str) - 466 dir_c1 = dir(objectify.ObjectifiedElement) + ['c1'] - 467 dir_c1.sort() - 468 dir_c2 = dir(objectify.ObjectifiedElement) + ['c2'] - 469 dir_c2.sort() - 470 - 471 self.assertEquals(dir_c1, dir(root)) - 472 self.assertEquals(dir_c2, dir(root.c1)) -
473 -
474 - def test_vars(self): -
475 root = self.XML(xml_str) - 476 self.assertEquals({'c1' : root.c1}, vars(root)) - 477 self.assertEquals({'c2' : root.c1.c2}, vars(root.c1)) -
478 -
479 - def test_child_set_ro(self): -
480 root = self.XML(xml_str) - 481 self.assertRaises(TypeError, setattr, root.c1.c2, 'text', "test") - 482 self.assertRaises(TypeError, setattr, root.c1.c2, 'pyval', "test") -
483 - 484 # slicing - 485 -
486 - def test_getslice_complete(self): -
487 root = self.XML("<root><c>c1</c><c>c2</c></root>") - 488 self.assertEquals(["c1", "c2"], - 489 [ c.text for c in root.c[:] ]) -
490 -
491 - def test_getslice_partial(self): -
492 root = self.XML("<root><c>c1</c><c>c2</c><c>c3</c><c>c4</c></root>") - 493 test_list = ["c1", "c2", "c3", "c4"] - 494 - 495 self.assertEquals(test_list, - 496 [ c.text for c in root.c[:] ]) - 497 self.assertEquals(test_list[1:2], - 498 [ c.text for c in root.c[1:2] ]) - 499 self.assertEquals(test_list[-3:-1], - 500 [ c.text for c in root.c[-3:-1] ]) - 501 self.assertEquals(test_list[-3:3], - 502 [ c.text for c in root.c[-3:3] ]) - 503 self.assertEquals(test_list[-3000:3], - 504 [ c.text for c in root.c[-3000:3] ]) - 505 self.assertEquals(test_list[-3:3000], - 506 [ c.text for c in root.c[-3:3000] ]) -
507 -
508 - def test_getslice_partial_neg(self): -
509 root = self.XML("<root><c>c1</c><c>c2</c><c>c3</c><c>c4</c></root>") - 510 test_list = ["c1", "c2", "c3", "c4"] - 511 - 512 self.assertEquals(test_list, - 513 [ c.text for c in root.c[:] ]) - 514 self.assertEquals(test_list[2:1:-1], - 515 [ c.text for c in root.c[2:1:-1] ]) - 516 self.assertEquals(test_list[-1:-3:-1], - 517 [ c.text for c in root.c[-1:-3:-1] ]) - 518 self.assertEquals(test_list[2:-3:-1], - 519 [ c.text for c in root.c[2:-3:-1] ]) - 520 self.assertEquals(test_list[2:-3000:-1], - 521 [ c.text for c in root.c[2:-3000:-1] ]) -
522 - 523 # slice assignment - 524 -
525 - def test_setslice_complete(self): -
526 Element = self.Element - 527 root = Element("root") - 528 root.c = ["c1", "c2"] - 529 - 530 c1 = root.c[0] - 531 c2 = root.c[1] - 532 - 533 self.assertEquals([c1,c2], list(root.c)) - 534 self.assertEquals(["c1", "c2"], - 535 [ c.text for c in root.c ]) -
536 -
537 - def test_setslice_elements(self): -
538 Element = self.Element - 539 root = Element("root") - 540 root.c = ["c1", "c2"] - 541 - 542 c1 = root.c[0] - 543 c2 = root.c[1] - 544 - 545 self.assertEquals([c1,c2], list(root.c)) - 546 self.assertEquals(["c1", "c2"], - 547 [ c.text for c in root.c ]) - 548 - 549 root2 = Element("root2") - 550 root2.el = [ "test", "test" ] - 551 self.assertEquals(["test", "test"], - 552 [ el.text for el in root2.el ]) - 553 - 554 root.c = [ root2.el, root2.el ] - 555 self.assertEquals(["test", "test"], - 556 [ c.text for c in root.c ]) - 557 self.assertEquals(["test", "test"], - 558 [ el.text for el in root2.el ]) - 559 - 560 root.c[:] = [ c1, c2, c2, c1 ] - 561 self.assertEquals(["c1", "c2", "c2", "c1"], - 562 [ c.text for c in root.c ]) -
563 -
564 - def test_setslice_partial(self): -
565 Element = self.Element - 566 root = Element("root") - 567 l = ["c1", "c2", "c3", "c4"] - 568 root.c = l - 569 - 570 self.assertEquals(["c1", "c2", "c3", "c4"], - 571 [ c.text for c in root.c ]) - 572 self.assertEquals(l, - 573 [ c.text for c in root.c ]) - 574 - 575 new_slice = ["cA", "cB"] - 576 l[1:2] = new_slice - 577 root.c[1:2] = new_slice - 578 - 579 self.assertEquals(["c1", "cA", "cB", "c3", "c4"], l) - 580 self.assertEquals(["c1", "cA", "cB", "c3", "c4"], - 581 [ c.text for c in root.c ]) - 582 self.assertEquals(l, - 583 [ c.text for c in root.c ]) -
584 -
585 - def test_setslice_insert(self): -
586 Element = self.Element - 587 root = Element("root") - 588 l = ["c1", "c2", "c3", "c4"] - 589 root.c = l - 590 - 591 self.assertEquals(["c1", "c2", "c3", "c4"], - 592 [ c.text for c in root.c ]) - 593 self.assertEquals(l, - 594 [ c.text for c in root.c ]) - 595 - 596 new_slice = ["cA", "cB"] - 597 l[1:1] = new_slice - 598 root.c[1:1] = new_slice - 599 - 600 self.assertEquals(["c1", "cA", "cB", "c2", "c3", "c4"], l) - 601 self.assertEquals(["c1", "cA", "cB", "c2", "c3", "c4"], - 602 [ c.text for c in root.c ]) - 603 self.assertEquals(l, - 604 [ c.text for c in root.c ]) -
605 -
606 - def test_setslice_insert_neg(self): -
607 Element = self.Element - 608 root = Element("root") - 609 l = ["c1", "c2", "c3", "c4"] - 610 root.c = l - 611 - 612 self.assertEquals(["c1", "c2", "c3", "c4"], - 613 [ c.text for c in root.c ]) - 614 self.assertEquals(l, - 615 [ c.text for c in root.c ]) - 616 - 617 new_slice = ["cA", "cB"] - 618 l[-2:-2] = new_slice - 619 root.c[-2:-2] = new_slice - 620 - 621 self.assertEquals(["c1", "c2", "cA", "cB", "c3", "c4"], l) - 622 self.assertEquals(["c1", "c2", "cA", "cB", "c3", "c4"], - 623 [ c.text for c in root.c ]) - 624 self.assertEquals(l, - 625 [ c.text for c in root.c ]) -
626 -
627 - def test_setslice_empty(self): -
628 Element = self.Element - 629 root = Element("root") - 630 - 631 root.c = [] - 632 self.assertRaises( - 633 AttributeError, getattr, root, 'c') -
634 -
636 Element = self.Element - 637 root = Element("root") - 638 l = ["c1", "c2", "c3", "c4"] - 639 root.c = l - 640 - 641 self.assertEquals(["c1", "c2", "c3", "c4"], - 642 [ c.text for c in root.c ]) - 643 self.assertEquals(l, - 644 [ c.text for c in root.c ]) - 645 - 646 new_slice = ["cA", "cB", "cC"] - 647 self.assertRaises( - 648 ValueError, operator.setitem, - 649 l, slice(1,2,-1), new_slice) - 650 self.assertRaises( - 651 ValueError, operator.setitem, - 652 root.c, slice(1,2,-1), new_slice) -
653 -
654 - def test_setslice_partial_neg(self): -
655 Element = self.Element - 656 root = Element("root") - 657 l = ["c1", "c2", "c3", "c4"] - 658 root.c = l - 659 - 660 self.assertEquals(["c1", "c2", "c3", "c4"], - 661 [ c.text for c in root.c ]) - 662 self.assertEquals(l, - 663 [ c.text for c in root.c ]) - 664 - 665 new_slice = ["cA", "cB"] - 666 l[-1:1:-1] = new_slice - 667 root.c[-1:1:-1] = new_slice - 668 - 669 self.assertEquals(["c1", "c2", "cB", "cA"], l) - 670 self.assertEquals(["c1", "c2", "cB", "cA"], - 671 [ c.text for c in root.c ]) - 672 self.assertEquals(l, - 673 [ c.text for c in root.c ]) -
674 -
676 Element = self.Element - 677 root = Element("root") - 678 l = ["c1", "c2", "c3", "c4"] - 679 root.c = l - 680 - 681 self.assertEquals(["c1", "c2", "c3", "c4"], - 682 [ c.text for c in root.c ]) - 683 self.assertEquals(l, - 684 [ c.text for c in root.c ]) - 685 - 686 new_slice = ["cA", "cB"] - 687 l[-1:-4:-2] = new_slice - 688 root.c[-1:-4:-2] = new_slice - 689 - 690 self.assertEquals(["c1", "cB", "c3", "cA"], l) - 691 self.assertEquals(["c1", "cB", "c3", "cA"], - 692 [ c.text for c in root.c ]) - 693 self.assertEquals(l, - 694 [ c.text for c in root.c ]) -
695 - 696 # other stuff - 697 -
698 - def test_set_string(self): -
699 # make sure strings are not handled as sequences - 700 Element = self.Element - 701 root = Element("root") - 702 root.c = "TEST" - 703 self.assertEquals(["TEST"], - 704 [ c.text for c in root.c ]) -
705 -
706 - def test_setitem_string(self): -
707 # make sure strings are set as children - 708 Element = self.Element - 709 root = Element("root") - 710 root["c"] = "TEST" - 711 self.assertEquals(["TEST"], - 712 [ c.text for c in root.c ]) -
713 -
714 - def test_setitem_string_special(self): -
715 # make sure 'text' etc. are set as children - 716 Element = self.Element - 717 root = Element("root") - 718 - 719 root["text"] = "TEST" - 720 self.assertEquals(["TEST"], - 721 [ c.text for c in root["text"] ]) - 722 - 723 root["tail"] = "TEST" - 724 self.assertEquals(["TEST"], - 725 [ c.text for c in root["tail"] ]) - 726 - 727 root["pyval"] = "TEST" - 728 self.assertEquals(["TEST"], - 729 [ c.text for c in root["pyval"] ]) - 730 - 731 root["tag"] = "TEST" - 732 self.assertEquals(["TEST"], - 733 [ c.text for c in root["tag"] ]) -
734 -
735 - def test_findall(self): -
736 XML = self.XML - 737 root = XML('<a><b><c/></b><b/><c><b/></c></a>') - 738 self.assertEquals(1, len(root.findall("c"))) - 739 self.assertEquals(2, len(root.findall(".//c"))) - 740 self.assertEquals(3, len(root.findall(".//b"))) - 741 self.assert_(root.findall(".//b")[1] is root.getchildren()[1]) -
742 -
743 - def test_findall_ns(self): -
744 XML = self.XML - 745 root = XML('<a xmlns:x="X" xmlns:y="Y"><x:b><c/></x:b><b/><c><x:b/><b/></c><b/></a>') - 746 self.assertEquals(2, len(root.findall(".//{X}b"))) - 747 self.assertEquals(3, len(root.findall(".//b"))) - 748 self.assertEquals(2, len(root.findall("b"))) -
749 -
750 - def test_build_tree(self): -
751 root = self.Element('root') - 752 root.a = 5 - 753 root.b = 6 - 754 self.assert_(isinstance(root, objectify.ObjectifiedElement)) - 755 self.assert_(isinstance(root.a, objectify.IntElement)) - 756 self.assert_(isinstance(root.b, objectify.IntElement)) -
757 -
758 - def test_type_NoneType(self): -
759 Element = self.Element - 760 SubElement = self.etree.SubElement - 761 - 762 nil_attr = XML_SCHEMA_NIL_ATTR - 763 root = Element("{objectified}root") - 764 SubElement(root, "{objectified}none") - 765 SubElement(root, "{objectified}none", {nil_attr : "true"}) - 766 self.assertFalse(isinstance(root.none, objectify.NoneElement)) - 767 self.assertFalse(isinstance(root.none[0], objectify.NoneElement)) - 768 self.assert_(isinstance(root.none[1], objectify.NoneElement)) - 769 self.assertEquals(hash(root.none[1]), hash(None)) - 770 self.assertEquals(root.none[1], None) - 771 self.assertFalse(root.none[1]) -
772 -
773 - def test_data_element_NoneType(self): -
774 value = objectify.DataElement(None) - 775 self.assert_(isinstance(value, objectify.NoneElement)) - 776 self.assertEquals(value, None) - 777 self.assertEquals(value.get(XML_SCHEMA_NIL_ATTR), "true") -
778 -
779 - def test_type_bool(self): -
780 Element = self.Element - 781 SubElement = self.etree.SubElement - 782 root = Element("{objectified}root") - 783 root.bool = True - 784 self.assertEquals(root.bool, True) - 785 self.assertEquals(root.bool + root.bool, True + True) - 786 self.assertEquals(True + root.bool, True + root.bool) - 787 self.assertEquals(root.bool * root.bool, True * True) - 788 self.assertEquals(int(root.bool), int(True)) - 789 self.assertEquals(hash(root.bool), hash(True)) - 790 self.assertEquals(complex(root.bool), complex(True)) - 791 self.assert_(isinstance(root.bool, objectify.BoolElement)) - 792 - 793 root.bool = False - 794 self.assertEquals(root.bool, False) - 795 self.assertEquals(root.bool + root.bool, False + False) - 796 self.assertEquals(False + root.bool, False + root.bool) - 797 self.assertEquals(root.bool * root.bool, False * False) - 798 self.assertEquals(int(root.bool), int(False)) - 799 self.assertEquals(hash(root.bool), hash(False)) - 800 self.assertEquals(complex(root.bool), complex(False)) - 801 self.assert_(isinstance(root.bool, objectify.BoolElement)) -
802 -
803 - def test_data_element_bool(self): -
804 value = objectify.DataElement(True) - 805 self.assert_(isinstance(value, objectify.BoolElement)) - 806 self.assertEquals(value, True) - 807 - 808 value = objectify.DataElement(False) - 809 self.assert_(isinstance(value, objectify.BoolElement)) - 810 self.assertEquals(value, False) -
811 -
812 - def test_type_str(self): -
813 Element = self.Element - 814 SubElement = self.etree.SubElement - 815 root = Element("{objectified}root") - 816 root.s = "test" - 817 self.assert_(isinstance(root.s, objectify.StringElement)) -
818 -
819 - def test_type_str_intliteral(self): -
820 Element = self.Element - 821 SubElement = self.etree.SubElement - 822 root = Element("{objectified}root") - 823 root.s = "3" - 824 self.assert_(isinstance(root.s, objectify.StringElement)) -
825 -
826 - def test_type_str_floatliteral(self): -
827 Element = self.Element - 828 SubElement = self.etree.SubElement - 829 root = Element("{objectified}root") - 830 root.s = "3.72" - 831 self.assert_(isinstance(root.s, objectify.StringElement)) -
832 -
833 - def test_type_str_mul(self): -
834 Element = self.Element - 835 SubElement = self.etree.SubElement - 836 root = Element("{objectified}root") - 837 root.s = "test" - 838 - 839 self.assertEquals("test" * 5, root.s * 5) - 840 self.assertEquals(5 * "test", 5 * root.s) - 841 - 842 self.assertRaises(TypeError, operator.mul, root.s, "honk") - 843 self.assertRaises(TypeError, operator.mul, "honk", root.s) -
844 -
845 - def test_type_str_add(self): -
846 Element = self.Element - 847 SubElement = self.etree.SubElement - 848 root = Element("{objectified}root") - 849 root.s = "test" - 850 - 851 s = "toast" - 852 self.assertEquals("test" + s, root.s + s) - 853 self.assertEquals(s + "test", s + root.s) -
854 -
855 - def test_type_str_mod(self): -
856 s = "%d %f %s %r" - 857 el = objectify.DataElement(s) - 858 values = (1, 7.0, "abcd", None) - 859 self.assertEquals(s % values, el % values) - 860 - 861 s = "%d" - 862 el = objectify.DataElement(s) - 863 val = 5 - 864 self.assertEquals(s % val, el % val) - 865 - 866 s = "%d %s" - 867 el = objectify.DataElement(s) - 868 val = 5 - 869 self.assertRaises(TypeError, el.__mod__, val) - 870 - 871 s = "" - 872 el = objectify.DataElement(s) - 873 val = 5 - 874 self.assertRaises(TypeError, el.__mod__, val) -
875 -
876 - def test_type_str_hash(self): -
877 v = "1" - 878 el = objectify.DataElement(v) - 879 self.assertEquals(hash(el), hash("1")) -
880 -
881 - def test_type_str_as_int(self): -
882 v = "1" - 883 el = objectify.DataElement(v) - 884 self.assertEquals(int(el), 1) -
885 -
886 - def test_type_str_as_float(self): -
887 v = "1" - 888 el = objectify.DataElement(v) - 889 self.assertEquals(float(el), 1) -
890 -
891 - def test_type_str_as_complex(self): -
892 v = "1" - 893 el = objectify.DataElement(v) - 894 self.assertEquals(complex(el), 1) -
895 -
897 s = "%d %f %s %r" - 898 el = objectify.DataElement(s) - 899 values = (objectify.DataElement(1), - 900 objectify.DataElement(7.0), - 901 objectify.DataElement("abcd"), - 902 objectify.DataElement(None)) - 903 self.assertEquals(s % values, el % values) -
904 -
905 - def test_data_element_str(self): -
906 value = objectify.DataElement("test") - 907 self.assert_(isinstance(value, objectify.StringElement)) - 908 self.assertEquals(value, "test") -
909 -
911 value = objectify.DataElement("3") - 912 self.assert_(isinstance(value, objectify.StringElement)) - 913 self.assertEquals(value, "3") -
914 -
916 value = objectify.DataElement("3.20") - 917 self.assert_(isinstance(value, objectify.StringElement)) - 918 self.assertEquals(value, "3.20") -
919 -
920 - def test_type_ustr(self): -
921 Element = self.Element - 922 SubElement = self.etree.SubElement - 923 root = Element("{objectified}root") - 924 root.s = _str("test") - 925 self.assert_(isinstance(root.s, objectify.StringElement)) -
926 -
927 - def test_type_ustr_intliteral(self): -
928 Element = self.Element - 929 SubElement = self.etree.SubElement - 930 root = Element("{objectified}root") - 931 root.s = _str("3") - 932 self.assert_(isinstance(root.s, objectify.StringElement)) -
933 -
934 - def test_type_ustr_floatliteral(self): -
935 Element = self.Element - 936 SubElement = self.etree.SubElement - 937 root = Element("{objectified}root") - 938 root.s = _str("3.72") - 939 self.assert_(isinstance(root.s, objectify.StringElement)) -
940 -
941 - def test_type_ustr_mul(self): -
942 Element = self.Element - 943 SubElement = self.etree.SubElement - 944 root = Element("{objectified}root") - 945 root.s = _str("test") - 946 - 947 self.assertEquals(_str("test") * 5, root.s * 5) - 948 self.assertEquals(5 * _str("test"), 5 * root.s) - 949 - 950 self.assertRaises(TypeError, operator.mul, root.s, _str("honk")) - 951 self.assertRaises(TypeError, operator.mul, _str("honk"), root.s) -
952 -
953 - def test_type_ustr_add(self): -
954 Element = self.Element - 955 SubElement = self.etree.SubElement - 956 root = Element("{objectified}root") - 957 root.s = _str("test") - 958 - 959 s = _str("toast") - 960 self.assertEquals(_str("test") + s, root.s + s) - 961 self.assertEquals(s + _str("test"), s + root.s) -
962 -
963 - def test_data_element_ustr(self): -
964 value = objectify.DataElement(_str("test")) - 965 self.assert_(isinstance(value, objectify.StringElement)) - 966 self.assertEquals(value, _str("test")) -
967 -
969 value = objectify.DataElement("3") - 970 self.assert_(isinstance(value, objectify.StringElement)) - 971 self.assertEquals(value, _str("3")) -
972 -
974 value = objectify.DataElement(_str("3.20")) - 975 self.assert_(isinstance(value, objectify.StringElement)) - 976 self.assertEquals(value, _str("3.20")) -
977 -
978 - def test_type_int(self): -
979 Element = self.Element - 980 SubElement = self.etree.SubElement - 981 root = Element("{objectified}root") - 982 root.none = 5 - 983 self.assert_(isinstance(root.none, objectify.IntElement)) -
984 -
985 - def test_data_element_int(self): -
986 value = objectify.DataElement(5) - 987 self.assert_(isinstance(value, objectify.IntElement)) - 988 self.assertEquals(value, 5) -
989 -
990 - def test_data_element_int_hash(self): -
991 value = objectify.DataElement(123) - 992 self.assertEquals(hash(value), hash(123)) -
993 -
994 - def test_type_float(self): -
995 Element = self.Element - 996 SubElement = self.etree.SubElement - 997 root = Element("{objectified}root") - 998 root.none = 5.5 - 999 self.assert_(isinstance(root.none, objectify.FloatElement)) -
1000 -
1001 - def test_data_element_float(self): -
1002 value = objectify.DataElement(5.5) -1003 self.assert_(isinstance(value, objectify.FloatElement)) -1004 self.assertEquals(value, 5.5) -
1005 -
1007 value = objectify.DataElement(5.5) -1008 self.assertEquals(hash(value), hash(5.5)) -
1009 -
1010 - def test_data_element_xsitypes(self): -
1011 for xsi, objclass in xsitype2objclass.items(): -1012 # 1 is a valid value for all ObjectifiedDataElement classes -1013 pyval = 1 -1014 value = objectify.DataElement(pyval, _xsi=xsi) -1015 self.assert_(isinstance(value, objclass), -1016 "DataElement(%s, _xsi='%s') returns %s, expected %s" -1017 % (pyval, xsi, type(value), objclass)) -
1018 -
1020 for xsi, objclass in xsitype2objclass.items(): -1021 # 1 is a valid value for all ObjectifiedDataElement classes -1022 pyval = 1 -1023 value = objectify.DataElement(pyval, _xsi="xsd:%s" % xsi) -1024 self.assert_(isinstance(value, objclass), -1025 "DataElement(%s, _xsi='%s') returns %s, expected %s" -1026 % (pyval, xsi, type(value), objclass)) -
1027 -
1029 for xsi, objclass in xsitype2objclass.items(): -1030 # 1 is a valid value for all ObjectifiedDataElement classes -1031 self.assertRaises(ValueError, objectify.DataElement, 1, -1032 _xsi="foo:%s" % xsi) -
1033 -
1034 - def test_data_element_pytypes(self): -
1035 for pytype, objclass in pytype2objclass.items(): -1036 # 1 is a valid value for all ObjectifiedDataElement classes -1037 pyval = 1 -1038 value = objectify.DataElement(pyval, _pytype=pytype) -1039 self.assert_(isinstance(value, objclass), -1040 "DataElement(%s, _pytype='%s') returns %s, expected %s" -1041 % (pyval, pytype, type(value), objclass)) -
1042 -
1044 pyval = 1 -1045 pytype = "NoneType" -1046 objclass = objectify.NoneElement -1047 value = objectify.DataElement(pyval, _pytype=pytype) -1048 self.assert_(isinstance(value, objclass), -1049 "DataElement(%s, _pytype='%s') returns %s, expected %s" -1050 % (pyval, pytype, type(value), objclass)) -1051 self.assertEquals(value.text, None) -1052 self.assertEquals(value.pyval, None) -
1053 -
1055 # pre-2.0 lxml called NoneElement "none" -1056 pyval = 1 -1057 pytype = "none" -1058 objclass = objectify.NoneElement -1059 value = objectify.DataElement(pyval, _pytype=pytype) -1060 self.assert_(isinstance(value, objclass), -1061 "DataElement(%s, _pytype='%s') returns %s, expected %s" -1062 % (pyval, pytype, type(value), objclass)) -1063 self.assertEquals(value.text, None) -1064 self.assertEquals(value.pyval, None) -
1065 -
1066 - def test_type_unregistered(self): -
1067 Element = self.Element -1068 SubElement = self.etree.SubElement -1069 class MyFloat(float): -1070 pass -
1071 root = Element("{objectified}root") -1072 root.myfloat = MyFloat(5.5) -1073 self.assert_(isinstance(root.myfloat, objectify.FloatElement)) -1074 self.assertEquals(root.myfloat.get(objectify.PYTYPE_ATTRIBUTE), None) -
1075 -
1077 class MyFloat(float): -1078 pass -
1079 value = objectify.DataElement(MyFloat(5.5)) -1080 self.assert_(isinstance(value, objectify.FloatElement)) -1081 self.assertEquals(value, 5.5) -1082 self.assertEquals(value.get(objectify.PYTYPE_ATTRIBUTE), None) -1083 -
1084 - def test_schema_types(self): -
1085 XML = self.XML -1086 root = XML('''\ -1087 <root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> -1088 <b xsi:type="boolean">true</b> -1089 <b xsi:type="boolean">false</b> -1090 <b xsi:type="boolean">1</b> -1091 <b xsi:type="boolean">0</b> -1092 -1093 <f xsi:type="float">5</f> -1094 <f xsi:type="double">5</f> -1095 -1096 <s xsi:type="string">5</s> -1097 <s xsi:type="normalizedString">5</s> -1098 <s xsi:type="token">5</s> -1099 <s xsi:type="language">5</s> -1100 <s xsi:type="Name">5</s> -1101 <s xsi:type="NCName">5</s> -1102 <s xsi:type="ID">5</s> -1103 <s xsi:type="IDREF">5</s> -1104 <s xsi:type="ENTITY">5</s> -1105 <s xsi:type="NMTOKEN">5</s> -1106 -1107 <l xsi:type="integer">5</l> -1108 <l xsi:type="nonPositiveInteger">5</l> -1109 <l xsi:type="negativeInteger">5</l> -1110 <l xsi:type="long">5</l> -1111 <l xsi:type="nonNegativeInteger">5</l> -1112 <l xsi:type="unsignedLong">5</l> -1113 <l xsi:type="unsignedInt">5</l> -1114 <l xsi:type="positiveInteger">5</l> -1115 -1116 <i xsi:type="int">5</i> -1117 <i xsi:type="short">5</i> -1118 <i xsi:type="byte">5</i> -1119 <i xsi:type="unsignedShort">5</i> -1120 <i xsi:type="unsignedByte">5</i> -1121 -1122 <n xsi:nil="true"/> -1123 </root> -1124 ''') -1125 -1126 for b in root.b: -1127 self.assert_(isinstance(b, objectify.BoolElement)) -1128 self.assertEquals(True, root.b[0]) -1129 self.assertEquals(False, root.b[1]) -1130 self.assertEquals(True, root.b[2]) -1131 self.assertEquals(False, root.b[3]) -1132 -1133 for f in root.f: -1134 self.assert_(isinstance(f, objectify.FloatElement)) -1135 self.assertEquals(5, f) -1136 -1137 for s in root.s: -1138 self.assert_(isinstance(s, objectify.StringElement)) -1139 self.assertEquals("5", s) -1140 -1141 for i in root.i: -1142 self.assert_(isinstance(i, objectify.IntElement)) -1143 self.assertEquals(5, i) -1144 -1145 for l in root.l: -1146 self.assert_(isinstance(l, objectify.IntElement)) -1147 self.assertEquals(5, i) -1148 -1149 self.assert_(isinstance(root.n, objectify.NoneElement)) -1150 self.assertEquals(None, root.n) -
1151 -
1152 - def test_schema_types_prefixed(self): -
1153 XML = self.XML -1154 root = XML('''\ -1155 <root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" -1156 xmlns:xsd="http://www.w3.org/2001/XMLSchema"> -1157 <b xsi:type="xsd:boolean">true</b> -1158 <b xsi:type="xsd:boolean">false</b> -1159 <b xsi:type="xsd:boolean">1</b> -1160 <b xsi:type="xsd:boolean">0</b> -1161 -1162 <f xsi:type="xsd:float">5</f> -1163 <f xsi:type="xsd:double">5</f> -1164 -1165 <s xsi:type="xsd:string">5</s> -1166 <s xsi:type="xsd:normalizedString">5</s> -1167 <s xsi:type="xsd:token">5</s> -1168 <s xsi:type="xsd:language">5</s> -1169 <s xsi:type="xsd:Name">5</s> -1170 <s xsi:type="xsd:NCName">5</s> -1171 <s xsi:type="xsd:ID">5</s> -1172 <s xsi:type="xsd:IDREF">5</s> -1173 <s xsi:type="xsd:ENTITY">5</s> -1174 <s xsi:type="xsd:NMTOKEN">5</s> -1175 -1176 <l xsi:type="xsd:integer">5</l> -1177 <l xsi:type="xsd:nonPositiveInteger">5</l> -1178 <l xsi:type="xsd:negativeInteger">5</l> -1179 <l xsi:type="xsd:long">5</l> -1180 <l xsi:type="xsd:nonNegativeInteger">5</l> -1181 <l xsi:type="xsd:unsignedLong">5</l> -1182 <l xsi:type="xsd:unsignedInt">5</l> -1183 <l xsi:type="xsd:positiveInteger">5</l> -1184 -1185 <i xsi:type="xsd:int">5</i> -1186 <i xsi:type="xsd:short">5</i> -1187 <i xsi:type="xsd:byte">5</i> -1188 <i xsi:type="xsd:unsignedShort">5</i> -1189 <i xsi:type="xsd:unsignedByte">5</i> -1190 -1191 <n xsi:nil="true"/> -1192 </root> -1193 ''') -1194 -1195 for b in root.b: -1196 self.assert_(isinstance(b, objectify.BoolElement)) -1197 self.assertEquals(True, root.b[0]) -1198 self.assertEquals(False, root.b[1]) -1199 self.assertEquals(True, root.b[2]) -1200 self.assertEquals(False, root.b[3]) -1201 -1202 for f in root.f: -1203 self.assert_(isinstance(f, objectify.FloatElement)) -1204 self.assertEquals(5, f) -1205 -1206 for s in root.s: -1207 self.assert_(isinstance(s, objectify.StringElement)) -1208 self.assertEquals("5", s) -1209 -1210 for i in root.i: -1211 self.assert_(isinstance(i, objectify.IntElement)) -1212 self.assertEquals(5, i) -1213 -1214 for l in root.l: -1215 self.assert_(isinstance(l, objectify.IntElement)) -1216 self.assertEquals(5, l) -1217 -1218 self.assert_(isinstance(root.n, objectify.NoneElement)) -1219 self.assertEquals(None, root.n) -
1220 -
1221 - def test_type_str_sequence(self): -
1222 XML = self.XML -1223 root = XML(_bytes('<root><b>why</b><b>try</b></root>')) -1224 strs = [ str(s) for s in root.b ] -1225 self.assertEquals(["why", "try"], -1226 strs) -
1227 -
1228 - def test_type_str_cmp(self): -
1229 XML = self.XML -1230 root = XML(_bytes('<root><b>test</b><b>taste</b><b></b><b/></root>')) -1231 self.assertFalse(root.b[0] < root.b[1]) -1232 self.assertFalse(root.b[0] <= root.b[1]) -1233 self.assertFalse(root.b[0] == root.b[1]) -1234 -1235 self.assert_(root.b[0] != root.b[1]) -1236 self.assert_(root.b[0] >= root.b[1]) -1237 self.assert_(root.b[0] > root.b[1]) -1238 -1239 self.assertEquals(root.b[0], "test") -1240 self.assertEquals("test", root.b[0]) -1241 -1242 self.assertEquals("", root.b[2]) -1243 self.assertEquals(root.b[2], "") -1244 self.assertEquals("", root.b[3]) -1245 self.assertEquals(root.b[3], "") -1246 self.assertEquals(root.b[2], root.b[3]) -1247 -1248 root.b = "test" -1249 self.assert_(root.b) -1250 root.b = "" -1251 self.assertFalse(root.b) -1252 self.assertEquals(root.b, "") -1253 self.assertEquals("", root.b) -
1254 -
1255 - def test_type_int_cmp(self): -
1256 XML = self.XML -1257 root = XML(_bytes('<root><b>5</b><b>6</b></root>')) -1258 self.assert_(root.b[0] < root.b[1]) -1259 self.assert_(root.b[0] <= root.b[1]) -1260 self.assert_(root.b[0] != root.b[1]) -1261 -1262 self.assertFalse(root.b[0] == root.b[1]) -1263 self.assertFalse(root.b[0] >= root.b[1]) -1264 self.assertFalse(root.b[0] > root.b[1]) -1265 -1266 self.assertEquals(root.b[0], 5) -1267 self.assertEquals(5, root.b[0]) -1268 self.assertNotEquals(root.b[0], "5") -1269 -1270 root.b = 5 -1271 self.assert_(root.b) -1272 root.b = 0 -1273 self.assertFalse(root.b) -
1274 -1275 # float + long share the NumberElement implementation with int -1276 -
1277 - def test_type_bool_cmp(self): -
1278 XML = self.XML -1279 root = XML(_bytes('<root><b>false</b><b>true</b></root>')) -1280 self.assert_(root.b[0] < root.b[1]) -1281 self.assert_(root.b[0] <= root.b[1]) -1282 self.assert_(root.b[0] != root.b[1]) -1283 -1284 self.assertFalse(root.b[0] == root.b[1]) -1285 self.assertFalse(root.b[0] >= root.b[1]) -1286 self.assertFalse(root.b[0] > root.b[1]) -1287 -1288 self.assertFalse(root.b[0]) -1289 self.assert_(root.b[1]) -1290 -1291 self.assertEquals(root.b[0], False) -1292 self.assertEquals(False, root.b[0]) -1293 self.assert_(root.b[0] < 5) -1294 self.assert_(5 > root.b[0]) -1295 -1296 root.b = True -1297 self.assert_(root.b) -1298 root.b = False -1299 self.assertFalse(root.b) -
1300 -
1301 - def test_type_none_cmp(self): -
1302 XML = self.XML -1303 root = XML(_bytes(""" -1304 <root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> -1305 <b xsi:nil="true"></b><b xsi:nil="true"/> -1306 </root>""")) -1307 self.assert_(root.b[0] == root.b[1]) -1308 self.assertFalse(root.b[0]) -1309 self.assertEquals(root.b[0], None) -1310 self.assertEquals(None, root.b[0]) -
1311 -1312 # doesn't work in Py3: -1313 -1314 #for comparison in ["abc", 5, 7.3, True, [], ()]: -1315 # none = root.b[1] -1316 # self.assert_(none < comparison, "%s (%s) should be < %s" % -1317 # (none, type(none), comparison) ) -1318 # self.assert_(comparison > none, "%s should be > %s (%s)" % -1319 # (comparison, none, type(none)) ) -1320 -
1321 - def test_dataelement_xsi(self): -
1322 el = objectify.DataElement(1, _xsi="string") -1323 self.assertEquals( -1324 el.get(XML_SCHEMA_INSTANCE_TYPE_ATTR), -1325 'xsd:string') -
1326 -
1327 - def test_dataelement_xsi_nsmap(self): -
1328 el = objectify.DataElement(1, _xsi="string", -1329 nsmap={'schema': XML_SCHEMA_NS}) -1330 self.assertEquals( -1331 el.get(XML_SCHEMA_INSTANCE_TYPE_ATTR), -1332 'schema:string') -
1333 -
1335 self.assertRaises(ValueError, objectify.DataElement, 1, -1336 _xsi="foo:string") -
1337 -
1338 - def test_pytype_annotation(self): -
1339 XML = self.XML -1340 root = XML(_bytes('''\ -1341 <a xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" -1342 xmlns:py="http://codespeak.net/lxml/objectify/pytype"> -1343 <b>5</b> -1344 <b>test</b> -1345 <c>1.1</c> -1346 <c>\uF8D2</c> -1347 <x>true</x> -1348 <n xsi:nil="true" /> -1349 <n></n> -1350 <b xsi:type="double">5</b> -1351 <b xsi:type="float">5</b> -1352 <s xsi:type="string">23</s> -1353 <s py:pytype="str">42</s> -1354 <f py:pytype="float">300</f> -1355 <l py:pytype="long">2</l> -1356 <t py:pytype="TREE"></t> -1357 </a> -1358 ''')) -1359 objectify.annotate(root) -1360 -1361 child_types = [ c.get(objectify.PYTYPE_ATTRIBUTE) -1362 for c in root.iterchildren() ] -1363 self.assertEquals("int", child_types[ 0]) -1364 self.assertEquals("str", child_types[ 1]) -1365 self.assertEquals("float", child_types[ 2]) -1366 self.assertEquals("str", child_types[ 3]) -1367 self.assertEquals("bool", child_types[ 4]) -1368 self.assertEquals("NoneType", child_types[ 5]) -1369 self.assertEquals(None, child_types[ 6]) -1370 self.assertEquals("float", child_types[ 7]) -1371 self.assertEquals("float", child_types[ 8]) -1372 self.assertEquals("str", child_types[ 9]) -1373 self.assertEquals("int", child_types[10]) -1374 self.assertEquals("int", child_types[11]) -1375 self.assertEquals("int", child_types[12]) -1376 self.assertEquals(None, child_types[13]) -1377 -1378 self.assertEquals("true", root.n.get(XML_SCHEMA_NIL_ATTR)) -
1379 -
1381 XML = self.XML -1382 root = XML(_bytes('''\ -1383 <a xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" -1384 xmlns:py="http://codespeak.net/lxml/objectify/pytype"> -1385 <n></n> -1386 </a> -1387 ''')) -1388 objectify.annotate(root) -1389 -1390 child_types = [ c.get(objectify.PYTYPE_ATTRIBUTE) -1391 for c in root.iterchildren() ] -1392 self.assertEquals(None, child_types[0]) -1393 -1394 objectify.annotate(root, empty_pytype="str") -1395 -1396 child_types = [ c.get(objectify.PYTYPE_ATTRIBUTE) -1397 for c in root.iterchildren() ] -1398 self.assertEquals("str", child_types[0]) -
1399 -
1401 XML = self.XML -1402 root = XML(_bytes('''\ -1403 <a xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" -1404 xmlns:py="http://codespeak.net/lxml/objectify/pytype"> -1405 <b>5</b> -1406 <b>test</b> -1407 <c>1.1</c> -1408 <c>\uF8D2</c> -1409 <x>true</x> -1410 <n xsi:nil="true" /> -1411 <n></n> -1412 <b xsi:type="double">5</b> -1413 <b xsi:type="float">5</b> -1414 <s xsi:type="string">23</s> -1415 <s py:pytype="str">42</s> -1416 <f py:pytype="float">300</f> -1417 <l py:pytype="long">2</l> -1418 <t py:pytype="TREE"></t> -1419 </a> -1420 ''')) -1421 objectify.annotate(root, ignore_old=False) -1422 -1423 child_types = [ c.get(objectify.PYTYPE_ATTRIBUTE) -1424 for c in root.iterchildren() ] -1425 self.assertEquals("int", child_types[ 0]) -1426 self.assertEquals("str", child_types[ 1]) -1427 self.assertEquals("float", child_types[ 2]) -1428 self.assertEquals("str", child_types[ 3]) -1429 self.assertEquals("bool", child_types[ 4]) -1430 self.assertEquals("NoneType", child_types[ 5]) -1431 self.assertEquals(None, child_types[ 6]) -1432 self.assertEquals("float", child_types[ 7]) -1433 self.assertEquals("float", child_types[ 8]) -1434 self.assertEquals("str", child_types[ 9]) -1435 self.assertEquals("str", child_types[10]) -1436 self.assertEquals("float", child_types[11]) -1437 self.assertEquals("int", child_types[12]) -1438 self.assertEquals(TREE_PYTYPE, child_types[13]) -1439 -1440 self.assertEquals("true", root.n.get(XML_SCHEMA_NIL_ATTR)) -
1441 -
1443 XML = self.XML -1444 root = XML(_bytes('''\ -1445 <a xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" -1446 xmlns:py="http://codespeak.net/lxml/objectify/pytype"> -1447 <b>5</b> -1448 <b>test</b> -1449 <c>1.1</c> -1450 <c>\uF8D2</c> -1451 <x>true</x> -1452 <n xsi:nil="true" /> -1453 <n></n> -1454 <b xsi:type="double">5</b> -1455 <b xsi:type="float">5</b> -1456 <s xsi:type="string">23</s> -1457 <s py:pytype="str">42</s> -1458 <f py:pytype="float">300</f> -1459 <l py:pytype="long">2</l> -1460 <t py:pytype="TREE"></t> -1461 </a> -1462 ''')) -1463 objectify.annotate(root, ignore_old=False, ignore_xsi=False, -1464 annotate_xsi=1, annotate_pytype=1) -1465 -1466 # check py annotations -1467 child_types = [ c.get(objectify.PYTYPE_ATTRIBUTE) -1468 for c in root.iterchildren() ] -1469 self.assertEquals("int", child_types[ 0]) -1470 self.assertEquals("str", child_types[ 1]) -1471 self.assertEquals("float", child_types[ 2]) -1472 self.assertEquals("str", child_types[ 3]) -1473 self.assertEquals("bool", child_types[ 4]) -1474 self.assertEquals("NoneType", child_types[ 5]) -1475 self.assertEquals(None, child_types[ 6]) -1476 self.assertEquals("float", child_types[ 7]) -1477 self.assertEquals("float", child_types[ 8]) -1478 self.assertEquals("str", child_types[ 9]) -1479 self.assertEquals("str", child_types[10]) -1480 self.assertEquals("float", child_types[11]) -1481 self.assertEquals("int", child_types[12]) -1482 self.assertEquals(TREE_PYTYPE, child_types[13]) -1483 -1484 self.assertEquals("true", root.n.get(XML_SCHEMA_NIL_ATTR)) -1485 -1486 child_xsitypes = [ c.get(XML_SCHEMA_INSTANCE_TYPE_ATTR) -1487 for c in root.iterchildren() ] -1488 -1489 # check xsi annotations -1490 child_types = [ c.get(XML_SCHEMA_INSTANCE_TYPE_ATTR) -1491 for c in root.iterchildren() ] -1492 self.assertEquals("xsd:integer", child_types[ 0]) -1493 self.assertEquals("xsd:string", child_types[ 1]) -1494 self.assertEquals("xsd:double", child_types[ 2]) -1495 self.assertEquals("xsd:string", child_types[ 3]) -1496 self.assertEquals("xsd:boolean", child_types[ 4]) -1497 self.assertEquals(None, child_types[ 5]) -1498 self.assertEquals(None, child_types[ 6]) -1499 self.assertEquals("xsd:double", child_types[ 7]) -1500 self.assertEquals("xsd:float", child_types[ 8]) -1501 self.assertEquals("xsd:string", child_types[ 9]) -1502 self.assertEquals("xsd:string", child_types[10]) -1503 self.assertEquals("xsd:double", child_types[11]) -1504 self.assertEquals("xsd:integer", child_types[12]) -1505 self.assertEquals(None, child_types[13]) -1506 -1507 self.assertEquals("true", root.n.get(XML_SCHEMA_NIL_ATTR)) -
1508 -
1509 - def test_xsiannotate_use_old(self): -
1510 XML = self.XML -1511 root = XML(_bytes('''\ -1512 <a xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" -1513 xmlns:py="http://codespeak.net/lxml/objectify/pytype"> -1514 <b>5</b> -1515 <b>test</b> -1516 <c>1.1</c> -1517 <c>\uF8D2</c> -1518 <x>true</x> -1519 <n xsi:nil="true" /> -1520 <n></n> -1521 <b xsi:type="double">5</b> -1522 <b xsi:type="float">5</b> -1523 <s xsi:type="string">23</s> -1524 <s py:pytype="str">42</s> -1525 <f py:pytype="float">300</f> -1526 <l py:pytype="long">2</l> -1527 <t py:pytype="TREE"></t> -1528 </a> -1529 ''')) -1530 objectify.xsiannotate(root, ignore_old=False) -1531 -1532 child_types = [ c.get(XML_SCHEMA_INSTANCE_TYPE_ATTR) -1533 for c in root.iterchildren() ] -1534 self.assertEquals("xsd:integer", child_types[ 0]) -1535 self.assertEquals("xsd:string", child_types[ 1]) -1536 self.assertEquals("xsd:double", child_types[ 2]) -1537 self.assertEquals("xsd:string", child_types[ 3]) -1538 self.assertEquals("xsd:boolean", child_types[ 4]) -1539 self.assertEquals(None, child_types[ 5]) -1540 self.assertEquals(None, child_types[ 6]) -1541 self.assertEquals("xsd:double", child_types[ 7]) -1542 self.assertEquals("xsd:float", child_types[ 8]) -1543 self.assertEquals("xsd:string", child_types[ 9]) -1544 self.assertEquals("xsd:string", child_types[10]) -1545 self.assertEquals("xsd:double", child_types[11]) -1546 self.assertEquals("xsd:integer", child_types[12]) -1547 self.assertEquals(None, child_types[13]) -
1548 -
1549 - def test_pyannotate_ignore_old(self): -
1550 XML = self.XML -1551 root = XML(_bytes('''\ -1552 <a xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" -1553 xmlns:py="http://codespeak.net/lxml/objectify/pytype"> -1554 <b>5</b> -1555 <b>test</b> -1556 <c>1.1</c> -1557 <c>\uF8D2</c> -1558 <x>true</x> -1559 <n xsi:nil="true" /> -1560 <n></n> -1561 <b xsi:type="double">5</b> -1562 <b xsi:type="float">5</b> -1563 <s xsi:type="string">23</s> -1564 <s py:pytype="str">42</s> -1565 <f py:pytype="float">300</f> -1566 <l py:pytype="long">2</l> -1567 <t py:pytype="TREE"></t> -1568 </a> -1569 ''')) -1570 objectify.pyannotate(root, ignore_old=True) -1571 -1572 child_types = [ c.get(objectify.PYTYPE_ATTRIBUTE) -1573 for c in root.iterchildren() ] -1574 self.assertEquals("int", child_types[ 0]) -1575 self.assertEquals("str", child_types[ 1]) -1576 self.assertEquals("float", child_types[ 2]) -1577 self.assertEquals("str", child_types[ 3]) -1578 self.assertEquals("bool", child_types[ 4]) -1579 self.assertEquals("NoneType", child_types[ 5]) -1580 self.assertEquals(None, child_types[ 6]) -1581 self.assertEquals("float", child_types[ 7]) -1582 self.assertEquals("float", child_types[ 8]) -1583 self.assertEquals("str", child_types[ 9]) -1584 self.assertEquals("int", child_types[10]) -1585 self.assertEquals("int", child_types[11]) -1586 self.assertEquals("int", child_types[12]) -1587 self.assertEquals(None, child_types[13]) -1588 -1589 self.assertEquals("true", root.n.get(XML_SCHEMA_NIL_ATTR)) -
1590 -
1591 - def test_pyannotate_empty(self): -
1592 XML = self.XML -1593 root = XML('''\ -1594 <a xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" -1595 xmlns:py="http://codespeak.net/lxml/objectify/pytype"> -1596 <n></n> -1597 </a> -1598 ''') -1599 objectify.pyannotate(root) -1600 -1601 child_types = [ c.get(objectify.PYTYPE_ATTRIBUTE) -1602 for c in root.iterchildren() ] -1603 self.assertEquals(None, child_types[0]) -1604 -1605 objectify.annotate(root, empty_pytype="str") -1606 -1607 child_types = [ c.get(objectify.PYTYPE_ATTRIBUTE) -1608 for c in root.iterchildren() ] -1609 self.assertEquals("str", child_types[0]) -
1610 -
1611 - def test_pyannotate_use_old(self): -
1612 XML = self.XML -1613 root = XML('''\ -1614 <a xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" -1615 xmlns:py="http://codespeak.net/lxml/objectify/pytype"> -1616 <b>5</b> -1617 <b>test</b> -1618 <c>1.1</c> -1619 <c>\uF8D2</c> -1620 <x>true</x> -1621 <n xsi:nil="true" /> -1622 <n></n> -1623 <b xsi:type="double">5</b> -1624 <b xsi:type="float">5</b> -1625 <s xsi:type="string">23</s> -1626 <s py:pytype="str">42</s> -1627 <f py:pytype="float">300</f> -1628 <l py:pytype="long">2</l> -1629 <t py:pytype="TREE"></t> -1630 </a> -1631 ''') -1632 objectify.pyannotate(root) -1633 -1634 child_types = [ c.get(objectify.PYTYPE_ATTRIBUTE) -1635 for c in root.iterchildren() ] -1636 self.assertEquals("int", child_types[ 0]) -1637 self.assertEquals("str", child_types[ 1]) -1638 self.assertEquals("float", child_types[ 2]) -1639 self.assertEquals("str", child_types[ 3]) -1640 self.assertEquals("bool", child_types[ 4]) -1641 self.assertEquals("NoneType", child_types[ 5]) -1642 self.assertEquals(None, child_types[ 6]) -1643 self.assertEquals("float", child_types[ 7]) -1644 self.assertEquals("float", child_types[ 8]) -1645 self.assertEquals("str", child_types[ 9]) -1646 self.assertEquals("str", child_types[10]) -1647 self.assertEquals("float", child_types[11]) -1648 self.assertEquals("int", child_types[12]) -1649 self.assertEquals(TREE_PYTYPE, child_types[13]) -1650 -1651 self.assertEquals("true", root.n.get(XML_SCHEMA_NIL_ATTR)) -
1652 -
1653 - def test_xsiannotate_ignore_old(self): -
1654 XML = self.XML -1655 root = XML(_bytes('''\ -1656 <a xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" -1657 xmlns:py="http://codespeak.net/lxml/objectify/pytype"> -1658 <b>5</b> -1659 <b>test</b> -1660 <c>1.1</c> -1661 <c>\uF8D2</c> -1662 <x>true</x> -1663 <n xsi:nil="true" /> -1664 <n></n> -1665 <b xsi:type="double">5</b> -1666 <b xsi:type="float">5</b> -1667 <s xsi:type="string">23</s> -1668 <s py:pytype="str">42</s> -1669 <f py:pytype="float">300</f> -1670 <l py:pytype="long">2</l> -1671 <t py:pytype="TREE"></t> -1672 </a> -1673 ''')) -1674 objectify.xsiannotate(root, ignore_old=True) -1675 -1676 child_types = [ c.get(XML_SCHEMA_INSTANCE_TYPE_ATTR) -1677 for c in root.iterchildren() ] -1678 self.assertEquals("xsd:integer", child_types[ 0]) -1679 self.assertEquals("xsd:string", child_types[ 1]) -1680 self.assertEquals("xsd:double", child_types[ 2]) -1681 self.assertEquals("xsd:string", child_types[ 3]) -1682 self.assertEquals("xsd:boolean", child_types[ 4]) -1683 self.assertEquals(None, child_types[ 5]) -1684 self.assertEquals(None, child_types[ 6]) -1685 self.assertEquals("xsd:integer", child_types[ 7]) -1686 self.assertEquals("xsd:integer", child_types[ 8]) -1687 self.assertEquals("xsd:integer", child_types[ 9]) -1688 self.assertEquals("xsd:string", child_types[10]) -1689 self.assertEquals("xsd:double", child_types[11]) -1690 self.assertEquals("xsd:integer", child_types[12]) -1691 self.assertEquals(None, child_types[13]) -1692 -1693 self.assertEquals("true", root.n.get(XML_SCHEMA_NIL_ATTR)) -
1694 -
1695 - def test_deannotate(self): -
1696 XML = self.XML -1697 root = XML(_bytes('''\ -1698 <a xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" -1699 xmlns:py="http://codespeak.net/lxml/objectify/pytype"> -1700 <b>5</b> -1701 <b>test</b> -1702 <c>1.1</c> -1703 <c>\uF8D2</c> -1704 <x>true</x> -1705 <n xsi:nil="true" /> -1706 <n></n> -1707 <b xsi:type="double">5</b> -1708 <b xsi:type="float">5</b> -1709 <s xsi:type="string">23</s> -1710 <s py:pytype="str">42</s> -1711 <f py:pytype="float">300</f> -1712 <l py:pytype="long">2</l> -1713 <t py:pytype="TREE"></t> -1714 </a> -1715 ''')) -1716 objectify.deannotate(root) -1717 -1718 for c in root.getiterator(): -1719 self.assertEquals(None, c.get(XML_SCHEMA_INSTANCE_TYPE_ATTR)) -1720 self.assertEquals(None, c.get(objectify.PYTYPE_ATTRIBUTE)) -1721 -1722 self.assertEquals("true", root.n.get(XML_SCHEMA_NIL_ATTR)) -
1723 -
1724 - def test_xsinil_deannotate(self): -
1725 XML = self.XML -1726 root = XML(_bytes('''\ -1727 <a xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" -1728 xmlns:py="http://codespeak.net/lxml/objectify/pytype"> -1729 <b>5</b> -1730 <b>test</b> -1731 <c>1.1</c> -1732 <c>\uF8D2</c> -1733 <x>true</x> -1734 <n xsi:nil="true" /> -1735 <n></n> -1736 <b xsi:type="double">5</b> -1737 <b xsi:type="float">5</b> -1738 <s xsi:type="string">23</s> -1739 <s py:pytype="str">42</s> -1740 <f py:pytype="float">300</f> -1741 <l py:pytype="long">2</l> -1742 <t py:pytype="TREE"></t> -1743 </a> -1744 ''')) -1745 objectify.annotate( -1746 root, ignore_old=False, ignore_xsi=False, annotate_xsi=True, -1747 empty_pytype='str', empty_type='string') -1748 objectify.deannotate(root, pytype=False, xsi=False, xsi_nil=True) -1749 -1750 child_types = [ c.get(XML_SCHEMA_INSTANCE_TYPE_ATTR) -1751 for c in root.iterchildren() ] -1752 self.assertEquals("xsd:integer", child_types[ 0]) -1753 self.assertEquals("xsd:string", child_types[ 1]) -1754 self.assertEquals("xsd:double", child_types[ 2]) -1755 self.assertEquals("xsd:string", child_types[ 3]) -1756 self.assertEquals("xsd:boolean", child_types[ 4]) -1757 self.assertEquals(None, child_types[ 5]) -1758 self.assertEquals("xsd:string", child_types[ 6]) -1759 self.assertEquals("xsd:double", child_types[ 7]) -1760 self.assertEquals("xsd:float", child_types[ 8]) -1761 self.assertEquals("xsd:string", child_types[ 9]) -1762 self.assertEquals("xsd:string", child_types[10]) -1763 self.assertEquals("xsd:double", child_types[11]) -1764 self.assertEquals("xsd:integer", child_types[12]) -1765 self.assertEquals(None, child_types[13]) -1766 -1767 self.assertEquals(None, root.n.get(XML_SCHEMA_NIL_ATTR)) -1768 -1769 for c in root.iterchildren(): -1770 self.assertNotEquals(None, c.get(objectify.PYTYPE_ATTRIBUTE)) -1771 # these have no equivalent in xsi:type -1772 if (c.get(objectify.PYTYPE_ATTRIBUTE) not in [TREE_PYTYPE, -1773 "NoneType"]): -1774 self.assertNotEquals( -1775 None, c.get(XML_SCHEMA_INSTANCE_TYPE_ATTR)) -
1776 -
1777 - def test_xsitype_deannotate(self): -
1778 XML = self.XML -1779 root = XML(_bytes('''\ -1780 <a xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" -1781 xmlns:py="http://codespeak.net/lxml/objectify/pytype" -1782 xmlns:xsd="http://www.w3.org/2001/XMLSchema"> -1783 <b>5</b> -1784 <b>test</b> -1785 <c>1.1</c> -1786 <c>\uF8D2</c> -1787 <x>true</x> -1788 <n xsi:nil="true" /> -1789 <n></n> -1790 <b xsi:type="xsd:double">5</b> -1791 <b xsi:type="xsd:float">5</b> -1792 <s xsi:type="xsd:string">23</s> -1793 <s py:pytype="str">42</s> -1794 <f py:pytype="float">300</f> -1795 <l py:pytype="long">2</l> -1796 <t py:pytype="TREE"></t> -1797 </a> -1798 ''')) -1799 objectify.annotate(root) -1800 objectify.deannotate(root, pytype=False) -1801 -1802 child_types = [ c.get(objectify.PYTYPE_ATTRIBUTE) -1803 for c in root.iterchildren() ] -1804 self.assertEquals("int", child_types[ 0]) -1805 self.assertEquals("str", child_types[ 1]) -1806 self.assertEquals("float", child_types[ 2]) -1807 self.assertEquals("str", child_types[ 3]) -1808 self.assertEquals("bool", child_types[ 4]) -1809 self.assertEquals("NoneType", child_types[ 5]) -1810 self.assertEquals(None, child_types[ 6]) -1811 self.assertEquals("float", child_types[ 7]) -1812 self.assertEquals("float", child_types[ 8]) -1813 self.assertEquals("str", child_types[ 9]) -1814 self.assertEquals("int", child_types[10]) -1815 self.assertEquals("int", child_types[11]) -1816 self.assertEquals("int", child_types[12]) -1817 self.assertEquals(None, child_types[13]) -1818 -1819 self.assertEquals("true", root.n.get(XML_SCHEMA_NIL_ATTR)) -1820 -1821 for c in root.getiterator(): -1822 self.assertEquals(None, c.get(XML_SCHEMA_INSTANCE_TYPE_ATTR)) -
1823 -
1824 - def test_pytype_deannotate(self): -
1825 XML = self.XML -1826 root = XML(_bytes('''\ -1827 <a xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" -1828 xmlns:py="http://codespeak.net/lxml/objectify/pytype" -1829 xmlns:xsd="http://www.w3.org/2001/XMLSchema"> -1830 <b xsi:type="xsd:int">5</b> -1831 <b xsi:type="xsd:string">test</b> -1832 <c xsi:type="xsd:float">1.1</c> -1833 <c xsi:type="xsd:string">\uF8D2</c> -1834 <x xsi:type="xsd:boolean">true</x> -1835 <n xsi:nil="true" /> -1836 <n></n> -1837 <b xsi:type="xsd:double">5</b> -1838 <b xsi:type="xsd:float">5</b> -1839 <s xsi:type="xsd:string">23</s> -1840 <s xsi:type="xsd:string">42</s> -1841 <f xsi:type="xsd:float">300</f> -1842 <l xsi:type="xsd:long">2</l> -1843 <t py:pytype="TREE"></t> -1844 </a> -1845 ''')) -1846 objectify.annotate(root) -1847 objectify.deannotate(root, xsi=False) -1848 -1849 child_types = [ c.get(XML_SCHEMA_INSTANCE_TYPE_ATTR) -1850 for c in root.iterchildren() ] -1851 self.assertEquals("xsd:int", child_types[ 0]) -1852 self.assertEquals("xsd:string", child_types[ 1]) -1853 self.assertEquals("xsd:float", child_types[ 2]) -1854 self.assertEquals("xsd:string", child_types[ 3]) -1855 self.assertEquals("xsd:boolean", child_types[ 4]) -1856 self.assertEquals(None, child_types[ 5]) -1857 self.assertEquals(None, child_types[ 6]) -1858 self.assertEquals("xsd:double", child_types[ 7]) -1859 self.assertEquals("xsd:float", child_types[ 8]) -1860 self.assertEquals("xsd:string", child_types[ 9]) -1861 self.assertEquals("xsd:string", child_types[10]) -1862 self.assertEquals("xsd:float", child_types[11]) -1863 self.assertEquals("xsd:long", child_types[12]) -1864 self.assertEquals(None, child_types[13]) -1865 -1866 self.assertEquals("true", root.n.get(XML_SCHEMA_NIL_ATTR)) -1867 -1868 for c in root.getiterator(): -1869 self.assertEquals(None, c.get(objectify.PYTYPE_ATTRIBUTE)) -
1870 -
1872 XML = self.XML -1873 -1874 xml = _bytes('''\ -1875 <a xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> -1876 <b>5</b> -1877 <b>test</b> -1878 <c>1.1</c> -1879 <c>\uF8D2</c> -1880 <x>true</x> -1881 <n xsi:nil="true" /> -1882 <n></n> -1883 <b xsi:type="double">5</b> -1884 </a> -1885 ''') -1886 -1887 pytype_ns, pytype_name = objectify.PYTYPE_ATTRIBUTE[1:].split('}') -1888 objectify.set_pytype_attribute_tag("{TEST}test") -1889 -1890 root = XML(xml) -1891 objectify.annotate(root) -1892 -1893 attribs = root.xpath("//@py:%s" % pytype_name, -1894 namespaces={"py" : pytype_ns}) -1895 self.assertEquals(0, len(attribs)) -1896 attribs = root.xpath("//@py:test", -1897 namespaces={"py" : "TEST"}) -1898 self.assertEquals(7, len(attribs)) -1899 -1900 objectify.set_pytype_attribute_tag() -1901 pytype_ns, pytype_name = objectify.PYTYPE_ATTRIBUTE[1:].split('}') -1902 -1903 self.assertNotEqual("test", pytype_ns.lower()) -1904 self.assertNotEqual("test", pytype_name.lower()) -1905 -1906 root = XML(xml) -1907 attribs = root.xpath("//@py:%s" % pytype_name, -1908 namespaces={"py" : pytype_ns}) -1909 self.assertEquals(0, len(attribs)) -1910 -1911 objectify.annotate(root) -1912 attribs = root.xpath("//@py:%s" % pytype_name, -1913 namespaces={"py" : pytype_ns}) -1914 self.assertEquals(7, len(attribs)) -
1915 -
1916 - def test_registered_types(self): -
1917 orig_types = objectify.getRegisteredTypes() -1918 orig_types[0].unregister() -1919 self.assertEquals(orig_types[1:], objectify.getRegisteredTypes()) -1920 -1921 class NewType(objectify.ObjectifiedDataElement): -1922 pass -
1923 -1924 def checkMyType(s): -1925 return True -1926 -1927 pytype = objectify.PyType("mytype", checkMyType, NewType) -1928 self.assert_(pytype not in objectify.getRegisteredTypes()) -1929 pytype.register() -1930 self.assert_(pytype in objectify.getRegisteredTypes()) -1931 pytype.unregister() -1932 self.assert_(pytype not in objectify.getRegisteredTypes()) -1933 -1934 pytype.register(before = [objectify.getRegisteredTypes()[0].name]) -1935 self.assertEquals(pytype, objectify.getRegisteredTypes()[0]) -1936 pytype.unregister() -1937 -1938 pytype.register(after = [objectify.getRegisteredTypes()[0].name]) -1939 self.assertNotEqual(pytype, objectify.getRegisteredTypes()[0]) -1940 pytype.unregister() -1941 -1942 self.assertRaises(ValueError, pytype.register, -1943 before = [objectify.getRegisteredTypes()[0].name], -1944 after = [objectify.getRegisteredTypes()[1].name]) -1945 -
1947 from datetime import datetime -1948 def parse_date(value): -1949 if len(value) != 14: -1950 raise ValueError(value) -1951 Y = int(value[0:4]) -1952 M = int(value[4:6]) -1953 D = int(value[6:8]) -1954 h = int(value[8:10]) -1955 m = int(value[10:12]) -1956 s = int(value[12:14]) -1957 return datetime(Y, M, D, h, m, s) -
1958 -1959 def stringify_date(date): -1960 return date.strftime("%Y%m%d%H%M%S") -1961 -1962 class DatetimeElement(objectify.ObjectifiedDataElement): -1963 def pyval(self): -1964 return parse_date(self.text) -1965 pyval = property(pyval) -1966 -1967 datetime_type = objectify.PyType( -1968 "datetime", parse_date, DatetimeElement, stringify_date) -1969 datetime_type.xmlSchemaTypes = "dateTime" -1970 datetime_type.register() -1971 -1972 NAMESPACE = "http://foo.net/xmlns" -1973 NAMESPACE_MAP = {'ns': NAMESPACE} -1974 -1975 r = objectify.Element("{%s}root" % NAMESPACE, nsmap=NAMESPACE_MAP) -1976 time = datetime.now() -1977 r.date = time -1978 -1979 self.assert_(isinstance(r.date, DatetimeElement)) -1980 self.assert_(isinstance(r.date.pyval, datetime)) -1981 -1982 self.assertEquals(r.date.pyval, parse_date(stringify_date(time))) -1983 self.assertEquals(r.date.text, stringify_date(time)) -1984 -1985 r.date = objectify.E.date(time) -1986 -1987 self.assert_(isinstance(r.date, DatetimeElement)) -1988 self.assert_(isinstance(r.date.pyval, datetime)) -1989 -1990 self.assertEquals(r.date.pyval, parse_date(stringify_date(time))) -1991 self.assertEquals(r.date.text, stringify_date(time)) -1992 -1993 date = objectify.DataElement(time) -1994 -1995 self.assert_(isinstance(date, DatetimeElement)) -1996 self.assert_(isinstance(date.pyval, datetime)) -1997 -1998 self.assertEquals(date.pyval, parse_date(stringify_date(time))) -1999 self.assertEquals(date.text, stringify_date(time)) -2000 -
2001 - def test_object_path(self): -
2002 root = self.XML(xml_str) -2003 path = objectify.ObjectPath( "root.c1.c2" ) -2004 self.assertEquals(root.c1.c2.text, path.find(root).text) -2005 self.assertEquals(root.c1.c2.text, path(root).text) -
2006 -
2007 - def test_object_path_list(self): -
2008 root = self.XML(xml_str) -2009 path = objectify.ObjectPath( ['root', 'c1', 'c2'] ) -2010 self.assertEquals(root.c1.c2.text, path.find(root).text) -2011 self.assertEquals(root.c1.c2.text, path(root).text) -
2012 -
2013 - def test_object_path_fail(self): -
2014 root = self.XML(xml_str) -2015 path = objectify.ObjectPath( "root.c1.c99" ) -2016 self.assertRaises(AttributeError, path, root) -
2017 -
2019 root = self.XML(xml_str) -2020 path = objectify.ObjectPath( "root.c1.c99" ) -2021 self.assertEquals(None, path(root, None)) -2022 path = objectify.ObjectPath( "root.c99.c2" ) -2023 self.assertEquals(None, path(root, None)) -2024 path = objectify.ObjectPath( "notroot.c99.c2" ) -2025 self.assertEquals(None, path(root, None)) -
2026 -
2028 root = self.XML(xml_str) -2029 path = objectify.ObjectPath( ".c1.c99" ) -2030 self.assertEquals(None, path(root, None)) -2031 path = objectify.ObjectPath( ".c99.c2" ) -2032 self.assertEquals(None, path(root, None)) -
2033 -
2034 - def test_object_path_syntax(self): -
2035 root = self.XML(xml_str) -2036 path = objectify.ObjectPath("root . {objectified}c1. c2") -2037 self.assertEquals(root.c1.c2.text, path(root).text) -2038 -2039 path = objectify.ObjectPath(" root.{objectified} c1.c2 [ 0 ] ") -2040 self.assertEquals(root.c1.c2.text, path(root).text) -
2041 -
2043 self.assertRaises(ValueError, objectify.ObjectPath, "") -
2044 -
2046 self.assertRaises(ValueError, objectify.ObjectPath, []) -
2047 -
2048 - def test_object_path_hasattr(self): -
2049 root = self.XML(xml_str) -2050 path = objectify.ObjectPath( "root" ) -2051 self.assert_(path.hasattr(root)) -2052 path = objectify.ObjectPath( "root.c1" ) -2053 self.assert_(path.hasattr(root)) -2054 path = objectify.ObjectPath( "root.c1.c2" ) -2055 self.assert_(path.hasattr(root)) -2056 path = objectify.ObjectPath( "root.c1.{otherNS}c2" ) -2057 self.assert_(path.hasattr(root)) -2058 path = objectify.ObjectPath( "root.c1.c2[1]" ) -2059 self.assert_(path.hasattr(root)) -2060 path = objectify.ObjectPath( "root.c1.c2[2]" ) -2061 self.assert_(path.hasattr(root)) -2062 path = objectify.ObjectPath( "root.c1.c2[3]" ) -2063 self.assertFalse(path.hasattr(root)) -2064 path = objectify.ObjectPath( "root.c1[1].c2" ) -2065 self.assertFalse(path.hasattr(root)) -
2066 -
2067 - def test_object_path_dot(self): -
2068 root = self.XML(xml_str) -2069 path = objectify.ObjectPath( "." ) -2070 self.assertEquals(root.c1.c2.text, path(root).c1.c2.text) -
2071 -
2072 - def test_object_path_dot_list(self): -
2073 root = self.XML(xml_str) -2074 path = objectify.ObjectPath( [''] ) -2075 self.assertEquals(root.c1.c2.text, path(root).c1.c2.text) -
2076 -
2077 - def test_object_path_dot_root(self): -
2078 root = self.XML(xml_str) -2079 path = objectify.ObjectPath( ".c1.c2" ) -2080 self.assertEquals(root.c1.c2.text, path(root).text) -
2081 -
2083 root = self.XML(xml_str) -2084 path = objectify.ObjectPath( ['', 'c1', 'c2'] ) -2085 self.assertEquals(root.c1.c2.text, path(root).text) -
2086 -
2087 - def test_object_path_index(self): -
2088 root = self.XML(xml_str) -2089 path = objectify.ObjectPath( "root.c1[0].c2[0]" ) -2090 self.assertEquals(root.c1.c2.text, path(root).text) -2091 -2092 path = objectify.ObjectPath( "root.c1[0].c2" ) -2093 self.assertEquals(root.c1.c2.text, path(root).text) -2094 -2095 path = objectify.ObjectPath( "root.c1[0].c2[1]" ) -2096 self.assertEquals(root.c1.c2[1].text, path(root).text) -2097 -2098 path = objectify.ObjectPath( "root.c1.c2[2]" ) -2099 self.assertEquals(root.c1.c2[2].text, path(root).text) -2100 -2101 path = objectify.ObjectPath( "root.c1.c2[-1]" ) -2102 self.assertEquals(root.c1.c2[-1].text, path(root).text) -2103 -2104 path = objectify.ObjectPath( "root.c1.c2[-3]" ) -2105 self.assertEquals(root.c1.c2[-3].text, path(root).text) -
2106 -
2107 - def test_object_path_index_list(self): -
2108 root = self.XML(xml_str) -2109 path = objectify.ObjectPath( ['root', 'c1[0]', 'c2[0]'] ) -2110 self.assertEquals(root.c1.c2.text, path(root).text) -2111 -2112 path = objectify.ObjectPath( ['root', 'c1[0]', 'c2[2]'] ) -2113 self.assertEquals(root.c1.c2[2].text, path(root).text) -2114 -2115 path = objectify.ObjectPath( ['root', 'c1', 'c2[2]'] ) -2116 self.assertEquals(root.c1.c2[2].text, path(root).text) -2117 -2118 path = objectify.ObjectPath( ['root', 'c1', 'c2[-1]'] ) -2119 self.assertEquals(root.c1.c2[-1].text, path(root).text) -2120 -2121 path = objectify.ObjectPath( ['root', 'c1', 'c2[-3]'] ) -2122 self.assertEquals(root.c1.c2[-3].text, path(root).text) -
2123 -
2125 self.assertRaises(ValueError, objectify.ObjectPath, -2126 "root.c1[0].c2[-1-2]") -2127 self.assertRaises(ValueError, objectify.ObjectPath, -2128 ['root', 'c1[0]', 'c2[-1-2]']) -2129 -2130 self.assertRaises(ValueError, objectify.ObjectPath, -2131 "root[2].c1.c2") -2132 self.assertRaises(ValueError, objectify.ObjectPath, -2133 ['root[2]', 'c1', 'c2']) -2134 -2135 self.assertRaises(ValueError, objectify.ObjectPath, -2136 []) -2137 self.assertRaises(ValueError, objectify.ObjectPath, -2138 ['', '', '']) -
2139 -
2141 root = self.XML(xml_str) -2142 path = objectify.ObjectPath("root.c1[9999].c2") -2143 self.assertRaises(AttributeError, path, root) -2144 -2145 path = objectify.ObjectPath("root.c1[0].c2[9999]") -2146 self.assertRaises(AttributeError, path, root) -2147 -2148 path = objectify.ObjectPath(".c1[9999].c2[0]") -2149 self.assertRaises(AttributeError, path, root) -2150 -2151 path = objectify.ObjectPath("root.c1[-2].c2") -2152 self.assertRaises(AttributeError, path, root) -2153 -2154 path = objectify.ObjectPath("root.c1[0].c2[-4]") -2155 self.assertRaises(AttributeError, path, root) -
2156 -
2157 - def test_object_path_ns(self): -
2158 root = self.XML(xml_str) -2159 path = objectify.ObjectPath( "{objectified}root.c1.c2" ) -2160 self.assertEquals(root.c1.c2.text, path.find(root).text) -2161 path = objectify.ObjectPath( "{objectified}root.{objectified}c1.c2" ) -2162 self.assertEquals(root.c1.c2.text, path.find(root).text) -2163 path = objectify.ObjectPath( "root.{objectified}c1.{objectified}c2" ) -2164 self.assertEquals(root.c1.c2.text, path.find(root).text) -2165 path = objectify.ObjectPath( "root.c1.{objectified}c2" ) -2166 self.assertEquals(root.c1.c2.text, path.find(root).text) -2167 path = objectify.ObjectPath( "root.c1.{otherNS}c2" ) -2168 self.assertEquals(getattr(root.c1, '{otherNS}c2').text, -2169 path.find(root).text) -
2170 -
2171 - def test_object_path_ns_list(self): -
2172 root = self.XML(xml_str) -2173 path = objectify.ObjectPath( ['{objectified}root', 'c1', 'c2'] ) -2174 self.assertEquals(root.c1.c2.text, path.find(root).text) -2175 path = objectify.ObjectPath( ['{objectified}root', '{objectified}c1', 'c2'] ) -2176 self.assertEquals(root.c1.c2.text, path.find(root).text) -2177 path = objectify.ObjectPath( ['root', '{objectified}c1', '{objectified}c2'] ) -2178 self.assertEquals(root.c1.c2.text, path.find(root).text) -2179 path = objectify.ObjectPath( ['root', '{objectified}c1', '{objectified}c2[2]'] ) -2180 self.assertEquals(root.c1.c2[2].text, path.find(root).text) -2181 path = objectify.ObjectPath( ['root', 'c1', '{objectified}c2'] ) -2182 self.assertEquals(root.c1.c2.text, path.find(root).text) -2183 path = objectify.ObjectPath( ['root', 'c1', '{objectified}c2[2]'] ) -2184 self.assertEquals(root.c1.c2[2].text, path.find(root).text) -2185 path = objectify.ObjectPath( ['root', 'c1', '{otherNS}c2'] ) -2186 self.assertEquals(getattr(root.c1, '{otherNS}c2').text, -2187 path.find(root).text) -
2188 -
2189 - def test_object_path_set(self): -
2190 root = self.XML(xml_str) -2191 path = objectify.ObjectPath( "root.c1.c2" ) -2192 self.assertEquals(root.c1.c2.text, path.find(root).text) -2193 self.assertEquals("1", root.c1.c2[1].text) -2194 -2195 new_value = "my new value" -2196 path.setattr(root, new_value) -2197 -2198 self.assertEquals(new_value, root.c1.c2.text) -2199 self.assertEquals(new_value, path(root).text) -2200 self.assertEquals("1", root.c1.c2[1].text) -
2201 -
2203 root = self.XML(xml_str) -2204 path = objectify.ObjectPath( "root.c1.c2" ) -2205 self.assertEquals(root.c1.c2.text, path.find(root).text) -2206 self.assertEquals("1", root.c1.c2[1].text) -2207 -2208 new_el = self.Element("{objectified}test") -2209 etree.SubElement(new_el, "{objectified}sub", myattr="ATTR").a = "TEST" -2210 path.setattr(root, new_el.sub) -2211 -2212 self.assertEquals("ATTR", root.c1.c2.get("myattr")) -2213 self.assertEquals("TEST", root.c1.c2.a.text) -2214 self.assertEquals("TEST", path(root).a.text) -2215 self.assertEquals("1", root.c1.c2[1].text) -
2216 -
2217 - def test_object_path_set_create(self): -
2218 root = self.XML(xml_str) -2219 path = objectify.ObjectPath( "root.c1.c99" ) -2220 self.assertRaises(AttributeError, path.find, root) -2221 -2222 new_value = "my new value" -2223 path.setattr(root, new_value) -2224 -2225 self.assertEquals(1, len(root.c1.c99)) -2226 self.assertEquals(new_value, root.c1.c99.text) -2227 self.assertEquals(new_value, path(root).text) -
2228 -
2230 root = self.XML(xml_str) -2231 path = objectify.ObjectPath( "root.c1.c99" ) -2232 self.assertRaises(AttributeError, path.find, root) -2233 -2234 new_el = self.Element("{objectified}test") -2235 etree.SubElement(new_el, "{objectified}sub", myattr="ATTR").a = "TEST" -2236 path.setattr(root, new_el.sub) -2237 -2238 self.assertEquals(1, len(root.c1.c99)) -2239 self.assertEquals("ATTR", root.c1.c99.get("myattr")) -2240 self.assertEquals("TEST", root.c1.c99.a.text) -2241 self.assertEquals("TEST", path(root).a.text) -
2242 -
2244 root = self.XML(xml_str) -2245 path = objectify.ObjectPath( "root.c1.c99" ) -2246 self.assertRaises(AttributeError, path.find, root) -2247 -2248 new_el = self.Element("{objectified}test") -2249 new_el.a = ["TEST1", "TEST2"] -2250 new_el.a[0].set("myattr", "ATTR1") -2251 new_el.a[1].set("myattr", "ATTR2") -2252 -2253 path.setattr(root, list(new_el.a)) -2254 -2255 self.assertEquals(2, len(root.c1.c99)) -2256 self.assertEquals("ATTR1", root.c1.c99[0].get("myattr")) -2257 self.assertEquals("TEST1", root.c1.c99[0].text) -2258 self.assertEquals("ATTR2", root.c1.c99[1].get("myattr")) -2259 self.assertEquals("TEST2", root.c1.c99[1].text) -2260 self.assertEquals("TEST1", path(root).text) -
2261 -
2262 - def test_object_path_addattr(self): -
2263 root = self.XML(xml_str) -2264 path = objectify.ObjectPath( "root.c1.c2" ) -2265 self.assertEquals(3, len(root.c1.c2)) -2266 path.addattr(root, "test") -2267 self.assertEquals(4, len(root.c1.c2)) -2268 self.assertEquals(["0", "1", "2", "test"], -2269 [el.text for el in root.c1.c2]) -
2270 -
2272 root = self.XML(xml_str) -2273 path = objectify.ObjectPath( "root.c1.c2" ) -2274 self.assertEquals(3, len(root.c1.c2)) -2275 -2276 new_el = self.Element("{objectified}test") -2277 etree.SubElement(new_el, "{objectified}sub").a = "TEST" -2278 -2279 path.addattr(root, new_el.sub) -2280 self.assertEquals(4, len(root.c1.c2)) -2281 self.assertEquals("TEST", root.c1.c2[3].a.text) -2282 self.assertEquals(["0", "1", "2"], -2283 [el.text for el in root.c1.c2[:3]]) -
2284 -
2286 root = self.XML(xml_str) -2287 path = objectify.ObjectPath( "root.c1.c99" ) -2288 self.assertRaises(AttributeError, path.find, root) -2289 -2290 new_value = "my new value" -2291 path.addattr(root, new_value) -2292 -2293 self.assertEquals(1, len(root.c1.c99)) -2294 self.assertEquals(new_value, root.c1.c99.text) -2295 self.assertEquals(new_value, path(root).text) -
2296 -
2298 root = self.XML(xml_str) -2299 path = objectify.ObjectPath( "root.c1.c99" ) -2300 self.assertRaises(AttributeError, path.find, root) -2301 -2302 new_el = self.Element("{objectified}test") -2303 etree.SubElement(new_el, "{objectified}sub", myattr="ATTR").a = "TEST" -2304 -2305 path.addattr(root, new_el.sub) -2306 self.assertEquals(1, len(root.c1.c99)) -2307 self.assertEquals("TEST", root.c1.c99.a.text) -2308 self.assertEquals("TEST", path(root).a.text) -2309 self.assertEquals("ATTR", root.c1.c99.get("myattr")) -
2310 -
2312 root = self.XML(xml_str) -2313 path = objectify.ObjectPath( "root.c1.c99" ) -2314 self.assertRaises(AttributeError, path.find, root) -2315 -2316 new_el = self.Element("{objectified}test") -2317 new_el.a = ["TEST1", "TEST2"] -2318 -2319 self.assertEquals(2, len(new_el.a)) -2320 -2321 path.addattr(root, list(new_el.a)) -2322 self.assertEquals(2, len(root.c1.c99)) -2323 self.assertEquals("TEST1", root.c1.c99.text) -2324 self.assertEquals("TEST2", path(root)[1].text) -
2325 -
2326 - def test_descendant_paths(self): -
2327 root = self.XML(xml_str) -2328 self.assertEquals( -2329 ['{objectified}root', '{objectified}root.c1', -2330 '{objectified}root.c1.c2', -2331 '{objectified}root.c1.c2[1]', '{objectified}root.c1.c2[2]', -2332 '{objectified}root.c1.{otherNS}c2', '{objectified}root.c1.{}c2'], -2333 root.descendantpaths()) -
2334 -
2335 - def test_descendant_paths_child(self): -
2336 root = self.XML(xml_str) -2337 self.assertEquals( -2338 ['{objectified}c1', '{objectified}c1.c2', -2339 '{objectified}c1.c2[1]', '{objectified}c1.c2[2]', -2340 '{objectified}c1.{otherNS}c2', '{objectified}c1.{}c2'], -2341 root.c1.descendantpaths()) -
2342 -
2344 root = self.XML(xml_str) -2345 self.assertEquals( -2346 ['root.{objectified}c1', 'root.{objectified}c1.c2', -2347 'root.{objectified}c1.c2[1]', 'root.{objectified}c1.c2[2]', -2348 'root.{objectified}c1.{otherNS}c2', -2349 'root.{objectified}c1.{}c2'], -2350 root.c1.descendantpaths('root')) -
2351 -
2352 - def test_pickle(self): -
2353 import pickle -2354 -2355 root = self.XML(xml_str) -2356 out = BytesIO() -2357 pickle.dump(root, out) -2358 -2359 new_root = pickle.loads(out.getvalue()) -2360 self.assertEquals( -2361 etree.tostring(new_root), -2362 etree.tostring(root)) -
2363 -
2364 - def test_pickle_elementtree(self): -
2365 import pickle -2366 -2367 tree = etree.ElementTree(self.XML(xml_str + "<?my pi?>")) -2368 out = BytesIO() -2369 pickle.dump(tree, out) -2370 -2371 new_tree = pickle.loads(out.getvalue()) -2372 self.assert_(isinstance(new_tree, etree._ElementTree)) -2373 self.assertEquals( -2374 etree.tostring(new_tree), -2375 etree.tostring(tree)) -
2376 -
2377 - def test_pickle_intelement(self): -
2378 self._test_pickle('<x>42</x>') -2379 self._test_pickle(objectify.DataElement(42)) -
2380 -
2381 - def test_pickle_floattelement(self): -
2382 self._test_pickle('<x>42.0</x>') -2383 self._test_pickle(objectify.DataElement(42.0)) -
2384 -
2385 - def test_pickle_strelement(self): -
2386 self._test_pickle('<x>Pickle me!</x>') -2387 self._test_pickle(objectify.DataElement('Pickle me!')) -
2388 -
2389 - def test_pickle_boolelement(self): -
2390 self._test_pickle('<x>true</x>') -2391 self._test_pickle('<x>false</x>') -2392 self._test_pickle(objectify.DataElement(True)) -2393 self._test_pickle(objectify.DataElement(False)) -
2394 -
2395 - def test_pickle_noneelement(self): -
2396 self._test_pickle(''' -2397 <x xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>''') -2398 self._test_pickle(objectify.DataElement(None)) -
2399 -
2400 - def _test_pickle(self, stringOrElt): -
2401 import pickle -2402 if isinstance(stringOrElt, (etree._Element, etree._ElementTree)): -2403 elt = stringOrElt -2404 else: -2405 elt = self.XML(stringOrElt) -2406 out = BytesIO() -2407 pickle.dump(elt, out) -2408 -2409 new_elt = pickle.loads(out.getvalue()) -2410 self.assertEquals( -2411 etree.tostring(new_elt), -2412 etree.tostring(elt)) -
2413 -2414 # E-Factory tests, need to use sub-elements as root element is always -2415 # type-looked-up as ObjectifiedElement (no annotations) -
2416 - def test_efactory_int(self): -
2417 E = objectify.E -2418 root = E.root(E.val(23)) -2419 self.assert_(isinstance(root.val, objectify.IntElement)) -
2420 -
2421 - def test_efactory_float(self): -
2422 E = objectify.E -2423 root = E.root(E.val(233.23)) -2424 self.assert_(isinstance(root.val, objectify.FloatElement)) -
2425 -
2426 - def test_efactory_str(self): -
2427 E = objectify.E -2428 root = E.root(E.val("what?")) -2429 self.assert_(isinstance(root.val, objectify.StringElement)) -
2430 -
2431 - def test_efactory_unicode(self): -
2432 E = objectify.E -2433 root = E.root(E.val(_str("blöödy häll", encoding="ISO-8859-1"))) -2434 self.assert_(isinstance(root.val, objectify.StringElement)) -
2435 -
2436 - def test_efactory_bool(self): -
2437 E = objectify.E -2438 root = E.root(E.val(True)) -2439 self.assert_(isinstance(root.val, objectify.BoolElement)) -
2440 -
2441 - def test_efactory_none(self): -
2442 E = objectify.E -2443 root = E.root(E.val(None)) -2444 self.assert_(isinstance(root.val, objectify.NoneElement)) -
2445 -
2447 E = objectify.E -2448 root = E.root(E.val(1, "foo", 2.0, "bar ", True, None)) -2449 self.assert_(isinstance(root.val, objectify.StringElement)) -
2450 -
2451 - def test_efactory_attrib(self): -
2452 E = objectify.E -2453 root = E.root(foo="bar") -2454 self.assertEquals(root.get("foo"), "bar") -
2455 -
2456 - def test_efactory_nested(self): -
2457 E = objectify.E -2458 DataElement = objectify.DataElement -2459 root = E.root("text", E.sub(E.subsub()), "tail", DataElement(1), -2460 DataElement(2.0)) -2461 self.assert_(isinstance(root, objectify.ObjectifiedElement)) -2462 self.assertEquals(root.text, "text") -2463 self.assert_(isinstance(root.sub, objectify.ObjectifiedElement)) -2464 self.assertEquals(root.sub.tail, "tail") -2465 self.assert_(isinstance(root.sub.subsub, objectify.StringElement)) -2466 self.assertEquals(len(root.value), 2) -2467 self.assert_(isinstance(root.value[0], objectify.IntElement)) -2468 self.assert_(isinstance(root.value[1], objectify.FloatElement)) -
2469 -
2470 - def test_efactory_subtype(self): -
2471 class Attribute(objectify.ObjectifiedDataElement): -2472 def __init__(self): -2473 objectify.ObjectifiedDataElement.__init__(self) -2474 self.set("datatype", "TYPE") -2475 self.set("range", "0.,1.") -
2476 -2477 attr = Attribute() -2478 self.assertEquals(attr.text, None) -2479 self.assertEquals(attr.get("datatype"), "TYPE") -2480 self.assertEquals(attr.get("range"), "0.,1.") -2481 -
2482 - def test_XML_base_url_docinfo(self): -
2483 root = objectify.XML(_bytes("<root/>"), base_url="http://no/such/url") -2484 docinfo = root.getroottree().docinfo -2485 self.assertEquals(docinfo.URL, "http://no/such/url") -
2486 -
2488 root = objectify.XML(_bytes("<root/>"), base_url="http://no/such/url") -2489 docinfo = root.getroottree().docinfo -2490 self.assertEquals(docinfo.URL, "http://no/such/url") -2491 docinfo.URL = "https://secret/url" -2492 self.assertEquals(docinfo.URL, "https://secret/url") -
2493 -
2495 tree = objectify.parse(BytesIO("<root/>"), base_url="http://no/such/url") -2496 docinfo = tree.docinfo -2497 self.assertEquals(docinfo.URL, "http://no/such/url") -
2498 -
2499 - def test_parse_base_url_docinfo(self): -
2500 tree = objectify.parse(fileInTestDir('include/test_xinclude.xml'), -2501 base_url="http://no/such/url") -2502 docinfo = tree.docinfo -2503 self.assertEquals(docinfo.URL, "http://no/such/url") -
2504 -
2505 - def test_xml_base(self): -
2506 root = objectify.XML(_bytes("<root/>"), base_url="http://no/such/url") -2507 self.assertEquals(root.base, "http://no/such/url") -2508 self.assertEquals( -2509 root.get('{http://www.w3.org/XML/1998/namespace}base'), None) -2510 root.base = "https://secret/url" -2511 self.assertEquals(root.base, "https://secret/url") -2512 self.assertEquals( -2513 root.get('{http://www.w3.org/XML/1998/namespace}base'), -2514 "https://secret/url") -
2515 -
2516 - def test_xml_base_attribute(self): -
2517 root = objectify.XML(_bytes("<root/>"), base_url="http://no/such/url") -2518 self.assertEquals(root.base, "http://no/such/url") -2519 self.assertEquals( -2520 root.get('{http://www.w3.org/XML/1998/namespace}base'), None) -2521 root.set('{http://www.w3.org/XML/1998/namespace}base', -2522 "https://secret/url") -2523 self.assertEquals(root.base, "https://secret/url") -2524 self.assertEquals( -2525 root.get('{http://www.w3.org/XML/1998/namespace}base'), -2526 "https://secret/url") -
2527 -
2528 - def test_standard_lookup(self): -
2529 XML = self.XML -2530 -2531 xml = _bytes('''\ -2532 <root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> -2533 <i>5</i> -2534 <i>-5</i> -2535 <l>4294967296</l> -2536 <l>-4294967296</l> -2537 <f>1.1</f> -2538 <b>true</b> -2539 <b>false</b> -2540 <s>Strange things happen, where strings collide</s> -2541 <s>True</s> -2542 <s>False</s> -2543 <s>t</s> -2544 <s>f</s> -2545 <s></s> -2546 <s>None</s> -2547 <n xsi:nil="true" /> -2548 </root> -2549 ''') -2550 root = XML(xml) -2551 -2552 for i in root.i: -2553 self.assert_(isinstance(i, objectify.IntElement)) -2554 for l in root.l: -2555 self.assert_(isinstance(l, objectify.IntElement)) -2556 for f in root.f: -2557 self.assert_(isinstance(f, objectify.FloatElement)) -2558 for b in root.b: -2559 self.assert_(isinstance(b, objectify.BoolElement)) -2560 self.assertEquals(True, root.b[0]) -2561 self.assertEquals(False, root.b[1]) -2562 for s in root.s: -2563 self.assert_(isinstance(s, objectify.StringElement)) -2564 self.assert_(isinstance(root.n, objectify.NoneElement)) -2565 self.assertEquals(None, root.n) -
2566 -
2567 -def test_suite(): -
2568 suite = unittest.TestSuite() -2569 suite.addTests([unittest.makeSuite(ObjectifyTestCase)]) -2570 suite.addTests(doctest.DocTestSuite(objectify)) -2571 if sys.version_info >= (2,4): -2572 suite.addTests( -2573 [make_doctest('../../../doc/objectify.txt')]) -2574 return suite -
2575 -2576 if __name__ == '__main__': -2577 print('to test use test.py %s' % __file__) -2578 -
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.test_objectify.ObjectifyTestCase-class.html b/doc/html/api/lxml.tests.test_objectify.ObjectifyTestCase-class.html deleted file mode 100644 index bb9966a..0000000 --- a/doc/html/api/lxml.tests.test_objectify.ObjectifyTestCase-class.html +++ /dev/null @@ -1,3563 +0,0 @@ - - - - - lxml.tests.test_objectify.ObjectifyTestCase - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module test_objectify :: - Class ObjectifyTestCase - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class ObjectifyTestCase

source code

-
-               object --+        
-                        |        
-   unittest.case.TestCase --+    
-                            |    
-common_imports.HelperTestCase --+
-                                |
-                               ObjectifyTestCase
-
- -
-Test cases for lxml.objectify - - - - - - - - - - -
- - - - - -
Nested Classes[hide private]
-
-

Inherited from unittest.case.TestCase: - failureException -

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
XML(self, - xml) - source code - -
- -
-   - - - - - - -
setUp(self)
- Hook method for setting up the test fixture before exercising it.
- source code - -
- -
-   - - - - - - -
tearDown(self)
- Hook method for deconstructing the test fixture after testing it.
- source code - -
- -
-   - - - - - - -
test_element_nsmap_default(self) - source code - -
- -
-   - - - - - - -
test_element_nsmap_empty(self) - source code - -
- -
-   - - - - - - -
test_element_nsmap_custom_prefixes(self) - source code - -
- -
-   - - - - - - -
test_element_nsmap_custom(self) - source code - -
- -
-   - - - - - - -
test_sub_element_nsmap_default(self) - source code - -
- -
-   - - - - - - -
test_sub_element_nsmap_empty(self) - source code - -
- -
-   - - - - - - -
test_sub_element_nsmap_custom_prefixes(self) - source code - -
- -
-   - - - - - - -
test_sub_element_nsmap_custom(self) - source code - -
- -
-   - - - - - - -
test_data_element_nsmap_default(self) - source code - -
- -
-   - - - - - - -
test_data_element_nsmap_empty(self) - source code - -
- -
-   - - - - - - -
test_data_element_nsmap_custom_prefixes(self) - source code - -
- -
-   - - - - - - -
test_data_element_nsmap_custom(self) - source code - -
- -
-   - - - - - - -
test_sub_data_element_nsmap_default(self) - source code - -
- -
-   - - - - - - -
test_sub_data_element_nsmap_empty(self) - source code - -
- -
-   - - - - - - -
test_sub_data_element_nsmap_custom_prefixes(self) - source code - -
- -
-   - - - - - - -
test_sub_data_element_nsmap_custom(self) - source code - -
- -
-   - - - - - - -
test_date_element_efactory_text(self) - source code - -
- -
-   - - - - - - -
test_date_element_efactory_tail(self) - source code - -
- -
-   - - - - - - -
test_data_element_attrib_attributes_precedence(self) - source code - -
- -
-   - - - - - - -
test_data_element_data_element_arg(self) - source code - -
- -
-   - - - - - - -
test_data_element_data_element_arg_pytype_none(self) - source code - -
- -
-   - - - - - - -
test_data_element_data_element_arg_pytype(self) - source code - -
- -
-   - - - - - - -
test_data_element_data_element_arg_xsitype(self) - source code - -
- -
-   - - - - - - -
test_data_element_data_element_arg_pytype_xsitype(self) - source code - -
- -
-   - - - - - - -
test_data_element_invalid_pytype(self) - source code - -
- -
-   - - - - - - -
test_data_element_invalid_xsi(self) - source code - -
- -
-   - - - - - - -
test_data_element_data_element_arg_invalid_pytype(self) - source code - -
- -
-   - - - - - - -
test_data_element_data_element_arg_invalid_xsi(self) - source code - -
- -
-   - - - - - - -
test_data_element_element_arg(self) - source code - -
- -
-   - - - - - - -
test_root(self) - source code - -
- -
-   - - - - - - -
test_str(self) - source code - -
- -
-   - - - - - - -
test_child(self) - source code - -
- -
-   - - - - - - -
test_countchildren(self) - source code - -
- -
-   - - - - - - -
test_child_getattr(self) - source code - -
- -
-   - - - - - - -
test_child_nonexistant(self) - source code - -
- -
-   - - - - - - -
test_child_getattr_empty_ns(self) - source code - -
- -
-   - - - - - - -
test_setattr(self) - source code - -
- -
-   - - - - - - -
test_setattr_nonunicode(self) - source code - -
- -
-   - - - - - - -
test_addattr(self) - source code - -
- -
-   - - - - - - -
test_addattr_element(self) - source code - -
- -
-   - - - - - - -
test_addattr_list(self) - source code - -
- -
-   - - - - - - -
test_child_addattr(self) - source code - -
- -
-   - - - - - - -
test_child_index(self) - source code - -
- -
-   - - - - - - -
test_child_index_neg(self) - source code - -
- -
-   - - - - - - -
test_child_len(self) - source code - -
- -
-   - - - - - - -
test_child_iter(self) - source code - -
- -
-   - - - - - - -
test_class_lookup(self) - source code - -
- -
-   - - - - - - -
test_dir(self) - source code - -
- -
-   - - - - - - -
test_vars(self) - source code - -
- -
-   - - - - - - -
test_child_set_ro(self) - source code - -
- -
-   - - - - - - -
test_getslice_complete(self) - source code - -
- -
-   - - - - - - -
test_getslice_partial(self) - source code - -
- -
-   - - - - - - -
test_getslice_partial_neg(self) - source code - -
- -
-   - - - - - - -
test_setslice_complete(self) - source code - -
- -
-   - - - - - - -
test_setslice_elements(self) - source code - -
- -
-   - - - - - - -
test_setslice_partial(self) - source code - -
- -
-   - - - - - - -
test_setslice_insert(self) - source code - -
- -
-   - - - - - - -
test_setslice_insert_neg(self) - source code - -
- -
-   - - - - - - -
test_setslice_empty(self) - source code - -
- -
-   - - - - - - -
test_setslice_partial_wrong_length(self) - source code - -
- -
-   - - - - - - -
test_setslice_partial_neg(self) - source code - -
- -
-   - - - - - - -
test_setslice_partial_allneg(self) - source code - -
- -
-   - - - - - - -
test_set_string(self) - source code - -
- -
-   - - - - - - -
test_setitem_string(self) - source code - -
- -
-   - - - - - - -
test_setitem_string_special(self) - source code - -
- -
-   - - - - - - -
test_findall(self) - source code - -
- -
-   - - - - - - -
test_findall_ns(self) - source code - -
- -
-   - - - - - - -
test_build_tree(self) - source code - -
- -
-   - - - - - - -
test_type_NoneType(self) - source code - -
- -
-   - - - - - - -
test_data_element_NoneType(self) - source code - -
- -
-   - - - - - - -
test_type_bool(self) - source code - -
- -
-   - - - - - - -
test_data_element_bool(self) - source code - -
- -
-   - - - - - - -
test_type_str(self) - source code - -
- -
-   - - - - - - -
test_type_str_intliteral(self) - source code - -
- -
-   - - - - - - -
test_type_str_floatliteral(self) - source code - -
- -
-   - - - - - - -
test_type_str_mul(self) - source code - -
- -
-   - - - - - - -
test_type_str_add(self) - source code - -
- -
-   - - - - - - -
test_type_str_mod(self) - source code - -
- -
-   - - - - - - -
test_type_str_hash(self) - source code - -
- -
-   - - - - - - -
test_type_str_as_int(self) - source code - -
- -
-   - - - - - - -
test_type_str_as_float(self) - source code - -
- -
-   - - - - - - -
test_type_str_as_complex(self) - source code - -
- -
-   - - - - - - -
test_type_str_mod_data_elements(self) - source code - -
- -
-   - - - - - - -
test_data_element_str(self) - source code - -
- -
-   - - - - - - -
test_data_element_str_intliteral(self) - source code - -
- -
-   - - - - - - -
test_data_element_str_floatliteral(self) - source code - -
- -
-   - - - - - - -
test_type_ustr(self) - source code - -
- -
-   - - - - - - -
test_type_ustr_intliteral(self) - source code - -
- -
-   - - - - - - -
test_type_ustr_floatliteral(self) - source code - -
- -
-   - - - - - - -
test_type_ustr_mul(self) - source code - -
- -
-   - - - - - - -
test_type_ustr_add(self) - source code - -
- -
-   - - - - - - -
test_data_element_ustr(self) - source code - -
- -
-   - - - - - - -
test_data_element_ustr_intliteral(self) - source code - -
- -
-   - - - - - - -
test_data_element_ustr_floatliteral(self) - source code - -
- -
-   - - - - - - -
test_type_int(self) - source code - -
- -
-   - - - - - - -
test_data_element_int(self) - source code - -
- -
-   - - - - - - -
test_data_element_int_hash(self) - source code - -
- -
-   - - - - - - -
test_type_float(self) - source code - -
- -
-   - - - - - - -
test_data_element_float(self) - source code - -
- -
-   - - - - - - -
test_data_element_float_hash(self) - source code - -
- -
-   - - - - - - -
test_data_element_xsitypes(self) - source code - -
- -
-   - - - - - - -
test_data_element_xsitypes_xsdprefixed(self) - source code - -
- -
-   - - - - - - -
test_data_element_xsitypes_prefixed(self) - source code - -
- -
-   - - - - - - -
test_data_element_pytypes(self) - source code - -
- -
-   - - - - - - -
test_data_element_pytype_none(self) - source code - -
- -
-   - - - - - - -
test_data_element_pytype_none_compat(self) - source code - -
- -
-   - - - - - - -
test_type_unregistered(self) - source code - -
- -
-   - - - - - - -
test_data_element_unregistered(self) - source code - -
- -
-   - - - - - - -
test_schema_types(self) - source code - -
- -
-   - - - - - - -
test_schema_types_prefixed(self) - source code - -
- -
-   - - - - - - -
test_type_str_sequence(self) - source code - -
- -
-   - - - - - - -
test_type_str_cmp(self) - source code - -
- -
-   - - - - - - -
test_type_int_cmp(self) - source code - -
- -
-   - - - - - - -
test_type_bool_cmp(self) - source code - -
- -
-   - - - - - - -
test_type_none_cmp(self) - source code - -
- -
-   - - - - - - -
test_dataelement_xsi(self) - source code - -
- -
-   - - - - - - -
test_dataelement_xsi_nsmap(self) - source code - -
- -
-   - - - - - - -
test_dataelement_xsi_prefix_error(self) - source code - -
- -
-   - - - - - - -
test_pytype_annotation(self) - source code - -
- -
-   - - - - - - -
test_pytype_annotation_empty(self) - source code - -
- -
-   - - - - - - -
test_pytype_annotation_use_old(self) - source code - -
- -
-   - - - - - - -
test_pytype_xsitype_annotation(self) - source code - -
- -
-   - - - - - - -
test_xsiannotate_use_old(self) - source code - -
- -
-   - - - - - - -
test_pyannotate_ignore_old(self) - source code - -
- -
-   - - - - - - -
test_pyannotate_empty(self) - source code - -
- -
-   - - - - - - -
test_pyannotate_use_old(self) - source code - -
- -
-   - - - - - - -
test_xsiannotate_ignore_old(self) - source code - -
- -
-   - - - - - - -
test_deannotate(self) - source code - -
- -
-   - - - - - - -
test_xsinil_deannotate(self) - source code - -
- -
-   - - - - - - -
test_xsitype_deannotate(self) - source code - -
- -
-   - - - - - - -
test_pytype_deannotate(self) - source code - -
- -
-   - - - - - - -
test_change_pytype_attribute(self) - source code - -
- -
-   - - - - - - -
test_registered_types(self) - source code - -
- -
-   - - - - - - -
test_registered_type_stringify(self) - source code - -
- -
-   - - - - - - -
test_object_path(self) - source code - -
- -
-   - - - - - - -
test_object_path_list(self) - source code - -
- -
-   - - - - - - -
test_object_path_fail(self) - source code - -
- -
-   - - - - - - -
test_object_path_default_absolute(self) - source code - -
- -
-   - - - - - - -
test_object_path_default_relative(self) - source code - -
- -
-   - - - - - - -
test_object_path_syntax(self) - source code - -
- -
-   - - - - - - -
test_object_path_fail_parse_empty(self) - source code - -
- -
-   - - - - - - -
test_object_path_fail_parse_empty_list(self) - source code - -
- -
-   - - - - - - -
test_object_path_hasattr(self) - source code - -
- -
-   - - - - - - -
test_object_path_dot(self) - source code - -
- -
-   - - - - - - -
test_object_path_dot_list(self) - source code - -
- -
-   - - - - - - -
test_object_path_dot_root(self) - source code - -
- -
-   - - - - - - -
test_object_path_dot_root_list(self) - source code - -
- -
-   - - - - - - -
test_object_path_index(self) - source code - -
- -
-   - - - - - - -
test_object_path_index_list(self) - source code - -
- -
-   - - - - - - -
test_object_path_index_fail_parse(self) - source code - -
- -
-   - - - - - - -
test_object_path_index_fail_lookup(self) - source code - -
- -
-   - - - - - - -
test_object_path_ns(self) - source code - -
- -
-   - - - - - - -
test_object_path_ns_list(self) - source code - -
- -
-   - - - - - - -
test_object_path_set(self) - source code - -
- -
-   - - - - - - -
test_object_path_set_element(self) - source code - -
- -
-   - - - - - - -
test_object_path_set_create(self) - source code - -
- -
-   - - - - - - -
test_object_path_set_create_element(self) - source code - -
- -
-   - - - - - - -
test_object_path_set_create_list(self) - source code - -
- -
-   - - - - - - -
test_object_path_addattr(self) - source code - -
- -
-   - - - - - - -
test_object_path_addattr_element(self) - source code - -
- -
-   - - - - - - -
test_object_path_addattr_create(self) - source code - -
- -
-   - - - - - - -
test_object_path_addattr_create_element(self) - source code - -
- -
-   - - - - - - -
test_object_path_addattr_create_list(self) - source code - -
- -
-   - - - - - - -
test_descendant_paths(self) - source code - -
- -
-   - - - - - - -
test_descendant_paths_child(self) - source code - -
- -
-   - - - - - - -
test_descendant_paths_prefix(self) - source code - -
- -
-   - - - - - - -
test_pickle(self) - source code - -
- -
-   - - - - - - -
test_pickle_elementtree(self) - source code - -
- -
-   - - - - - - -
test_pickle_intelement(self) - source code - -
- -
-   - - - - - - -
test_pickle_floattelement(self) - source code - -
- -
-   - - - - - - -
test_pickle_strelement(self) - source code - -
- -
-   - - - - - - -
test_pickle_boolelement(self) - source code - -
- -
-   - - - - - - -
test_pickle_noneelement(self) - source code - -
- -
-   - - - - - - -
_test_pickle(self, - stringOrElt) - source code - -
- -
-   - - - - - - -
test_efactory_int(self) - source code - -
- -
-   - - - - - - -
test_efactory_float(self) - source code - -
- -
-   - - - - - - -
test_efactory_str(self) - source code - -
- -
-   - - - - - - -
test_efactory_unicode(self) - source code - -
- -
-   - - - - - - -
test_efactory_bool(self) - source code - -
- -
-   - - - - - - -
test_efactory_none(self) - source code - -
- -
-   - - - - - - -
test_efactory_value_concatenation(self) - source code - -
- -
-   - - - - - - -
test_efactory_attrib(self) - source code - -
- -
-   - - - - - - -
test_efactory_nested(self) - source code - -
- -
-   - - - - - - -
test_efactory_subtype(self) - source code - -
- -
-   - - - - - - -
test_XML_base_url_docinfo(self) - source code - -
- -
-   - - - - - - -
test_XML_set_base_url_docinfo(self) - source code - -
- -
-   - - - - - - -
test_parse_stringio_base_url(self) - source code - -
- -
-   - - - - - - -
test_parse_base_url_docinfo(self) - source code - -
- -
-   - - - - - - -
test_xml_base(self) - source code - -
- -
-   - - - - - - -
test_xml_base_attribute(self) - source code - -
- -
-   - - - - - - -
test_standard_lookup(self) - source code - -
- -
-

Inherited from common_imports.HelperTestCase: - parse -

-

Inherited from common_imports.HelperTestCase (private): - _rootstring -

-

Inherited from unittest.case.TestCase: - __call__, - __eq__, - __hash__, - __init__, - __ne__, - __repr__, - __str__, - addCleanup, - addTypeEqualityFunc, - assertAlmostEqual, - assertAlmostEquals, - assertDictContainsSubset, - assertDictEqual, - assertEqual, - assertEquals, - assertGreater, - assertGreaterEqual, - assertIn, - assertIs, - assertIsInstance, - assertIsNone, - assertIsNot, - assertIsNotNone, - assertItemsEqual, - assertLess, - assertLessEqual, - assertListEqual, - assertMultiLineEqual, - assertNotAlmostEqual, - assertNotAlmostEquals, - assertNotEqual, - assertNotEquals, - assertNotIn, - assertNotIsInstance, - assertNotRegexpMatches, - assertRaises, - assertRaisesRegexp, - assertRegexpMatches, - assertSequenceEqual, - assertSetEqual, - assertTrue, - assertTupleEqual, - assert_, - countTestCases, - debug, - defaultTestResult, - doCleanups, - fail, - failIf, - failIfAlmostEqual, - failIfEqual, - failUnless, - failUnlessAlmostEqual, - failUnlessEqual, - failUnlessRaises, - id, - run, - shortDescription, - skipTest -

-

Inherited from unittest.case.TestCase (private): - _addSkip, - _baseAssertEqual, - _deprecate, - _formatMessage, - _getAssertEqualityFunc, - _truncateMessage -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __new__, - __reduce__, - __reduce_ex__, - __setattr__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Class Methods[hide private]
-
-

Inherited from unittest.case.TestCase: - setUpClass, - tearDownClass -

-
- - - - - - - - - - - - -
- - - - - -
Class Variables[hide private]
-
-   - - etree
- The lxml.etree module implements the extended ElementTree API -for XML. -
-

Inherited from common_imports.HelperTestCase: - assertFalse -

-

Inherited from unittest.case.TestCase: - longMessage, - maxDiff -

-

Inherited from unittest.case.TestCase (private): - _classSetupFailed, - _diffThreshold -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

setUp(self) -

-
source code  -
- - Hook method for setting up the test fixture before exercising it. -
-
Overrides: - unittest.case.TestCase.setUp -
(inherited documentation)
- -
-
-
- -
- -
- - -
-

tearDown(self) -

-
source code  -
- - Hook method for deconstructing the test fixture after testing it. -
-
Overrides: - unittest.case.TestCase.tearDown -
(inherited documentation)
- -
-
-
-
- - - - - - -
- - - - - -
Class Variable Details[hide private]
-
- -
- -
-

etree

- The lxml.etree module implements the extended ElementTree API -for XML. -
-
-
-
Value:
-
lxml.etree
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.test_pyclasslookup-module.html b/doc/html/api/lxml.tests.test_pyclasslookup-module.html deleted file mode 100644 index 64540df..0000000 --- a/doc/html/api/lxml.tests.test_pyclasslookup-module.html +++ /dev/null @@ -1,287 +0,0 @@ - - - - - lxml.tests.test_pyclasslookup - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module test_pyclasslookup - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Module test_pyclasslookup

source code

-Tests specific to the Python based class lookup. - - - - - - - - - - -
- - - - - -
Classes[hide private]
-
-   - - PyClassLookupTestCase
- Test cases for the lxml.pyclasslookup class lookup mechanism. -
- - - - - - - - - -
- - - - - -
Functions[hide private]
-
-   - - - - - - -
test_suite() - source code - -
- -
- - - - - - - - - - - - - - - -
- - - - - -
Variables[hide private]
-
-   - - this_dir = '/home/sbehnel/source/Python/lxml/lxml-release/src/... -
-   - - xml_str = '<obj:root xmlns:obj="objectified" xmlns:other="othe... -
-   - - __package__ = 'lxml.tests' -
- - - - - - -
- - - - - -
Variables Details[hide private]
-
- -
- -
-

this_dir

- -
-
-
-
Value:
-
-'/home/sbehnel/source/Python/lxml/lxml-release/src/lxml/tests'
-
-
-
-
-
- -
- -
-

xml_str

- -
-
-
-
Value:
-
-'''<obj:root xmlns:obj="objectified" xmlns:other="otherNS">
-  <obj:c1 a1="A1" a2="A2" other:a3="A3">
-    <obj:c2>0</obj:c2>
-    <obj:c2>1</obj:c2>
-    <obj:c2>2</obj:c2>
-    <other:c2>3</other:c2>
-    <c2>3</c2>
-  </obj:c1>
-...
-
-
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.test_pyclasslookup-pysrc.html b/doc/html/api/lxml.tests.test_pyclasslookup-pysrc.html deleted file mode 100644 index 7623bb2..0000000 --- a/doc/html/api/lxml.tests.test_pyclasslookup-pysrc.html +++ /dev/null @@ -1,879 +0,0 @@ - - - - - lxml.tests.test_pyclasslookup - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module test_pyclasslookup - - - - - - -
[hide private]
[frames] | no frames]
-
-

Source Code for Module lxml.tests.test_pyclasslookup

-
-  1  # -*- coding: utf-8 -*- 
-  2   
-  3  """ 
-  4  Tests specific to the Python based class lookup. 
-  5  """ 
-  6   
-  7   
-  8  import unittest, operator, os.path, sys 
-  9   
- 10  this_dir = os.path.dirname(__file__) 
- 11  if this_dir not in sys.path: 
- 12      sys.path.insert(0, this_dir) # needed for Py3 
- 13   
- 14  from common_imports import etree, StringIO, HelperTestCase, fileInTestDir 
- 15  from common_imports import SillyFileLike, canonicalize, doctest, _bytes 
- 16   
- 17  from lxml.etree import PythonElementClassLookup 
- 18   
- 19  xml_str = _bytes('''\ 
- 20  <obj:root xmlns:obj="objectified" xmlns:other="otherNS"> 
- 21    <obj:c1 a1="A1" a2="A2" other:a3="A3"> 
- 22      <obj:c2>0</obj:c2> 
- 23      <obj:c2>1</obj:c2> 
- 24      <obj:c2>2</obj:c2> 
- 25      <other:c2>3</other:c2> 
- 26      <c2>3</c2> 
- 27    </obj:c1> 
- 28  </obj:root>''') 
- 29   
- 30   
-
31 -class PyClassLookupTestCase(HelperTestCase): -
32 """Test cases for the lxml.pyclasslookup class lookup mechanism. - 33 """ - 34 etree = etree - 35 parser = etree.XMLParser() - 36 Element = parser.makeelement - 37 -
38 - def tearDown(self): -
39 self.parser.set_element_class_lookup(None) - 40 super(PyClassLookupTestCase, self).tearDown() -
41 -
42 - def _setClassLookup(self, lookup_function): -
43 class Lookup(PythonElementClassLookup): - 44 def lookup(self, *args): - 45 return lookup_function(*args) -
46 self.parser.set_element_class_lookup( Lookup() ) - 47 -
48 - def _buildElementClass(self): -
49 class LocalElement(etree.ElementBase): - 50 pass -
51 return LocalElement - 52 -
53 - def XML(self, xml): -
54 return self.etree.XML(xml, self.parser) -
55 - 56 # --- Test cases - 57 -
58 - def test_lookup(self): -
59 el_class = self._buildElementClass() - 60 el_class.i = 1 - 61 def lookup(*args): - 62 if el_class.i == 1: - 63 el_class.i = 2 - 64 return el_class -
65 self._setClassLookup(lookup) - 66 root = self.XML(xml_str) - 67 self.assertEquals(2, el_class.i) - 68 -
70 el_class = self._buildElementClass() - 71 el_class.EL = None - 72 def lookup(doc, el): - 73 if el_class.EL is None: - 74 el_class.EL = el - 75 return el_class -
76 self._setClassLookup(lookup) - 77 root = self.XML(xml_str) - 78 self.assertNotEquals(None, el_class.EL) - 79 self.assertRaises(AssertionError, el_class.EL.getchildren) - 80 -
81 - def test_lookup_tag(self): -
82 el_class = self._buildElementClass() - 83 el_class.TAG = None - 84 def lookup(doc, el): - 85 if el_class.TAG is None: - 86 el_class.TAG = el.tag - 87 return el_class -
88 self._setClassLookup(lookup) - 89 root = self.XML(xml_str) - 90 self.assertNotEquals(None, root.TAG) - 91 self.assertEquals(root.tag, root.TAG) - 92 -
93 - def test_lookup_text(self): -
94 el_class = self._buildElementClass() - 95 el_class.TEXT = None - 96 def lookup(doc, el): - 97 if el_class.TEXT is None: - 98 el_class.TEXT = el.text - 99 return el_class -
100 self._setClassLookup(lookup) -101 root = self.XML(xml_str) -102 self.assertNotEquals(None, root.TEXT) -103 self.assertEquals(root.text, root.TEXT) -104 -
105 - def test_lookup_tail(self): -
106 el_class = self._buildElementClass() -107 el_class.TAIL = None -108 def lookup(doc, el): -109 if el_class.TAIL is None: -110 el_class.TAIL = el.tail -111 return el_class -
112 self._setClassLookup(lookup) -113 root = self.XML(xml_str) -114 self.assertEquals(root.tail, root.TAIL) -115 -
116 - def test_lookup_attrib(self): -
117 el_class = self._buildElementClass() -118 el_class.ATTRIB = None -119 def lookup(doc, el): -120 if el_class.ATTRIB is None: -121 el_class.ATTRIB = el[0].attrib -122 return el_class -
123 self._setClassLookup(lookup) -124 root = self.XML(xml_str) -125 items1 = list(root[0].attrib.items()) -126 items1.sort() -127 items2 = list(root.ATTRIB.items()) -128 items2.sort() -129 self.assertEquals(items1, items2) -130 -
131 - def test_lookup_prefix(self): -
132 el_class = self._buildElementClass() -133 el_class.PREFIX = None -134 def lookup(doc, el): -135 if el_class.PREFIX is None: -136 el_class.PREFIX = el.prefix -137 return el_class -
138 self._setClassLookup(lookup) -139 root = self.XML(xml_str) -140 self.assertEquals(root.prefix, root.PREFIX) -141 -
142 - def test_lookup_sourceline(self): -
143 el_class = self._buildElementClass() -144 el_class.LINE = None -145 def lookup(doc, el): -146 if el_class.LINE is None: -147 el_class.LINE = el.sourceline -148 return el_class -
149 self._setClassLookup(lookup) -150 root = self.XML(xml_str) -151 self.assertEquals(root.sourceline, root.LINE) -152 -
153 - def test_lookup_getitem(self): -
154 el_class = self._buildElementClass() -155 el_class.CHILD_TAG = None -156 def lookup(doc, el): -157 el_class.CHILD_TAG = el[0].tag -158 return el_class -
159 self._setClassLookup(lookup) -160 root = self.XML(xml_str) -161 child_tag = root.CHILD_TAG -162 self.assertNotEquals(None, child_tag) -163 self.assertEquals(root[0].tag, child_tag) -164 -
165 - def test_lookup_getitem_neg(self): -
166 el_class = self._buildElementClass() -167 el_class.CHILD_TAG = None -168 def lookup(doc, el): -169 if el_class.CHILD_TAG is None: -170 el_class.CHILD_TAG = el[-1].tag -171 return el_class -
172 self._setClassLookup(lookup) -173 root = self.XML(xml_str) -174 child_tag = root.CHILD_TAG -175 self.assertNotEquals(None, child_tag) -176 self.assertEquals(root[-1].tag, child_tag) -177 -
178 - def test_lookup_getslice(self): -
179 el_class = self._buildElementClass() -180 el_class.CHILD_TAGS = None -181 def lookup(doc, el): -182 if el_class.CHILD_TAGS is None: -183 el_class.CHILD_TAGS = [ c.tag for c in el[1:-1] ] -184 return el_class -
185 self._setClassLookup(lookup) -186 root = self.XML(xml_str) -187 child_tags = root.CHILD_TAGS -188 self.assertNotEquals(None, child_tags) -189 self.assertEquals([ c.tag for c in root[1:-1] ], -190 child_tags) -191 -
192 - def test_lookup_len(self): -
193 el_class = self._buildElementClass() -194 el_class.LEN = None -195 def lookup(doc, el): -196 if el_class.LEN is None: -197 el_class.LEN = len(el) -198 return el_class -
199 self._setClassLookup(lookup) -200 root = self.XML(xml_str) -201 self.assertEquals(1, el_class.LEN) -202 -
203 - def test_lookup_bool(self): -
204 el_class = self._buildElementClass() -205 el_class.TRUE = None -206 def lookup(doc, el): -207 if el_class.TRUE is None: -208 el_class.TRUE = bool(el) -209 return el_class -
210 self._setClassLookup(lookup) -211 root = self.XML(xml_str) -212 self.assert_(el_class.TRUE) -213 -
214 - def test_lookup_get(self): -
215 el_class = self._buildElementClass() -216 el_class.VAL = None -217 def lookup(doc, el): -218 if el_class.VAL is None: -219 el_class.VAL = el[0].get('a1') -220 return el_class -
221 self._setClassLookup(lookup) -222 root = self.XML(xml_str) -223 self.assertNotEquals(None, el_class.VAL) -224 self.assertEquals(root[0].get('a1'), el_class.VAL) -225 -
226 - def test_lookup_get_default(self): -
227 el_class = self._buildElementClass() -228 default = str(id(el_class)) -229 el_class.VAL = None -230 def lookup(doc, el): -231 if el_class.VAL is None: -232 el_class.VAL = el[0].get('unknownattribute', default) -233 return el_class -
234 self._setClassLookup(lookup) -235 root = self.XML(xml_str) -236 self.assertEquals(default, el_class.VAL) -237 -
238 - def test_lookup_getchildren(self): -
239 el_class = self._buildElementClass() -240 el_class.CHILD_TAGS = None -241 def lookup(doc, el): -242 if el_class.CHILD_TAGS is None: -243 el_class.CHILD_TAGS = [ c.tag for c in el.getchildren() ] -244 return el_class -
245 self._setClassLookup(lookup) -246 root = self.XML(xml_str) -247 child_tags = root.CHILD_TAGS -248 self.assertNotEquals(None, child_tags) -249 self.assertEquals([ c.tag for c in root.getchildren() ], -250 child_tags) -251 -
252 - def test_lookup_iter_children(self): -
253 el_class = self._buildElementClass() -254 el_class.CHILD_TAGS = None -255 def lookup(doc, el): -256 if el_class.CHILD_TAGS is None: -257 el_class.CHILD_TAGS = [ c.tag for c in el ] -258 return el_class -
259 self._setClassLookup(lookup) -260 root = self.XML(xml_str) -261 child_tags = root.CHILD_TAGS -262 self.assertNotEquals(None, child_tags) -263 self.assertEquals([ c.tag for c in root.getchildren() ], -264 child_tags) -265 -
266 - def test_lookup_iterchildren(self): -
267 el_class = self._buildElementClass() -268 el_class.CHILD_TAGS = None -269 def lookup(doc, el): -270 if el_class.CHILD_TAGS is None: -271 el_class.CHILD_TAGS = [ c.tag for c in el.iterchildren() ] -272 return el_class -
273 self._setClassLookup(lookup) -274 root = self.XML(xml_str) -275 child_tags = root.CHILD_TAGS -276 self.assertNotEquals(None, child_tags) -277 self.assertEquals([ c.tag for c in root.getchildren() ], -278 child_tags) -279 -
281 el_class = self._buildElementClass() -282 el_class.CHILD_TAGS = None -283 def lookup(doc, el): -284 if not el_class.CHILD_TAGS: -285 el_class.CHILD_TAGS = [ -286 c.tag for c in el.iterchildren(tag='{objectified}c2') ] -287 return el_class -
288 self._setClassLookup(lookup) -289 -290 root = self.XML(xml_str) -291 child_tags = root.CHILD_TAGS -292 self.assertNotEquals(None, child_tags) -293 self.assertEquals([], child_tags) -294 -295 c1 = root[0] -296 child_tags = root.CHILD_TAGS -297 self.assertNotEquals(None, child_tags) -298 self.assertNotEquals([], child_tags) -299 self.assertEquals( -300 [ c.tag for c in root[0].iterchildren(tag='{objectified}c2') ], -301 child_tags) -302 -
303 - def test_lookup_getparent(self): -
304 el_class = self._buildElementClass() -305 el_class.PARENT = None -306 def lookup(doc, el): -307 if el_class.PARENT is None: -308 el_class.PARENT = el[0].getparent().tag -309 return el_class -
310 self._setClassLookup(lookup) -311 root = self.XML(xml_str) -312 self.assertEquals(root.tag, root.PARENT) -313 -
314 - def test_lookup_getnext(self): -
315 el_class = self._buildElementClass() -316 el_class.NEXT = None -317 def lookup(doc, el): -318 if el_class.NEXT is None: -319 el_class.NEXT = el[0][1].getnext().tag -320 return el_class -
321 self._setClassLookup(lookup) -322 root = self.XML(xml_str) -323 self.assertNotEquals(None, el_class.NEXT) -324 self.assertEquals(root[0][1].getnext().tag, el_class.NEXT) -325 -
326 - def test_lookup_getprevious(self): -
327 el_class = self._buildElementClass() -328 el_class.PREV = None -329 def lookup(doc, el): -330 if el_class.PREV is None: -331 el_class.PREV = el[0][1].getprevious().tag -332 return el_class -
333 self._setClassLookup(lookup) -334 root = self.XML(xml_str) -335 self.assertNotEquals(None, el_class.PREV) -336 self.assertEquals(root[0][1].getprevious().tag, el_class.PREV) -337 -338 -
339 -def test_suite(): -
340 suite = unittest.TestSuite() -341 suite.addTests([unittest.makeSuite(PyClassLookupTestCase)]) -342 return suite -
343 -344 if __name__ == '__main__': -345 print('to test use test.py %s' % __file__) -346 -
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.test_pyclasslookup.PyClassLookupTestCase-class.html b/doc/html/api/lxml.tests.test_pyclasslookup.PyClassLookupTestCase-class.html deleted file mode 100644 index c064f79..0000000 --- a/doc/html/api/lxml.tests.test_pyclasslookup.PyClassLookupTestCase-class.html +++ /dev/null @@ -1,880 +0,0 @@ - - - - - lxml.tests.test_pyclasslookup.PyClassLookupTestCase - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module test_pyclasslookup :: - Class PyClassLookupTestCase - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class PyClassLookupTestCase

source code

-
-               object --+        
-                        |        
-   unittest.case.TestCase --+    
-                            |    
-common_imports.HelperTestCase --+
-                                |
-                               PyClassLookupTestCase
-
- -
-Test cases for the lxml.pyclasslookup class lookup mechanism. - - - - - - - - - - -
- - - - - -
Nested Classes[hide private]
-
-

Inherited from unittest.case.TestCase: - failureException -

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
Element(self, - _tag, - attrib=None, - nsmap=None, - **_extra)
- Creates a new element associated with this parser.
- source code - -
- -
-   - - - - - - -
tearDown(self)
- Hook method for deconstructing the test fixture after testing it.
- source code - -
- -
-   - - - - - - -
_setClassLookup(self, - lookup_function) - source code - -
- -
-   - - - - - - -
_buildElementClass(self) - source code - -
- -
-   - - - - - - -
XML(self, - xml) - source code - -
- -
-   - - - - - - -
test_lookup(self) - source code - -
- -
-   - - - - - - -
test_lookup_keep_ref_assertion(self) - source code - -
- -
-   - - - - - - -
test_lookup_tag(self) - source code - -
- -
-   - - - - - - -
test_lookup_text(self) - source code - -
- -
-   - - - - - - -
test_lookup_tail(self) - source code - -
- -
-   - - - - - - -
test_lookup_attrib(self) - source code - -
- -
-   - - - - - - -
test_lookup_prefix(self) - source code - -
- -
-   - - - - - - -
test_lookup_sourceline(self) - source code - -
- -
-   - - - - - - -
test_lookup_getitem(self) - source code - -
- -
-   - - - - - - -
test_lookup_getitem_neg(self) - source code - -
- -
-   - - - - - - -
test_lookup_getslice(self) - source code - -
- -
-   - - - - - - -
test_lookup_len(self) - source code - -
- -
-   - - - - - - -
test_lookup_bool(self) - source code - -
- -
-   - - - - - - -
test_lookup_get(self) - source code - -
- -
-   - - - - - - -
test_lookup_get_default(self) - source code - -
- -
-   - - - - - - -
test_lookup_getchildren(self) - source code - -
- -
-   - - - - - - -
test_lookup_iter_children(self) - source code - -
- -
-   - - - - - - -
test_lookup_iterchildren(self) - source code - -
- -
-   - - - - - - -
test_lookup_iterchildren_tag(self) - source code - -
- -
-   - - - - - - -
test_lookup_getparent(self) - source code - -
- -
-   - - - - - - -
test_lookup_getnext(self) - source code - -
- -
-   - - - - - - -
test_lookup_getprevious(self) - source code - -
- -
-

Inherited from common_imports.HelperTestCase: - parse -

-

Inherited from common_imports.HelperTestCase (private): - _rootstring -

-

Inherited from unittest.case.TestCase: - __call__, - __eq__, - __hash__, - __init__, - __ne__, - __repr__, - __str__, - addCleanup, - addTypeEqualityFunc, - assertAlmostEqual, - assertAlmostEquals, - assertDictContainsSubset, - assertDictEqual, - assertEqual, - assertEquals, - assertGreater, - assertGreaterEqual, - assertIn, - assertIs, - assertIsInstance, - assertIsNone, - assertIsNot, - assertIsNotNone, - assertItemsEqual, - assertLess, - assertLessEqual, - assertListEqual, - assertMultiLineEqual, - assertNotAlmostEqual, - assertNotAlmostEquals, - assertNotEqual, - assertNotEquals, - assertNotIn, - assertNotIsInstance, - assertNotRegexpMatches, - assertRaises, - assertRaisesRegexp, - assertRegexpMatches, - assertSequenceEqual, - assertSetEqual, - assertTrue, - assertTupleEqual, - assert_, - countTestCases, - debug, - defaultTestResult, - doCleanups, - fail, - failIf, - failIfAlmostEqual, - failIfEqual, - failUnless, - failUnlessAlmostEqual, - failUnlessEqual, - failUnlessRaises, - id, - run, - setUp, - shortDescription, - skipTest -

-

Inherited from unittest.case.TestCase (private): - _addSkip, - _baseAssertEqual, - _deprecate, - _formatMessage, - _getAssertEqualityFunc, - _truncateMessage -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __new__, - __reduce__, - __reduce_ex__, - __setattr__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Class Methods[hide private]
-
-

Inherited from unittest.case.TestCase: - setUpClass, - tearDownClass -

-
- - - - - - - - - - - - - - - -
- - - - - -
Class Variables[hide private]
-
-   - - etree
- The lxml.etree module implements the extended ElementTree API -for XML. -
-   - - parser = etree.XMLParser() -
-

Inherited from common_imports.HelperTestCase: - assertFalse -

-

Inherited from unittest.case.TestCase: - longMessage, - maxDiff -

-

Inherited from unittest.case.TestCase (private): - _classSetupFailed, - _diffThreshold -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

tearDown(self) -

-
source code  -
- - Hook method for deconstructing the test fixture after testing it. -
-
Overrides: - unittest.case.TestCase.tearDown -
(inherited documentation)
- -
-
-
-
- - - - - - -
- - - - - -
Class Variable Details[hide private]
-
- -
- -
-

etree

- The lxml.etree module implements the extended ElementTree API -for XML. -
-
-
-
Value:
-
lxml.etree
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.test_relaxng-module.html b/doc/html/api/lxml.tests.test_relaxng-module.html deleted file mode 100644 index 9ec5948..0000000 --- a/doc/html/api/lxml.tests.test_relaxng-module.html +++ /dev/null @@ -1,245 +0,0 @@ - - - - - lxml.tests.test_relaxng - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module test_relaxng - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Module test_relaxng

source code

-Test cases related to RelaxNG parsing and validation - - - - - - - - - - -
- - - - - -
Classes[hide private]
-
-   - - ETreeRelaxNGTestCase -
- - - - - - - - - -
- - - - - -
Functions[hide private]
-
-   - - - - - - -
test_suite() - source code - -
- -
- - - - - - - - - - - - -
- - - - - -
Variables[hide private]
-
-   - - this_dir = '/home/sbehnel/source/Python/lxml/lxml-release/src/... -
-   - - __package__ = 'lxml.tests' -
- - - - - - -
- - - - - -
Variables Details[hide private]
-
- -
- -
-

this_dir

- -
-
-
-
Value:
-
-'/home/sbehnel/source/Python/lxml/lxml-release/src/lxml/tests'
-
-
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.test_relaxng-pysrc.html b/doc/html/api/lxml.tests.test_relaxng-pysrc.html deleted file mode 100644 index dbf624a..0000000 --- a/doc/html/api/lxml.tests.test_relaxng-pysrc.html +++ /dev/null @@ -1,540 +0,0 @@ - - - - - lxml.tests.test_relaxng - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module test_relaxng - - - - - - -
[hide private]
[frames] | no frames]
-
-

Source Code for Module lxml.tests.test_relaxng

-
-  1  # -*- coding: utf-8 -*- 
-  2   
-  3  """ 
-  4  Test cases related to RelaxNG parsing and validation 
-  5  """ 
-  6   
-  7  import unittest, sys, os.path 
-  8   
-  9  this_dir = os.path.dirname(__file__) 
- 10  if this_dir not in sys.path: 
- 11      sys.path.insert(0, this_dir) # needed for Py3 
- 12   
- 13  from common_imports import etree, BytesIO, _bytes, HelperTestCase, fileInTestDir 
- 14  from common_imports import doctest, make_doctest 
- 15   
-
16 -class ETreeRelaxNGTestCase(HelperTestCase): -
17 - def test_relaxng(self): -
18 tree_valid = self.parse('<a><b></b></a>') - 19 tree_invalid = self.parse('<a><c></c></a>') - 20 schema = self.parse('''\ - 21 <element name="a" xmlns="http://relaxng.org/ns/structure/1.0"> - 22 <zeroOrMore> - 23 <element name="b"> - 24 <text /> - 25 </element> - 26 </zeroOrMore> - 27 </element> - 28 ''') - 29 schema = etree.RelaxNG(schema) - 30 self.assert_(schema.validate(tree_valid)) - 31 self.assert_(not schema.validate(tree_invalid)) -
32 -
33 - def test_relaxng_stringio(self): -
34 tree_valid = self.parse('<a><b></b></a>') - 35 tree_invalid = self.parse('<a><c></c></a>') - 36 schema_file = BytesIO('''\ - 37 <element name="a" xmlns="http://relaxng.org/ns/structure/1.0"> - 38 <zeroOrMore> - 39 <element name="b"> - 40 <text /> - 41 </element> - 42 </zeroOrMore> - 43 </element> - 44 ''') - 45 schema = etree.RelaxNG(file=schema_file) - 46 self.assert_(schema.validate(tree_valid)) - 47 self.assert_(not schema.validate(tree_invalid)) -
48 -
50 self.assertRaises(ValueError, etree.RelaxNG, etree.ElementTree()) -
51 -
52 - def test_relaxng_error(self): -
53 tree_invalid = self.parse('<a><c></c></a>') - 54 schema = self.parse('''\ - 55 <element name="a" xmlns="http://relaxng.org/ns/structure/1.0"> - 56 <zeroOrMore> - 57 <element name="b"> - 58 <text /> - 59 </element> - 60 </zeroOrMore> - 61 </element> - 62 ''') - 63 schema = etree.RelaxNG(schema) - 64 self.assert_(not schema.validate(tree_invalid)) - 65 errors = schema.error_log - 66 self.assert_([ log for log in errors - 67 if log.level_name == "ERROR" ]) - 68 self.assert_([ log for log in errors - 69 if "not expect" in log.message ]) -
70 -
72 schema = self.parse('''\ - 73 <element name="a" xmlns="http://relaxng.org/ns/structure/1.0"> - 74 <zeroOrMore> - 75 <element name="b" /> - 76 </zeroOrMore> - 77 </element> - 78 ''') - 79 self.assertRaises(etree.RelaxNGParseError, - 80 etree.RelaxNG, schema) -
81 -
83 schema = self.parse('''\ - 84 <grammar xmlns="http://relaxng.org/ns/structure/1.0" /> - 85 ''') - 86 self.assertRaises(etree.RelaxNGParseError, - 87 etree.RelaxNG, schema) -
88 -
90 schema = self.parse('''\ - 91 <grammar xmlns="http://relaxng.org/ns/structure/1.0"> - 92 <define name="test"> - 93 <element name="test"/> - 94 </define> - 95 </grammar> - 96 ''') - 97 self.assertRaises(etree.RelaxNGParseError, - 98 etree.RelaxNG, schema) -
99 -
101 # segfault -102 schema = self.parse('''\ -103 <element name="a" xmlns="mynamespace" /> -104 ''') -105 self.assertRaises(etree.RelaxNGParseError, -106 etree.RelaxNG, schema) -
107 -
108 - def test_relaxng_include(self): -
109 # this will only work if we access the file through path or -110 # file object.. -111 f = open(fileInTestDir('test1.rng'), 'rb') -112 try: -113 schema = etree.RelaxNG(file=f) -114 finally: -115 f.close() -
116 -
117 - def test_relaxng_shortcut(self): -
118 tree_valid = self.parse('<a><b></b></a>') -119 tree_invalid = self.parse('<a><c></c></a>') -120 schema = self.parse('''\ -121 <element name="a" xmlns="http://relaxng.org/ns/structure/1.0"> -122 <zeroOrMore> -123 <element name="b"> -124 <text /> -125 </element> -126 </zeroOrMore> -127 </element> -128 ''') -129 self.assert_(tree_valid.relaxng(schema)) -130 self.assert_(not tree_invalid.relaxng(schema)) -
131 -
132 - def test_multiple_elementrees(self): -
133 tree = self.parse('<a><b>B</b><c>C</c></a>') -134 schema = etree.RelaxNG( self.parse('''\ -135 <element name="a" xmlns="http://relaxng.org/ns/structure/1.0"> -136 <element name="b"> -137 <text /> -138 </element> -139 <element name="c"> -140 <text /> -141 </element> -142 </element> -143 ''') ) -144 self.assert_(schema.validate(tree)) -145 self.assert_(schema.validate(tree)) -146 -147 schema = etree.RelaxNG( self.parse('''\ -148 <element name="b" xmlns="http://relaxng.org/ns/structure/1.0"> -149 <text /> -150 </element> -151 ''') ) -152 c_tree = etree.ElementTree(tree.getroot()[1]) -153 self.assertEqual(self._rootstring(c_tree), _bytes('<c>C</c>')) -154 self.assert_(not schema.validate(c_tree)) -155 -156 b_tree = etree.ElementTree(tree.getroot()[0]) -157 self.assertEqual(self._rootstring(b_tree), _bytes('<b>B</b>')) -158 self.assert_(schema.validate(b_tree)) -
159 -160 -
161 -def test_suite(): -
162 suite = unittest.TestSuite() -163 suite.addTests([unittest.makeSuite(ETreeRelaxNGTestCase)]) -164 suite.addTests( -165 [make_doctest('../../../doc/validation.txt')]) -166 return suite -
167 -168 if __name__ == '__main__': -169 print('to test use test.py %s' % __file__) -170 -
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.test_relaxng.ETreeRelaxNGTestCase-class.html b/doc/html/api/lxml.tests.test_relaxng.ETreeRelaxNGTestCase-class.html deleted file mode 100644 index 9984342..0000000 --- a/doc/html/api/lxml.tests.test_relaxng.ETreeRelaxNGTestCase-class.html +++ /dev/null @@ -1,522 +0,0 @@ - - - - - lxml.tests.test_relaxng.ETreeRelaxNGTestCase - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module test_relaxng :: - Class ETreeRelaxNGTestCase - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class ETreeRelaxNGTestCase

source code

-
-               object --+        
-                        |        
-   unittest.case.TestCase --+    
-                            |    
-common_imports.HelperTestCase --+
-                                |
-                               ETreeRelaxNGTestCase
-
- -
- - - - - - - - - -
- - - - - -
Nested Classes[hide private]
-
-

Inherited from unittest.case.TestCase: - failureException -

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
test_relaxng(self) - source code - -
- -
-   - - - - - - -
test_relaxng_stringio(self) - source code - -
- -
-   - - - - - - -
test_relaxng_elementtree_error(self) - source code - -
- -
-   - - - - - - -
test_relaxng_error(self) - source code - -
- -
-   - - - - - - -
test_relaxng_invalid_schema(self) - source code - -
- -
-   - - - - - - -
test_relaxng_invalid_schema2(self) - source code - -
- -
-   - - - - - - -
test_relaxng_invalid_schema3(self) - source code - -
- -
-   - - - - - - -
test_relaxng_invalid_schema4(self) - source code - -
- -
-   - - - - - - -
test_relaxng_include(self) - source code - -
- -
-   - - - - - - -
test_relaxng_shortcut(self) - source code - -
- -
-   - - - - - - -
test_multiple_elementrees(self) - source code - -
- -
-

Inherited from common_imports.HelperTestCase: - parse, - tearDown -

-

Inherited from common_imports.HelperTestCase (private): - _rootstring -

-

Inherited from unittest.case.TestCase: - __call__, - __eq__, - __hash__, - __init__, - __ne__, - __repr__, - __str__, - addCleanup, - addTypeEqualityFunc, - assertAlmostEqual, - assertAlmostEquals, - assertDictContainsSubset, - assertDictEqual, - assertEqual, - assertEquals, - assertGreater, - assertGreaterEqual, - assertIn, - assertIs, - assertIsInstance, - assertIsNone, - assertIsNot, - assertIsNotNone, - assertItemsEqual, - assertLess, - assertLessEqual, - assertListEqual, - assertMultiLineEqual, - assertNotAlmostEqual, - assertNotAlmostEquals, - assertNotEqual, - assertNotEquals, - assertNotIn, - assertNotIsInstance, - assertNotRegexpMatches, - assertRaises, - assertRaisesRegexp, - assertRegexpMatches, - assertSequenceEqual, - assertSetEqual, - assertTrue, - assertTupleEqual, - assert_, - countTestCases, - debug, - defaultTestResult, - doCleanups, - fail, - failIf, - failIfAlmostEqual, - failIfEqual, - failUnless, - failUnlessAlmostEqual, - failUnlessEqual, - failUnlessRaises, - id, - run, - setUp, - shortDescription, - skipTest -

-

Inherited from unittest.case.TestCase (private): - _addSkip, - _baseAssertEqual, - _deprecate, - _formatMessage, - _getAssertEqualityFunc, - _truncateMessage -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __new__, - __reduce__, - __reduce_ex__, - __setattr__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Class Methods[hide private]
-
-

Inherited from unittest.case.TestCase: - setUpClass, - tearDownClass -

-
- - - - - - - - - -
- - - - - -
Class Variables[hide private]
-
-

Inherited from common_imports.HelperTestCase: - assertFalse -

-

Inherited from unittest.case.TestCase: - longMessage, - maxDiff -

-

Inherited from unittest.case.TestCase (private): - _classSetupFailed, - _diffThreshold -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.test_sax-module.html b/doc/html/api/lxml.tests.test_sax-module.html deleted file mode 100644 index 1dfb9f6..0000000 --- a/doc/html/api/lxml.tests.test_sax-module.html +++ /dev/null @@ -1,245 +0,0 @@ - - - - - lxml.tests.test_sax - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module test_sax - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Module test_sax

source code

-Test cases related to SAX I/O - - - - - - - - - - -
- - - - - -
Classes[hide private]
-
-   - - ETreeSaxTestCase -
- - - - - - - - - -
- - - - - -
Functions[hide private]
-
-   - - - - - - -
test_suite() - source code - -
- -
- - - - - - - - - - - - -
- - - - - -
Variables[hide private]
-
-   - - this_dir = '/home/sbehnel/source/Python/lxml/lxml-release/src/... -
-   - - __package__ = 'lxml.tests' -
- - - - - - -
- - - - - -
Variables Details[hide private]
-
- -
- -
-

this_dir

- -
-
-
-
Value:
-
-'/home/sbehnel/source/Python/lxml/lxml-release/src/lxml/tests'
-
-
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.test_sax-pysrc.html b/doc/html/api/lxml.tests.test_sax-pysrc.html deleted file mode 100644 index 0668789..0000000 --- a/doc/html/api/lxml.tests.test_sax-pysrc.html +++ /dev/null @@ -1,620 +0,0 @@ - - - - - lxml.tests.test_sax - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module test_sax - - - - - - -
[hide private]
[frames] | no frames]
-
-

Source Code for Module lxml.tests.test_sax

-
-  1  # -*- coding: utf-8 -*- 
-  2   
-  3  """ 
-  4  Test cases related to SAX I/O 
-  5  """ 
-  6   
-  7  import unittest, sys, os.path 
-  8   
-  9  this_dir = os.path.dirname(__file__) 
- 10  if this_dir not in sys.path: 
- 11      sys.path.insert(0, this_dir) # needed for Py3 
- 12   
- 13  from common_imports import HelperTestCase, doctest, make_doctest, BytesIO, _bytes 
- 14  from lxml import sax 
- 15  from xml.dom import pulldom 
- 16   
-
17 -class ETreeSaxTestCase(HelperTestCase): -
18 -
19 - def test_etree_sax_simple(self): -
20 tree = self.parse('<a>ab<b/>ba</a>') - 21 xml_out = self._saxify_serialize(tree) - 22 self.assertEquals(_bytes('<a>ab<b/>ba</a>'), - 23 xml_out) -
24 -
25 - def test_etree_sax_double(self): -
26 tree = self.parse('<a>ab<b>bb</b>ba</a>') - 27 xml_out = self._saxify_serialize(tree) - 28 self.assertEquals(_bytes('<a>ab<b>bb</b>ba</a>'), - 29 xml_out) -
30 -
31 - def test_etree_sax_comment(self): -
32 tree = self.parse('<a>ab<!-- TEST -->ba</a>') - 33 xml_out = self._saxify_serialize(tree) - 34 self.assertEquals(_bytes('<a>abba</a>'), - 35 xml_out) -
36 -
37 - def test_etree_sax_pi(self): -
38 tree = self.parse('<a>ab<?this and that?>ba</a>') - 39 xml_out = self._saxify_serialize(tree) - 40 self.assertEquals(_bytes('<a>ab<?this and that?>ba</a>'), - 41 xml_out) -
42 -
44 tree = self.parse('<!-- TEST --><a>ab</a>') - 45 xml_out = self._saxify_serialize(tree) - 46 self.assertEquals(_bytes('<a>ab</a>'), - 47 xml_out) -
48 -
49 - def test_etree_sax_pi_root(self): -
50 tree = self.parse('<?this and that?><a>ab</a>') - 51 xml_out = self._saxify_serialize(tree) - 52 self.assertEquals(_bytes('<?this and that?><a>ab</a>'), - 53 xml_out) -
54 -
55 - def test_etree_sax_attributes(self): -
56 tree = self.parse('<a aa="5">ab<b b="5"/>ba</a>') - 57 xml_out = self._saxify_serialize(tree) - 58 self.assertEquals(_bytes('<a aa="5">ab<b b="5"/>ba</a>'), - 59 xml_out) -
60 -
61 - def test_etree_sax_ns1(self): -
62 tree = self.parse('<a xmlns="bla">ab<b>bb</b>ba</a>') - 63 new_tree = self._saxify_unsaxify(tree) - 64 root = new_tree.getroot() - 65 self.assertEqual('{bla}a', - 66 root.tag) - 67 self.assertEqual('{bla}b', - 68 root[0].tag) -
69 -
70 - def test_etree_sax_ns2(self): -
71 tree = self.parse('<a xmlns="blaA">ab<b:b xmlns:b="blaB">bb</b:b>ba</a>') - 72 new_tree = self._saxify_unsaxify(tree) - 73 root = new_tree.getroot() - 74 self.assertEqual('{blaA}a', - 75 root.tag) - 76 self.assertEqual('{blaB}b', - 77 root[0].tag) -
78 -
79 - def test_sax_to_pulldom(self): -
80 tree = self.parse('<a xmlns="blaA">ab<b:b xmlns:b="blaB">bb</b:b>ba</a>') - 81 handler = pulldom.SAX2DOM() - 82 sax.saxify(tree, handler) - 83 dom = handler.document - 84 - 85 self.assertEqual('a', - 86 dom.firstChild.localName) - 87 self.assertEqual('blaA', - 88 dom.firstChild.namespaceURI) - 89 - 90 children = dom.firstChild.childNodes - 91 self.assertEqual('ab', - 92 children[0].nodeValue) - 93 self.assertEqual('blaB', - 94 children[1].namespaceURI) - 95 self.assertEqual('ba', - 96 children[2].nodeValue) -
97 -
98 - def test_element_sax(self): -
99 tree = self.parse('<a><b/></a>') -100 a = tree.getroot() -101 b = a[0] -102 -103 xml_out = self._saxify_serialize(a) -104 self.assertEquals(_bytes('<a><b/></a>'), -105 xml_out) -106 -107 xml_out = self._saxify_serialize(b) -108 self.assertEquals(_bytes('<b/>'), -109 xml_out) -
110 -
111 - def test_element_sax_ns(self): -
112 tree = self.parse('<a:a xmlns:a="blaA"><b/></a:a>') -113 a = tree.getroot() -114 b = a[0] -115 -116 new_tree = self._saxify_unsaxify(a) -117 root = new_tree.getroot() -118 self.assertEqual('{blaA}a', -119 root.tag) -120 self.assertEqual('b', -121 root[0].tag) -122 -123 new_tree = self._saxify_unsaxify(b) -124 root = new_tree.getroot() -125 self.assertEqual('b', -126 root.tag) -127 self.assertEqual(0, -128 len(root)) -
129 -
131 handler = sax.ElementTreeContentHandler() -132 handler.startDocument() -133 handler.startPrefixMapping(None, 'blaA') -134 handler.startElementNS(('blaA', 'a'), 'a', {}) -135 handler.startPrefixMapping(None, 'blaB') -136 handler.startElementNS(('blaB', 'b'), 'b', {}) -137 handler.endElementNS( ('blaB', 'b'), 'b') -138 handler.endPrefixMapping(None) -139 handler.startElementNS(('blaA', 'c'), 'c', {}) -140 handler.endElementNS( ('blaA', 'c'), 'c') -141 handler.endElementNS( ('blaA', 'a'), 'a') -142 handler.endPrefixMapping(None) -143 handler.endDocument() -144 -145 new_tree = handler.etree -146 root = new_tree.getroot() -147 self.assertEqual('{blaA}a', -148 root.tag) -149 self.assertEqual('{blaB}b', -150 root[0].tag) -151 self.assertEqual('{blaA}c', -152 root[1].tag) -
153 -
155 handler = sax.ElementTreeContentHandler() -156 handler.startDocument() -157 handler.startPrefixMapping(None, 'blaA') -158 handler.startElementNS((None, 'a'), 'a', {}) -159 handler.startPrefixMapping(None, 'blaB') -160 handler.startElementNS((None, 'b'), 'b', {}) -161 handler.endElementNS( (None, 'b'), 'b') -162 handler.endPrefixMapping(None) -163 handler.startElementNS((None, 'c'), 'c', {}) -164 handler.endElementNS( (None, 'c'), 'c') -165 handler.endElementNS( (None, 'a'), 'a') -166 handler.endPrefixMapping(None) -167 handler.endDocument() -168 -169 new_tree = handler.etree -170 root = new_tree.getroot() -171 self.assertEqual('{blaA}a', -172 root.tag) -173 self.assertEqual('{blaB}b', -174 root[0].tag) -175 self.assertEqual('{blaA}c', -176 root[1].tag) -
177 -
178 - def test_etree_sax_redefine_ns(self): -
179 handler = sax.ElementTreeContentHandler() -180 handler.startDocument() -181 handler.startPrefixMapping('ns', 'blaA') -182 handler.startElementNS(('blaA', 'a'), 'ns:a', {}) -183 handler.startPrefixMapping('ns', 'blaB') -184 handler.startElementNS(('blaB', 'b'), 'ns:b', {}) -185 handler.endElementNS( ('blaB', 'b'), 'ns:b') -186 handler.endPrefixMapping('ns') -187 handler.startElementNS(('blaA', 'c'), 'ns:c', {}) -188 handler.endElementNS( ('blaA', 'c'), 'ns:c') -189 handler.endElementNS( ('blaA', 'a'), 'ns:a') -190 handler.endPrefixMapping('ns') -191 handler.endDocument() -192 -193 new_tree = handler.etree -194 root = new_tree.getroot() -195 self.assertEqual('{blaA}a', -196 root.tag) -197 self.assertEqual('{blaB}b', -198 root[0].tag) -199 self.assertEqual('{blaA}c', -200 root[1].tag) -
201 -
202 - def test_etree_sax_no_ns(self): -
203 handler = sax.ElementTreeContentHandler() -204 handler.startDocument() -205 handler.startElement('a', {}) -206 handler.startElement('b', {}) -207 handler.endElement('b') -208 handler.startElement('c') # with empty attributes -209 handler.endElement('c') -210 handler.endElement('a') -211 handler.endDocument() -212 -213 new_tree = handler.etree -214 root = new_tree.getroot() -215 self.assertEqual('a', root.tag) -216 self.assertEqual('b', root[0].tag) -217 self.assertEqual('c', root[1].tag) -
218 -
219 - def test_etree_sax_error(self): -
220 handler = sax.ElementTreeContentHandler() -221 handler.startDocument() -222 handler.startElement('a') -223 self.assertRaises(sax.SaxError, handler.endElement, 'b') -
224 -
225 - def test_etree_sax_error2(self): -
226 handler = sax.ElementTreeContentHandler() -227 handler.startDocument() -228 handler.startElement('a') -229 handler.startElement('b') -230 self.assertRaises(sax.SaxError, handler.endElement, 'a') -
231 -
232 - def _saxify_unsaxify(self, saxifiable): -
233 handler = sax.ElementTreeContentHandler() -234 sax.ElementTreeProducer(saxifiable, handler).saxify() -235 return handler.etree -
236 -
237 - def _saxify_serialize(self, tree): -
238 new_tree = self._saxify_unsaxify(tree) -239 f = BytesIO() -240 new_tree.write(f) -241 return f.getvalue().replace(_bytes('\n'), _bytes('')) -
242 -243 -
244 -def test_suite(): -
245 suite = unittest.TestSuite() -246 suite.addTests([unittest.makeSuite(ETreeSaxTestCase)]) -247 suite.addTests( -248 [make_doctest('../../../doc/sax.txt')]) -249 return suite -
250 -251 if __name__ == '__main__': -252 print('to test use test.py %s' % __file__) -253 -
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.test_sax.ETreeSaxTestCase-class.html b/doc/html/api/lxml.tests.test_sax.ETreeSaxTestCase-class.html deleted file mode 100644 index c9c2c43..0000000 --- a/doc/html/api/lxml.tests.test_sax.ETreeSaxTestCase-class.html +++ /dev/null @@ -1,668 +0,0 @@ - - - - - lxml.tests.test_sax.ETreeSaxTestCase - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module test_sax :: - Class ETreeSaxTestCase - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class ETreeSaxTestCase

source code

-
-               object --+        
-                        |        
-   unittest.case.TestCase --+    
-                            |    
-common_imports.HelperTestCase --+
-                                |
-                               ETreeSaxTestCase
-
- -
- - - - - - - - - -
- - - - - -
Nested Classes[hide private]
-
-

Inherited from unittest.case.TestCase: - failureException -

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
test_etree_sax_simple(self) - source code - -
- -
-   - - - - - - -
test_etree_sax_double(self) - source code - -
- -
-   - - - - - - -
test_etree_sax_comment(self) - source code - -
- -
-   - - - - - - -
test_etree_sax_pi(self) - source code - -
- -
-   - - - - - - -
test_etree_sax_comment_root(self) - source code - -
- -
-   - - - - - - -
test_etree_sax_pi_root(self) - source code - -
- -
-   - - - - - - -
test_etree_sax_attributes(self) - source code - -
- -
-   - - - - - - -
test_etree_sax_ns1(self) - source code - -
- -
-   - - - - - - -
test_etree_sax_ns2(self) - source code - -
- -
-   - - - - - - -
test_sax_to_pulldom(self) - source code - -
- -
-   - - - - - - -
test_element_sax(self) - source code - -
- -
-   - - - - - - -
test_element_sax_ns(self) - source code - -
- -
-   - - - - - - -
test_etree_sax_handler_default_ns(self) - source code - -
- -
-   - - - - - - -
test_etree_sax_handler_default_ns_None(self) - source code - -
- -
-   - - - - - - -
test_etree_sax_redefine_ns(self) - source code - -
- -
-   - - - - - - -
test_etree_sax_no_ns(self) - source code - -
- -
-   - - - - - - -
test_etree_sax_error(self) - source code - -
- -
-   - - - - - - -
test_etree_sax_error2(self) - source code - -
- -
-   - - - - - - -
_saxify_unsaxify(self, - saxifiable) - source code - -
- -
-   - - - - - - -
_saxify_serialize(self, - tree) - source code - -
- -
-

Inherited from common_imports.HelperTestCase: - parse, - tearDown -

-

Inherited from common_imports.HelperTestCase (private): - _rootstring -

-

Inherited from unittest.case.TestCase: - __call__, - __eq__, - __hash__, - __init__, - __ne__, - __repr__, - __str__, - addCleanup, - addTypeEqualityFunc, - assertAlmostEqual, - assertAlmostEquals, - assertDictContainsSubset, - assertDictEqual, - assertEqual, - assertEquals, - assertGreater, - assertGreaterEqual, - assertIn, - assertIs, - assertIsInstance, - assertIsNone, - assertIsNot, - assertIsNotNone, - assertItemsEqual, - assertLess, - assertLessEqual, - assertListEqual, - assertMultiLineEqual, - assertNotAlmostEqual, - assertNotAlmostEquals, - assertNotEqual, - assertNotEquals, - assertNotIn, - assertNotIsInstance, - assertNotRegexpMatches, - assertRaises, - assertRaisesRegexp, - assertRegexpMatches, - assertSequenceEqual, - assertSetEqual, - assertTrue, - assertTupleEqual, - assert_, - countTestCases, - debug, - defaultTestResult, - doCleanups, - fail, - failIf, - failIfAlmostEqual, - failIfEqual, - failUnless, - failUnlessAlmostEqual, - failUnlessEqual, - failUnlessRaises, - id, - run, - setUp, - shortDescription, - skipTest -

-

Inherited from unittest.case.TestCase (private): - _addSkip, - _baseAssertEqual, - _deprecate, - _formatMessage, - _getAssertEqualityFunc, - _truncateMessage -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __new__, - __reduce__, - __reduce_ex__, - __setattr__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Class Methods[hide private]
-
-

Inherited from unittest.case.TestCase: - setUpClass, - tearDownClass -

-
- - - - - - - - - -
- - - - - -
Class Variables[hide private]
-
-

Inherited from common_imports.HelperTestCase: - assertFalse -

-

Inherited from unittest.case.TestCase: - longMessage, - maxDiff -

-

Inherited from unittest.case.TestCase (private): - _classSetupFailed, - _diffThreshold -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.test_schematron-module.html b/doc/html/api/lxml.tests.test_schematron-module.html deleted file mode 100644 index 03e049c..0000000 --- a/doc/html/api/lxml.tests.test_schematron-module.html +++ /dev/null @@ -1,245 +0,0 @@ - - - - - lxml.tests.test_schematron - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module test_schematron - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Module test_schematron

source code

-Test cases related to Schematron parsing and validation - - - - - - - - - - -
- - - - - -
Classes[hide private]
-
-   - - ETreeSchematronTestCase -
- - - - - - - - - -
- - - - - -
Functions[hide private]
-
-   - - - - - - -
test_suite() - source code - -
- -
- - - - - - - - - - - - -
- - - - - -
Variables[hide private]
-
-   - - this_dir = '/home/sbehnel/source/Python/lxml/lxml-release/src/... -
-   - - __package__ = 'lxml.tests' -
- - - - - - -
- - - - - -
Variables Details[hide private]
-
- -
- -
-

this_dir

- -
-
-
-
Value:
-
-'/home/sbehnel/source/Python/lxml/lxml-release/src/lxml/tests'
-
-
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.test_schematron-pysrc.html b/doc/html/api/lxml.tests.test_schematron-pysrc.html deleted file mode 100644 index b6dfbe4..0000000 --- a/doc/html/api/lxml.tests.test_schematron-pysrc.html +++ /dev/null @@ -1,340 +0,0 @@ - - - - - lxml.tests.test_schematron - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module test_schematron - - - - - - -
[hide private]
[frames] | no frames]
-
-

Source Code for Module lxml.tests.test_schematron

-
- 1  # -*- coding: utf-8 -*- 
- 2   
- 3  """ 
- 4  Test cases related to Schematron parsing and validation 
- 5  """ 
- 6   
- 7  import unittest, sys, os.path 
- 8   
- 9  this_dir = os.path.dirname(__file__) 
-10  if this_dir not in sys.path: 
-11      sys.path.insert(0, this_dir) # needed for Py3 
-12   
-13  from common_imports import etree, HelperTestCase, fileInTestDir 
-14  from common_imports import doctest, make_doctest 
-15   
-
16 -class ETreeSchematronTestCase(HelperTestCase): -
17 - def test_schematron(self): -
18 tree_valid = self.parse('<AAA><BBB/><CCC/></AAA>') -19 tree_invalid = self.parse('<AAA><BBB/><CCC/><DDD/></AAA>') -20 schema = self.parse('''\ -21 <schema xmlns="http://purl.oclc.org/dsdl/schematron" > -22 <pattern name="Open model"> -23 <rule context="AAA"> -24 <assert test="BBB"> BBB element is not present</assert> -25 <assert test="CCC"> CCC element is not present</assert> -26 </rule> -27 </pattern> -28 <pattern name="Closed model"> -29 <rule context="AAA"> -30 <assert test="BBB"> BBB element is not present</assert> -31 <assert test="CCC"> CCC element is not present</assert> -32 <assert test="count(BBB|CCC) = count (*)">There is an extra element</assert> -33 </rule> -34 </pattern> -35 </schema> -36 ''') -37 schema = etree.Schematron(schema) -38 self.assert_(schema.validate(tree_valid)) -39 self.assert_(not schema.validate(tree_invalid)) -
40 -
42 self.assertRaises(ValueError, etree.Schematron, etree.ElementTree()) -
43 -
45 schema = self.parse('''\ -46 <schema xmlns="http://purl.oclc.org/dsdl/schematron" > -47 <pattern name="Open model"> -48 </pattern> -49 </schema> -50 ''') -51 self.assertRaises(etree.SchematronParseError, -52 etree.Schematron, schema) -
53 -
55 schema = self.parse('''\ -56 <schema xmlns="http://purl.oclc.org/dsdl/schematron" /> -57 ''') -58 self.assertRaises(etree.SchematronParseError, -59 etree.Schematron, schema) -
60 -
62 # segfault -63 schema = self.parse('''\ -64 <schema xmlns="mynamespace" /> -65 ''') -66 self.assertRaises(etree.SchematronParseError, -67 etree.Schematron, schema) -
68 -69 -
70 -def test_suite(): -
71 suite = unittest.TestSuite() -72 suite.addTests([unittest.makeSuite(ETreeSchematronTestCase)]) -73 suite.addTests( -74 [make_doctest('../../../doc/validation.txt')]) -75 return suite -
76 -77 if __name__ == '__main__': -78 print('to test use test.py %s' % __file__) -79 -
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.test_schematron.ETreeSchematronTestCase-class.html b/doc/html/api/lxml.tests.test_schematron.ETreeSchematronTestCase-class.html deleted file mode 100644 index 1c675ba..0000000 --- a/doc/html/api/lxml.tests.test_schematron.ETreeSchematronTestCase-class.html +++ /dev/null @@ -1,426 +0,0 @@ - - - - - lxml.tests.test_schematron.ETreeSchematronTestCase - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module test_schematron :: - Class ETreeSchematronTestCase - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class ETreeSchematronTestCase

source code

-
-               object --+        
-                        |        
-   unittest.case.TestCase --+    
-                            |    
-common_imports.HelperTestCase --+
-                                |
-                               ETreeSchematronTestCase
-
- -
- - - - - - - - - -
- - - - - -
Nested Classes[hide private]
-
-

Inherited from unittest.case.TestCase: - failureException -

-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
test_schematron(self) - source code - -
- -
-   - - - - - - -
test_schematron_elementtree_error(self) - source code - -
- -
-   - - - - - - -
test_schematron_invalid_schema(self) - source code - -
- -
-   - - - - - - -
test_schematron_invalid_schema_empty(self) - source code - -
- -
-   - - - - - - -
test_schematron_invalid_schema_namespace(self) - source code - -
- -
-

Inherited from common_imports.HelperTestCase: - parse, - tearDown -

-

Inherited from common_imports.HelperTestCase (private): - _rootstring -

-

Inherited from unittest.case.TestCase: - __call__, - __eq__, - __hash__, - __init__, - __ne__, - __repr__, - __str__, - addCleanup, - addTypeEqualityFunc, - assertAlmostEqual, - assertAlmostEquals, - assertDictContainsSubset, - assertDictEqual, - assertEqual, - assertEquals, - assertGreater, - assertGreaterEqual, - assertIn, - assertIs, - assertIsInstance, - assertIsNone, - assertIsNot, - assertIsNotNone, - assertItemsEqual, - assertLess, - assertLessEqual, - assertListEqual, - assertMultiLineEqual, - assertNotAlmostEqual, - assertNotAlmostEquals, - assertNotEqual, - assertNotEquals, - assertNotIn, - assertNotIsInstance, - assertNotRegexpMatches, - assertRaises, - assertRaisesRegexp, - assertRegexpMatches, - assertSequenceEqual, - assertSetEqual, - assertTrue, - assertTupleEqual, - assert_, - countTestCases, - debug, - defaultTestResult, - doCleanups, - fail, - failIf, - failIfAlmostEqual, - failIfEqual, - failUnless, - failUnlessAlmostEqual, - failUnlessEqual, - failUnlessRaises, - id, - run, - setUp, - shortDescription, - skipTest -

-

Inherited from unittest.case.TestCase (private): - _addSkip, - _baseAssertEqual, - _deprecate, - _formatMessage, - _getAssertEqualityFunc, - _truncateMessage -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __new__, - __reduce__, - __reduce_ex__, - __setattr__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Class Methods[hide private]
-
-

Inherited from unittest.case.TestCase: - setUpClass, - tearDownClass -

-
- - - - - - - - - -
- - - - - -
Class Variables[hide private]
-
-

Inherited from common_imports.HelperTestCase: - assertFalse -

-

Inherited from unittest.case.TestCase: - longMessage, - maxDiff -

-

Inherited from unittest.case.TestCase (private): - _classSetupFailed, - _diffThreshold -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.test_threading-module.html b/doc/html/api/lxml.tests.test_threading-module.html deleted file mode 100644 index 7b498c7..0000000 --- a/doc/html/api/lxml.tests.test_threading-module.html +++ /dev/null @@ -1,254 +0,0 @@ - - - - - lxml.tests.test_threading - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module test_threading - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Module test_threading

source code

-Tests for thread usage in lxml.etree. - - - - - - - - - - - - - -
- - - - - -
Classes[hide private]
-
-   - - ThreadingTestCase
- Threading tests -
-   - - ThreadPipelineTestCase
- Threading tests based on a thread worker pipeline. -
- - - - - - - - - -
- - - - - -
Functions[hide private]
-
-   - - - - - - -
test_suite() - source code - -
- -
- - - - - - - - - - - - -
- - - - - -
Variables[hide private]
-
-   - - this_dir = '/home/sbehnel/source/Python/lxml/lxml-release/src/... -
-   - - __package__ = 'lxml.tests' -
- - - - - - -
- - - - - -
Variables Details[hide private]
-
- -
- -
-

this_dir

- -
-
-
-
Value:
-
-'/home/sbehnel/source/Python/lxml/lxml-release/src/lxml/tests'
-
-
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.test_threading-pysrc.html b/doc/html/api/lxml.tests.test_threading-pysrc.html deleted file mode 100644 index 76754d9..0000000 --- a/doc/html/api/lxml.tests.test_threading-pysrc.html +++ /dev/null @@ -1,1090 +0,0 @@ - - - - - lxml.tests.test_threading - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module test_threading - - - - - - -
[hide private]
[frames] | no frames]
-
-

Source Code for Module lxml.tests.test_threading

-
-  1  # -*- coding: utf-8 -*- 
-  2   
-  3  """ 
-  4  Tests for thread usage in lxml.etree. 
-  5  """ 
-  6   
-  7  import unittest, threading, sys, os.path 
-  8   
-  9  this_dir = os.path.dirname(__file__) 
- 10  if this_dir not in sys.path: 
- 11      sys.path.insert(0, this_dir) # needed for Py3 
- 12   
- 13  from common_imports import etree, HelperTestCase, BytesIO, _bytes 
- 14   
- 15  try: 
- 16      from Queue import Queue 
- 17  except ImportError: 
- 18      from queue import Queue # Py3 
- 19   
-
20 -class ThreadingTestCase(HelperTestCase): -
21 """Threading tests""" - 22 etree = etree - 23 -
24 - def _run_thread(self, func): -
25 thread = threading.Thread(target=func) - 26 thread.start() - 27 thread.join() -
28 -
29 - def test_subtree_copy_thread(self): -
30 tostring = self.etree.tostring - 31 XML = self.etree.XML - 32 xml = _bytes("<root><threadtag/></root>") - 33 main_root = XML(_bytes("<root/>")) - 34 - 35 def run_thread(): - 36 thread_root = XML(xml) - 37 main_root.append(thread_root[0]) - 38 del thread_root -
39 - 40 self._run_thread(run_thread) - 41 self.assertEquals(xml, tostring(main_root)) -
42 -
43 - def test_main_xslt_in_thread(self): -
44 XML = self.etree.XML - 45 style = XML(_bytes('''\ - 46 <xsl:stylesheet version="1.0" - 47 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> - 48 <xsl:template match="*"> - 49 <foo><xsl:copy><xsl:value-of select="/a/b/text()" /></xsl:copy></foo> - 50 </xsl:template> - 51 </xsl:stylesheet>''')) - 52 st = etree.XSLT(style) - 53 - 54 result = [] - 55 - 56 def run_thread(): - 57 root = XML(_bytes('<a><b>B</b><c>C</c></a>')) - 58 result.append( st(root) ) -
59 - 60 self._run_thread(run_thread) - 61 self.assertEquals('''\ - 62 <?xml version="1.0"?> - 63 <foo><a>B</a></foo> - 64 ''', - 65 str(result[0])) - 66 -
67 - def test_thread_xslt(self): -
68 XML = self.etree.XML - 69 tostring = self.etree.tostring - 70 root = XML(_bytes('<a><b>B</b><c>C</c></a>')) - 71 - 72 def run_thread(): - 73 style = XML(_bytes('''\ - 74 <xsl:stylesheet version="1.0" - 75 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> - 76 <xsl:template match="*"> - 77 <foo><xsl:copy><xsl:value-of select="/a/b/text()" /></xsl:copy></foo> - 78 </xsl:template> - 79 </xsl:stylesheet>''')) - 80 st = etree.XSLT(style) - 81 root.append( st(root).getroot() ) -
82 - 83 self._run_thread(run_thread) - 84 self.assertEquals(_bytes('<a><b>B</b><c>C</c><foo><a>B</a></foo></a>'), - 85 tostring(root)) - 86 -
88 # this is the only case in XSLT where the result tree can be - 89 # modified in-place - 90 XML = self.etree.XML - 91 tostring = self.etree.tostring - 92 style = self.etree.XSLT(XML(_bytes('''\ - 93 <xsl:stylesheet version="1.0" - 94 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> - 95 <xsl:template match="*"> - 96 <root class="abc"> - 97 <xsl:copy-of select="@class" /> - 98 <xsl:attribute name="class">xyz</xsl:attribute> - 99 </root> -100 </xsl:template> -101 </xsl:stylesheet>'''))) -102 -103 result = [] -104 def run_thread(): -105 root = XML(_bytes('<ROOT class="ABC" />')) -106 result.append( style(root).getroot() ) -
107 -108 self._run_thread(run_thread) -109 self.assertEquals(_bytes('<root class="xyz"/>'), -110 tostring(result[0])) -111 -
112 - def test_thread_create_xslt(self): -
113 XML = self.etree.XML -114 tostring = self.etree.tostring -115 root = XML(_bytes('<a><b>B</b><c>C</c></a>')) -116 -117 stylesheets = [] -118 -119 def run_thread(): -120 style = XML(_bytes('''\ -121 <xsl:stylesheet -122 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" -123 version="1.0"> -124 <xsl:output method="xml" /> -125 <xsl:template match="/"> -126 <div id="test"> -127 <xsl:apply-templates/> -128 </div> -129 </xsl:template> -130 </xsl:stylesheet>''')) -131 stylesheets.append( etree.XSLT(style) ) -
132 -133 self._run_thread(run_thread) -134 -135 st = stylesheets[0] -136 result = tostring( st(root) ) -137 -138 self.assertEquals(_bytes('<div id="test">BC</div>'), -139 result) -140 -
141 - def test_thread_error_log(self): -
142 XML = self.etree.XML -143 ParseError = self.etree.ParseError -144 expected_error = [self.etree.ErrorTypes.ERR_TAG_NAME_MISMATCH] -145 children = "<a>test</a>" * 100 -146 -147 def parse_error_test(thread_no): -148 tag = "tag%d" % thread_no -149 xml = "<%s>%s</%s>" % (tag, children, tag.upper()) -150 parser = self.etree.XMLParser() -151 for _ in range(10): -152 errors = None -153 try: -154 XML(xml, parser) -155 except self.etree.ParseError: -156 e = sys.exc_info()[1] -157 errors = e.error_log.filter_types(expected_error) -158 self.assert_(errors, "Expected error not found") -159 for error in errors: -160 self.assert_( -161 tag in error.message and tag.upper() in error.message, -162 "%s and %s not found in '%s'" % ( -163 tag, tag.upper(), error.message)) -
164 -165 self.etree.clear_error_log() -166 threads = [] -167 for thread_no in range(1, 10): -168 t = threading.Thread(target=parse_error_test, -169 args=(thread_no,)) -170 threads.append(t) -171 t.start() -172 -173 parse_error_test(0) -174 -175 for t in threads: -176 t.join() -177 -
178 - def test_thread_mix(self): -
179 XML = self.etree.XML -180 Element = self.etree.Element -181 SubElement = self.etree.SubElement -182 tostring = self.etree.tostring -183 xml = _bytes('<a><b>B</b><c xmlns="test">C</c></a>') -184 root = XML(xml) -185 fragment = XML(_bytes("<other><tags/></other>")) -186 -187 result = self.etree.Element("{myns}root", att = "someval") -188 -189 def run_XML(): -190 thread_root = XML(xml) -191 result.append(thread_root[0]) -192 result.append(thread_root[-1]) -
193 -194 def run_parse(): -195 thread_root = self.etree.parse(BytesIO(xml)).getroot() -196 result.append(thread_root[0]) -197 result.append(thread_root[-1]) -198 -199 def run_move_main(): -200 result.append(fragment[0]) -201 -202 def run_build(): -203 result.append( -204 Element("{myns}foo", attrib={'{test}attr':'val'})) -205 SubElement(result, "{otherns}tasty") -206 -207 def run_xslt(): -208 style = XML(_bytes('''\ -209 <xsl:stylesheet version="1.0" -210 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> -211 <xsl:template match="*"> -212 <xsl:copy><foo><xsl:value-of select="/a/b/text()" /></foo></xsl:copy> -213 </xsl:template> -214 </xsl:stylesheet>''')) -215 st = etree.XSLT(style) -216 result.append( st(root).getroot() ) -217 -218 for test in (run_XML, run_parse, run_move_main, run_xslt, run_build): -219 tostring(result) -220 self._run_thread(test) -221 -222 self.assertEquals( -223 _bytes('<ns0:root xmlns:ns0="myns" att="someval"><b>B</b>' -224 '<c xmlns="test">C</c><b>B</b><c xmlns="test">C</c><tags/>' -225 '<a><foo>B</foo></a>' -226 '<ns0:foo xmlns:ns1="test" ns1:attr="val"/>' -227 '<ns1:tasty xmlns:ns1="otherns"/></ns0:root>'), -228 tostring(result)) -229 -230 def strip_first(): -231 root = Element("newroot") -232 root.append(result[0]) -233 -234 while len(result): -235 self._run_thread(strip_first) -236 -237 self.assertEquals( -238 _bytes('<ns0:root xmlns:ns0="myns" att="someval"/>'), -239 tostring(result)) -240 -
241 - def test_concurrent_proxies(self): -
242 XML = self.etree.XML -243 root = XML(_bytes('<root><a>A</a><b xmlns="test">B</b><c/></root>')) -244 child_count = len(root) -245 def testrun(): -246 for i in range(10000): -247 el = root[i%child_count] -248 del el -
249 threads = [ threading.Thread(target=testrun) -250 for _ in range(10) ] -251 for thread in threads: -252 thread.start() -253 for thread in threads: -254 thread.join() -255 -
257 XML = self.etree.XML -258 -259 class TestElement(etree.ElementBase): -260 pass -
261 -262 class MyLookup(etree.CustomElementClassLookup): -263 repeat = range(100) -264 def lookup(self, t, d, ns, name): -265 count = 0 -266 for i in self.repeat: -267 # allow other threads to run -268 count += 1 -269 return TestElement -270 -271 parser = self.etree.XMLParser() -272 parser.set_element_class_lookup(MyLookup()) -273 -274 root = XML(_bytes('<root><a>A</a><b xmlns="test">B</b><c/></root>'), -275 parser) -276 -277 child_count = len(root) -278 def testrun(): -279 for i in range(1000): -280 el = root[i%child_count] -281 del el -282 threads = [ threading.Thread(target=testrun) -283 for _ in range(10) ] -284 for thread in threads: -285 thread.start() -286 for thread in threads: -287 thread.join() -288 -289 -
290 -class ThreadPipelineTestCase(HelperTestCase): -
291 """Threading tests based on a thread worker pipeline. -292 """ -293 etree = etree -294 item_count = 20 -295 -
296 - class Worker(threading.Thread): -
297 - def __init__(self, in_queue, in_count, **kwargs): -
298 threading.Thread.__init__(self) -299 self.in_queue = in_queue -300 self.in_count = in_count -301 self.out_queue = Queue(in_count) -302 self.__dict__.update(kwargs) -
303 - def run(self): -
304 get, put = self.in_queue.get, self.out_queue.put -305 handle = self.handle -306 for _ in range(self.in_count): -307 put(handle(get())) -
308 -
309 - class ParseWorker(Worker): -
310 XML = etree.XML -
311 - def handle(self, xml): -
312 return self.XML(xml) -
313 - class RotateWorker(Worker): -
314 - def handle(self, element): -
315 first = element[0] -316 element[:] = element[1:] -317 element.append(first) -318 return element -
319 - class ReverseWorker(Worker): -
320 - def handle(self, element): -
321 element[:] = element[::-1] -322 return element -
323 - class ParseAndExtendWorker(Worker): -
324 XML = etree.XML -
325 - def handle(self, element): -
326 element.extend(self.XML(self.xml)) -327 return element -
328 - class SerialiseWorker(Worker): -
329 - def handle(self, element): -
330 return etree.tostring(element) -
331 -332 xml = _bytes('''\ -333 <xsl:stylesheet -334 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" -335 version="1.0"> -336 <xsl:output method="xml" /> -337 <xsl:template match="/"> -338 <div id="test"> -339 <xsl:apply-templates/> -340 </div> -341 </xsl:template> -342 </xsl:stylesheet>''') -343 -
344 - def _build_pipeline(self, item_count, *classes, **kwargs): -
345 in_queue = Queue(item_count) -346 start = last = classes[0](in_queue, item_count, **kwargs) -347 start.setDaemon(True) -348 for worker_class in classes[1:]: -349 last = worker_class(last.out_queue, item_count, **kwargs) -350 last.setDaemon(True) -351 last.start() -352 return (in_queue, start, last) -
353 -
355 item_count = self.item_count -356 # build and start the pipeline -357 in_queue, start, last = self._build_pipeline( -358 item_count, -359 self.ParseWorker, -360 self.RotateWorker, -361 self.ReverseWorker, -362 self.ParseAndExtendWorker, -363 self.SerialiseWorker, -364 xml = self.xml) -365 -366 # fill the queue -367 put = start.in_queue.put -368 for _ in range(item_count): -369 put(self.xml) -370 -371 # start the first thread and thus everything -372 start.start() -373 # make sure the last thread has terminated -374 last.join(60) # time out after 60 seconds -375 self.assertEquals(item_count, last.out_queue.qsize()) -376 # read the results -377 get = last.out_queue.get -378 results = [ get() for _ in range(item_count) ] -379 -380 comparison = results[0] -381 for i, result in enumerate(results[1:]): -382 self.assertEquals(comparison, result) -
383 -
385 item_count = self.item_count -386 XML = self.etree.XML -387 # build and start the pipeline -388 in_queue, start, last = self._build_pipeline( -389 item_count, -390 self.RotateWorker, -391 self.ReverseWorker, -392 self.ParseAndExtendWorker, -393 self.SerialiseWorker, -394 xml = self.xml) -395 -396 # fill the queue -397 put = start.in_queue.put -398 for _ in range(item_count): -399 put(XML(self.xml)) -400 -401 # start the first thread and thus everything -402 start.start() -403 # make sure the last thread has terminated -404 last.join(60) # time out after 90 seconds -405 self.assertEquals(item_count, last.out_queue.qsize()) -406 # read the results -407 get = last.out_queue.get -408 results = [ get() for _ in range(item_count) ] -409 -410 comparison = results[0] -411 for i, result in enumerate(results[1:]): -412 self.assertEquals(comparison, result) -
413 -414 -
415 -def test_suite(): -
416 suite = unittest.TestSuite() -417 suite.addTests([unittest.makeSuite(ThreadingTestCase)]) -418 suite.addTests([unittest.makeSuite(ThreadPipelineTestCase)]) -419 return suite -
420 -421 if __name__ == '__main__': -422 print('to test use test.py %s' % __file__) -423 -
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.test_threading.ThreadPipelineTestCase-class.html b/doc/html/api/lxml.tests.test_threading.ThreadPipelineTestCase-class.html deleted file mode 100644 index f6134cd..0000000 --- a/doc/html/api/lxml.tests.test_threading.ThreadPipelineTestCase-class.html +++ /dev/null @@ -1,533 +0,0 @@ - - - - - lxml.tests.test_threading.ThreadPipelineTestCase - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module test_threading :: - Class ThreadPipelineTestCase - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class ThreadPipelineTestCase

source code

-
-               object --+        
-                        |        
-   unittest.case.TestCase --+    
-                            |    
-common_imports.HelperTestCase --+
-                                |
-                               ThreadPipelineTestCase
-
- -
-Threading tests based on a thread worker pipeline. - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Nested Classes[hide private]
-
-   - - Worker -
-   - - ParseWorker -
-   - - RotateWorker -
-   - - ReverseWorker -
-   - - ParseAndExtendWorker -
-   - - SerialiseWorker -
-

Inherited from unittest.case.TestCase: - failureException -

-
- - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
_build_pipeline(self, - item_count, - *classes, - **kwargs) - source code - -
- -
-   - - - - - - -
test_thread_pipeline_thread_parse(self) - source code - -
- -
-   - - - - - - -
test_thread_pipeline_global_parse(self) - source code - -
- -
-

Inherited from common_imports.HelperTestCase: - parse, - tearDown -

-

Inherited from common_imports.HelperTestCase (private): - _rootstring -

-

Inherited from unittest.case.TestCase: - __call__, - __eq__, - __hash__, - __init__, - __ne__, - __repr__, - __str__, - addCleanup, - addTypeEqualityFunc, - assertAlmostEqual, - assertAlmostEquals, - assertDictContainsSubset, - assertDictEqual, - assertEqual, - assertEquals, - assertGreater, - assertGreaterEqual, - assertIn, - assertIs, - assertIsInstance, - assertIsNone, - assertIsNot, - assertIsNotNone, - assertItemsEqual, - assertLess, - assertLessEqual, - assertListEqual, - assertMultiLineEqual, - assertNotAlmostEqual, - assertNotAlmostEquals, - assertNotEqual, - assertNotEquals, - assertNotIn, - assertNotIsInstance, - assertNotRegexpMatches, - assertRaises, - assertRaisesRegexp, - assertRegexpMatches, - assertSequenceEqual, - assertSetEqual, - assertTrue, - assertTupleEqual, - assert_, - countTestCases, - debug, - defaultTestResult, - doCleanups, - fail, - failIf, - failIfAlmostEqual, - failIfEqual, - failUnless, - failUnlessAlmostEqual, - failUnlessEqual, - failUnlessRaises, - id, - run, - setUp, - shortDescription, - skipTest -

-

Inherited from unittest.case.TestCase (private): - _addSkip, - _baseAssertEqual, - _deprecate, - _formatMessage, - _getAssertEqualityFunc, - _truncateMessage -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __new__, - __reduce__, - __reduce_ex__, - __setattr__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Class Methods[hide private]
-
-

Inherited from unittest.case.TestCase: - setUpClass, - tearDownClass -

-
- - - - - - - - - - - - - - - - - - -
- - - - - -
Class Variables[hide private]
-
-   - - etree
- The lxml.etree module implements the extended ElementTree API -for XML. -
-   - - item_count = 20 -
-   - - xml = '<xsl:stylesheet\n xmlns:xsl="http://www.w3.org/1999/... -
-

Inherited from common_imports.HelperTestCase: - assertFalse -

-

Inherited from unittest.case.TestCase: - longMessage, - maxDiff -

-

Inherited from unittest.case.TestCase (private): - _classSetupFailed, - _diffThreshold -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Class Variable Details[hide private]
-
- -
- -
-

etree

- The lxml.etree module implements the extended ElementTree API -for XML. -
-
-
-
Value:
-
lxml.etree
-
-
-
- -
- -
-

xml

- -
-
-
-
Value:
-
-'''<xsl:stylesheet
-    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
-    version="1.0">
-  <xsl:output method="xml" />
-  <xsl:template match="/">
-     <div id="test">
-       <xsl:apply-templates/>
-     </div>
-...
-
-
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.test_threading.ThreadPipelineTestCase.ParseAndExtendWorker-class.html b/doc/html/api/lxml.tests.test_threading.ThreadPipelineTestCase.ParseAndExtendWorker-class.html deleted file mode 100644 index 2c3e5af..0000000 --- a/doc/html/api/lxml.tests.test_threading.ThreadPipelineTestCase.ParseAndExtendWorker-class.html +++ /dev/null @@ -1,312 +0,0 @@ - - - - - lxml.tests.test_threading.ThreadPipelineTestCase.ParseAndExtendWorker - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module test_threading :: - Class ThreadPipelineTestCase :: - Class ParseAndExtendWorker - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class ParseAndExtendWorker

source code

-
-           object --+            
-                    |            
-   threading._Verbose --+        
-                        |        
-         threading.Thread --+    
-                            |    
-ThreadPipelineTestCase.Worker --+
-                                |
-                               ThreadPipelineTestCase.ParseAndExtendWorker
-
- -
- - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
XML(text, - parser=None, - base_url=None)
- Parses an XML document or fragment from a string constant. -Returns the root node (or the result returned by a parser target). -This function can be used to embed "XML literals" in Python code, -like in
- - -
- -
-   - - - - - - -
handle(self, - element) - source code - -
- -
-

Inherited from Worker: - __init__, - run -

-

Inherited from threading.Thread: - __repr__, - getName, - isAlive, - isDaemon, - is_alive, - join, - setDaemon, - setName, - start -

-

Inherited from threading.Thread (private): - _reset_internal_locks, - _set_daemon, - _set_ident -

-

Inherited from threading._Verbose (private): - _note -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __new__, - __reduce__, - __reduce_ex__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from threading.Thread: - daemon, - ident, - name -

-

Inherited from threading.Thread (private): - _block -

-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

XML(text, - parser=None, - base_url=None) -

-
  -
- -

Parses an XML document or fragment from a string constant. -Returns the root node (or the result returned by a parser target). -This function can be used to embed "XML literals" in Python code, -like in

-
-
->>> root = etree.XML("<root><test/></root>")
-
-

To override the parser with a different XMLParser you can pass it to -the parser keyword argument.

-

The base_url keyword argument allows to set the original base URL of -the document to support relative Paths when looking up external entities -(DTD, XInclude, ...).

-
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.test_threading.ThreadPipelineTestCase.ParseWorker-class.html b/doc/html/api/lxml.tests.test_threading.ThreadPipelineTestCase.ParseWorker-class.html deleted file mode 100644 index 398d9bb..0000000 --- a/doc/html/api/lxml.tests.test_threading.ThreadPipelineTestCase.ParseWorker-class.html +++ /dev/null @@ -1,312 +0,0 @@ - - - - - lxml.tests.test_threading.ThreadPipelineTestCase.ParseWorker - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module test_threading :: - Class ThreadPipelineTestCase :: - Class ParseWorker - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class ParseWorker

source code

-
-           object --+            
-                    |            
-   threading._Verbose --+        
-                        |        
-         threading.Thread --+    
-                            |    
-ThreadPipelineTestCase.Worker --+
-                                |
-                               ThreadPipelineTestCase.ParseWorker
-
- -
- - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
XML(text, - parser=None, - base_url=None)
- Parses an XML document or fragment from a string constant. -Returns the root node (or the result returned by a parser target). -This function can be used to embed "XML literals" in Python code, -like in
- - -
- -
-   - - - - - - -
handle(self, - xml) - source code - -
- -
-

Inherited from Worker: - __init__, - run -

-

Inherited from threading.Thread: - __repr__, - getName, - isAlive, - isDaemon, - is_alive, - join, - setDaemon, - setName, - start -

-

Inherited from threading.Thread (private): - _reset_internal_locks, - _set_daemon, - _set_ident -

-

Inherited from threading._Verbose (private): - _note -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __new__, - __reduce__, - __reduce_ex__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from threading.Thread: - daemon, - ident, - name -

-

Inherited from threading.Thread (private): - _block -

-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

XML(text, - parser=None, - base_url=None) -

-
  -
- -

Parses an XML document or fragment from a string constant. -Returns the root node (or the result returned by a parser target). -This function can be used to embed "XML literals" in Python code, -like in

-
-
->>> root = etree.XML("<root><test/></root>")
-
-

To override the parser with a different XMLParser you can pass it to -the parser keyword argument.

-

The base_url keyword argument allows to set the original base URL of -the document to support relative Paths when looking up external entities -(DTD, XInclude, ...).

-
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.test_threading.ThreadPipelineTestCase.ReverseWorker-class.html b/doc/html/api/lxml.tests.test_threading.ThreadPipelineTestCase.ReverseWorker-class.html deleted file mode 100644 index f2919ab..0000000 --- a/doc/html/api/lxml.tests.test_threading.ThreadPipelineTestCase.ReverseWorker-class.html +++ /dev/null @@ -1,238 +0,0 @@ - - - - - lxml.tests.test_threading.ThreadPipelineTestCase.ReverseWorker - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module test_threading :: - Class ThreadPipelineTestCase :: - Class ReverseWorker - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class ReverseWorker

source code

-
-           object --+            
-                    |            
-   threading._Verbose --+        
-                        |        
-         threading.Thread --+    
-                            |    
-ThreadPipelineTestCase.Worker --+
-                                |
-                               ThreadPipelineTestCase.ReverseWorker
-
- -
- - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
handle(self, - element) - source code - -
- -
-

Inherited from Worker: - __init__, - run -

-

Inherited from threading.Thread: - __repr__, - getName, - isAlive, - isDaemon, - is_alive, - join, - setDaemon, - setName, - start -

-

Inherited from threading.Thread (private): - _reset_internal_locks, - _set_daemon, - _set_ident -

-

Inherited from threading._Verbose (private): - _note -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __new__, - __reduce__, - __reduce_ex__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from threading.Thread: - daemon, - ident, - name -

-

Inherited from threading.Thread (private): - _block -

-

Inherited from object: - __class__ -

-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.test_threading.ThreadPipelineTestCase.RotateWorker-class.html b/doc/html/api/lxml.tests.test_threading.ThreadPipelineTestCase.RotateWorker-class.html deleted file mode 100644 index 2c605af..0000000 --- a/doc/html/api/lxml.tests.test_threading.ThreadPipelineTestCase.RotateWorker-class.html +++ /dev/null @@ -1,238 +0,0 @@ - - - - - lxml.tests.test_threading.ThreadPipelineTestCase.RotateWorker - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module test_threading :: - Class ThreadPipelineTestCase :: - Class RotateWorker - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class RotateWorker

source code

-
-           object --+            
-                    |            
-   threading._Verbose --+        
-                        |        
-         threading.Thread --+    
-                            |    
-ThreadPipelineTestCase.Worker --+
-                                |
-                               ThreadPipelineTestCase.RotateWorker
-
- -
- - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
handle(self, - element) - source code - -
- -
-

Inherited from Worker: - __init__, - run -

-

Inherited from threading.Thread: - __repr__, - getName, - isAlive, - isDaemon, - is_alive, - join, - setDaemon, - setName, - start -

-

Inherited from threading.Thread (private): - _reset_internal_locks, - _set_daemon, - _set_ident -

-

Inherited from threading._Verbose (private): - _note -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __new__, - __reduce__, - __reduce_ex__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from threading.Thread: - daemon, - ident, - name -

-

Inherited from threading.Thread (private): - _block -

-

Inherited from object: - __class__ -

-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.test_threading.ThreadPipelineTestCase.SerialiseWorker-class.html b/doc/html/api/lxml.tests.test_threading.ThreadPipelineTestCase.SerialiseWorker-class.html deleted file mode 100644 index 861433e..0000000 --- a/doc/html/api/lxml.tests.test_threading.ThreadPipelineTestCase.SerialiseWorker-class.html +++ /dev/null @@ -1,238 +0,0 @@ - - - - - lxml.tests.test_threading.ThreadPipelineTestCase.SerialiseWorker - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module test_threading :: - Class ThreadPipelineTestCase :: - Class SerialiseWorker - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class SerialiseWorker

source code

-
-           object --+            
-                    |            
-   threading._Verbose --+        
-                        |        
-         threading.Thread --+    
-                            |    
-ThreadPipelineTestCase.Worker --+
-                                |
-                               ThreadPipelineTestCase.SerialiseWorker
-
- -
- - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
handle(self, - element) - source code - -
- -
-

Inherited from Worker: - __init__, - run -

-

Inherited from threading.Thread: - __repr__, - getName, - isAlive, - isDaemon, - is_alive, - join, - setDaemon, - setName, - start -

-

Inherited from threading.Thread (private): - _reset_internal_locks, - _set_daemon, - _set_ident -

-

Inherited from threading._Verbose (private): - _note -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __new__, - __reduce__, - __reduce_ex__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from threading.Thread: - daemon, - ident, - name -

-

Inherited from threading.Thread (private): - _block -

-

Inherited from object: - __class__ -

-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.test_threading.ThreadPipelineTestCase.Worker-class.html b/doc/html/api/lxml.tests.test_threading.ThreadPipelineTestCase.Worker-class.html deleted file mode 100644 index c288dbd..0000000 --- a/doc/html/api/lxml.tests.test_threading.ThreadPipelineTestCase.Worker-class.html +++ /dev/null @@ -1,325 +0,0 @@ - - - - - lxml.tests.test_threading.ThreadPipelineTestCase.Worker - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module test_threading :: - Class ThreadPipelineTestCase :: - Class Worker - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class Worker

source code

-
-        object --+        
-                 |        
-threading._Verbose --+    
-                     |    
-      threading.Thread --+
-                         |
-                        ThreadPipelineTestCase.Worker
-
- -
Known Subclasses:
-
- -
- -
- - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__init__(self, - in_queue, - in_count, - **kwargs)
- x.__init__(...) initializes x; see help(type(x)) for signature
- source code - -
- -
-   - - - - - - -
run(self) - source code - -
- -
-

Inherited from threading.Thread: - __repr__, - getName, - isAlive, - isDaemon, - is_alive, - join, - setDaemon, - setName, - start -

-

Inherited from threading.Thread (private): - _reset_internal_locks, - _set_daemon, - _set_ident -

-

Inherited from threading._Verbose (private): - _note -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __new__, - __reduce__, - __reduce_ex__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from threading.Thread: - daemon, - ident, - name -

-

Inherited from threading.Thread (private): - _block -

-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__init__(self, - in_queue, - in_count, - **kwargs) -
(Constructor) -

-
source code  -
- - x.__init__(...) initializes x; see help(type(x)) for signature -
-
Overrides: - object.__init__ -
(inherited documentation)
- -
-
-
- -
- -
- - -
-

run(self) -

-
source code  -
- - -
-
Overrides: - threading.Thread.run -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.test_threading.ThreadingTestCase-class.html b/doc/html/api/lxml.tests.test_threading.ThreadingTestCase-class.html deleted file mode 100644 index 1b383a7..0000000 --- a/doc/html/api/lxml.tests.test_threading.ThreadingTestCase-class.html +++ /dev/null @@ -1,553 +0,0 @@ - - - - - lxml.tests.test_threading.ThreadingTestCase - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module test_threading :: - Class ThreadingTestCase - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class ThreadingTestCase

source code

-
-               object --+        
-                        |        
-   unittest.case.TestCase --+    
-                            |    
-common_imports.HelperTestCase --+
-                                |
-                               ThreadingTestCase
-
- -
-Threading tests - - - - - - - - - - -
- - - - - -
Nested Classes[hide private]
-
-

Inherited from unittest.case.TestCase: - failureException -

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
_run_thread(self, - func) - source code - -
- -
-   - - - - - - -
test_subtree_copy_thread(self) - source code - -
- -
-   - - - - - - -
test_main_xslt_in_thread(self) - source code - -
- -
-   - - - - - - -
test_thread_xslt(self) - source code - -
- -
-   - - - - - - -
test_thread_xslt_attr_replace(self) - source code - -
- -
-   - - - - - - -
test_thread_create_xslt(self) - source code - -
- -
-   - - - - - - -
test_thread_error_log(self) - source code - -
- -
-   - - - - - - -
test_thread_mix(self) - source code - -
- -
-   - - - - - - -
test_concurrent_proxies(self) - source code - -
- -
-   - - - - - - -
test_concurrent_class_lookup(self) - source code - -
- -
-

Inherited from common_imports.HelperTestCase: - parse, - tearDown -

-

Inherited from common_imports.HelperTestCase (private): - _rootstring -

-

Inherited from unittest.case.TestCase: - __call__, - __eq__, - __hash__, - __init__, - __ne__, - __repr__, - __str__, - addCleanup, - addTypeEqualityFunc, - assertAlmostEqual, - assertAlmostEquals, - assertDictContainsSubset, - assertDictEqual, - assertEqual, - assertEquals, - assertGreater, - assertGreaterEqual, - assertIn, - assertIs, - assertIsInstance, - assertIsNone, - assertIsNot, - assertIsNotNone, - assertItemsEqual, - assertLess, - assertLessEqual, - assertListEqual, - assertMultiLineEqual, - assertNotAlmostEqual, - assertNotAlmostEquals, - assertNotEqual, - assertNotEquals, - assertNotIn, - assertNotIsInstance, - assertNotRegexpMatches, - assertRaises, - assertRaisesRegexp, - assertRegexpMatches, - assertSequenceEqual, - assertSetEqual, - assertTrue, - assertTupleEqual, - assert_, - countTestCases, - debug, - defaultTestResult, - doCleanups, - fail, - failIf, - failIfAlmostEqual, - failIfEqual, - failUnless, - failUnlessAlmostEqual, - failUnlessEqual, - failUnlessRaises, - id, - run, - setUp, - shortDescription, - skipTest -

-

Inherited from unittest.case.TestCase (private): - _addSkip, - _baseAssertEqual, - _deprecate, - _formatMessage, - _getAssertEqualityFunc, - _truncateMessage -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __new__, - __reduce__, - __reduce_ex__, - __setattr__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Class Methods[hide private]
-
-

Inherited from unittest.case.TestCase: - setUpClass, - tearDownClass -

-
- - - - - - - - - - - - -
- - - - - -
Class Variables[hide private]
-
-   - - etree
- The lxml.etree module implements the extended ElementTree API -for XML. -
-

Inherited from common_imports.HelperTestCase: - assertFalse -

-

Inherited from unittest.case.TestCase: - longMessage, - maxDiff -

-

Inherited from unittest.case.TestCase (private): - _classSetupFailed, - _diffThreshold -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Class Variable Details[hide private]
-
- -
- -
-

etree

- The lxml.etree module implements the extended ElementTree API -for XML. -
-
-
-
Value:
-
lxml.etree
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.test_unicode-module.html b/doc/html/api/lxml.tests.test_unicode-module.html deleted file mode 100644 index 5310532..0000000 --- a/doc/html/api/lxml.tests.test_unicode-module.html +++ /dev/null @@ -1,304 +0,0 @@ - - - - - lxml.tests.test_unicode - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module test_unicode - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Module test_unicode

source code

- - - - - - - - - - - - -
- - - - - -
Classes[hide private]
-
-   - - unicode
- str(object) -> string -
-   - - UnicodeTestCase -
- - - - - - - - - -
- - - - - -
Functions[hide private]
-
-   - - - - - - -
test_suite() - source code - -
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Variables[hide private]
-
-   - - this_dir = '/home/sbehnel/source/Python/lxml/lxml-release/src/... -
-   - - ascii_uni = u'a' -
-   - - klingon = u'' -
-   - - invalid_tag = u'test' -
-   - - uni = u'Ãڀㄠ' -
-   - - uxml = u'<test><title>test áㄠ</title><h1>page áㄠ title</h1><... -
-   - - __package__ = 'lxml.tests' -
- - - - - - -
- - - - - -
Variables Details[hide private]
-
- -
- -
-

this_dir

- -
-
-
-
Value:
-
-'/home/sbehnel/source/Python/lxml/lxml-release/src/lxml/tests'
-
-
-
-
-
- -
- -
-

uxml

- -
-
-
-
Value:
-
-u'<test><title>test áㄠ</title><h1>page áㄠ title</h1></test>'
-
-
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.test_unicode-pysrc.html b/doc/html/api/lxml.tests.test_unicode-pysrc.html deleted file mode 100644 index d5e87dd..0000000 --- a/doc/html/api/lxml.tests.test_unicode-pysrc.html +++ /dev/null @@ -1,432 +0,0 @@ - - - - - lxml.tests.test_unicode - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module test_unicode - - - - - - -
[hide private]
[frames] | no frames]
-
-

Source Code for Module lxml.tests.test_unicode

-
- 1  # -*- coding: utf-8 -*- 
- 2  import unittest, doctest, sys, os.path 
- 3   
- 4  this_dir = os.path.dirname(__file__) 
- 5  if this_dir not in sys.path: 
- 6      sys.path.insert(0, this_dir) # needed for Py3 
- 7   
- 8  from common_imports import StringIO, etree, SillyFileLike, HelperTestCase 
- 9  from common_imports import _str, _bytes 
-10   
-11  try: 
-12      unicode 
-13  except NameError: 
-14      unicode = str 
-15   
-16  ascii_uni = _str('a') 
-17   
-18  klingon = _bytes("\\uF8D2").decode("unicode_escape") # not valid for XML names 
-19   
-20  invalid_tag = _str("test") + klingon 
-21   
-22  uni = _bytes('\\xc3\\u0680\\u3120').decode("unicode_escape") # some non-ASCII characters 
-23   
-24  uxml = _bytes("<test><title>test \\xc3\\xa1\\u3120</title><h1>page \\xc3\\xa1\\u3120 title</h1></test>" 
-25                ).decode("unicode_escape") 
-26   
-
27 -class UnicodeTestCase(HelperTestCase): -
28 - def test_unicode_xml(self): -
29 tree = etree.XML(_str('<p>%s</p>') % uni) -30 self.assertEquals(uni, tree.text) -
31 -
32 - def test_unicode_xml_broken(self): -
33 uxml = _str('<?xml version="1.0" encoding="UTF-8"?>') + \ -34 _str('<p>%s</p>') % uni -35 self.assertRaises(ValueError, etree.XML, uxml) -
36 -
37 - def test_unicode_tag(self): -
38 el = etree.Element(uni) -39 self.assertEquals(uni, el.tag) -
40 -
41 - def test_unicode_tag_invalid(self): -
42 # sadly, Klingon is not well-formed -43 self.assertRaises(ValueError, etree.Element, invalid_tag) -
44 -
45 - def test_unicode_nstag(self): -
46 tag = _str("{http://abc/}%s") % uni -47 el = etree.Element(tag) -48 self.assertEquals(tag, el.tag) -
49 -
50 - def test_unicode_ns_invalid(self): -
51 # namespace URIs must conform to RFC 3986 -52 tag = _str("{http://%s/}abc") % uni -53 self.assertRaises(ValueError, etree.Element, tag) -
54 -
56 # sadly, Klingon is not well-formed -57 tag = _str("{http://abc/}%s") % invalid_tag -58 self.assertRaises(ValueError, etree.Element, tag) -
59 -
60 - def test_unicode_qname(self): -
61 qname = etree.QName(uni, uni) -62 tag = _str("{%s}%s") % (uni, uni) -63 self.assertEquals(qname.text, tag) -64 self.assertEquals(unicode(qname), tag) -
65 -
67 self.assertRaises(ValueError, etree.QName, invalid_tag) -
68 -
69 - def test_unicode_attr(self): -
70 el = etree.Element('foo', {'bar': uni}) -71 self.assertEquals(uni, el.attrib['bar']) -
72 -
73 - def test_unicode_comment(self): -
74 el = etree.Comment(uni) -75 self.assertEquals(uni, el.text) -
76 -
78 el = etree.parse(StringIO(_str('<p>%s</p>') % uni)).getroot() -79 self.assertEquals(uni, el.text) -
80 -81 ## def test_parse_fileobject_unicode(self): -82 ## # parse unicode from unamed file object (not support by ElementTree) -83 ## f = SillyFileLike(uxml) -84 ## root = etree.parse(f).getroot() -85 ## self.assertEquals(unicode(etree.tostring(root, 'UTF-8'), 'UTF-8'), -86 ## uxml) -87 -
88 -def test_suite(): -
89 suite = unittest.TestSuite() -90 suite.addTests([unittest.makeSuite(UnicodeTestCase)]) -91 return suite -
92 -
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.test_unicode.UnicodeTestCase-class.html b/doc/html/api/lxml.tests.test_unicode.UnicodeTestCase-class.html deleted file mode 100644 index f04f212..0000000 --- a/doc/html/api/lxml.tests.test_unicode.UnicodeTestCase-class.html +++ /dev/null @@ -1,538 +0,0 @@ - - - - - lxml.tests.test_unicode.UnicodeTestCase - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module test_unicode :: - Class UnicodeTestCase - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class UnicodeTestCase

source code

-
-               object --+        
-                        |        
-   unittest.case.TestCase --+    
-                            |    
-common_imports.HelperTestCase --+
-                                |
-                               UnicodeTestCase
-
- -
- - - - - - - - - -
- - - - - -
Nested Classes[hide private]
-
-

Inherited from unittest.case.TestCase: - failureException -

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
test_unicode_xml(self) - source code - -
- -
-   - - - - - - -
test_unicode_xml_broken(self) - source code - -
- -
-   - - - - - - -
test_unicode_tag(self) - source code - -
- -
-   - - - - - - -
test_unicode_tag_invalid(self) - source code - -
- -
-   - - - - - - -
test_unicode_nstag(self) - source code - -
- -
-   - - - - - - -
test_unicode_ns_invalid(self) - source code - -
- -
-   - - - - - - -
test_unicode_nstag_invalid(self) - source code - -
- -
-   - - - - - - -
test_unicode_qname(self) - source code - -
- -
-   - - - - - - -
test_unicode_qname_invalid(self) - source code - -
- -
-   - - - - - - -
test_unicode_attr(self) - source code - -
- -
-   - - - - - - -
test_unicode_comment(self) - source code - -
- -
-   - - - - - - -
test_unicode_parse_stringio(self) - source code - -
- -
-

Inherited from common_imports.HelperTestCase: - parse, - tearDown -

-

Inherited from common_imports.HelperTestCase (private): - _rootstring -

-

Inherited from unittest.case.TestCase: - __call__, - __eq__, - __hash__, - __init__, - __ne__, - __repr__, - __str__, - addCleanup, - addTypeEqualityFunc, - assertAlmostEqual, - assertAlmostEquals, - assertDictContainsSubset, - assertDictEqual, - assertEqual, - assertEquals, - assertGreater, - assertGreaterEqual, - assertIn, - assertIs, - assertIsInstance, - assertIsNone, - assertIsNot, - assertIsNotNone, - assertItemsEqual, - assertLess, - assertLessEqual, - assertListEqual, - assertMultiLineEqual, - assertNotAlmostEqual, - assertNotAlmostEquals, - assertNotEqual, - assertNotEquals, - assertNotIn, - assertNotIsInstance, - assertNotRegexpMatches, - assertRaises, - assertRaisesRegexp, - assertRegexpMatches, - assertSequenceEqual, - assertSetEqual, - assertTrue, - assertTupleEqual, - assert_, - countTestCases, - debug, - defaultTestResult, - doCleanups, - fail, - failIf, - failIfAlmostEqual, - failIfEqual, - failUnless, - failUnlessAlmostEqual, - failUnlessEqual, - failUnlessRaises, - id, - run, - setUp, - shortDescription, - skipTest -

-

Inherited from unittest.case.TestCase (private): - _addSkip, - _baseAssertEqual, - _deprecate, - _formatMessage, - _getAssertEqualityFunc, - _truncateMessage -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __new__, - __reduce__, - __reduce_ex__, - __setattr__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Class Methods[hide private]
-
-

Inherited from unittest.case.TestCase: - setUpClass, - tearDownClass -

-
- - - - - - - - - -
- - - - - -
Class Variables[hide private]
-
-

Inherited from common_imports.HelperTestCase: - assertFalse -

-

Inherited from unittest.case.TestCase: - longMessage, - maxDiff -

-

Inherited from unittest.case.TestCase (private): - _classSetupFailed, - _diffThreshold -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.test_xmlschema-module.html b/doc/html/api/lxml.tests.test_xmlschema-module.html deleted file mode 100644 index d007c3d..0000000 --- a/doc/html/api/lxml.tests.test_xmlschema-module.html +++ /dev/null @@ -1,252 +0,0 @@ - - - - - lxml.tests.test_xmlschema - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module test_xmlschema - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Module test_xmlschema

source code

-Test cases related to XML Schema parsing and validation - - - - - - - - - - - - - -
- - - - - -
Classes[hide private]
-
-   - - ETreeXMLSchemaTestCase -
-   - - ETreeXMLSchemaResolversTestCase -
- - - - - - - - - -
- - - - - -
Functions[hide private]
-
-   - - - - - - -
test_suite() - source code - -
- -
- - - - - - - - - - - - -
- - - - - -
Variables[hide private]
-
-   - - this_dir = '/home/sbehnel/source/Python/lxml/lxml-release/src/... -
-   - - __package__ = 'lxml.tests' -
- - - - - - -
- - - - - -
Variables Details[hide private]
-
- -
- -
-

this_dir

- -
-
-
-
Value:
-
-'/home/sbehnel/source/Python/lxml/lxml-release/src/lxml/tests'
-
-
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.test_xmlschema-pysrc.html b/doc/html/api/lxml.tests.test_xmlschema-pysrc.html deleted file mode 100644 index e0d7ba3..0000000 --- a/doc/html/api/lxml.tests.test_xmlschema-pysrc.html +++ /dev/null @@ -1,1065 +0,0 @@ - - - - - lxml.tests.test_xmlschema - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module test_xmlschema - - - - - - -
[hide private]
[frames] | no frames]
-
-

Source Code for Module lxml.tests.test_xmlschema

-
-  1  # -*- coding: utf-8 -*- 
-  2   
-  3  """ 
-  4  Test cases related to XML Schema parsing and validation 
-  5  """ 
-  6   
-  7  import unittest, sys, os.path 
-  8   
-  9  this_dir = os.path.dirname(__file__) 
- 10  if this_dir not in sys.path: 
- 11      sys.path.insert(0, this_dir) # needed for Py3 
- 12   
- 13  from common_imports import etree, BytesIO, HelperTestCase, fileInTestDir 
- 14  from common_imports import doctest, make_doctest 
- 15   
-
16 -class ETreeXMLSchemaTestCase(HelperTestCase): -
17 - def test_xmlschema(self): -
18 tree_valid = self.parse('<a><b></b></a>') - 19 tree_invalid = self.parse('<a><c></c></a>') - 20 schema = self.parse(''' - 21 <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"> - 22 <xsd:element name="a" type="AType"/> - 23 <xsd:complexType name="AType"> - 24 <xsd:sequence> - 25 <xsd:element name="b" type="xsd:string" /> - 26 </xsd:sequence> - 27 </xsd:complexType> - 28 </xsd:schema> - 29 ''') - 30 schema = etree.XMLSchema(schema) - 31 self.assert_(schema.validate(tree_valid)) - 32 self.assert_(not schema.validate(tree_invalid)) -
33 -
35 schema = self.parse(''' - 36 <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"> - 37 <xsd:element name="a" type="AType"/> - 38 <xsd:complexType name="AType"> - 39 <xsd:sequence minOccurs="4" maxOccurs="4"> - 40 <xsd:element name="b" type="BType" /> - 41 </xsd:sequence> - 42 </xsd:complexType> - 43 <xsd:complexType name="BType"> - 44 <xsd:attribute name="hardy" type="xsd:string" default="hey" /> - 45 </xsd:complexType> - 46 </xsd:schema> - 47 ''') - 48 schema = etree.XMLSchema(schema, attribute_defaults=True) - 49 - 50 tree = self.parse('<a><b hardy="ho"/><b/><b hardy="ho"/><b/></a>') - 51 - 52 root = tree.getroot() - 53 self.assertEquals('ho', root[0].get('hardy')) - 54 self.assertEquals(None, root[1].get('hardy')) - 55 self.assertEquals('ho', root[2].get('hardy')) - 56 self.assertEquals(None, root[3].get('hardy')) - 57 - 58 self.assert_(schema(tree)) - 59 - 60 root = tree.getroot() - 61 self.assertEquals('ho', root[0].get('hardy')) - 62 self.assertEquals('hey', root[1].get('hardy')) - 63 self.assertEquals('ho', root[2].get('hardy')) - 64 self.assertEquals('hey', root[3].get('hardy')) -
65 -
66 - def test_xmlschema_parse(self): -
67 schema = self.parse(''' - 68 <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"> - 69 <xsd:element name="a" type="AType"/> - 70 <xsd:complexType name="AType"> - 71 <xsd:sequence> - 72 <xsd:element name="b" type="xsd:string" /> - 73 </xsd:sequence> - 74 </xsd:complexType> - 75 </xsd:schema> - 76 ''') - 77 schema = etree.XMLSchema(schema) - 78 parser = etree.XMLParser(schema=schema) - 79 - 80 tree_valid = self.parse('<a><b></b></a>', parser=parser) - 81 self.assertEquals('a', tree_valid.getroot().tag) - 82 - 83 self.assertRaises(etree.XMLSyntaxError, - 84 self.parse, '<a><c></c></a>', parser=parser) -
85 -
87 # does not work as of libxml2 2.7.3 - 88 schema = self.parse(''' - 89 <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"> - 90 <xsd:element name="a" type="AType"/> - 91 <xsd:complexType name="AType"> - 92 <xsd:sequence minOccurs="4" maxOccurs="4"> - 93 <xsd:element name="b" type="BType" /> - 94 </xsd:sequence> - 95 </xsd:complexType> - 96 <xsd:complexType name="BType"> - 97 <xsd:attribute name="hardy" type="xsd:string" default="hey" /> - 98 </xsd:complexType> - 99 </xsd:schema> -100 ''') -101 schema = etree.XMLSchema(schema) -102 parser = etree.XMLParser(schema=schema, attribute_defaults=True) -103 -104 tree_valid = self.parse('<a><b hardy="ho"/><b/><b hardy="ho"/><b/></a>', -105 parser=parser) -106 root = tree_valid.getroot() -107 self.assertEquals('ho', root[0].get('hardy')) -108 self.assertEquals('hey', root[1].get('hardy')) -109 self.assertEquals('ho', root[2].get('hardy')) -110 self.assertEquals('hey', root[3].get('hardy')) -
111 -
113 # does not work as of libxml2 2.7.3 -114 schema = self.parse(''' -115 <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"> -116 <xsd:element name="a" type="AType"/> -117 <xsd:complexType name="AType"> -118 <xsd:sequence minOccurs="4" maxOccurs="4"> -119 <xsd:element name="b" type="BType" /> -120 </xsd:sequence> -121 </xsd:complexType> -122 <xsd:complexType name="BType"> -123 <xsd:attribute name="hardy" type="xsd:string" default="hey" /> -124 </xsd:complexType> -125 </xsd:schema> -126 ''') -127 schema = etree.XMLSchema(schema, attribute_defaults=True) -128 parser = etree.XMLParser(schema=schema) -129 -130 tree_valid = self.parse('<a><b hardy="ho"/><b/><b hardy="ho"/><b/></a>', -131 parser=parser) -132 root = tree_valid.getroot() -133 self.assertEquals('ho', root[0].get('hardy')) -134 self.assertEquals('hey', root[1].get('hardy')) -135 self.assertEquals('ho', root[2].get('hardy')) -136 self.assertEquals('hey', root[3].get('hardy')) -
137 -
139 # does not work as of libxml2 2.7.3 -140 schema = self.parse(''' -141 <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"> -142 <xsd:element name="a" type="AType"/> -143 <xsd:complexType name="AType"> -144 <xsd:sequence minOccurs="3" maxOccurs="3"> -145 <xsd:element name="b" type="BType" /> -146 </xsd:sequence> -147 </xsd:complexType> -148 <xsd:complexType name="BType"> -149 <xsd:attribute name="hardy" type="xsd:string" fixed="hey" /> -150 </xsd:complexType> -151 </xsd:schema> -152 ''') -153 schema = etree.XMLSchema(schema) -154 parser = etree.XMLParser(schema=schema, attribute_defaults=True) -155 -156 tree_valid = self.parse('<a><b/><b hardy="hey"/><b/></a>', -157 parser=parser) -158 root = tree_valid.getroot() -159 self.assertEquals('hey', root[0].get('hardy')) -160 self.assertEquals('hey', root[1].get('hardy')) -161 self.assertEquals('hey', root[2].get('hardy')) -
162 -
163 - def test_xmlschema_stringio(self): -
164 schema_file = BytesIO(''' -165 <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"> -166 <xsd:element name="a" type="AType"/> -167 <xsd:complexType name="AType"> -168 <xsd:sequence> -169 <xsd:element name="b" type="xsd:string" /> -170 </xsd:sequence> -171 </xsd:complexType> -172 </xsd:schema> -173 ''') -174 schema = etree.XMLSchema(file=schema_file) -175 parser = etree.XMLParser(schema=schema) -176 -177 tree_valid = self.parse('<a><b></b></a>', parser=parser) -178 self.assertEquals('a', tree_valid.getroot().tag) -179 -180 self.assertRaises(etree.XMLSyntaxError, -181 self.parse, '<a><c></c></a>', parser=parser) -
182 -
183 - def test_xmlschema_iterparse(self): -
184 schema = self.parse(''' -185 <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"> -186 <xsd:element name="a" type="AType"/> -187 <xsd:complexType name="AType"> -188 <xsd:sequence> -189 <xsd:element name="b" type="xsd:string" /> -190 </xsd:sequence> -191 </xsd:complexType> -192 </xsd:schema> -193 ''') -194 schema = etree.XMLSchema(schema) -195 xml = BytesIO('<a><b></b></a>') -196 events = [ (event, el.tag) -197 for (event, el) in etree.iterparse(xml, schema=schema) ] -198 -199 self.assertEquals([('end', 'b'), ('end', 'a')], -200 events) -
201 -
203 schema = self.parse(''' -204 <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"> -205 <xsd:element name="a" type="AType"/> -206 <xsd:complexType name="AType"> -207 <xsd:sequence> -208 <xsd:element name="b" type="xsd:string" /> -209 </xsd:sequence> -210 </xsd:complexType> -211 </xsd:schema> -212 ''') -213 schema = etree.XMLSchema(schema) -214 self.assertRaises( -215 etree.XMLSyntaxError, -216 list, etree.iterparse(BytesIO('<a><c></c></a>'), schema=schema)) -
217 -
219 self.assertRaises(ValueError, etree.XMLSchema, etree.ElementTree()) -
220 -
222 schema = self.parse('''\ -223 <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"> -224 <element name="a" type="AType"/> -225 <xsd:complexType name="AType"> -226 <xsd:sequence> -227 <xsd:element name="b" type="xsd:string" /> -228 </xsd:sequence> -229 </xsd:complexType> -230 </xsd:schema> -231 ''') -232 self.assertRaises(etree.XMLSchemaParseError, -233 etree.XMLSchema, schema) -
234 -
236 schema = self.parse('<test/>') -237 self.assertRaises(etree.XMLSchemaParseError, -238 etree.XMLSchema, schema) -
239 -
240 - def test_xmlschema_file(self): -
241 # this will only work if we access the file through path or -242 # file object.. -243 f = open(fileInTestDir('test.xsd'), 'rb') -244 try: -245 schema = etree.XMLSchema(file=f) -246 finally: -247 f.close() -248 tree_valid = self.parse('<a><b></b></a>') -249 self.assert_(schema.validate(tree_valid)) -
250 -
251 - def test_xmlschema_import_file(self): -
252 # this will only work if we access the file through path or -253 # file object.. -254 schema = etree.XMLSchema(file=fileInTestDir('test_import.xsd')) -255 tree_valid = self.parse( -256 '<a:x xmlns:a="http://codespeak.net/lxml/schema/ns1"><b></b></a:x>') -257 self.assert_(schema.validate(tree_valid)) -
258 -
259 - def test_xmlschema_shortcut(self): -
260 tree_valid = self.parse('<a><b></b></a>') -261 tree_invalid = self.parse('<a><c></c></a>') -262 schema = self.parse('''\ -263 <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"> -264 <xsd:element name="a" type="AType"/> -265 <xsd:complexType name="AType"> -266 <xsd:sequence> -267 <xsd:element name="b" type="xsd:string" /> -268 </xsd:sequence> -269 </xsd:complexType> -270 </xsd:schema> -271 ''') -272 self.assert_(tree_valid.xmlschema(schema)) -273 self.assert_(not tree_invalid.xmlschema(schema)) -
274 -275 -
276 -class ETreeXMLSchemaResolversTestCase(HelperTestCase): -
277 resolver_schema_int = BytesIO("""\ -278 <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" -279 xmlns:etype="http://codespeak.net/lxml/test/external" -280 targetNamespace="http://codespeak.net/lxml/test/internal"> -281 <xsd:import namespace="http://codespeak.net/lxml/test/external" schemaLocation="XXX.xsd" /> -282 <xsd:element name="a" type="etype:AType"/> -283 </xsd:schema>""") -284 -285 resolver_schema_int2 = BytesIO("""\ -286 <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" -287 xmlns:etype="http://codespeak.net/lxml/test/external" -288 targetNamespace="http://codespeak.net/lxml/test/internal"> -289 <xsd:import namespace="http://codespeak.net/lxml/test/external" schemaLocation="YYY.xsd" /> -290 <xsd:element name="a" type="etype:AType"/> -291 </xsd:schema>""") -292 -293 resolver_schema_ext = """\ -294 <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" -295 targetNamespace="http://codespeak.net/lxml/test/external"> -296 <xsd:complexType name="AType"> -297 <xsd:sequence><xsd:element name="b" type="xsd:string" minOccurs="0" maxOccurs="unbounded" /></xsd:sequence> -298 </xsd:complexType> -299 </xsd:schema>""" -300 -
301 - class simple_resolver(etree.Resolver): -
302 - def __init__(self, schema): -
303 self.schema = schema -
304 -
305 - def resolve(self, url, id, context): -
306 assert url == 'XXX.xsd' -307 return self.resolve_string(self.schema, context) -
308 -309 # tests: -310 -
311 - def test_xmlschema_resolvers(self): -
312 # test that resolvers work with schema. -313 parser = etree.XMLParser() -314 parser.resolvers.add(self.simple_resolver(self.resolver_schema_ext)) -315 schema_doc = etree.parse(self.resolver_schema_int, parser = parser) -316 schema = etree.XMLSchema(schema_doc) -
317 -
319 # test that the default resolver will get called if there's no -320 # specific parser resolver. -321 root_resolver = self.simple_resolver(self.resolver_schema_ext) -322 etree.get_default_parser().resolvers.add(root_resolver) -323 schema_doc = etree.parse(self.resolver_schema_int) -324 schema = etree.XMLSchema(schema_doc) -325 etree.get_default_parser().resolvers.remove(root_resolver) -
326 -
328 # test that the default resolver will not get called when a -329 # more specific resolver is registered. -330 -331 class res_root(etree.Resolver): -332 def resolve(self, url, id, context): -333 assert False -334 return None -
335 -336 root_resolver = res_root() -337 etree.get_default_parser().resolvers.add(root_resolver) -338 -339 parser = etree.XMLParser() -340 parser.resolvers.add(self.simple_resolver(self.resolver_schema_ext)) -341 -342 schema_doc = etree.parse(self.resolver_schema_int, parser = parser) -343 schema = etree.XMLSchema(schema_doc) -344 etree.get_default_parser().resolvers.remove(root_resolver) -345 -
347 # test that resolvers work in a nested fashion. -348 -349 resolver_schema = self.resolver_schema_ext -350 -351 class res_nested(etree.Resolver): -352 def __init__(self, ext_schema): -353 self.ext_schema = ext_schema -
354 -355 def resolve(self, url, id, context): -356 assert url == 'YYY.xsd' -357 return self.resolve_string(self.ext_schema, context) -358 -359 class res(etree.Resolver): -360 def __init__(self, ext_schema_1, ext_schema_2): -361 self.ext_schema_1 = ext_schema_1 -362 self.ext_schema_2 = ext_schema_2 -363 -364 def resolve(self, url, id, context): -365 assert url == 'XXX.xsd' -366 -367 new_parser = etree.XMLParser() -368 new_parser.resolvers.add(res_nested(self.ext_schema_2)) -369 new_schema_doc = etree.parse(self.ext_schema_1, parser = new_parser) -370 new_schema = etree.XMLSchema(new_schema_doc) -371 -372 return self.resolve_string(resolver_schema, context) -373 -374 parser = etree.XMLParser() -375 parser.resolvers.add(res(self.resolver_schema_int2, self.resolver_schema_ext)) -376 schema_doc = etree.parse(self.resolver_schema_int, parser = parser) -377 schema = etree.XMLSchema(schema_doc) -378 -
379 -def test_suite(): -
380 suite = unittest.TestSuite() -381 suite.addTests([unittest.makeSuite(ETreeXMLSchemaTestCase)]) -382 suite.addTests([unittest.makeSuite(ETreeXMLSchemaResolversTestCase)]) -383 suite.addTests( -384 [make_doctest('../../../doc/validation.txt')]) -385 return suite -
386 -387 if __name__ == '__main__': -388 print('to test use test.py %s' % __file__) -389 -
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.test_xmlschema.ETreeXMLSchemaResolversTestCase-class.html b/doc/html/api/lxml.tests.test_xmlschema.ETreeXMLSchemaResolversTestCase-class.html deleted file mode 100644 index e796de4..0000000 --- a/doc/html/api/lxml.tests.test_xmlschema.ETreeXMLSchemaResolversTestCase-class.html +++ /dev/null @@ -1,551 +0,0 @@ - - - - - lxml.tests.test_xmlschema.ETreeXMLSchemaResolversTestCase - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module test_xmlschema :: - Class ETreeXMLSchemaResolversTestCase - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class ETreeXMLSchemaResolversTestCase

source code

-
-               object --+        
-                        |        
-   unittest.case.TestCase --+    
-                            |    
-common_imports.HelperTestCase --+
-                                |
-                               ETreeXMLSchemaResolversTestCase
-
- -
- - - - - - - - - - - - -
- - - - - -
Nested Classes[hide private]
-
-   - - simple_resolver -
-

Inherited from unittest.case.TestCase: - failureException -

-
- - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
test_xmlschema_resolvers(self) - source code - -
- -
-   - - - - - - -
test_xmlschema_resolvers_root(self) - source code - -
- -
-   - - - - - - -
test_xmlschema_resolvers_noroot(self) - source code - -
- -
-   - - - - - - -
test_xmlschema_nested_resolvers(self) - source code - -
- -
-

Inherited from common_imports.HelperTestCase: - parse, - tearDown -

-

Inherited from common_imports.HelperTestCase (private): - _rootstring -

-

Inherited from unittest.case.TestCase: - __call__, - __eq__, - __hash__, - __init__, - __ne__, - __repr__, - __str__, - addCleanup, - addTypeEqualityFunc, - assertAlmostEqual, - assertAlmostEquals, - assertDictContainsSubset, - assertDictEqual, - assertEqual, - assertEquals, - assertGreater, - assertGreaterEqual, - assertIn, - assertIs, - assertIsInstance, - assertIsNone, - assertIsNot, - assertIsNotNone, - assertItemsEqual, - assertLess, - assertLessEqual, - assertListEqual, - assertMultiLineEqual, - assertNotAlmostEqual, - assertNotAlmostEquals, - assertNotEqual, - assertNotEquals, - assertNotIn, - assertNotIsInstance, - assertNotRegexpMatches, - assertRaises, - assertRaisesRegexp, - assertRegexpMatches, - assertSequenceEqual, - assertSetEqual, - assertTrue, - assertTupleEqual, - assert_, - countTestCases, - debug, - defaultTestResult, - doCleanups, - fail, - failIf, - failIfAlmostEqual, - failIfEqual, - failUnless, - failUnlessAlmostEqual, - failUnlessEqual, - failUnlessRaises, - id, - run, - setUp, - shortDescription, - skipTest -

-

Inherited from unittest.case.TestCase (private): - _addSkip, - _baseAssertEqual, - _deprecate, - _formatMessage, - _getAssertEqualityFunc, - _truncateMessage -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __new__, - __reduce__, - __reduce_ex__, - __setattr__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Class Methods[hide private]
-
-

Inherited from unittest.case.TestCase: - setUpClass, - tearDownClass -

-
- - - - - - - - - - - - - - - - - - -
- - - - - -
Class Variables[hide private]
-
-   - - resolver_schema_int = BytesIO("... -
-   - - resolver_schema_int2 = BytesIO("... -
-   - - resolver_schema_ext = '<xsd:schema xmlns:xsd="http://www.w3.or... -
-

Inherited from common_imports.HelperTestCase: - assertFalse -

-

Inherited from unittest.case.TestCase: - longMessage, - maxDiff -

-

Inherited from unittest.case.TestCase (private): - _classSetupFailed, - _diffThreshold -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Class Variable Details[hide private]
-
- -
- -
-

resolver_schema_int

- -
-
-
-
Value:
-
-BytesIO("""\
-<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
-    xmlns:etype="http://codespeak.net/lxml/test/external"
-    targetNamespace="http://codespeak.net/lxml/test/internal">
-        <xsd:import namespace="http://codespeak.net/lxml/test/external\
-" schemaLocation="XXX.xsd" />
-        <xsd:element name="a" type="etype:AType"/>
-</xsd:schema>""")
-
-
-
-
-
- -
- -
-

resolver_schema_int2

- -
-
-
-
Value:
-
-BytesIO("""\
-<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
-    xmlns:etype="http://codespeak.net/lxml/test/external"
-    targetNamespace="http://codespeak.net/lxml/test/internal">
-        <xsd:import namespace="http://codespeak.net/lxml/test/external\
-" schemaLocation="YYY.xsd" />
-        <xsd:element name="a" type="etype:AType"/>
-</xsd:schema>""")
-
-
-
-
-
- -
- -
-

resolver_schema_ext

- -
-
-
-
Value:
-
-'''<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
-    targetNamespace="http://codespeak.net/lxml/test/external">
-    <xsd:complexType name="AType">
-      <xsd:sequence><xsd:element name="b" type="xsd:string" minOccurs=\
-"0" maxOccurs="unbounded" /></xsd:sequence>
-    </xsd:complexType>
-</xsd:schema>'''
-
-
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.test_xmlschema.ETreeXMLSchemaResolversTestCase.simple_resolver-class.html b/doc/html/api/lxml.tests.test_xmlschema.ETreeXMLSchemaResolversTestCase.simple_resolver-class.html deleted file mode 100644 index 6b5821f..0000000 --- a/doc/html/api/lxml.tests.test_xmlschema.ETreeXMLSchemaResolversTestCase.simple_resolver-class.html +++ /dev/null @@ -1,306 +0,0 @@ - - - - - lxml.tests.test_xmlschema.ETreeXMLSchemaResolversTestCase.simple_resolver - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module test_xmlschema :: - Class ETreeXMLSchemaResolversTestCase :: - Class simple_resolver - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class simple_resolver

source code

-
-    object --+    
-             |    
-etree.Resolver --+
-                 |
-                ETreeXMLSchemaResolversTestCase.simple_resolver
-
- -
- - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__init__(self, - schema)
- x.__init__(...) initializes x; see help(type(x)) for signature
- source code - -
- -
-   - - - - - - -
resolve(self, - url, - id, - context)
- Override this method to resolve an external source by -system_url and public_id. The third argument is an -opaque context object.
- source code - -
- -
-

Inherited from etree.Resolver: - __new__, - resolve_empty, - resolve_file, - resolve_filename, - resolve_string -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __reduce__, - __reduce_ex__, - __repr__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__init__(self, - schema) -
(Constructor) -

-
source code  -
- - x.__init__(...) initializes x; see help(type(x)) for signature -
-
Overrides: - object.__init__ -
(inherited documentation)
- -
-
-
- -
- -
- - -
-

resolve(self, - url, - id, - context) -

-
source code  -
- -

Override this method to resolve an external source by -system_url and public_id. The third argument is an -opaque context object.

-

Return the result of one of the resolve_*() methods.

-
-
Overrides: - etree.Resolver.resolve -
(inherited documentation)
- -
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.test_xmlschema.ETreeXMLSchemaTestCase-class.html b/doc/html/api/lxml.tests.test_xmlschema.ETreeXMLSchemaTestCase-class.html deleted file mode 100644 index 2219b61..0000000 --- a/doc/html/api/lxml.tests.test_xmlschema.ETreeXMLSchemaTestCase-class.html +++ /dev/null @@ -1,586 +0,0 @@ - - - - - lxml.tests.test_xmlschema.ETreeXMLSchemaTestCase - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module test_xmlschema :: - Class ETreeXMLSchemaTestCase - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class ETreeXMLSchemaTestCase

source code

-
-               object --+        
-                        |        
-   unittest.case.TestCase --+    
-                            |    
-common_imports.HelperTestCase --+
-                                |
-                               ETreeXMLSchemaTestCase
-
- -
- - - - - - - - - -
- - - - - -
Nested Classes[hide private]
-
-

Inherited from unittest.case.TestCase: - failureException -

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
test_xmlschema(self) - source code - -
- -
-   - - - - - - -
test_xmlschema_default_attributes(self) - source code - -
- -
-   - - - - - - -
test_xmlschema_parse(self) - source code - -
- -
-   - - - - - - -
test_xmlschema_parse_default_attributes(self) - source code - -
- -
-   - - - - - - -
test_xmlschema_parse_default_attributes_schema_config(self) - source code - -
- -
-   - - - - - - -
test_xmlschema_parse_fixed_attributes(self) - source code - -
- -
-   - - - - - - -
test_xmlschema_stringio(self) - source code - -
- -
-   - - - - - - -
test_xmlschema_iterparse(self) - source code - -
- -
-   - - - - - - -
test_xmlschema_iterparse_fail(self) - source code - -
- -
-   - - - - - - -
test_xmlschema_elementtree_error(self) - source code - -
- -
-   - - - - - - -
test_xmlschema_invalid_schema1(self) - source code - -
- -
-   - - - - - - -
test_xmlschema_invalid_schema2(self) - source code - -
- -
-   - - - - - - -
test_xmlschema_file(self) - source code - -
- -
-   - - - - - - -
test_xmlschema_import_file(self) - source code - -
- -
-   - - - - - - -
test_xmlschema_shortcut(self) - source code - -
- -
-

Inherited from common_imports.HelperTestCase: - parse, - tearDown -

-

Inherited from common_imports.HelperTestCase (private): - _rootstring -

-

Inherited from unittest.case.TestCase: - __call__, - __eq__, - __hash__, - __init__, - __ne__, - __repr__, - __str__, - addCleanup, - addTypeEqualityFunc, - assertAlmostEqual, - assertAlmostEquals, - assertDictContainsSubset, - assertDictEqual, - assertEqual, - assertEquals, - assertGreater, - assertGreaterEqual, - assertIn, - assertIs, - assertIsInstance, - assertIsNone, - assertIsNot, - assertIsNotNone, - assertItemsEqual, - assertLess, - assertLessEqual, - assertListEqual, - assertMultiLineEqual, - assertNotAlmostEqual, - assertNotAlmostEquals, - assertNotEqual, - assertNotEquals, - assertNotIn, - assertNotIsInstance, - assertNotRegexpMatches, - assertRaises, - assertRaisesRegexp, - assertRegexpMatches, - assertSequenceEqual, - assertSetEqual, - assertTrue, - assertTupleEqual, - assert_, - countTestCases, - debug, - defaultTestResult, - doCleanups, - fail, - failIf, - failIfAlmostEqual, - failIfEqual, - failUnless, - failUnlessAlmostEqual, - failUnlessEqual, - failUnlessRaises, - id, - run, - setUp, - shortDescription, - skipTest -

-

Inherited from unittest.case.TestCase (private): - _addSkip, - _baseAssertEqual, - _deprecate, - _formatMessage, - _getAssertEqualityFunc, - _truncateMessage -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __new__, - __reduce__, - __reduce_ex__, - __setattr__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Class Methods[hide private]
-
-

Inherited from unittest.case.TestCase: - setUpClass, - tearDownClass -

-
- - - - - - - - - -
- - - - - -
Class Variables[hide private]
-
-

Inherited from common_imports.HelperTestCase: - assertFalse -

-

Inherited from unittest.case.TestCase: - longMessage, - maxDiff -

-

Inherited from unittest.case.TestCase (private): - _classSetupFailed, - _diffThreshold -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.test_xpathevaluator-module.html b/doc/html/api/lxml.tests.test_xpathevaluator-module.html deleted file mode 100644 index 12a3bc7..0000000 --- a/doc/html/api/lxml.tests.test_xpathevaluator-module.html +++ /dev/null @@ -1,574 +0,0 @@ - - - - - lxml.tests.test_xpathevaluator - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module test_xpathevaluator - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Module test_xpathevaluator

source code

-Test cases related to XPath evaluation and the XPath class - - - - - - - - - - - - - - - - - - - -
- - - - - -
Classes[hide private]
-
-   - - ETreeXPathTestCase
- XPath tests etree -
-   - - ETreeXPathClassTestCase
- Tests for the XPath class -
-   - - ETreeXPathExsltTestCase
- Tests for the EXSLT support in XPath (requires libxslt 1.1.25+) -
-   - - ETreeETXPathClassTestCase
- Tests for the ETXPath class -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Functions[hide private]
-
-   - - - - - - -
tag(elem) - source code - -
- -
-   - - - - - - -
tag_or_value(elem) - source code - -
- -
-   - - - - - - -
stringTest(ctxt, - s1) - source code - -
- -
-   - - - - - - -
stringListTest(ctxt, - s1) - source code - -
- -
-   - - - - - - -
floatTest(ctxt, - f1) - source code - -
- -
-   - - - - - - -
booleanTest(ctxt, - b1) - source code - -
- -
-   - - - - - - -
setTest(ctxt, - st1) - source code - -
- -
-   - - - - - - -
setTest2(ctxt, - st1) - source code - -
- -
-   - - - - - - -
argsTest1(ctxt, - s, - f, - b, - st) - source code - -
- -
-   - - - - - - -
argsTest2(ctxt, - st1, - st2) - source code - -
- -
-   - - - - - - -
resultTypesTest(ctxt) - source code - -
- -
-   - - - - - - -
resultTypesTest2(ctxt) - source code - -
- -
-   - - - - - - -
xpath()
- Test xpath extension functions.
- source code - -
- -
-   - - - - - - -
test_suite() - source code - -
- -
- - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Variables[hide private]
-
-   - - this_dir = '/home/sbehnel/source/Python/lxml/lxml-release/src/... -
-   - - SAMPLE_XML = etree.parse(BytesIO(... -
-   - - uri = 'http://www.example.com/' -
-   - - extension = {(None, 'argsTest1'): <function argsTest1 at 0x356... -
-   - - __package__ = 'lxml.tests' -
- - - - - - -
- - - - - -
Variables Details[hide private]
-
- -
- -
-

this_dir

- -
-
-
-
Value:
-
-'/home/sbehnel/source/Python/lxml/lxml-release/src/lxml/tests'
-
-
-
-
-
- -
- -
-

SAMPLE_XML

- -
-
-
-
Value:
-
-etree.parse(BytesIO("""
-<body>
-  <tag>text</tag>
-  <section>
-    <tag>subtext</tag>
-  </section>
-  <tag />
-  <tag />
-...
-
-
-
-
-
- -
- -
-

extension

- -
-
-
-
Value:
-
-{(None, 'stringTest'): stringTest, (None, 'stringListTest'): stringLis\
-tTest, (None, 'floatTest'): floatTest, (None, 'booleanTest'): booleanT\
-est, (None, 'setTest'): setTest, (None, 'setTest2'): setTest2, (None, \
-'argsTest1'): argsTest1, (None, 'argsTest2'): argsTest2, (None, 'resul\
-tTypesTest'): resultTypesTest, (None, 'resultTypesTest2'): resultTypes\
-Test2,}
-
-
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.test_xpathevaluator-pysrc.html b/doc/html/api/lxml.tests.test_xpathevaluator-pysrc.html deleted file mode 100644 index 78f1fc2..0000000 --- a/doc/html/api/lxml.tests.test_xpathevaluator-pysrc.html +++ /dev/null @@ -1,1927 +0,0 @@ - - - - - lxml.tests.test_xpathevaluator - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module test_xpathevaluator - - - - - - -
[hide private]
[frames] | no frames]
-
-

Source Code for Module lxml.tests.test_xpathevaluator

-
-  1  # -*- coding: utf-8 -*- 
-  2   
-  3  """ 
-  4  Test cases related to XPath evaluation and the XPath class 
-  5  """ 
-  6   
-  7  import unittest, sys, os.path 
-  8   
-  9  this_dir = os.path.dirname(__file__) 
- 10  if this_dir not in sys.path: 
- 11      sys.path.insert(0, this_dir) # needed for Py3 
- 12   
- 13  from common_imports import etree, HelperTestCase, _bytes, BytesIO 
- 14  from common_imports import doctest, make_doctest 
- 15   
-
16 -class ETreeXPathTestCase(HelperTestCase): -
17 """XPath tests etree""" - 18 -
19 - def test_xpath_boolean(self): -
20 tree = self.parse('<a><b></b><b></b></a>') - 21 self.assert_(tree.xpath('boolean(/a/b)')) - 22 self.assert_(not tree.xpath('boolean(/a/c)')) -
23 -
24 - def test_xpath_number(self): -
25 tree = self.parse('<a>1</a>') - 26 self.assertEquals(1., - 27 tree.xpath('number(/a)')) - 28 tree = self.parse('<a>A</a>') - 29 actual = str(tree.xpath('number(/a)')) - 30 expected = ['nan', '1.#qnan', 'nanq'] - 31 if not actual.lower() in expected: - 32 self.fail('Expected a NAN value, got %s' % actual) -
33 -
34 - def test_xpath_string(self): -
35 tree = self.parse('<a>Foo</a>') - 36 self.assertEquals('Foo', - 37 tree.xpath('string(/a/text())')) -
38 -
39 - def test_xpath_document_root(self): -
40 tree = self.parse('<a><b/></a>') - 41 self.assertEquals([], - 42 tree.xpath('/')) -
43 -
44 - def test_xpath_namespace(self): -
45 tree = self.parse('<a xmlns="test" xmlns:p="myURI"/>') - 46 self.assert_((None, "test") in tree.xpath('namespace::*')) - 47 self.assert_(('p', 'myURI') in tree.xpath('namespace::*')) -
48 -
49 - def test_xpath_namespace_empty(self): -
50 tree = self.parse('<a/>') - 51 self.assertEquals([('xml', 'http://www.w3.org/XML/1998/namespace')], - 52 tree.xpath('namespace::*')) -
53 -
54 - def test_xpath_list_elements(self): -
55 tree = self.parse('<a><b>Foo</b><b>Bar</b></a>') - 56 root = tree.getroot() - 57 self.assertEquals([root[0], root[1]], - 58 tree.xpath('/a/b')) -
59 -
60 - def test_xpath_list_nothing(self): -
61 tree = self.parse('<a><b/></a>') - 62 self.assertEquals([], - 63 tree.xpath('/a/c')) - 64 # this seems to pass a different code path, also should return nothing - 65 self.assertEquals([], - 66 tree.xpath('/a/c/text()')) -
67 -
68 - def test_xpath_list_text(self): -
69 tree = self.parse('<a><b>Foo</b><b>Bar</b></a>') - 70 root = tree.getroot() - 71 self.assertEquals(['Foo', 'Bar'], - 72 tree.xpath('/a/b/text()')) -
73 -
75 tree = self.parse('<a><b>FooBar</b><b>BarFoo</b></a>') - 76 root = tree.getroot() - 77 self.assertEquals(['FooBar', 'BarFoo'], - 78 tree.xpath('/a/b/text()')) - 79 self.assertEquals([root[0], root[1]], - 80 [r.getparent() for r in tree.xpath('/a/b/text()')]) -
81 -
83 tree = self.parse('<a><b>FooBar</b><b>BarFoo</b></a>') - 84 root = tree.getroot() - 85 self.assertEquals(['FooBar', 'BarFoo'], - 86 tree.xpath('/a/b/text()', smart_strings=True)) - 87 self.assertEquals([root[0], root[1]], - 88 [r.getparent() for r in - 89 tree.xpath('/a/b/text()', smart_strings=True)]) - 90 self.assertEquals([None, None], - 91 [r.attrname for r in - 92 tree.xpath('/a/b/text()', smart_strings=True)]) - 93 - 94 self.assertEquals(['FooBar', 'BarFoo'], - 95 tree.xpath('/a/b/text()', smart_strings=False)) - 96 self.assertEquals([False, False], - 97 [hasattr(r, 'getparent') for r in - 98 tree.xpath('/a/b/text()', smart_strings=False)]) - 99 self.assertEquals([None, None], -100 [r.attrname for r in -101 tree.xpath('/a/b/text()', smart_strings=True)]) -
102 -
104 xml = _bytes('<a><b>FooBar\\u0680\\u3120</b><b>BarFoo\\u0680\\u3120</b></a>').decode("unicode_escape") -105 tree = self.parse(xml.encode('utf-8')) -106 root = tree.getroot() -107 self.assertEquals([_bytes('FooBar\\u0680\\u3120').decode("unicode_escape"), -108 _bytes('BarFoo\\u0680\\u3120').decode("unicode_escape")], -109 tree.xpath('/a/b/text()')) -110 self.assertEquals([root[0], root[1]], -111 [r.getparent() for r in tree.xpath('/a/b/text()')]) -
112 -
113 - def test_xpath_list_attribute(self): -
114 tree = self.parse('<a b="B" c="C"/>') -115 self.assertEquals(['B'], -116 tree.xpath('/a/@b')) -
117 -
119 tree = self.parse('<a b="BaSdFgHjKl" c="CqWeRtZuI"/>') -120 results = tree.xpath('/a/@c') -121 self.assertEquals(1, len(results)) -122 self.assertEquals('CqWeRtZuI', results[0]) -123 self.assertEquals(tree.getroot().tag, results[0].getparent().tag) -
124 -
126 tree = self.parse('<a b="BaSdFgHjKl" c="CqWeRtZuI"/>') -127 -128 results = tree.xpath('/a/@c', smart_strings=True) -129 self.assertEquals(1, len(results)) -130 self.assertEquals('CqWeRtZuI', results[0]) -131 self.assertEquals('c', results[0].attrname) -132 self.assertEquals(tree.getroot().tag, results[0].getparent().tag) -133 -134 results = tree.xpath('/a/@c', smart_strings=False) -135 self.assertEquals(1, len(results)) -136 self.assertEquals('CqWeRtZuI', results[0]) -137 self.assertEquals(False, hasattr(results[0], 'getparent')) -138 self.assertEquals(False, hasattr(results[0], 'attrname')) -
139 -
141 xml_data = ''' -142 <table> -143 <item xml:id="k1"><value>v1</value></item> -144 <item xml:id="k2"><value>v2</value></item> -145 </table> -146 ''' -147 -148 def lookup(dummy, id): -149 return etree.XML(xml_data).xpath('id(%r)' % id) -
150 functions = {(None, 'lookup') : lookup} -151 -152 root = etree.XML('<dummy/>') -153 values = root.xpath("lookup('k1')/value/text()", -154 extensions=functions) -155 self.assertEquals(['v1'], values) -156 self.assertEquals('value', values[0].getparent().tag) -
157 -
158 - def test_xpath_list_comment(self): -
159 tree = self.parse('<a><!-- Foo --></a>') -160 self.assertEquals(['<!-- Foo -->'], -161 list(map(repr, tree.xpath('/a/node()')))) -
162 -
163 - def test_rel_xpath_boolean(self): -
164 root = etree.XML('<a><b><c/></b></a>') -165 el = root[0] -166 self.assert_(el.xpath('boolean(c)')) -167 self.assert_(not el.xpath('boolean(d)')) -
168 -
170 tree = self.parse('<a><c><b>Foo</b><b>Bar</b></c><c><b>Hey</b></c></a>') -171 root = tree.getroot() -172 c = root[0] -173 self.assertEquals([c[0], c[1]], -174 c.xpath('b')) -175 self.assertEquals([c[0], c[1], root[1][0]], -176 c.xpath('//b')) -
177 -
178 - def test_xpath_ns(self): -
179 tree = self.parse('<a xmlns="uri:a"><b></b></a>') -180 root = tree.getroot() -181 self.assertEquals( -182 [root[0]], -183 tree.xpath('//foo:b', namespaces={'foo': 'uri:a'})) -184 self.assertEquals( -185 [], -186 tree.xpath('//foo:b', namespaces={'foo': 'uri:c'})) -187 self.assertEquals( -188 [root[0]], -189 root.xpath('//baz:b', namespaces={'baz': 'uri:a'})) -
190 -
191 - def test_xpath_ns_none(self): -
192 tree = self.parse('<a xmlns="uri:a"><b></b></a>') -193 root = tree.getroot() -194 self.assertRaises( -195 TypeError, -196 root.xpath, '//b', namespaces={None: 'uri:a'}) -
197 -
198 - def test_xpath_ns_empty(self): -
199 tree = self.parse('<a xmlns="uri:a"><b></b></a>') -200 root = tree.getroot() -201 self.assertRaises( -202 TypeError, -203 root.xpath, '//b', namespaces={'': 'uri:a'}) -
204 -
205 - def test_xpath_error(self): -
206 tree = self.parse('<a/>') -207 self.assertRaises(etree.XPathEvalError, tree.xpath, '\\fad') -
208 -
209 - def test_xpath_class_error(self): -
210 self.assertRaises(SyntaxError, etree.XPath, '\\fad') -211 self.assertRaises(etree.XPathSyntaxError, etree.XPath, '\\fad') -
212 -
213 - def test_xpath_prefix_error(self): -
214 tree = self.parse('<a/>') -215 self.assertRaises(etree.XPathEvalError, tree.xpath, '/fa:d') -
216 -
218 tree = self.parse('<a/>') -219 xpath = etree.XPath("/fa:d") -220 self.assertRaises(etree.XPathEvalError, xpath, tree) -
221 -
222 - def test_elementtree_getpath(self): -
223 a = etree.Element("a") -224 b = etree.SubElement(a, "b") -225 c = etree.SubElement(a, "c") -226 d1 = etree.SubElement(c, "d") -227 d2 = etree.SubElement(c, "d") -228 -229 tree = etree.ElementTree(a) -230 self.assertEqual('/a/c/d', -231 tree.getpath(d2)[:6]) -232 self.assertEqual([d2], -233 tree.xpath(tree.getpath(d2))) -
234 -
236 a = etree.Element("a") -237 b = etree.SubElement(a, "b") -238 c = etree.SubElement(a, "c") -239 d1 = etree.SubElement(c, "d") -240 d2 = etree.SubElement(c, "d") -241 -242 tree = etree.ElementTree(c) -243 self.assertEqual('/c/d', -244 tree.getpath(d2)[:4]) -245 self.assertEqual([d2], -246 tree.xpath(tree.getpath(d2))) -
247 -
248 - def test_xpath_evaluator(self): -
249 tree = self.parse('<a><b><c></c></b></a>') -250 e = etree.XPathEvaluator(tree) -251 root = tree.getroot() -252 self.assertEquals( -253 [root], -254 e('//a')) -
255 -
256 - def test_xpath_evaluator_tree(self): -
257 tree = self.parse('<a><b><c></c></b></a>') -258 child_tree = etree.ElementTree(tree.getroot()[0]) -259 e = etree.XPathEvaluator(child_tree) -260 self.assertEquals( -261 [], -262 e('a')) -263 root = child_tree.getroot() -264 self.assertEquals( -265 [root[0]], -266 e('c')) -
267 -
269 tree = self.parse('<a><b><c></c></b></a>') -270 child_tree = etree.ElementTree(tree.getroot()[0]) -271 e = etree.XPathEvaluator(child_tree) -272 self.assertEquals( -273 [], -274 e('/a')) -275 root = child_tree.getroot() -276 self.assertEquals( -277 [root], -278 e('/b')) -279 self.assertEquals( -280 [], -281 e('/c')) -
282 -
284 tree = self.parse('<a><b><c></c></b></a>') -285 root = tree.getroot() -286 e = etree.XPathEvaluator(root[0]) -287 self.assertEquals( -288 [root[0][0]], -289 e('c')) -
290 -
291 - def test_xpath_extensions(self): -
292 def foo(evaluator, a): -293 return 'hello %s' % a -
294 extension = {(None, 'foo'): foo} -295 tree = self.parse('<a><b></b></a>') -296 e = etree.XPathEvaluator(tree, extensions=[extension]) -297 self.assertEquals( -298 "hello you", e("foo('you')")) -299 -
301 def foo(evaluator, a, b): -302 return "hello %s and %s" % (a, b) -
303 extension = {(None, 'foo'): foo} -304 tree = self.parse('<a><b></b></a>') -305 e = etree.XPathEvaluator(tree, extensions=[extension]) -306 self.assertRaises(TypeError, e, "foo('you')") -307 -
309 def foo(evaluator, a): -310 return 1/0 -
311 extension = {(None, 'foo'): foo} -312 tree = self.parse('<a/>') -313 e = etree.XPathEvaluator(tree, extensions=[extension]) -314 self.assertRaises(ZeroDivisionError, e, "foo('test')") -315 -
317 def f(evaluator, arg): -318 r = etree.Element('results') -319 b = etree.SubElement(r, 'result') -320 b.text = 'Hoi' -321 b = etree.SubElement(r, 'result') -322 b.text = 'Dag' -323 return r -
324 -325 x = self.parse('<a/>') -326 e = etree.XPathEvaluator(x, extensions=[{(None, 'foo'): f}]) -327 r = e("foo('World')/result") -328 self.assertEquals(2, len(r)) -329 self.assertEquals('Hoi', r[0].text) -330 self.assertEquals('Dag', r[1].text) -331 -
333 def f(evaluator, nodes): -334 r = etree.SubElement(nodes[0], 'results') -335 b = etree.SubElement(r, 'result') -336 b.text = 'Hoi' -337 b = etree.SubElement(r, 'result') -338 b.text = 'Dag' -339 return r -
340 -341 x = self.parse('<a/>') -342 e = etree.XPathEvaluator(x, extensions=[{(None, 'foo'): f}]) -343 r = e("foo(/*)/result") -344 self.assertEquals(2, len(r)) -345 self.assertEquals('Hoi', r[0].text) -346 self.assertEquals('Dag', r[1].text) -347 -
349 def f(evaluator, nodes): -350 r = etree.Element('results') -351 b = etree.SubElement(r, 'result') -352 b.text = 'Hoi' -353 b = etree.SubElement(r, 'result') -354 b.text = 'Dag' -355 r.append(nodes[0]) -356 return r -
357 -358 x = self.parse('<result>Honk</result>') -359 e = etree.XPathEvaluator(x, extensions=[{(None, 'foo'): f}]) -360 r = e("foo(/*)/result") -361 self.assertEquals(3, len(r)) -362 self.assertEquals('Hoi', r[0].text) -363 self.assertEquals('Dag', r[1].text) -364 self.assertEquals('Honk', r[2].text) -365 -
366 - def test_xpath_context_node(self): -
367 tree = self.parse('<root><a/><b><c/></b></root>') -368 -369 check_call = [] -370 def check_context(ctxt, nodes): -371 self.assertEquals(len(nodes), 1) -372 check_call.append(nodes[0].tag) -373 self.assertEquals(ctxt.context_node, nodes[0]) -374 return True -
375 -376 find = etree.XPath("//*[p:foo(.)]", -377 namespaces={'p' : 'ns'}, -378 extensions=[{('ns', 'foo') : check_context}]) -379 find(tree) -380 -381 check_call.sort() -382 self.assertEquals(check_call, ["a", "b", "c", "root"]) -383 -
385 tree = self.parse('<root><a/><b><c/></b></root>') -386 -387 check_call = {} -388 def check_context(ctxt, nodes): -389 self.assertEquals(len(nodes), 1) -390 tag = nodes[0].tag -391 # empty during the "b" call, a "b" during the "c" call -392 check_call[tag] = ctxt.eval_context.get("b") -393 ctxt.eval_context[tag] = tag -394 return True -
395 -396 find = etree.XPath("//b[p:foo(.)]/c[p:foo(.)]", -397 namespaces={'p' : 'ns'}, -398 extensions=[{('ns', 'foo') : check_context}]) -399 result = find(tree) -400 -401 self.assertEquals(result, [tree.getroot()[1][0]]) -402 self.assertEquals(check_call, {'b':None, 'c':'b'}) -403 -
405 tree = self.parse('<root><a/><b><c/></b></root>') -406 -407 check_call = {} -408 def check_context(ctxt): -409 check_call["done"] = True -410 # context must be empty for each new evaluation -411 self.assertEquals(len(ctxt.eval_context), 0) -412 ctxt.eval_context["test"] = True -413 return True -
414 -415 find = etree.XPath("//b[p:foo()]", -416 namespaces={'p' : 'ns'}, -417 extensions=[{('ns', 'foo') : check_context}]) -418 result = find(tree) -419 -420 self.assertEquals(result, [tree.getroot()[1]]) -421 self.assertEquals(check_call["done"], True) -422 -423 check_call.clear() -424 find = etree.XPath("//b[p:foo()]", -425 namespaces={'p' : 'ns'}, -426 extensions=[{('ns', 'foo') : check_context}]) -427 result = find(tree) -428 -429 self.assertEquals(result, [tree.getroot()[1]]) -430 self.assertEquals(check_call["done"], True) -431 -
432 - def test_xpath_variables(self): -
433 x = self.parse('<a attr="true"/>') -434 e = etree.XPathEvaluator(x) -435 -436 expr = "/a[@attr=$aval]" -437 r = e(expr, aval=1) -438 self.assertEquals(0, len(r)) -439 -440 r = e(expr, aval="true") -441 self.assertEquals(1, len(r)) -442 self.assertEquals("true", r[0].get('attr')) -443 -444 r = e(expr, aval=True) -445 self.assertEquals(1, len(r)) -446 self.assertEquals("true", r[0].get('attr')) -
447 -
449 x = self.parse('<a attr="true"/>') -450 e = etree.XPathEvaluator(x) -451 -452 element = etree.Element("test-el") -453 etree.SubElement(element, "test-sub") -454 expr = "$value" -455 r = e(expr, value=element) -456 self.assertEquals(1, len(r)) -457 self.assertEquals(element.tag, r[0].tag) -458 self.assertEquals(element[0].tag, r[0][0].tag) -
459 -
460 - def test_xpath_extensions_mix(self): -
461 x = self.parse('<a attr="true"><test/></a>') -462 -463 class LocalException(Exception): -464 pass -
465 -466 def foo(evaluator, a, varval): -467 etree.Element("DUMMY") -468 if varval == 0: -469 raise LocalException -470 elif varval == 1: -471 return () -472 elif varval == 2: -473 return None -474 elif varval == 3: -475 return a[0][0] -476 a = a[0] -477 if a.get("attr") == str(varval): -478 return a -479 else: -480 return etree.Element("NODE") -481 -482 extension = {(None, 'foo'): foo} -483 e = etree.XPathEvaluator(x, extensions=[extension]) -484 del x -485 -486 self.assertRaises(LocalException, e, "foo(., 0)") -487 self.assertRaises(LocalException, e, "foo(., $value)", value=0) -488 -489 r = e("foo(., $value)", value=1) -490 self.assertEqual(len(r), 0) -491 -492 r = e("foo(., 1)") -493 self.assertEqual(len(r), 0) -494 -495 r = e("foo(., $value)", value=2) -496 self.assertEqual(len(r), 0) -497 -498 r = e("foo(., $value)", value=3) -499 self.assertEqual(len(r), 1) -500 self.assertEqual(r[0].tag, "test") -501 -502 r = e("foo(., $value)", value="false") -503 self.assertEqual(len(r), 1) -504 self.assertEqual(r[0].tag, "NODE") -505 -506 r = e("foo(., 'false')") -507 self.assertEqual(len(r), 1) -508 self.assertEqual(r[0].tag, "NODE") -509 -510 r = e("foo(., 'true')") -511 self.assertEqual(len(r), 1) -512 self.assertEqual(r[0].tag, "a") -513 self.assertEqual(r[0][0].tag, "test") -514 -515 r = e("foo(., $value)", value="true") -516 self.assertEqual(len(r), 1) -517 self.assertEqual(r[0].tag, "a") -518 -519 self.assertRaises(LocalException, e, "foo(., 0)") -520 self.assertRaises(LocalException, e, "foo(., $value)", value=0) -521 -522 -
523 -class ETreeXPathClassTestCase(HelperTestCase): -
524 "Tests for the XPath class" -
525 - def test_xpath_compile_doc(self): -
526 x = self.parse('<a attr="true"/>') -527 -528 expr = etree.XPath("/a[@attr != 'true']") -529 r = expr(x) -530 self.assertEquals(0, len(r)) -531 -532 expr = etree.XPath("/a[@attr = 'true']") -533 r = expr(x) -534 self.assertEquals(1, len(r)) -535 -536 expr = etree.XPath( expr.path ) -537 r = expr(x) -538 self.assertEquals(1, len(r)) -
539 -
540 - def test_xpath_compile_element(self): -
541 x = self.parse('<a><b/><c/></a>') -542 root = x.getroot() -543 -544 expr = etree.XPath("./b") -545 r = expr(root) -546 self.assertEquals(1, len(r)) -547 self.assertEquals('b', r[0].tag) -548 -549 expr = etree.XPath("./*") -550 r = expr(root) -551 self.assertEquals(2, len(r)) -
552 -
553 - def test_xpath_compile_vars(self): -
554 x = self.parse('<a attr="true"/>') -555 -556 expr = etree.XPath("/a[@attr=$aval]") -557 r = expr(x, aval=False) -558 self.assertEquals(0, len(r)) -559 -560 r = expr(x, aval=True) -561 self.assertEquals(1, len(r)) -
562 -
563 - def test_xpath_compile_error(self): -
564 self.assertRaises(SyntaxError, etree.XPath, '\\fad') -
565 -
567 self.assertRaises(ValueError, etree.XPath('*'), etree.ElementTree()) -
568 -569 -
570 -class ETreeXPathExsltTestCase(HelperTestCase): -
571 "Tests for the EXSLT support in XPath (requires libxslt 1.1.25+)" -572 -573 NSMAP = dict( -574 date = "http://exslt.org/dates-and-times", -575 math = "http://exslt.org/math", -576 set = "http://exslt.org/sets", -577 str = "http://exslt.org/strings", -578 ) -579 -
581 tree = self.parse('<a><b>2009-11-12</b><b>2008-12-11</b></a>') -582 -583 match_dates = tree.xpath('//b[date:year(string()) = 2009]', -584 namespaces=self.NSMAP) -585 self.assertTrue(match_dates, str(match_dates)) -586 self.assertEquals(len(match_dates), 1, str(match_dates)) -587 self.assertEquals(match_dates[0].text, '2009-11-12') -
588 -
590 tree = self.parse('<a><b>2009-11-12</b><b>2008-12-11</b></a>') -591 -592 match_date = tree.xpath('str:replace(//b[1], "-", "*")', -593 namespaces=self.NSMAP) -594 self.assertTrue(match_date, str(match_date)) -595 self.assertEquals(match_date, '2009*11*12') -
596 -597 -
598 -class ETreeETXPathClassTestCase(HelperTestCase): -
599 "Tests for the ETXPath class" -
600 - def test_xpath_compile_ns(self): -
601 x = self.parse('<a><b xmlns="nsa"/><b xmlns="nsb"/></a>') -602 -603 expr = etree.ETXPath("/a/{nsa}b") -604 r = expr(x) -605 self.assertEquals(1, len(r)) -606 self.assertEquals('{nsa}b', r[0].tag) -607 -608 expr = etree.ETXPath("/a/{nsb}b") -609 r = expr(x) -610 self.assertEquals(1, len(r)) -611 self.assertEquals('{nsb}b', r[0].tag) -
612 -613 # disabled this test as non-ASCII characters in namespace URIs are -614 # not acceptable -
616 x = self.parse(_bytes('<a><b xmlns="http://nsa/\\uf8d2"/><b xmlns="http://nsb/\\uf8d1"/></a>' -617 ).decode("unicode_escape")) -618 -619 expr = etree.ETXPath(_bytes("/a/{http://nsa/\\uf8d2}b").decode("unicode_escape")) -620 r = expr(x) -621 self.assertEquals(1, len(r)) -622 self.assertEquals(_bytes('{http://nsa/\\uf8d2}b').decode("unicode_escape"), r[0].tag) -623 -624 expr = etree.ETXPath(_bytes("/a/{http://nsb/\\uf8d1}b").decode("unicode_escape")) -625 r = expr(x) -626 self.assertEquals(1, len(r)) -627 self.assertEquals(_bytes('{http://nsb/\\uf8d1}b').decode("unicode_escape"), r[0].tag) -
628 -629 SAMPLE_XML = etree.parse(BytesIO(""" -630 <body> -631 <tag>text</tag> -632 <section> -633 <tag>subtext</tag> -634 </section> -635 <tag /> -636 <tag /> -637 </body> -638 """)) -639 -
640 -def tag(elem): -
641 return elem.tag -
642 -
643 -def tag_or_value(elem): -
644 return getattr(elem, 'tag', elem) -
645 -
646 -def stringTest(ctxt, s1): -
647 return "Hello "+s1 -
648 -
649 -def stringListTest(ctxt, s1): -
650 return ["Hello "] + list(s1) + ["!"] -
651 -
652 -def floatTest(ctxt, f1): -
653 return f1+4 -
654 -
655 -def booleanTest(ctxt, b1): -
656 return not b1 -
657 -
658 -def setTest(ctxt, st1): -
659 return st1[0] -
660 -
661 -def setTest2(ctxt, st1): -
662 return st1[0:2] -
663 -
664 -def argsTest1(ctxt, s, f, b, st): -
665 return ", ".join(map(str, (s, f, b, list(map(tag, st))))) -
666 -
667 -def argsTest2(ctxt, st1, st2): -
668 st1.extend(st2) -669 return st1 -
670 -
671 -def resultTypesTest(ctxt): -
672 return [None,None] -
673 -
674 -def resultTypesTest2(ctxt): -
675 return resultTypesTest -
676 -677 uri = "http://www.example.com/" -678 -679 extension = {(None, 'stringTest'): stringTest, -680 (None, 'stringListTest'): stringListTest, -681 (None, 'floatTest'): floatTest, -682 (None, 'booleanTest'): booleanTest, -683 (None, 'setTest'): setTest, -684 (None, 'setTest2'): setTest2, -685 (None, 'argsTest1'): argsTest1, -686 (None, 'argsTest2'): argsTest2, -687 (None, 'resultTypesTest'): resultTypesTest, -688 (None, 'resultTypesTest2'): resultTypesTest2,} -689 -
690 -def xpath(): -
691 """ -692 Test xpath extension functions. -693 -694 >>> root = SAMPLE_XML -695 >>> e = etree.XPathEvaluator(root, extensions=[extension]) -696 >>> e("stringTest('you')") -697 'Hello you' -698 >>> e(_bytes("stringTest('\\\\xe9lan')").decode("unicode_escape")) -699 u'Hello \\xe9lan' -700 >>> e("stringTest('you','there')") #doctest: +ELLIPSIS -701 Traceback (most recent call last): -702 ... -703 TypeError: stringTest() takes... 2 ...arguments ... -704 >>> e("floatTest(2)") -705 6.0 -706 >>> e("booleanTest(true())") -707 False -708 >>> list(map(tag, e("setTest(/body/tag)"))) -709 ['tag'] -710 >>> list(map(tag, e("setTest2(/body/*)"))) -711 ['tag', 'section'] -712 >>> list(map(tag_or_value, e("stringListTest(/body/tag)"))) -713 ['Hello ', 'tag', 'tag', 'tag', '!'] -714 >>> e("argsTest1('a',1.5,true(),/body/tag)") -715 "a, 1.5, True, ['tag', 'tag', 'tag']" -716 >>> list(map(tag, e("argsTest2(/body/tag, /body/section)"))) -717 ['tag', 'section', 'tag', 'tag'] -718 >>> e("resultTypesTest()") -719 Traceback (most recent call last): -720 ... -721 XPathResultError: This is not a supported node-set result: None -722 >>> try: -723 ... e("resultTypesTest2()") -724 ... except etree.XPathResultError: -725 ... print("Got error") -726 Got error -727 """ -
728 -729 if sys.version_info[0] >= 3: -730 xpath.__doc__ = xpath.__doc__.replace(" u'", " '") -731 xpath.__doc__ = xpath.__doc__.replace(" XPathResultError", -732 " lxml.etree.XPathResultError") -733 xpath.__doc__ = xpath.__doc__.replace(" exactly 2 arguments", -734 " exactly 2 positional arguments") -735 -
736 -def test_suite(): -
737 suite = unittest.TestSuite() -738 suite.addTests([unittest.makeSuite(ETreeXPathTestCase)]) -739 suite.addTests([unittest.makeSuite(ETreeXPathClassTestCase)]) -740 if etree.LIBXSLT_COMPILED_VERSION >= (1,1,25): -741 suite.addTests([unittest.makeSuite(ETreeXPathExsltTestCase)]) -742 suite.addTests([unittest.makeSuite(ETreeETXPathClassTestCase)]) -743 suite.addTests([doctest.DocTestSuite()]) -744 suite.addTests( -745 [make_doctest('../../../doc/xpathxslt.txt')]) -746 return suite -
747 -748 if __name__ == '__main__': -749 print('to test use test.py %s' % __file__) -750 -
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.test_xpathevaluator.ETreeETXPathClassTestCase-class.html b/doc/html/api/lxml.tests.test_xpathevaluator.ETreeETXPathClassTestCase-class.html deleted file mode 100644 index 5012200..0000000 --- a/doc/html/api/lxml.tests.test_xpathevaluator.ETreeETXPathClassTestCase-class.html +++ /dev/null @@ -1,380 +0,0 @@ - - - - - lxml.tests.test_xpathevaluator.ETreeETXPathClassTestCase - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module test_xpathevaluator :: - Class ETreeETXPathClassTestCase - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class ETreeETXPathClassTestCase

source code

-
-               object --+        
-                        |        
-   unittest.case.TestCase --+    
-                            |    
-common_imports.HelperTestCase --+
-                                |
-                               ETreeETXPathClassTestCase
-
- -
-Tests for the ETXPath class - - - - - - - - - - -
- - - - - -
Nested Classes[hide private]
-
-

Inherited from unittest.case.TestCase: - failureException -

-
- - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
test_xpath_compile_ns(self) - source code - -
- -
-   - - - - - - -
_test_xpath_compile_unicode(self) - source code - -
- -
-

Inherited from common_imports.HelperTestCase: - parse, - tearDown -

-

Inherited from common_imports.HelperTestCase (private): - _rootstring -

-

Inherited from unittest.case.TestCase: - __call__, - __eq__, - __hash__, - __init__, - __ne__, - __repr__, - __str__, - addCleanup, - addTypeEqualityFunc, - assertAlmostEqual, - assertAlmostEquals, - assertDictContainsSubset, - assertDictEqual, - assertEqual, - assertEquals, - assertGreater, - assertGreaterEqual, - assertIn, - assertIs, - assertIsInstance, - assertIsNone, - assertIsNot, - assertIsNotNone, - assertItemsEqual, - assertLess, - assertLessEqual, - assertListEqual, - assertMultiLineEqual, - assertNotAlmostEqual, - assertNotAlmostEquals, - assertNotEqual, - assertNotEquals, - assertNotIn, - assertNotIsInstance, - assertNotRegexpMatches, - assertRaises, - assertRaisesRegexp, - assertRegexpMatches, - assertSequenceEqual, - assertSetEqual, - assertTrue, - assertTupleEqual, - assert_, - countTestCases, - debug, - defaultTestResult, - doCleanups, - fail, - failIf, - failIfAlmostEqual, - failIfEqual, - failUnless, - failUnlessAlmostEqual, - failUnlessEqual, - failUnlessRaises, - id, - run, - setUp, - shortDescription, - skipTest -

-

Inherited from unittest.case.TestCase (private): - _addSkip, - _baseAssertEqual, - _deprecate, - _formatMessage, - _getAssertEqualityFunc, - _truncateMessage -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __new__, - __reduce__, - __reduce_ex__, - __setattr__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Class Methods[hide private]
-
-

Inherited from unittest.case.TestCase: - setUpClass, - tearDownClass -

-
- - - - - - - - - -
- - - - - -
Class Variables[hide private]
-
-

Inherited from common_imports.HelperTestCase: - assertFalse -

-

Inherited from unittest.case.TestCase: - longMessage, - maxDiff -

-

Inherited from unittest.case.TestCase (private): - _classSetupFailed, - _diffThreshold -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.test_xpathevaluator.ETreeXPathClassTestCase-class.html b/doc/html/api/lxml.tests.test_xpathevaluator.ETreeXPathClassTestCase-class.html deleted file mode 100644 index d5a232d..0000000 --- a/doc/html/api/lxml.tests.test_xpathevaluator.ETreeXPathClassTestCase-class.html +++ /dev/null @@ -1,428 +0,0 @@ - - - - - lxml.tests.test_xpathevaluator.ETreeXPathClassTestCase - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module test_xpathevaluator :: - Class ETreeXPathClassTestCase - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class ETreeXPathClassTestCase

source code

-
-               object --+        
-                        |        
-   unittest.case.TestCase --+    
-                            |    
-common_imports.HelperTestCase --+
-                                |
-                               ETreeXPathClassTestCase
-
- -
-Tests for the XPath class - - - - - - - - - - -
- - - - - -
Nested Classes[hide private]
-
-

Inherited from unittest.case.TestCase: - failureException -

-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
test_xpath_compile_doc(self) - source code - -
- -
-   - - - - - - -
test_xpath_compile_element(self) - source code - -
- -
-   - - - - - - -
test_xpath_compile_vars(self) - source code - -
- -
-   - - - - - - -
test_xpath_compile_error(self) - source code - -
- -
-   - - - - - - -
test_xpath_elementtree_error(self) - source code - -
- -
-

Inherited from common_imports.HelperTestCase: - parse, - tearDown -

-

Inherited from common_imports.HelperTestCase (private): - _rootstring -

-

Inherited from unittest.case.TestCase: - __call__, - __eq__, - __hash__, - __init__, - __ne__, - __repr__, - __str__, - addCleanup, - addTypeEqualityFunc, - assertAlmostEqual, - assertAlmostEquals, - assertDictContainsSubset, - assertDictEqual, - assertEqual, - assertEquals, - assertGreater, - assertGreaterEqual, - assertIn, - assertIs, - assertIsInstance, - assertIsNone, - assertIsNot, - assertIsNotNone, - assertItemsEqual, - assertLess, - assertLessEqual, - assertListEqual, - assertMultiLineEqual, - assertNotAlmostEqual, - assertNotAlmostEquals, - assertNotEqual, - assertNotEquals, - assertNotIn, - assertNotIsInstance, - assertNotRegexpMatches, - assertRaises, - assertRaisesRegexp, - assertRegexpMatches, - assertSequenceEqual, - assertSetEqual, - assertTrue, - assertTupleEqual, - assert_, - countTestCases, - debug, - defaultTestResult, - doCleanups, - fail, - failIf, - failIfAlmostEqual, - failIfEqual, - failUnless, - failUnlessAlmostEqual, - failUnlessEqual, - failUnlessRaises, - id, - run, - setUp, - shortDescription, - skipTest -

-

Inherited from unittest.case.TestCase (private): - _addSkip, - _baseAssertEqual, - _deprecate, - _formatMessage, - _getAssertEqualityFunc, - _truncateMessage -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __new__, - __reduce__, - __reduce_ex__, - __setattr__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Class Methods[hide private]
-
-

Inherited from unittest.case.TestCase: - setUpClass, - tearDownClass -

-
- - - - - - - - - -
- - - - - -
Class Variables[hide private]
-
-

Inherited from common_imports.HelperTestCase: - assertFalse -

-

Inherited from unittest.case.TestCase: - longMessage, - maxDiff -

-

Inherited from unittest.case.TestCase (private): - _classSetupFailed, - _diffThreshold -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.test_xpathevaluator.ETreeXPathExsltTestCase-class.html b/doc/html/api/lxml.tests.test_xpathevaluator.ETreeXPathExsltTestCase-class.html deleted file mode 100644 index 8cf2529..0000000 --- a/doc/html/api/lxml.tests.test_xpathevaluator.ETreeXPathExsltTestCase-class.html +++ /dev/null @@ -1,430 +0,0 @@ - - - - - lxml.tests.test_xpathevaluator.ETreeXPathExsltTestCase - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module test_xpathevaluator :: - Class ETreeXPathExsltTestCase - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class ETreeXPathExsltTestCase

source code

-
-               object --+        
-                        |        
-   unittest.case.TestCase --+    
-                            |    
-common_imports.HelperTestCase --+
-                                |
-                               ETreeXPathExsltTestCase
-
- -
-Tests for the EXSLT support in XPath (requires libxslt 1.1.25+) - - - - - - - - - - -
- - - - - -
Nested Classes[hide private]
-
-

Inherited from unittest.case.TestCase: - failureException -

-
- - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
test_xpath_exslt_functions_date(self) - source code - -
- -
-   - - - - - - -
test_xpath_exslt_functions_strings(self) - source code - -
- -
-

Inherited from common_imports.HelperTestCase: - parse, - tearDown -

-

Inherited from common_imports.HelperTestCase (private): - _rootstring -

-

Inherited from unittest.case.TestCase: - __call__, - __eq__, - __hash__, - __init__, - __ne__, - __repr__, - __str__, - addCleanup, - addTypeEqualityFunc, - assertAlmostEqual, - assertAlmostEquals, - assertDictContainsSubset, - assertDictEqual, - assertEqual, - assertEquals, - assertGreater, - assertGreaterEqual, - assertIn, - assertIs, - assertIsInstance, - assertIsNone, - assertIsNot, - assertIsNotNone, - assertItemsEqual, - assertLess, - assertLessEqual, - assertListEqual, - assertMultiLineEqual, - assertNotAlmostEqual, - assertNotAlmostEquals, - assertNotEqual, - assertNotEquals, - assertNotIn, - assertNotIsInstance, - assertNotRegexpMatches, - assertRaises, - assertRaisesRegexp, - assertRegexpMatches, - assertSequenceEqual, - assertSetEqual, - assertTrue, - assertTupleEqual, - assert_, - countTestCases, - debug, - defaultTestResult, - doCleanups, - fail, - failIf, - failIfAlmostEqual, - failIfEqual, - failUnless, - failUnlessAlmostEqual, - failUnlessEqual, - failUnlessRaises, - id, - run, - setUp, - shortDescription, - skipTest -

-

Inherited from unittest.case.TestCase (private): - _addSkip, - _baseAssertEqual, - _deprecate, - _formatMessage, - _getAssertEqualityFunc, - _truncateMessage -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __new__, - __reduce__, - __reduce_ex__, - __setattr__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Class Methods[hide private]
-
-

Inherited from unittest.case.TestCase: - setUpClass, - tearDownClass -

-
- - - - - - - - - - - - -
- - - - - -
Class Variables[hide private]
-
-   - - NSMAP = {'date': 'http://exslt.org/dates-and-times', 'math': '... -
-

Inherited from common_imports.HelperTestCase: - assertFalse -

-

Inherited from unittest.case.TestCase: - longMessage, - maxDiff -

-

Inherited from unittest.case.TestCase (private): - _classSetupFailed, - _diffThreshold -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Class Variable Details[hide private]
-
- -
- -
-

NSMAP

- -
-
-
-
Value:
-
-{'date': 'http://exslt.org/dates-and-times',
- 'math': 'http://exslt.org/math',
- 'set': 'http://exslt.org/sets',
- 'str': 'http://exslt.org/strings'}
-
-
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.test_xpathevaluator.ETreeXPathTestCase-class.html b/doc/html/api/lxml.tests.test_xpathevaluator.ETreeXPathTestCase-class.html deleted file mode 100644 index 6c3de11..0000000 --- a/doc/html/api/lxml.tests.test_xpathevaluator.ETreeXPathTestCase-class.html +++ /dev/null @@ -1,1052 +0,0 @@ - - - - - lxml.tests.test_xpathevaluator.ETreeXPathTestCase - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module test_xpathevaluator :: - Class ETreeXPathTestCase - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class ETreeXPathTestCase

source code

-
-               object --+        
-                        |        
-   unittest.case.TestCase --+    
-                            |    
-common_imports.HelperTestCase --+
-                                |
-                               ETreeXPathTestCase
-
- -
-XPath tests etree - - - - - - - - - - -
- - - - - -
Nested Classes[hide private]
-
-

Inherited from unittest.case.TestCase: - failureException -

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
test_xpath_boolean(self) - source code - -
- -
-   - - - - - - -
test_xpath_number(self) - source code - -
- -
-   - - - - - - -
test_xpath_string(self) - source code - -
- -
-   - - - - - - -
test_xpath_document_root(self) - source code - -
- -
-   - - - - - - -
test_xpath_namespace(self) - source code - -
- -
-   - - - - - - -
test_xpath_namespace_empty(self) - source code - -
- -
-   - - - - - - -
test_xpath_list_elements(self) - source code - -
- -
-   - - - - - - -
test_xpath_list_nothing(self) - source code - -
- -
-   - - - - - - -
test_xpath_list_text(self) - source code - -
- -
-   - - - - - - -
test_xpath_list_text_parent(self) - source code - -
- -
-   - - - - - - -
test_xpath_list_text_parent_no_smart_strings(self) - source code - -
- -
-   - - - - - - -
test_xpath_list_unicode_text_parent(self) - source code - -
- -
-   - - - - - - -
test_xpath_list_attribute(self) - source code - -
- -
-   - - - - - - -
test_xpath_list_attribute_parent(self) - source code - -
- -
-   - - - - - - -
test_xpath_list_attribute_parent_no_smart_strings(self) - source code - -
- -
-   - - - - - - -
test_xpath_text_from_other_document(self) - source code - -
- -
-   - - - - - - -
test_xpath_list_comment(self) - source code - -
- -
-   - - - - - - -
test_rel_xpath_boolean(self) - source code - -
- -
-   - - - - - - -
test_rel_xpath_list_elements(self) - source code - -
- -
-   - - - - - - -
test_xpath_ns(self) - source code - -
- -
-   - - - - - - -
test_xpath_ns_none(self) - source code - -
- -
-   - - - - - - -
test_xpath_ns_empty(self) - source code - -
- -
-   - - - - - - -
test_xpath_error(self) - source code - -
- -
-   - - - - - - -
test_xpath_class_error(self) - source code - -
- -
-   - - - - - - -
test_xpath_prefix_error(self) - source code - -
- -
-   - - - - - - -
test_xpath_class_prefix_error(self) - source code - -
- -
-   - - - - - - -
test_elementtree_getpath(self) - source code - -
- -
-   - - - - - - -
test_elementtree_getpath_partial(self) - source code - -
- -
-   - - - - - - -
test_xpath_evaluator(self) - source code - -
- -
-   - - - - - - -
test_xpath_evaluator_tree(self) - source code - -
- -
-   - - - - - - -
test_xpath_evaluator_tree_absolute(self) - source code - -
- -
-   - - - - - - -
test_xpath_evaluator_element(self) - source code - -
- -
-   - - - - - - -
test_xpath_extensions(self) - source code - -
- -
-   - - - - - - -
test_xpath_extensions_wrong_args(self) - source code - -
- -
-   - - - - - - -
test_xpath_extensions_error(self) - source code - -
- -
-   - - - - - - -
test_xpath_extensions_nodes(self) - source code - -
- -
-   - - - - - - -
test_xpath_extensions_nodes_append(self) - source code - -
- -
-   - - - - - - -
test_xpath_extensions_nodes_append2(self) - source code - -
- -
-   - - - - - - -
test_xpath_context_node(self) - source code - -
- -
-   - - - - - - -
test_xpath_eval_context_propagation(self) - source code - -
- -
-   - - - - - - -
test_xpath_eval_context_clear(self) - source code - -
- -
-   - - - - - - -
test_xpath_variables(self) - source code - -
- -
-   - - - - - - -
test_xpath_variables_nodeset(self) - source code - -
- -
-   - - - - - - -
test_xpath_extensions_mix(self) - source code - -
- -
-

Inherited from common_imports.HelperTestCase: - parse, - tearDown -

-

Inherited from common_imports.HelperTestCase (private): - _rootstring -

-

Inherited from unittest.case.TestCase: - __call__, - __eq__, - __hash__, - __init__, - __ne__, - __repr__, - __str__, - addCleanup, - addTypeEqualityFunc, - assertAlmostEqual, - assertAlmostEquals, - assertDictContainsSubset, - assertDictEqual, - assertEqual, - assertEquals, - assertGreater, - assertGreaterEqual, - assertIn, - assertIs, - assertIsInstance, - assertIsNone, - assertIsNot, - assertIsNotNone, - assertItemsEqual, - assertLess, - assertLessEqual, - assertListEqual, - assertMultiLineEqual, - assertNotAlmostEqual, - assertNotAlmostEquals, - assertNotEqual, - assertNotEquals, - assertNotIn, - assertNotIsInstance, - assertNotRegexpMatches, - assertRaises, - assertRaisesRegexp, - assertRegexpMatches, - assertSequenceEqual, - assertSetEqual, - assertTrue, - assertTupleEqual, - assert_, - countTestCases, - debug, - defaultTestResult, - doCleanups, - fail, - failIf, - failIfAlmostEqual, - failIfEqual, - failUnless, - failUnlessAlmostEqual, - failUnlessEqual, - failUnlessRaises, - id, - run, - setUp, - shortDescription, - skipTest -

-

Inherited from unittest.case.TestCase (private): - _addSkip, - _baseAssertEqual, - _deprecate, - _formatMessage, - _getAssertEqualityFunc, - _truncateMessage -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __new__, - __reduce__, - __reduce_ex__, - __setattr__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Class Methods[hide private]
-
-

Inherited from unittest.case.TestCase: - setUpClass, - tearDownClass -

-
- - - - - - - - - -
- - - - - -
Class Variables[hide private]
-
-

Inherited from common_imports.HelperTestCase: - assertFalse -

-

Inherited from unittest.case.TestCase: - longMessage, - maxDiff -

-

Inherited from unittest.case.TestCase (private): - _classSetupFailed, - _diffThreshold -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.test_xslt-module.html b/doc/html/api/lxml.tests.test_xslt-module.html deleted file mode 100644 index db5b2ab..0000000 --- a/doc/html/api/lxml.tests.test_xslt-module.html +++ /dev/null @@ -1,301 +0,0 @@ - - - - - lxml.tests.test_xslt - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module test_xslt - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Module test_xslt

source code

-Test cases related to XSLT processing - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Classes[hide private]
-
-   - - unicode
- str(object) -> string -
-   - - basestring
- str(object) -> string -
-   - - ETreeXSLTTestCase
- XSLT tests etree -
-   - - ETreeEXSLTTestCase
- EXSLT tests -
-   - - ETreeXSLTExtFuncTestCase
- Tests for XPath extension functions in XSLT. -
-   - - ETreeXSLTExtElementTestCase
- Tests for extension elements in XSLT. -
-   - - Py3XSLTTestCase
- XSLT tests for etree under Python 3 -
- - - - - - - - - -
- - - - - -
Functions[hide private]
-
-   - - - - - - -
test_suite() - source code - -
- -
- - - - - - - - - - - - - - - -
- - - - - -
Variables[hide private]
-
-   - - this_dir = '/home/sbehnel/source/Python/lxml/lxml-release/src/... -
-   - - is_python3 = False -
-   - - __package__ = 'lxml.tests' -
- - - - - - -
- - - - - -
Variables Details[hide private]
-
- -
- -
-

this_dir

- -
-
-
-
Value:
-
-'/home/sbehnel/source/Python/lxml/lxml-release/src/lxml/tests'
-
-
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.test_xslt-pysrc.html b/doc/html/api/lxml.tests.test_xslt-pysrc.html deleted file mode 100644 index 3630974..0000000 --- a/doc/html/api/lxml.tests.test_xslt-pysrc.html +++ /dev/null @@ -1,3825 +0,0 @@ - - - - - lxml.tests.test_xslt - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module test_xslt - - - - - - -
[hide private]
[frames] | no frames]
-
-

Source Code for Module lxml.tests.test_xslt

-
-   1  # -*- coding: utf-8 -*- 
-   2   
-   3  """ 
-   4  Test cases related to XSLT processing 
-   5  """ 
-   6   
-   7  import unittest, copy, sys, os.path 
-   8   
-   9  this_dir = os.path.dirname(__file__) 
-  10  if this_dir not in sys.path: 
-  11      sys.path.insert(0, this_dir) # needed for Py3 
-  12   
-  13  is_python3 = sys.version_info[0] >= 3 
-  14   
-  15  try: 
-  16      unicode 
-  17  except NameError: # Python 3 
-  18      unicode = str 
-  19   
-  20  try: 
-  21      basestring 
-  22  except NameError: # Python 3 
-  23      basestring = str 
-  24   
-  25  from common_imports import etree, BytesIO, HelperTestCase, fileInTestDir 
-  26  from common_imports import doctest, _bytes, _str, make_doctest, skipif 
-  27   
-
28 -class ETreeXSLTTestCase(HelperTestCase): -
29 """XSLT tests etree""" - 30 -
31 - def test_xslt(self): -
32 tree = self.parse('<a><b>B</b><c>C</c></a>') - 33 style = self.parse('''\ - 34 <xsl:stylesheet version="1.0" - 35 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> - 36 <xsl:template match="*" /> - 37 <xsl:template match="/"> - 38 <foo><xsl:value-of select="/a/b/text()" /></foo> - 39 </xsl:template> - 40 </xsl:stylesheet>''') - 41 - 42 st = etree.XSLT(style) - 43 res = st(tree) - 44 self.assertEquals('''\ - 45 <?xml version="1.0"?> - 46 <foo>B</foo> - 47 ''', - 48 str(res)) -
49 -
51 self.assertRaises(ValueError, etree.XSLT, etree.ElementTree()) -
52 -
53 - def test_xslt_input_none(self): -
54 self.assertRaises(TypeError, etree.XSLT, None) -
55 - 56 if False and etree.LIBXSLT_VERSION >= (1,1,15): - 57 # earlier versions generate no error - 58 if etree.LIBXSLT_VERSION > (1,1,17): -
60 style = self.parse('''\ - 61 <xsl:stylesheet version="1.0" - 62 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> - 63 <xsl:stylesheet /> - 64 </xsl:stylesheet>''') - 65 - 66 self.assertRaises( - 67 etree.XSLTParseError, etree.XSLT, style) -
68 -
69 - def test_xslt_copy(self): -
70 tree = self.parse('<a><b>B</b><c>C</c></a>') - 71 style = self.parse('''\ - 72 <xsl:stylesheet version="1.0" - 73 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> - 74 <xsl:template match="*" /> - 75 <xsl:template match="/"> - 76 <foo><xsl:value-of select="/a/b/text()" /></foo> - 77 </xsl:template> - 78 </xsl:stylesheet>''') - 79 - 80 transform = etree.XSLT(style) - 81 res = transform(tree) - 82 self.assertEquals('''\ - 83 <?xml version="1.0"?> - 84 <foo>B</foo> - 85 ''', - 86 str(res)) - 87 - 88 transform_copy = copy.deepcopy(transform) - 89 res = transform_copy(tree) - 90 self.assertEquals('''\ - 91 <?xml version="1.0"?> - 92 <foo>B</foo> - 93 ''', - 94 str(res)) - 95 - 96 transform = etree.XSLT(style) - 97 res = transform(tree) - 98 self.assertEquals('''\ - 99 <?xml version="1.0"?> - 100 <foo>B</foo> - 101 ''', - 102 str(res)) -
103 -
104 - def test_xslt_utf8(self): -
105 tree = self.parse(_bytes('<a><b>\\uF8D2</b><c>\\uF8D2</c></a>' - 106 ).decode("unicode_escape")) - 107 style = self.parse('''\ - 108 <xsl:stylesheet version="1.0" - 109 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> - 110 <xsl:output encoding="UTF-8"/> - 111 <xsl:template match="/"> - 112 <foo><xsl:value-of select="/a/b/text()" /></foo> - 113 </xsl:template> - 114 </xsl:stylesheet>''') - 115 - 116 st = etree.XSLT(style) - 117 res = st(tree) - 118 expected = _bytes('''\ - 119 <?xml version="1.0" encoding="UTF-8"?> - 120 <foo>\\uF8D2</foo> - 121 ''').decode("unicode_escape") - 122 if is_python3: - 123 self.assertEquals(expected, - 124 str(bytes(res), 'UTF-8')) - 125 else: - 126 self.assertEquals(expected, - 127 unicode(str(res), 'UTF-8')) -
128 -
129 - def test_xslt_encoding(self): -
130 tree = self.parse(_bytes('<a><b>\\uF8D2</b><c>\\uF8D2</c></a>' - 131 ).decode("unicode_escape")) - 132 style = self.parse('''\ - 133 <xsl:stylesheet version="1.0" - 134 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> - 135 <xsl:output encoding="UTF-16"/> - 136 <xsl:template match="/"> - 137 <foo><xsl:value-of select="/a/b/text()" /></foo> - 138 </xsl:template> - 139 </xsl:stylesheet>''') - 140 - 141 st = etree.XSLT(style) - 142 res = st(tree) - 143 expected = _bytes('''\ - 144 <?xml version="1.0" encoding="UTF-16"?> - 145 <foo>\\uF8D2</foo> - 146 ''').decode("unicode_escape") - 147 if is_python3: - 148 self.assertEquals(expected, - 149 str(bytes(res), 'UTF-16')) - 150 else: - 151 self.assertEquals(expected, - 152 unicode(str(res), 'UTF-16')) -
153 -
154 - def test_xslt_encoding_override(self): -
155 tree = self.parse(_bytes('<a><b>\\uF8D2</b><c>\\uF8D2</c></a>' - 156 ).decode("unicode_escape")) - 157 style = self.parse('''\ - 158 <xsl:stylesheet version="1.0" - 159 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> - 160 <xsl:output encoding="UTF-8"/> - 161 <xsl:template match="/"> - 162 <foo><xsl:value-of select="/a/b/text()" /></foo> - 163 </xsl:template> - 164 </xsl:stylesheet>''') - 165 - 166 st = etree.XSLT(style) - 167 res = st(tree) - 168 expected = _bytes("""\ - 169 <?xml version='1.0' encoding='UTF-16'?>\ - 170 <foo>\\uF8D2</foo>""").decode("unicode_escape") - 171 - 172 f = BytesIO() - 173 res.write(f, encoding='UTF-16') - 174 if is_python3: - 175 result = str(f.getvalue(), 'UTF-16').replace('\n', '') - 176 else: - 177 result = unicode(str(f.getvalue()), 'UTF-16').replace('\n', '') - 178 self.assertEquals(expected, result) -
179 -
180 - def test_xslt_unicode(self): -
181 tree = self.parse(_bytes('<a><b>\\uF8D2</b><c>\\uF8D2</c></a>' - 182 ).decode("unicode_escape")) - 183 style = self.parse('''\ - 184 <xsl:stylesheet version="1.0" - 185 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> - 186 <xsl:output encoding="UTF-16"/> - 187 <xsl:template match="/"> - 188 <foo><xsl:value-of select="/a/b/text()" /></foo> - 189 </xsl:template> - 190 </xsl:stylesheet>''') - 191 - 192 st = etree.XSLT(style) - 193 res = st(tree) - 194 expected = _bytes('''\ - 195 <?xml version="1.0"?> - 196 <foo>\\uF8D2</foo> - 197 ''').decode("unicode_escape") - 198 self.assertEquals(expected, - 199 unicode(res)) -
200 -
201 - def test_xslt_input(self): -
202 style = self.parse('''\ - 203 <xsl:stylesheet version="1.0" - 204 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> - 205 <xsl:template match="*" /> - 206 <xsl:template match="/"> - 207 <foo><xsl:value-of select="/a/b/text()" /></foo> - 208 </xsl:template> - 209 </xsl:stylesheet>''') - 210 - 211 st = etree.XSLT(style) - 212 st = etree.XSLT(style.getroot()) -
213 -
214 - def test_xslt_input_partial_doc(self): -
215 style = self.parse('''\ - 216 <otherroot> - 217 <xsl:stylesheet version="1.0" - 218 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> - 219 <xsl:template match="*" /> - 220 <xsl:template match="/"> - 221 <foo><xsl:value-of select="/a/b/text()" /></foo> - 222 </xsl:template> - 223 </xsl:stylesheet> - 224 </otherroot>''') - 225 - 226 self.assertRaises(etree.XSLTParseError, etree.XSLT, style) - 227 root_node = style.getroot() - 228 self.assertRaises(etree.XSLTParseError, etree.XSLT, root_node) - 229 st = etree.XSLT(root_node[0]) -
230 -
231 - def test_xslt_broken(self): -
232 tree = self.parse('<a/>') - 233 style = self.parse('''\ - 234 <xsl:stylesheet version="1.0" - 235 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> - 236 <xsl:foo /> - 237 </xsl:stylesheet>''') - 238 self.assertRaises(etree.XSLTParseError, - 239 etree.XSLT, style) -
240 -
241 - def test_xslt_parameters(self): -
242 tree = self.parse('<a><b>B</b><c>C</c></a>') - 243 style = self.parse('''\ - 244 <xsl:stylesheet version="1.0" - 245 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> - 246 <xsl:template match="/"> - 247 <foo><xsl:value-of select="$bar" /></foo> - 248 </xsl:template> - 249 </xsl:stylesheet>''') - 250 - 251 st = etree.XSLT(style) - 252 res = st(tree, bar="'Bar'") - 253 self.assertEquals('''\ - 254 <?xml version="1.0"?> - 255 <foo>Bar</foo> - 256 ''', - 257 str(res)) -
258 -
259 - def test_xslt_string_parameters(self): -
260 tree = self.parse('<a><b>B</b><c>C</c></a>') - 261 style = self.parse('''\ - 262 <xsl:stylesheet version="1.0" - 263 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> - 264 <xsl:template match="/"> - 265 <foo><xsl:value-of select="$bar" /></foo> - 266 </xsl:template> - 267 </xsl:stylesheet>''') - 268 - 269 st = etree.XSLT(style) - 270 res = st(tree, bar=etree.XSLT.strparam('''it's me, "Bar"''')) - 271 self.assertEquals('''\ - 272 <?xml version="1.0"?> - 273 <foo>it's me, "Bar"</foo> - 274 ''', - 275 str(res)) -
276 -
277 - def test_xslt_parameter_invalid(self): -
278 tree = self.parse('<a><b>B</b><c>C</c></a>') - 279 style = self.parse('''\ - 280 <xsl:stylesheet version="1.0" - 281 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> - 282 <xsl:param name="bar"/> - 283 <xsl:template match="/"> - 284 <foo><xsl:value-of select="$bar" /></foo> - 285 </xsl:template> - 286 </xsl:stylesheet>''') - 287 - 288 st = etree.XSLT(style) - 289 res = self.assertRaises(etree.XSLTApplyError, - 290 st, tree, bar="<test/>") - 291 res = self.assertRaises(etree.XSLTApplyError, - 292 st, tree, bar="....") -
293 - 294 if etree.LIBXSLT_VERSION < (1,1,18): - 295 # later versions produce no error -
296 - def test_xslt_parameter_missing(self): -
297 # apply() without needed parameter will lead to XSLTApplyError - 298 tree = self.parse('<a><b>B</b><c>C</c></a>') - 299 style = self.parse('''\ - 300 <xsl:stylesheet version="1.0" - 301 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> - 302 <xsl:template match="/"> - 303 <foo><xsl:value-of select="$bar" /></foo> - 304 </xsl:template> - 305 </xsl:stylesheet>''') - 306 - 307 st = etree.XSLT(style) - 308 self.assertRaises(etree.XSLTApplyError, - 309 st.apply, tree) -
310 -
312 tree = self.parse('<a><b>B</b><c>C</c></a>') - 313 style = self.parse('''\ - 314 <xsl:stylesheet version="1.0" - 315 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> - 316 <xsl:template match="*" /> - 317 <xsl:template match="/"> - 318 <foo><xsl:value-of select="$bar" /></foo> - 319 <foo><xsl:value-of select="$baz" /></foo> - 320 </xsl:template> - 321 </xsl:stylesheet>''') - 322 - 323 st = etree.XSLT(style) - 324 res = st(tree, bar="'Bar'", baz="'Baz'") - 325 self.assertEquals('''\ - 326 <?xml version="1.0"?> - 327 <foo>Bar</foo><foo>Baz</foo> - 328 ''', - 329 str(res)) -
330 -
331 - def test_xslt_parameter_xpath(self): -
332 tree = self.parse('<a><b>B</b><c>C</c></a>') - 333 style = self.parse('''\ - 334 <xsl:stylesheet version="1.0" - 335 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> - 336 <xsl:template match="*" /> - 337 <xsl:template match="/"> - 338 <foo><xsl:value-of select="$bar" /></foo> - 339 </xsl:template> - 340 </xsl:stylesheet>''') - 341 - 342 st = etree.XSLT(style) - 343 res = st(tree, bar="/a/b/text()") - 344 self.assertEquals('''\ - 345 <?xml version="1.0"?> - 346 <foo>B</foo> - 347 ''', - 348 str(res)) -
349 -
351 tree = self.parse('<a><b>B</b><c>C</c></a>') - 352 style = self.parse('''\ - 353 <xsl:stylesheet version="1.0" - 354 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> - 355 <xsl:template match="*" /> - 356 <xsl:template match="/"> - 357 <foo><xsl:value-of select="$bar" /></foo> - 358 </xsl:template> - 359 </xsl:stylesheet>''') - 360 - 361 st = etree.XSLT(style) - 362 res = st(tree, bar=etree.XPath("/a/b/text()")) - 363 self.assertEquals('''\ - 364 <?xml version="1.0"?> - 365 <foo>B</foo> - 366 ''', - 367 str(res)) -
368 -
370 tree = self.parse('<a><b>B</b><c>C</c></a>') - 371 style = self.parse('''\ - 372 <xsl:stylesheet version="1.0" - 373 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> - 374 <xsl:param name="bar" select="'Default'" /> - 375 <xsl:template match="*" /> - 376 <xsl:template match="/"> - 377 <foo><xsl:value-of select="$bar" /></foo> - 378 </xsl:template> - 379 </xsl:stylesheet>''') - 380 - 381 st = etree.XSLT(style) - 382 res = st(tree, bar="'Bar'") - 383 self.assertEquals('''\ - 384 <?xml version="1.0"?> - 385 <foo>Bar</foo> - 386 ''', - 387 str(res)) - 388 res = st(tree) - 389 self.assertEquals('''\ - 390 <?xml version="1.0"?> - 391 <foo>Default</foo> - 392 ''', - 393 str(res)) -
394 -
395 - def test_xslt_html_output(self): -
396 tree = self.parse('<a><b>B</b><c>C</c></a>') - 397 style = self.parse('''\ - 398 <xsl:stylesheet version="1.0" - 399 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> - 400 <xsl:output method="html"/> - 401 <xsl:strip-space elements="*"/> - 402 <xsl:template match="/"> - 403 <html><body><xsl:value-of select="/a/b/text()" /></body></html> - 404 </xsl:template> - 405 </xsl:stylesheet>''') - 406 - 407 st = etree.XSLT(style) - 408 res = st(tree) - 409 self.assertEquals('<html><body>B</body></html>', - 410 str(res).strip()) -
411 -
412 - def test_xslt_include(self): -
413 tree = etree.parse(fileInTestDir('test1.xslt')) - 414 st = etree.XSLT(tree) -
415 -
417 f = open(fileInTestDir('test1.xslt'), 'rb') - 418 tree = etree.parse(f) - 419 f.close() - 420 st = etree.XSLT(tree) -
421 -
423 xml = '<a/>' - 424 xslt = '''\ - 425 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> - 426 <xsl:template match="/"> - 427 <response>Some text</response> - 428 </xsl:template> - 429 </xsl:stylesheet> - 430 ''' - 431 source = self.parse(xml) - 432 styledoc = self.parse(xslt) - 433 style = etree.XSLT(styledoc) - 434 result = style(source) - 435 - 436 etree.tostring(result.getroot()) - 437 - 438 source = self.parse(xml) - 439 styledoc = self.parse(xslt) - 440 style = etree.XSLT(styledoc) - 441 result = style(source) - 442 - 443 etree.tostring(result.getroot()) -
444 -
445 - def test_xslt_repeat_transform(self): -
446 xml = '<a/>' - 447 xslt = '''\ - 448 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> - 449 <xsl:template match="/"> - 450 <response>Some text</response> - 451 </xsl:template> - 452 </xsl:stylesheet> - 453 ''' - 454 source = self.parse(xml) - 455 styledoc = self.parse(xslt) - 456 transform = etree.XSLT(styledoc) - 457 result = transform(source) - 458 result = transform(source) - 459 etree.tostring(result.getroot()) - 460 result = transform(source) - 461 etree.tostring(result.getroot()) - 462 str(result) - 463 - 464 result1 = transform(source) - 465 result2 = transform(source) - 466 self.assertEquals(str(result1), str(result2)) - 467 result = transform(source) - 468 str(result) -
469 -
470 - def test_xslt_empty(self): -
471 # could segfault if result contains "empty document" - 472 xml = '<blah/>' - 473 xslt = ''' - 474 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> - 475 <xsl:template match="/" /> - 476 </xsl:stylesheet> - 477 ''' - 478 - 479 source = self.parse(xml) - 480 styledoc = self.parse(xslt) - 481 style = etree.XSLT(styledoc) - 482 result = style(source) - 483 self.assertEqual('', str(result)) -
484 -
485 - def test_xslt_message(self): -
486 xml = '<blah/>' - 487 xslt = ''' - 488 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> - 489 <xsl:template match="/"> - 490 <xsl:message>TEST TEST TEST</xsl:message> - 491 </xsl:template> - 492 </xsl:stylesheet> - 493 ''' - 494 - 495 source = self.parse(xml) - 496 styledoc = self.parse(xslt) - 497 style = etree.XSLT(styledoc) - 498 result = style(source) - 499 self.assertEqual('', str(result)) - 500 self.assert_("TEST TEST TEST" in [entry.message - 501 for entry in style.error_log]) -
502 -
503 - def test_xslt_message_terminate(self): -
504 xml = '<blah/>' - 505 xslt = ''' - 506 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> - 507 <xsl:template match="/"> - 508 <xsl:message terminate="yes">TEST TEST TEST</xsl:message> - 509 </xsl:template> - 510 </xsl:stylesheet> - 511 ''' - 512 - 513 source = self.parse(xml) - 514 styledoc = self.parse(xslt) - 515 style = etree.XSLT(styledoc) - 516 - 517 self.assertRaises(etree.XSLTApplyError, style, source) - 518 self.assert_("TEST TEST TEST" in [entry.message - 519 for entry in style.error_log]) -
520 -
521 - def test_xslt_shortcut(self): -
522 tree = self.parse('<a><b>B</b><c>C</c></a>') - 523 style = self.parse('''\ - 524 <xsl:stylesheet version="1.0" - 525 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> - 526 <xsl:template match="*" /> - 527 <xsl:template match="/"> - 528 <doc> - 529 <foo><xsl:value-of select="$bar" /></foo> - 530 <foo><xsl:value-of select="$baz" /></foo> - 531 </doc> - 532 </xsl:template> - 533 </xsl:stylesheet>''') - 534 - 535 result = tree.xslt(style, bar="'Bar'", baz="'Baz'") - 536 self.assertEquals( - 537 _bytes('<doc><foo>Bar</foo><foo>Baz</foo></doc>'), - 538 etree.tostring(result.getroot())) -
539 -
540 - def test_multiple_elementrees(self): -
541 tree = self.parse('<a><b>B</b><c>C</c></a>') - 542 style = self.parse('''\ - 543 <xsl:stylesheet version="1.0" - 544 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> - 545 <xsl:template match="a"><A><xsl:apply-templates/></A></xsl:template> - 546 <xsl:template match="b"><B><xsl:apply-templates/></B></xsl:template> - 547 <xsl:template match="c"><C><xsl:apply-templates/></C></xsl:template> - 548 </xsl:stylesheet>''') - 549 - 550 self.assertEquals(self._rootstring(tree), - 551 _bytes('<a><b>B</b><c>C</c></a>')) - 552 result = tree.xslt(style) - 553 self.assertEquals(self._rootstring(tree), - 554 _bytes('<a><b>B</b><c>C</c></a>')) - 555 self.assertEquals(self._rootstring(result), - 556 _bytes('<A><B>B</B><C>C</C></A>')) - 557 - 558 b_tree = etree.ElementTree(tree.getroot()[0]) - 559 self.assertEquals(self._rootstring(b_tree), - 560 _bytes('<b>B</b>')) - 561 result = b_tree.xslt(style) - 562 self.assertEquals(self._rootstring(tree), - 563 _bytes('<a><b>B</b><c>C</c></a>')) - 564 self.assertEquals(self._rootstring(result), - 565 _bytes('<B>B</B>')) - 566 - 567 c_tree = etree.ElementTree(tree.getroot()[1]) - 568 self.assertEquals(self._rootstring(c_tree), - 569 _bytes('<c>C</c>')) - 570 result = c_tree.xslt(style) - 571 self.assertEquals(self._rootstring(tree), - 572 _bytes('<a><b>B</b><c>C</c></a>')) - 573 self.assertEquals(self._rootstring(result), - 574 _bytes('<C>C</C>')) -
575 -
576 - def test_xslt_document_XML(self): -
577 # make sure document('') works from parsed strings - 578 xslt = etree.XSLT(etree.XML("""\ - 579 <xsl:stylesheet version="1.0" - 580 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> - 581 <xsl:template match="/"> - 582 <test>TEXT<xsl:copy-of select="document('')//test"/></test> - 583 </xsl:template> - 584 </xsl:stylesheet> - 585 """)) - 586 result = xslt(etree.XML('<a/>')) - 587 root = result.getroot() - 588 self.assertEquals(root.tag, - 589 'test') - 590 self.assertEquals(root[0].tag, - 591 'test') - 592 self.assertEquals(root[0].text, - 593 'TEXT') - 594 self.assertEquals(root[0][0].tag, - 595 '{http://www.w3.org/1999/XSL/Transform}copy-of') -
596 -
597 - def test_xslt_document_parse(self): -
598 # make sure document('') works from loaded files - 599 xslt = etree.XSLT(etree.parse(fileInTestDir("test-document.xslt"))) - 600 result = xslt(etree.XML('<a/>')) - 601 root = result.getroot() - 602 self.assertEquals(root.tag, - 603 'test') - 604 self.assertEquals(root[0].tag, - 605 '{http://www.w3.org/1999/XSL/Transform}stylesheet') -
606 -
608 # make sure document('') works from loaded files - 609 xslt = etree.XSLT(etree.ElementTree(file=fileInTestDir("test-document.xslt"))) - 610 result = xslt(etree.XML('<a/>')) - 611 root = result.getroot() - 612 self.assertEquals(root.tag, - 613 'test') - 614 self.assertEquals(root[0].tag, - 615 '{http://www.w3.org/1999/XSL/Transform}stylesheet') -
616 -
617 - def test_xslt_document_error(self): -
618 xslt = etree.XSLT(etree.XML("""\ - 619 <xsl:stylesheet version="1.0" - 620 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> - 621 <xsl:template match="/"> - 622 <test>TEXT<xsl:copy-of select="document('uri:__junkfood__is__evil__')//test"/></test> - 623 </xsl:template> - 624 </xsl:stylesheet> - 625 """)) - 626 self.assertRaises(etree.XSLTApplyError, xslt, etree.XML('<a/>')) -
627 -
629 # make sure document('') works when custom resolvers are in use - 630 assertEquals = self.assertEquals - 631 called = {'count' : 0} - 632 class TestResolver(etree.Resolver): - 633 def resolve(self, url, id, context): - 634 assertEquals(url, 'file://ANYTHING') - 635 called['count'] += 1 - 636 return self.resolve_string('<CALLED/>', context) -
637 - 638 parser = etree.XMLParser() - 639 parser.resolvers.add(TestResolver()) - 640 - 641 xslt = etree.XSLT(etree.XML(_bytes("""\ - 642 <xsl:stylesheet version="1.0" - 643 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" - 644 xmlns:l="local"> - 645 <xsl:template match="/"> - 646 <test> - 647 <xsl:for-each select="document('')//l:data/l:entry"> - 648 <xsl:copy-of select="document('file://ANYTHING')"/> - 649 <xsl:copy> - 650 <xsl:attribute name="value"> - 651 <xsl:value-of select="."/> - 652 </xsl:attribute> - 653 </xsl:copy> - 654 </xsl:for-each> - 655 </test> - 656 </xsl:template> - 657 <l:data> - 658 <l:entry>A</l:entry> - 659 <l:entry>B</l:entry> - 660 </l:data> - 661 </xsl:stylesheet> - 662 """), parser)) - 663 - 664 self.assertEquals(called['count'], 0) - 665 result = xslt(etree.XML('<a/>')) - 666 self.assertEquals(called['count'], 1) - 667 - 668 root = result.getroot() - 669 self.assertEquals(root.tag, - 670 'test') - 671 self.assertEquals(len(root), 4) - 672 - 673 self.assertEquals(root[0].tag, - 674 'CALLED') - 675 self.assertEquals(root[1].tag, - 676 '{local}entry') - 677 self.assertEquals(root[1].text, - 678 None) - 679 self.assertEquals(root[1].get("value"), - 680 'A') - 681 self.assertEquals(root[2].tag, - 682 'CALLED') - 683 self.assertEquals(root[3].tag, - 684 '{local}entry') - 685 self.assertEquals(root[3].text, - 686 None) - 687 self.assertEquals(root[3].get("value"), - 688 'B') - 689 -
691 assertEquals = self.assertEquals - 692 called = {'count' : 0} - 693 expected_url = None - 694 class TestResolver(etree.Resolver): - 695 def resolve(self, url, id, context): - 696 assertEquals(url, expected_url) - 697 called['count'] += 1 - 698 return self.resolve_string('<CALLED/>', context) -
699 - 700 stylesheet_xml = _bytes("""\ - 701 <xsl:stylesheet version="1.0" - 702 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" - 703 xmlns:l="local"> - 704 <xsl:template match="/"> - 705 <xsl:copy-of select="document('test.xml')"/> - 706 </xsl:template> - 707 </xsl:stylesheet> - 708 """) - 709 - 710 parser = etree.XMLParser() - 711 parser.resolvers.add(TestResolver()) - 712 - 713 # test without base_url => relative path only - 714 expected_url = 'test.xml' - 715 xslt = etree.XSLT(etree.XML(stylesheet_xml, parser)) - 716 - 717 self.assertEquals(called['count'], 0) - 718 result = xslt(etree.XML('<a/>')) - 719 self.assertEquals(called['count'], 1) - 720 - 721 # now the same thing with a stylesheet base URL on the filesystem - 722 called['count'] = 0 - 723 expected_url = os.path.join('MY', 'BASE', 'test.xml') - 724 xslt = etree.XSLT(etree.XML(stylesheet_xml, parser, - 725 base_url=os.path.join('MY', 'BASE', 'FILE'))) - 726 - 727 self.assertEquals(called['count'], 0) - 728 result = xslt(etree.XML('<a/>')) - 729 self.assertEquals(called['count'], 1) - 730 - 731 # now the same thing with a stylesheet base URL - 732 called['count'] = 0 - 733 expected_url = 'http://server.com/BASE/DIR/test.xml' - 734 xslt = etree.XSLT(etree.XML(stylesheet_xml, parser, - 735 base_url='http://server.com/BASE/DIR/FILE')) - 736 - 737 self.assertEquals(called['count'], 0) - 738 result = xslt(etree.XML('<a/>')) - 739 self.assertEquals(called['count'], 1) - 740 -
742 access_control = etree.XSLTAccessControl(read_file=True) - 743 xslt = etree.XSLT(etree.parse(fileInTestDir("test-document.xslt")), - 744 access_control = access_control) - 745 result = xslt(etree.XML('<a/>')) - 746 root = result.getroot() - 747 self.assertEquals(root.tag, - 748 'test') - 749 self.assertEquals(root[0].tag, - 750 '{http://www.w3.org/1999/XSL/Transform}stylesheet') -
751 -
753 access_control = etree.XSLTAccessControl(read_file=False) - 754 xslt = etree.XSLT(etree.parse(fileInTestDir("test-document.xslt")), - 755 access_control = access_control) - 756 self.assertRaises(etree.XSLTApplyError, xslt, etree.XML('<a/>')) -
757 -
759 access_control = etree.XSLTAccessControl.DENY_ALL - 760 xslt = etree.XSLT(etree.parse(fileInTestDir("test-document.xslt")), - 761 access_control = access_control) - 762 self.assertRaises(etree.XSLTApplyError, xslt, etree.XML('<a/>')) -
763 -
764 - def test_xslt_move_result(self): -
765 root = etree.XML(_bytes('''\ - 766 <transform> - 767 <widget displayType="fieldset"/> - 768 </transform>''')) - 769 - 770 xslt = etree.XSLT(etree.XML(_bytes('''\ - 771 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> - 772 <xsl:output method="html" indent="no"/> - 773 <xsl:template match="/"> - 774 <html> - 775 <xsl:apply-templates/> - 776 </html> - 777 </xsl:template> - 778 - 779 <xsl:template match="widget"> - 780 <xsl:element name="{@displayType}"/> - 781 </xsl:template> - 782 - 783 </xsl:stylesheet>'''))) - 784 - 785 result = xslt(root[0]) - 786 root[:] = result.getroot()[:] - 787 del root # segfaulted before -
788 -
789 - def test_xslt_pi(self): -
790 tree = self.parse('''\ - 791 <?xml version="1.0"?> - 792 <?xml-stylesheet type="text/xsl" href="%s"?> - 793 <a> - 794 <b>B</b> - 795 <c>C</c> - 796 </a>''' % fileInTestDir("test1.xslt")) - 797 - 798 style_root = tree.getroot().getprevious().parseXSL().getroot() - 799 self.assertEquals("{http://www.w3.org/1999/XSL/Transform}stylesheet", - 800 style_root.tag) -
801 -
802 - def test_xslt_pi_embedded_xmlid(self): -
803 # test xml:id dictionary lookup mechanism - 804 tree = self.parse('''\ - 805 <?xml version="1.0"?> - 806 <?xml-stylesheet type="text/xsl" href="#style"?> - 807 <a> - 808 <b>B</b> - 809 <c>C</c> - 810 <xsl:stylesheet version="1.0" xml:id="style" - 811 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> - 812 <xsl:template match="*" /> - 813 <xsl:template match="/"> - 814 <foo><xsl:value-of select="/a/b/text()" /></foo> - 815 </xsl:template> - 816 </xsl:stylesheet> - 817 </a>''') - 818 - 819 style_root = tree.getroot().getprevious().parseXSL().getroot() - 820 self.assertEquals("{http://www.w3.org/1999/XSL/Transform}stylesheet", - 821 style_root.tag) - 822 - 823 st = etree.XSLT(style_root) - 824 res = st(tree) - 825 self.assertEquals('''\ - 826 <?xml version="1.0"?> - 827 <foo>B</foo> - 828 ''', - 829 str(res)) -
830 -
831 - def test_xslt_pi_embedded_id(self): -
832 # test XPath lookup mechanism - 833 tree = self.parse('''\ - 834 <?xml version="1.0"?> - 835 <?xml-stylesheet type="text/xsl" href="#style"?> - 836 <a> - 837 <b>B</b> - 838 <c>C</c> - 839 </a>''') - 840 - 841 style = self.parse('''\ - 842 <xsl:stylesheet version="1.0" xml:id="style" - 843 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> - 844 <xsl:template match="*" /> - 845 <xsl:template match="/"> - 846 <foo><xsl:value-of select="/a/b/text()" /></foo> - 847 </xsl:template> - 848 </xsl:stylesheet> - 849 ''') - 850 - 851 tree.getroot().append(style.getroot()) - 852 - 853 style_root = tree.getroot().getprevious().parseXSL().getroot() - 854 self.assertEquals("{http://www.w3.org/1999/XSL/Transform}stylesheet", - 855 style_root.tag) - 856 - 857 st = etree.XSLT(style_root) - 858 res = st(tree) - 859 self.assertEquals('''\ - 860 <?xml version="1.0"?> - 861 <foo>B</foo> - 862 ''', - 863 str(res)) -
864 -
865 - def test_xslt_pi_get(self): -
866 tree = self.parse('''\ - 867 <?xml version="1.0"?> - 868 <?xml-stylesheet type="text/xsl" href="TEST"?> - 869 <a> - 870 <b>B</b> - 871 <c>C</c> - 872 </a>''') - 873 - 874 pi = tree.getroot().getprevious() - 875 self.assertEquals("TEST", pi.get("href")) -
876 -
877 - def test_xslt_pi_get_all(self): -
878 tree = self.parse('''\ - 879 <?xml version="1.0"?> - 880 <?xml-stylesheet type="text/xsl" href="TEST"?> - 881 <a> - 882 <b>B</b> - 883 <c>C</c> - 884 </a>''') - 885 - 886 pi = tree.getroot().getprevious() - 887 self.assertEquals("TEST", pi.get("href")) - 888 self.assertEquals("text/xsl", pi.get("type")) - 889 self.assertEquals(None, pi.get("motz")) -
890 -
892 tree = self.parse('''\ - 893 <?xml version="1.0"?> - 894 <?xml-stylesheet href="TEST" type="text/xsl"?> - 895 <a> - 896 <b>B</b> - 897 <c>C</c> - 898 </a>''') - 899 - 900 pi = tree.getroot().getprevious() - 901 self.assertEquals("TEST", pi.get("href")) - 902 self.assertEquals("text/xsl", pi.get("type")) - 903 self.assertEquals(None, pi.get("motz")) -
904 -
905 - def test_xslt_pi_get_unknown(self): -
906 tree = self.parse('''\ - 907 <?xml version="1.0"?> - 908 <?xml-stylesheet type="text/xsl" href="TEST"?> - 909 <a> - 910 <b>B</b> - 911 <c>C</c> - 912 </a>''') - 913 - 914 pi = tree.getroot().getprevious() - 915 self.assertEquals(None, pi.get("unknownattribute")) -
916 -
917 - def test_xslt_pi_set_replace(self): -
918 tree = self.parse('''\ - 919 <?xml version="1.0"?> - 920 <?xml-stylesheet type="text/xsl" href="TEST"?> - 921 <a> - 922 <b>B</b> - 923 <c>C</c> - 924 </a>''') - 925 - 926 pi = tree.getroot().getprevious() - 927 self.assertEquals("TEST", pi.get("href")) - 928 - 929 pi.set("href", "TEST123") - 930 self.assertEquals("TEST123", pi.get("href")) -
931 -
932 - def test_xslt_pi_set_new(self): -
933 tree = self.parse('''\ - 934 <?xml version="1.0"?> - 935 <?xml-stylesheet type="text/xsl"?> - 936 <a> - 937 <b>B</b> - 938 <c>C</c> - 939 </a>''') - 940 - 941 pi = tree.getroot().getprevious() - 942 self.assertEquals(None, pi.get("href")) - 943 - 944 pi.set("href", "TEST") - 945 self.assertEquals("TEST", pi.get("href")) -
946 -
947 -class ETreeEXSLTTestCase(HelperTestCase): -
948 """EXSLT tests""" - 949 -
950 - def test_exslt_str(self): -
951 tree = self.parse('<a><b>B</b><c>C</c></a>') - 952 style = self.parse('''\ - 953 <xsl:stylesheet version="1.0" - 954 xmlns:str="http://exslt.org/strings" - 955 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" - 956 exclude-result-prefixes="str xsl"> - 957 <xsl:template match="text()"> - 958 <xsl:value-of select="str:align(string(.), '***', 'center')" /> - 959 </xsl:template> - 960 <xsl:template match="*"> - 961 <xsl:copy> - 962 <xsl:apply-templates/> - 963 </xsl:copy> - 964 </xsl:template> - 965 </xsl:stylesheet>''') - 966 - 967 st = etree.XSLT(style) - 968 res = st(tree) - 969 self.assertEquals('''\ - 970 <?xml version="1.0"?> - 971 <a><b>*B*</b><c>*C*</c></a> - 972 ''', - 973 str(res)) -
974 - 975 if etree.LIBXSLT_VERSION >= (1,1,21): -
977 tree = self.parse('<a><b>B</b><c>C</c></a>') - 978 style = self.parse('''\ - 979 <xsl:stylesheet version = "1.0" - 980 xmlns:xsl='http://www.w3.org/1999/XSL/Transform' - 981 xmlns:str="http://exslt.org/strings" - 982 extension-element-prefixes="str"> - 983 - 984 <xsl:template match="/"> - 985 <h1 class="{str:replace('abc', 'b', 'x')}">test</h1> - 986 </xsl:template> - 987 - 988 </xsl:stylesheet>''') - 989 - 990 st = etree.XSLT(style) - 991 res = st(tree) - 992 self.assertEquals('''\ - 993 <?xml version="1.0"?> - 994 <h1 class="axc">test</h1> - 995 ''', - 996 str(res)) -
997 -
998 - def test_exslt_math(self): -
999 tree = self.parse('<a><b>B</b><c>C</c></a>') -1000 style = self.parse('''\ -1001 <xsl:stylesheet version="1.0" -1002 xmlns:math="http://exslt.org/math" -1003 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" -1004 exclude-result-prefixes="math xsl"> -1005 <xsl:template match="*"> -1006 <xsl:copy> -1007 <xsl:attribute name="pi"> -1008 <xsl:value-of select="math:constant('PI', count(*)+2)"/> -1009 </xsl:attribute> -1010 <xsl:apply-templates/> -1011 </xsl:copy> -1012 </xsl:template> -1013 </xsl:stylesheet>''') -1014 -1015 st = etree.XSLT(style) -1016 res = st(tree) -1017 self.assertEquals('''\ -1018 <?xml version="1.0"?> -1019 <a pi="3.14"><b pi="3">B</b><c pi="3">C</c></a> -1020 ''', -1021 str(res)) -
1022 -
1023 - def test_exslt_regexp_test(self): -
1024 xslt = etree.XSLT(etree.XML(_bytes("""\ -1025 <xsl:stylesheet version="1.0" -1026 xmlns:regexp="http://exslt.org/regular-expressions" -1027 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> -1028 <xsl:template match="*"> -1029 <test><xsl:copy-of select="*[regexp:test(string(.), '8.')]"/></test> -1030 </xsl:template> -1031 </xsl:stylesheet> -1032 """))) -1033 result = xslt(etree.XML(_bytes('<a><b>123</b><b>098</b><b>987</b></a>'))) -1034 root = result.getroot() -1035 self.assertEquals(root.tag, -1036 'test') -1037 self.assertEquals(len(root), 1) -1038 self.assertEquals(root[0].tag, -1039 'b') -1040 self.assertEquals(root[0].text, -1041 '987') -
1042 -
1043 - def test_exslt_regexp_replace(self): -
1044 xslt = etree.XSLT(etree.XML("""\ -1045 <xsl:stylesheet version="1.0" -1046 xmlns:regexp="http://exslt.org/regular-expressions" -1047 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> -1048 <xsl:template match="*"> -1049 <test> -1050 <xsl:copy-of select="regexp:replace(string(.), 'd.', '', 'XX')"/> -1051 <xsl:text>-</xsl:text> -1052 <xsl:copy-of select="regexp:replace(string(.), 'd.', 'gi', 'XX')"/> -1053 </test> -1054 </xsl:template> -1055 </xsl:stylesheet> -1056 """)) -1057 result = xslt(etree.XML(_bytes('<a>abdCdEeDed</a>'))) -1058 root = result.getroot() -1059 self.assertEquals(root.tag, -1060 'test') -1061 self.assertEquals(len(root), 0) -1062 self.assertEquals(root.text, 'abXXdEeDed-abXXXXeXXd') -
1063 -
1064 - def test_exslt_regexp_match(self): -
1065 xslt = etree.XSLT(etree.XML("""\ -1066 <xsl:stylesheet version="1.0" -1067 xmlns:regexp="http://exslt.org/regular-expressions" -1068 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> -1069 <xsl:template match="*"> -1070 <test> -1071 <test1><xsl:copy-of select="regexp:match(string(.), 'd.')"/></test1> -1072 <test2><xsl:copy-of select="regexp:match(string(.), 'd.', 'g')"/></test2> -1073 <test2i><xsl:copy-of select="regexp:match(string(.), 'd.', 'gi')"/></test2i> -1074 </test> -1075 </xsl:template> -1076 </xsl:stylesheet> -1077 """)) -1078 result = xslt(etree.XML(_bytes('<a>abdCdEeDed</a>'))) -1079 root = result.getroot() -1080 self.assertEquals(root.tag, 'test') -1081 self.assertEquals(len(root), 3) -1082 -1083 self.assertEquals(len(root[0]), 1) -1084 self.assertEquals(root[0][0].tag, 'match') -1085 self.assertEquals(root[0][0].text, 'dC') -1086 -1087 self.assertEquals(len(root[1]), 2) -1088 self.assertEquals(root[1][0].tag, 'match') -1089 self.assertEquals(root[1][0].text, 'dC') -1090 self.assertEquals(root[1][1].tag, 'match') -1091 self.assertEquals(root[1][1].text, 'dE') -1092 -1093 self.assertEquals(len(root[2]), 3) -1094 self.assertEquals(root[2][0].tag, 'match') -1095 self.assertEquals(root[2][0].text, 'dC') -1096 self.assertEquals(root[2][1].tag, 'match') -1097 self.assertEquals(root[2][1].text, 'dE') -1098 self.assertEquals(root[2][2].tag, 'match') -1099 self.assertEquals(root[2][2].text, 'De') -
1100 -
1102 xslt = etree.XSLT(etree.XML(_bytes("""\ -1103 <xsl:stylesheet version="1.0" -1104 xmlns:regexp="http://exslt.org/regular-expressions" -1105 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> -1106 <xsl:template match="/"> -1107 <test> -1108 <xsl:for-each select="regexp:match( -1109 '123abc567', '([0-9]+)([a-z]+)([0-9]+)' )"> -1110 <test1><xsl:value-of select="."/></test1> -1111 </xsl:for-each> -1112 </test> -1113 </xsl:template> -1114 </xsl:stylesheet> -1115 """))) -1116 result = xslt(etree.XML(_bytes('<a/>'))) -1117 root = result.getroot() -1118 self.assertEquals(root.tag, 'test') -1119 self.assertEquals(len(root), 4) -1120 -1121 self.assertEquals(root[0].text, "123abc567") -1122 self.assertEquals(root[1].text, "123") -1123 self.assertEquals(root[2].text, "abc") -1124 self.assertEquals(root[3].text, "567") -
1125 -
1126 - def test_exslt_regexp_match1(self): -
1127 # taken from http://www.exslt.org/regexp/functions/match/index.html -1128 xslt = etree.XSLT(etree.XML(_bytes("""\ -1129 <xsl:stylesheet version="1.0" -1130 xmlns:regexp="http://exslt.org/regular-expressions" -1131 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> -1132 <xsl:template match="/"> -1133 <test> -1134 <xsl:for-each select="regexp:match( -1135 'http://www.bayes.co.uk/xml/index.xml?/xml/utils/rechecker.xml', -1136 '(\w+):\/\/([^/:]+)(:\d*)?([^# ]*)')"> -1137 <test1><xsl:value-of select="."/></test1> -1138 </xsl:for-each> -1139 </test> -1140 </xsl:template> -1141 </xsl:stylesheet> -1142 """))) -1143 result = xslt(etree.XML(_bytes('<a/>'))) -1144 root = result.getroot() -1145 self.assertEquals(root.tag, 'test') -1146 self.assertEquals(len(root), 5) -1147 -1148 self.assertEquals( -1149 root[0].text, -1150 "http://www.bayes.co.uk/xml/index.xml?/xml/utils/rechecker.xml") -1151 self.assertEquals( -1152 root[1].text, -1153 "http") -1154 self.assertEquals( -1155 root[2].text, -1156 "www.bayes.co.uk") -1157 self.assertFalse(root[3].text) -1158 self.assertEquals( -1159 root[4].text, -1160 "/xml/index.xml?/xml/utils/rechecker.xml") -
1161 -
1162 - def test_exslt_regexp_match2(self): -
1163 # taken from http://www.exslt.org/regexp/functions/match/index.html -1164 xslt = etree.XSLT(self.parse("""\ -1165 <xsl:stylesheet version="1.0" -1166 xmlns:regexp="http://exslt.org/regular-expressions" -1167 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> -1168 <xsl:template match="/"> -1169 <test> -1170 <xsl:for-each select="regexp:match( -1171 'This is a test string', '(\w+)', 'g')"> -1172 <test1><xsl:value-of select="."/></test1> -1173 </xsl:for-each> -1174 </test> -1175 </xsl:template> -1176 </xsl:stylesheet> -1177 """)) -1178 result = xslt(etree.XML(_bytes('<a/>'))) -1179 root = result.getroot() -1180 self.assertEquals(root.tag, 'test') -1181 self.assertEquals(len(root), 5) -1182 -1183 self.assertEquals(root[0].text, "This") -1184 self.assertEquals(root[1].text, "is") -1185 self.assertEquals(root[2].text, "a") -1186 self.assertEquals(root[3].text, "test") -1187 self.assertEquals(root[4].text, "string") -
1188 -
1189 - def _test_exslt_regexp_match3(self): -
1190 # taken from http://www.exslt.org/regexp/functions/match/index.html -1191 # THIS IS NOT SUPPORTED! -1192 xslt = etree.XSLT(etree.XML(_bytes("""\ -1193 <xsl:stylesheet version="1.0" -1194 xmlns:regexp="http://exslt.org/regular-expressions" -1195 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> -1196 <xsl:template match="/"> -1197 <test> -1198 <xsl:for-each select="regexp:match( -1199 'This is a test string', '([a-z])+ ', 'g')"> -1200 <test1><xsl:value-of select="."/></test1> -1201 </xsl:for-each> -1202 </test> -1203 </xsl:template> -1204 </xsl:stylesheet> -1205 """))) -1206 result = xslt(etree.XML(_bytes('<a/>'))) -1207 root = result.getroot() -1208 self.assertEquals(root.tag, 'test') -1209 self.assertEquals(len(root), 4) -1210 -1211 self.assertEquals(root[0].text, "his") -1212 self.assertEquals(root[1].text, "is") -1213 self.assertEquals(root[2].text, "a") -1214 self.assertEquals(root[3].text, "test") -
1215 -
1216 - def _test_exslt_regexp_match4(self): -
1217 # taken from http://www.exslt.org/regexp/functions/match/index.html -1218 # THIS IS NOT SUPPORTED! -1219 xslt = etree.XSLT(etree.XML(_bytes("""\ -1220 <xsl:stylesheet version="1.0" -1221 xmlns:regexp="http://exslt.org/regular-expressions" -1222 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> -1223 <xsl:template match="/"> -1224 <test> -1225 <xsl:for-each select="regexp:match( -1226 'This is a test string', '([a-z])+ ', 'gi')"> -1227 <test1><xsl:value-of select="."/></test1> -1228 </xsl:for-each> -1229 </test> -1230 </xsl:template> -1231 </xsl:stylesheet> -1232 """))) -1233 result = xslt(etree.XML(_bytes('<a/>'))) -1234 root = result.getroot() -1235 self.assertEquals(root.tag, 'test') -1236 self.assertEquals(len(root), 4) -1237 -1238 self.assertEquals(root[0].text, "This") -1239 self.assertEquals(root[1].text, "is") -1240 self.assertEquals(root[2].text, "a") -1241 self.assertEquals(root[3].text, "test") -
1242 -1243 -
1244 -class ETreeXSLTExtFuncTestCase(HelperTestCase): -
1245 """Tests for XPath extension functions in XSLT.""" -1246 -
1247 - def test_extensions1(self): -
1248 tree = self.parse('<a><b>B</b></a>') -1249 style = self.parse('''\ -1250 <xsl:stylesheet version="1.0" -1251 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" -1252 xmlns:myns="testns" -1253 exclude-result-prefixes="myns"> -1254 <xsl:template match="a"><A><xsl:value-of select="myns:mytext(b)"/></A></xsl:template> -1255 </xsl:stylesheet>''') -1256 -1257 def mytext(ctxt, values): -1258 return 'X' * len(values) -
1259 -1260 result = tree.xslt(style, {('testns', 'mytext') : mytext}) -1261 self.assertEquals(self._rootstring(result), -1262 _bytes('<A>X</A>')) -
1263 -
1264 - def test_extensions2(self): -
1265 tree = self.parse('<a><b>B</b></a>') -1266 style = self.parse('''\ -1267 <xsl:stylesheet version="1.0" -1268 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" -1269 xmlns:myns="testns" -1270 exclude-result-prefixes="myns"> -1271 <xsl:template match="a"><A><xsl:value-of select="myns:mytext(b)"/></A></xsl:template> -1272 </xsl:stylesheet>''') -1273 -1274 def mytext(ctxt, values): -1275 return 'X' * len(values) -
1276 -1277 namespace = etree.FunctionNamespace('testns') -1278 namespace['mytext'] = mytext -1279 -1280 result = tree.xslt(style) -1281 self.assertEquals(self._rootstring(result), -1282 _bytes('<A>X</A>')) -1283 -
1285 tree = self.parse('<a><b>B</b><b/></a>') -1286 style = self.parse('''\ -1287 <xsl:stylesheet version="1.0" -1288 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" -1289 xmlns:myns="testns" -1290 exclude-result-prefixes="myns"> -1291 <xsl:template match="a"> -1292 <xsl:variable name="content"> -1293 <xsl:apply-templates/> -1294 </xsl:variable> -1295 <A><xsl:value-of select="myns:mytext($content)"/></A> -1296 </xsl:template> -1297 <xsl:template match="b"><xsl:copy>BBB</xsl:copy></xsl:template> -1298 </xsl:stylesheet>''') -1299 -1300 def mytext(ctxt, values): -1301 for value in values: -1302 self.assert_(hasattr(value, 'tag'), -1303 "%s is not an Element" % type(value)) -1304 self.assertEquals(value.tag, 'b') -1305 self.assertEquals(value.text, 'BBB') -1306 return 'X'.join([el.tag for el in values]) -
1307 -1308 namespace = etree.FunctionNamespace('testns') -1309 namespace['mytext'] = mytext -1310 -1311 result = tree.xslt(style) -1312 self.assertEquals(self._rootstring(result), -1313 _bytes('<A>bXb</A>')) -1314 -1315 -
1316 -class ETreeXSLTExtElementTestCase(HelperTestCase): -
1317 """Tests for extension elements in XSLT.""" -1318 -
1319 - def test_extension_element(self): -
1320 tree = self.parse('<a><b>B</b></a>') -1321 style = self.parse('''\ -1322 <xsl:stylesheet version="1.0" -1323 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" -1324 xmlns:myns="testns" -1325 extension-element-prefixes="myns" -1326 exclude-result-prefixes="myns"> -1327 <xsl:template match="a"> -1328 <A><myns:myext>b</myns:myext></A> -1329 </xsl:template> -1330 </xsl:stylesheet>''') -1331 -1332 class MyExt(etree.XSLTExtension): -1333 def execute(self, context, self_node, input_node, output_parent): -1334 child = etree.Element(self_node.text) -1335 child.text = 'X' -1336 output_parent.append(child) -
1337 -1338 extensions = { ('testns', 'myext') : MyExt() } -1339 -1340 result = tree.xslt(style, extensions=extensions) -1341 self.assertEquals(self._rootstring(result), -1342 _bytes('<A><b>X</b></A>')) -1343 -
1345 tree = self.parse('<a><b>B</b></a>') -1346 style = self.parse('''\ -1347 <xsl:stylesheet version="1.0" -1348 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" -1349 xmlns:myns="testns" -1350 extension-element-prefixes="myns" -1351 exclude-result-prefixes="myns"> -1352 <xsl:template match="/"> -1353 <A><myns:myext>b</myns:myext></A> -1354 </xsl:template> -1355 </xsl:stylesheet>''') -1356 -1357 tags = [] -1358 -1359 class MyExt(etree.XSLTExtension): -1360 def execute(self, context, self_node, input_node, output_parent): -1361 tags.append(input_node.tag) -
1362 -1363 extensions = { ('testns', 'myext') : MyExt() } -1364 -1365 result = tree.xslt(style, extensions=extensions) -1366 self.assertEquals(tags, ['a']) -1367 -
1369 tree = self.parse('<?test toast?><a><!--a comment--><?another pi?></a>') -1370 style = self.parse('''\ -1371 <xsl:stylesheet version="1.0" -1372 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" -1373 xmlns:myns="testns" -1374 extension-element-prefixes="myns" -1375 exclude-result-prefixes="myns"> -1376 <xsl:template match="/"> -1377 <ROOT><xsl:apply-templates /></ROOT> -1378 </xsl:template> -1379 <xsl:template match="comment()"> -1380 <A><myns:myext>b</myns:myext></A> -1381 </xsl:template> -1382 <xsl:template match="processing-instruction()"> -1383 <A><myns:myext>b</myns:myext></A> -1384 </xsl:template> -1385 </xsl:stylesheet>''') -1386 -1387 text = [] -1388 -1389 class MyExt(etree.XSLTExtension): -1390 def execute(self, context, self_node, input_node, output_parent): -1391 text.append(input_node.text) -
1392 -1393 extensions = { ('testns', 'myext') : MyExt() } -1394 -1395 result = tree.xslt(style, extensions=extensions) -1396 self.assertEquals(text, ['toast', 'a comment', 'pi']) -1397 -
1399 # currently not supported -1400 tree = self.parse('<a test="A"><b attr="B"/></a>') -1401 style = self.parse('''\ -1402 <xsl:stylesheet version="1.0" -1403 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" -1404 xmlns:myns="testns" -1405 extension-element-prefixes="myns" -1406 exclude-result-prefixes="myns"> -1407 <xsl:template match="@test"> -1408 <A><myns:myext>b</myns:myext></A> -1409 </xsl:template> -1410 <xsl:template match="@attr"> -1411 <A><myns:myext>b</myns:myext></A> -1412 </xsl:template> -1413 </xsl:stylesheet>''') -1414 -1415 text = [] -1416 -1417 class MyExt(etree.XSLTExtension): -1418 def execute(self, context, self_node, attr_value, output_parent): -1419 text.append(attr_value) -
1420 -1421 extensions = { ('testns', 'myext') : MyExt() } -1422 -1423 result = tree.xslt(style, extensions=extensions) -1424 self.assertEquals(text, ['A', 'B']) -1425 -
1427 tree = self.parse('<a><b>B</b></a>') -1428 style = self.parse('''\ -1429 <xsl:stylesheet version="1.0" -1430 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" -1431 xmlns:myns="testns" -1432 extension-element-prefixes="myns"> -1433 <xsl:template match="a"> -1434 <A><myns:myext><x>X</x><y>Y</y><z/></myns:myext></A> -1435 </xsl:template> -1436 </xsl:stylesheet>''') -1437 -1438 class MyExt(etree.XSLTExtension): -1439 def execute(self, context, self_node, input_node, output_parent): -1440 output_parent.extend(list(self_node)[1:]) -
1441 -1442 extensions = { ('testns', 'myext') : MyExt() } -1443 -1444 result = tree.xslt(style, extensions=extensions) -1445 self.assertEquals(self._rootstring(result), -1446 _bytes('<A><y>Y</y><z/></A>')) -1447 -
1449 tree = self.parse('<a><b>B</b></a>') -1450 style = self.parse('''\ -1451 <xsl:stylesheet version="1.0" -1452 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" -1453 xmlns:myns="testns" -1454 extension-element-prefixes="myns"> -1455 <xsl:template match="a"> -1456 <A><myns:myext><x>X</x><y>Y</y><z/></myns:myext></A> -1457 </xsl:template> -1458 <xsl:template match="x" /> -1459 <xsl:template match="z">XYZ</xsl:template> -1460 </xsl:stylesheet>''') -1461 -1462 class MyExt(etree.XSLTExtension): -1463 def execute(self, context, self_node, input_node, output_parent): -1464 for child in self_node: -1465 for result in self.apply_templates(context, child): -1466 if isinstance(result, basestring): -1467 el = etree.Element("T") -1468 el.text = result -1469 else: -1470 el = result -1471 output_parent.append(el) -
1472 -1473 extensions = { ('testns', 'myext') : MyExt() } -1474 -1475 result = tree.xslt(style, extensions=extensions) -1476 self.assertEquals(self._rootstring(result), -1477 _bytes('<A><T>Y</T><T>XYZ</T></A>')) -1478 -
1480 tree = self.parse('<a><b>B</b></a>') -1481 style = self.parse('''\ -1482 <xsl:stylesheet version="1.0" -1483 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" -1484 xmlns:myns="testns" -1485 extension-element-prefixes="myns"> -1486 <xsl:template match="a"> -1487 <A><myns:myext><x>X</x><y>Y</y><z/></myns:myext></A> -1488 </xsl:template> -1489 <xsl:template match="x" /> -1490 <xsl:template match="z">XYZ</xsl:template> -1491 </xsl:stylesheet>''') -1492 -1493 class MyExt(etree.XSLTExtension): -1494 def execute(self, context, self_node, input_node, output_parent): -1495 for child in self_node: -1496 self.apply_templates(context, child, output_parent) -
1497 -1498 extensions = { ('testns', 'myext') : MyExt() } -1499 -1500 result = tree.xslt(style, extensions=extensions) -1501 self.assertEquals(self._rootstring(result), -1502 _bytes('<A>YXYZ</A>')) -1503 -
1505 tree = self.parse('<a><b>B</b></a>') -1506 style = self.parse('''\ -1507 <xsl:stylesheet version="1.0" -1508 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" -1509 xmlns:myns="testns" -1510 extension-element-prefixes="myns"> -1511 <xsl:template match="a"> -1512 <myns:myext><x>X</x><y>Y</y><z/></myns:myext> -1513 </xsl:template> -1514 <xsl:template match="x"><xsl:processing-instruction name="test">TEST</xsl:processing-instruction></xsl:template> -1515 <xsl:template match="y"><Y>XYZ</Y></xsl:template> -1516 <xsl:template match="z"><xsl:comment>TEST</xsl:comment></xsl:template> -1517 </xsl:stylesheet>''') -1518 -1519 class MyExt(etree.XSLTExtension): -1520 def execute(self, context, self_node, input_node, output_parent): -1521 for child in self_node: -1522 self.apply_templates(context, child, output_parent) -
1523 -1524 extensions = { ('testns', 'myext') : MyExt() } -1525 -1526 result = tree.xslt(style, extensions=extensions) -1527 self.assertEquals(etree.tostring(result), -1528 _bytes('<?test TEST?><Y>XYZ</Y><!--TEST-->')) -1529 -
1531 tree = self.parse('<a><b>E</b></a>') -1532 style = self.parse('''\ -1533 <xsl:stylesheet version="1.0" -1534 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" -1535 xmlns:myns="testns" -1536 extension-element-prefixes="myns"> -1537 <xsl:template match="a"> -1538 <xsl:variable name="testvar">yo</xsl:variable> -1539 <A> -1540 <myns:myext> -1541 <xsl:attribute name="attr"> -1542 <xsl:value-of select="$testvar" /> -1543 </xsl:attribute> -1544 <B> -1545 <xsl:choose> -1546 <xsl:when test="1 = 2"><C/></xsl:when> -1547 <xsl:otherwise><D><xsl:value-of select="b/text()" /></D></xsl:otherwise> -1548 </xsl:choose> -1549 </B> -1550 </myns:myext> -1551 </A> -1552 </xsl:template> -1553 </xsl:stylesheet>''') -1554 -1555 class MyExt(etree.XSLTExtension): -1556 def execute(self, context, self_node, input_node, output_parent): -1557 el = etree.Element('MY') -1558 self.process_children(context, el) -1559 output_parent.append(el) -
1560 -1561 extensions = { ('testns', 'myext') : MyExt() } -1562 -1563 result = tree.xslt(style, extensions=extensions) -1564 self.assertEquals(self._rootstring(result), -1565 _bytes('<A><MYattr="yo"><B><D>E</D></B></MY></A>')) -1566 -
1568 tree = self.parse('<a/>') -1569 style = self.parse('''\ -1570 <xsl:stylesheet version="1.0" -1571 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" -1572 xmlns:myns="testns" -1573 extension-element-prefixes="myns"> -1574 <xsl:template match="a"> -1575 <myns:myext> -1576 <A/> -1577 </myns:myext> -1578 </xsl:template> -1579 </xsl:stylesheet>''') -1580 -1581 class MyExt(etree.XSLTExtension): -1582 def execute(self, context, self_node, input_node, output_parent): -1583 self.process_children(context, output_parent) -
1584 -1585 extensions = { ('testns', 'myext') : MyExt() } -1586 -1587 result = tree.xslt(style, extensions=extensions) -1588 self.assertEquals(self._rootstring(result), -1589 _bytes('<A/>')) -1590 -
1592 tree = self.parse('<a/>') -1593 style = self.parse('''\ -1594 <xsl:stylesheet version="1.0" -1595 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" -1596 xmlns:myns="testns" -1597 extension-element-prefixes="myns"> -1598 <xsl:template match="a"> -1599 <myns:myext> -1600 <A/> -1601 </myns:myext> -1602 </xsl:template> -1603 </xsl:stylesheet>''') -1604 -1605 class MyExt(etree.XSLTExtension): -1606 def execute(self, context, self_node, input_node, output_parent): -1607 self.process_children(context, self_node) -
1608 -1609 extensions = { ('testns', 'myext') : MyExt() } -1610 -1611 self.assertRaises(TypeError, tree.xslt, style, extensions=extensions) -1612 -
1614 tree = self.parse('<a/>') -1615 style = self.parse('''\ -1616 <xsl:stylesheet version="1.0" -1617 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" -1618 xmlns:myns="testns" -1619 extension-element-prefixes="myns"> -1620 <xsl:template match="a"> -1621 <myns:myext> -1622 <A><myns:myext><B/></myns:myext></A> -1623 </myns:myext> -1624 </xsl:template> -1625 </xsl:stylesheet>''') -1626 -1627 class MyExt(etree.XSLTExtension): -1628 callback_call_counter = 0 -1629 def execute(self, context, self_node, input_node, output_parent): -1630 self.callback_call_counter += 1 -1631 el = etree.Element('MY', n=str(self.callback_call_counter)) -1632 self.process_children(context, el) -1633 output_parent.append(el) -
1634 -1635 extensions = { ('testns', 'myext') : MyExt() } -1636 -1637 result = tree.xslt(style, extensions=extensions) -1638 self.assertEquals(self._rootstring(result), -1639 _bytes('<MYn="1"><A><MYn="2"><B/></MY></A></MY>')) -1640 -
1642 tree = self.parse('<a><b>B</b></a>') -1643 style = self.parse('''\ -1644 <xsl:stylesheet version="1.0" -1645 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" -1646 xmlns:myns="testns" -1647 extension-element-prefixes="myns" -1648 exclude-result-prefixes="myns"> -1649 <xsl:template match="a"> -1650 <A><myns:myext>b</myns:myext></A> -1651 </xsl:template> -1652 </xsl:stylesheet>''') -1653 -1654 class MyError(Exception): -1655 pass -
1656 -1657 class MyExt(etree.XSLTExtension): -1658 def execute(self, context, self_node, input_node, output_parent): -1659 raise MyError("expected!") -1660 -1661 extensions = { ('testns', 'myext') : MyExt() } -1662 self.assertRaises(MyError, tree.xslt, style, extensions=extensions) -1663 -1664 -
1665 -class Py3XSLTTestCase(HelperTestCase): -
1666 """XSLT tests for etree under Python 3""" -1667 -1668 pytestmark = skipif('sys.version_info < (3,0)') -1669 -
1670 - def test_xslt_result_bytes(self): -
1671 tree = self.parse('<a><b>B</b><c>C</c></a>') -1672 style = self.parse('''\ -1673 <xsl:stylesheet version="1.0" -1674 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> -1675 <xsl:template match="*" /> -1676 <xsl:template match="/"> -1677 <foo><xsl:value-of select="/a/b/text()" /></foo> -1678 </xsl:template> -1679 </xsl:stylesheet>''') -1680 -1681 st = etree.XSLT(style) -1682 res = st(tree) -1683 self.assertEquals(_bytes('''\ -1684 <?xml version="1.0"?> -1685 <foo>B</foo> -1686 '''), -1687 bytes(res)) -
1688 -
1689 - def test_xslt_result_bytearray(self): -
1690 tree = self.parse('<a><b>B</b><c>C</c></a>') -1691 style = self.parse('''\ -1692 <xsl:stylesheet version="1.0" -1693 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> -1694 <xsl:template match="*" /> -1695 <xsl:template match="/"> -1696 <foo><xsl:value-of select="/a/b/text()" /></foo> -1697 </xsl:template> -1698 </xsl:stylesheet>''') -1699 -1700 st = etree.XSLT(style) -1701 res = st(tree) -1702 self.assertEquals(_bytes('''\ -1703 <?xml version="1.0"?> -1704 <foo>B</foo> -1705 '''), -1706 bytearray(res)) -
1707 -
1708 - def test_xslt_result_memoryview(self): -
1709 tree = self.parse('<a><b>B</b><c>C</c></a>') -1710 style = self.parse('''\ -1711 <xsl:stylesheet version="1.0" -1712 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> -1713 <xsl:template match="*" /> -1714 <xsl:template match="/"> -1715 <foo><xsl:value-of select="/a/b/text()" /></foo> -1716 </xsl:template> -1717 </xsl:stylesheet>''') -1718 -1719 st = etree.XSLT(style) -1720 res = st(tree) -1721 self.assertEquals(_bytes('''\ -1722 <?xml version="1.0"?> -1723 <foo>B</foo> -1724 '''), -1725 bytes(memoryview(res))) -
1726 -1727 -
1728 -def test_suite(): -
1729 suite = unittest.TestSuite() -1730 suite.addTests([unittest.makeSuite(ETreeXSLTTestCase)]) -1731 suite.addTests([unittest.makeSuite(ETreeEXSLTTestCase)]) -1732 suite.addTests([unittest.makeSuite(ETreeXSLTExtFuncTestCase)]) -1733 suite.addTests([unittest.makeSuite(ETreeXSLTExtElementTestCase)]) -1734 if is_python3: -1735 suite.addTests([unittest.makeSuite(Py3XSLTTestCase)]) -1736 suite.addTests( -1737 [make_doctest('../../../doc/extensions.txt')]) -1738 suite.addTests( -1739 [make_doctest('../../../doc/xpathxslt.txt')]) -1740 return suite -
1741 -1742 if __name__ == '__main__': -1743 print('to test use test.py %s' % __file__) -1744 -
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.test_xslt.ETreeEXSLTTestCase-class.html b/doc/html/api/lxml.tests.test_xslt.ETreeEXSLTTestCase-class.html deleted file mode 100644 index ca85222..0000000 --- a/doc/html/api/lxml.tests.test_xslt.ETreeEXSLTTestCase-class.html +++ /dev/null @@ -1,524 +0,0 @@ - - - - - lxml.tests.test_xslt.ETreeEXSLTTestCase - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module test_xslt :: - Class ETreeEXSLTTestCase - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class ETreeEXSLTTestCase

source code

-
-               object --+        
-                        |        
-   unittest.case.TestCase --+    
-                            |    
-common_imports.HelperTestCase --+
-                                |
-                               ETreeEXSLTTestCase
-
- -
-EXSLT tests - - - - - - - - - - -
- - - - - -
Nested Classes[hide private]
-
-

Inherited from unittest.case.TestCase: - failureException -

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
test_exslt_str(self) - source code - -
- -
-   - - - - - - -
test_exslt_str_attribute_replace(self) - source code - -
- -
-   - - - - - - -
test_exslt_math(self) - source code - -
- -
-   - - - - - - -
test_exslt_regexp_test(self) - source code - -
- -
-   - - - - - - -
test_exslt_regexp_replace(self) - source code - -
- -
-   - - - - - - -
test_exslt_regexp_match(self) - source code - -
- -
-   - - - - - - -
test_exslt_regexp_match_groups(self) - source code - -
- -
-   - - - - - - -
test_exslt_regexp_match1(self) - source code - -
- -
-   - - - - - - -
test_exslt_regexp_match2(self) - source code - -
- -
-   - - - - - - -
_test_exslt_regexp_match3(self) - source code - -
- -
-   - - - - - - -
_test_exslt_regexp_match4(self) - source code - -
- -
-

Inherited from common_imports.HelperTestCase: - parse, - tearDown -

-

Inherited from common_imports.HelperTestCase (private): - _rootstring -

-

Inherited from unittest.case.TestCase: - __call__, - __eq__, - __hash__, - __init__, - __ne__, - __repr__, - __str__, - addCleanup, - addTypeEqualityFunc, - assertAlmostEqual, - assertAlmostEquals, - assertDictContainsSubset, - assertDictEqual, - assertEqual, - assertEquals, - assertGreater, - assertGreaterEqual, - assertIn, - assertIs, - assertIsInstance, - assertIsNone, - assertIsNot, - assertIsNotNone, - assertItemsEqual, - assertLess, - assertLessEqual, - assertListEqual, - assertMultiLineEqual, - assertNotAlmostEqual, - assertNotAlmostEquals, - assertNotEqual, - assertNotEquals, - assertNotIn, - assertNotIsInstance, - assertNotRegexpMatches, - assertRaises, - assertRaisesRegexp, - assertRegexpMatches, - assertSequenceEqual, - assertSetEqual, - assertTrue, - assertTupleEqual, - assert_, - countTestCases, - debug, - defaultTestResult, - doCleanups, - fail, - failIf, - failIfAlmostEqual, - failIfEqual, - failUnless, - failUnlessAlmostEqual, - failUnlessEqual, - failUnlessRaises, - id, - run, - setUp, - shortDescription, - skipTest -

-

Inherited from unittest.case.TestCase (private): - _addSkip, - _baseAssertEqual, - _deprecate, - _formatMessage, - _getAssertEqualityFunc, - _truncateMessage -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __new__, - __reduce__, - __reduce_ex__, - __setattr__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Class Methods[hide private]
-
-

Inherited from unittest.case.TestCase: - setUpClass, - tearDownClass -

-
- - - - - - - - - -
- - - - - -
Class Variables[hide private]
-
-

Inherited from common_imports.HelperTestCase: - assertFalse -

-

Inherited from unittest.case.TestCase: - longMessage, - maxDiff -

-

Inherited from unittest.case.TestCase (private): - _classSetupFailed, - _diffThreshold -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.test_xslt.ETreeXSLTExtElementTestCase-class.html b/doc/html/api/lxml.tests.test_xslt.ETreeXSLTExtElementTestCase-class.html deleted file mode 100644 index d4255c4..0000000 --- a/doc/html/api/lxml.tests.test_xslt.ETreeXSLTExtElementTestCase-class.html +++ /dev/null @@ -1,556 +0,0 @@ - - - - - lxml.tests.test_xslt.ETreeXSLTExtElementTestCase - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module test_xslt :: - Class ETreeXSLTExtElementTestCase - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class ETreeXSLTExtElementTestCase

source code

-
-               object --+        
-                        |        
-   unittest.case.TestCase --+    
-                            |    
-common_imports.HelperTestCase --+
-                                |
-                               ETreeXSLTExtElementTestCase
-
- -
-Tests for extension elements in XSLT. - - - - - - - - - - -
- - - - - -
Nested Classes[hide private]
-
-

Inherited from unittest.case.TestCase: - failureException -

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
test_extension_element(self) - source code - -
- -
-   - - - - - - -
test_extension_element_doc_context(self) - source code - -
- -
-   - - - - - - -
test_extension_element_comment_pi_context(self) - source code - -
- -
-   - - - - - - -
_test_extension_element_attribute_context(self) - source code - -
- -
-   - - - - - - -
test_extension_element_content(self) - source code - -
- -
-   - - - - - - -
test_extension_element_apply_templates(self) - source code - -
- -
-   - - - - - - -
test_extension_element_apply_templates_target_node(self) - source code - -
- -
-   - - - - - - -
test_extension_element_apply_templates_target_node_doc(self) - source code - -
- -
-   - - - - - - -
test_extension_element_process_children(self) - source code - -
- -
-   - - - - - - -
test_extension_element_process_children_to_append_only(self) - source code - -
- -
-   - - - - - - -
test_extension_element_process_children_to_read_only_raise(self) - source code - -
- -
-   - - - - - - -
test_extension_element_process_children_with_subextension_element(self) - source code - -
- -
-   - - - - - - -
test_extension_element_raise(self) - source code - -
- -
-

Inherited from common_imports.HelperTestCase: - parse, - tearDown -

-

Inherited from common_imports.HelperTestCase (private): - _rootstring -

-

Inherited from unittest.case.TestCase: - __call__, - __eq__, - __hash__, - __init__, - __ne__, - __repr__, - __str__, - addCleanup, - addTypeEqualityFunc, - assertAlmostEqual, - assertAlmostEquals, - assertDictContainsSubset, - assertDictEqual, - assertEqual, - assertEquals, - assertGreater, - assertGreaterEqual, - assertIn, - assertIs, - assertIsInstance, - assertIsNone, - assertIsNot, - assertIsNotNone, - assertItemsEqual, - assertLess, - assertLessEqual, - assertListEqual, - assertMultiLineEqual, - assertNotAlmostEqual, - assertNotAlmostEquals, - assertNotEqual, - assertNotEquals, - assertNotIn, - assertNotIsInstance, - assertNotRegexpMatches, - assertRaises, - assertRaisesRegexp, - assertRegexpMatches, - assertSequenceEqual, - assertSetEqual, - assertTrue, - assertTupleEqual, - assert_, - countTestCases, - debug, - defaultTestResult, - doCleanups, - fail, - failIf, - failIfAlmostEqual, - failIfEqual, - failUnless, - failUnlessAlmostEqual, - failUnlessEqual, - failUnlessRaises, - id, - run, - setUp, - shortDescription, - skipTest -

-

Inherited from unittest.case.TestCase (private): - _addSkip, - _baseAssertEqual, - _deprecate, - _formatMessage, - _getAssertEqualityFunc, - _truncateMessage -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __new__, - __reduce__, - __reduce_ex__, - __setattr__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Class Methods[hide private]
-
-

Inherited from unittest.case.TestCase: - setUpClass, - tearDownClass -

-
- - - - - - - - - -
- - - - - -
Class Variables[hide private]
-
-

Inherited from common_imports.HelperTestCase: - assertFalse -

-

Inherited from unittest.case.TestCase: - longMessage, - maxDiff -

-

Inherited from unittest.case.TestCase (private): - _classSetupFailed, - _diffThreshold -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.test_xslt.ETreeXSLTExtFuncTestCase-class.html b/doc/html/api/lxml.tests.test_xslt.ETreeXSLTExtFuncTestCase-class.html deleted file mode 100644 index 57ce0dc..0000000 --- a/doc/html/api/lxml.tests.test_xslt.ETreeXSLTExtFuncTestCase-class.html +++ /dev/null @@ -1,396 +0,0 @@ - - - - - lxml.tests.test_xslt.ETreeXSLTExtFuncTestCase - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module test_xslt :: - Class ETreeXSLTExtFuncTestCase - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class ETreeXSLTExtFuncTestCase

source code

-
-               object --+        
-                        |        
-   unittest.case.TestCase --+    
-                            |    
-common_imports.HelperTestCase --+
-                                |
-                               ETreeXSLTExtFuncTestCase
-
- -
-Tests for XPath extension functions in XSLT. - - - - - - - - - - -
- - - - - -
Nested Classes[hide private]
-
-

Inherited from unittest.case.TestCase: - failureException -

-
- - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
test_extensions1(self) - source code - -
- -
-   - - - - - - -
test_extensions2(self) - source code - -
- -
-   - - - - - - -
test_variable_result_tree_fragment(self) - source code - -
- -
-

Inherited from common_imports.HelperTestCase: - parse, - tearDown -

-

Inherited from common_imports.HelperTestCase (private): - _rootstring -

-

Inherited from unittest.case.TestCase: - __call__, - __eq__, - __hash__, - __init__, - __ne__, - __repr__, - __str__, - addCleanup, - addTypeEqualityFunc, - assertAlmostEqual, - assertAlmostEquals, - assertDictContainsSubset, - assertDictEqual, - assertEqual, - assertEquals, - assertGreater, - assertGreaterEqual, - assertIn, - assertIs, - assertIsInstance, - assertIsNone, - assertIsNot, - assertIsNotNone, - assertItemsEqual, - assertLess, - assertLessEqual, - assertListEqual, - assertMultiLineEqual, - assertNotAlmostEqual, - assertNotAlmostEquals, - assertNotEqual, - assertNotEquals, - assertNotIn, - assertNotIsInstance, - assertNotRegexpMatches, - assertRaises, - assertRaisesRegexp, - assertRegexpMatches, - assertSequenceEqual, - assertSetEqual, - assertTrue, - assertTupleEqual, - assert_, - countTestCases, - debug, - defaultTestResult, - doCleanups, - fail, - failIf, - failIfAlmostEqual, - failIfEqual, - failUnless, - failUnlessAlmostEqual, - failUnlessEqual, - failUnlessRaises, - id, - run, - setUp, - shortDescription, - skipTest -

-

Inherited from unittest.case.TestCase (private): - _addSkip, - _baseAssertEqual, - _deprecate, - _formatMessage, - _getAssertEqualityFunc, - _truncateMessage -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __new__, - __reduce__, - __reduce_ex__, - __setattr__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Class Methods[hide private]
-
-

Inherited from unittest.case.TestCase: - setUpClass, - tearDownClass -

-
- - - - - - - - - -
- - - - - -
Class Variables[hide private]
-
-

Inherited from common_imports.HelperTestCase: - assertFalse -

-

Inherited from unittest.case.TestCase: - longMessage, - maxDiff -

-

Inherited from unittest.case.TestCase (private): - _classSetupFailed, - _diffThreshold -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.test_xslt.ETreeXSLTTestCase-class.html b/doc/html/api/lxml.tests.test_xslt.ETreeXSLTTestCase-class.html deleted file mode 100644 index f99152d..0000000 --- a/doc/html/api/lxml.tests.test_xslt.ETreeXSLTTestCase-class.html +++ /dev/null @@ -1,1132 +0,0 @@ - - - - - lxml.tests.test_xslt.ETreeXSLTTestCase - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module test_xslt :: - Class ETreeXSLTTestCase - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class ETreeXSLTTestCase

source code

-
-               object --+        
-                        |        
-   unittest.case.TestCase --+    
-                            |    
-common_imports.HelperTestCase --+
-                                |
-                               ETreeXSLTTestCase
-
- -
-XSLT tests etree - - - - - - - - - - -
- - - - - -
Nested Classes[hide private]
-
-

Inherited from unittest.case.TestCase: - failureException -

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
test_xslt(self) - source code - -
- -
-   - - - - - - -
test_xslt_elementtree_error(self) - source code - -
- -
-   - - - - - - -
test_xslt_input_none(self) - source code - -
- -
-   - - - - - - -
test_xslt_invalid_stylesheet(self) - source code - -
- -
-   - - - - - - -
test_xslt_copy(self) - source code - -
- -
-   - - - - - - -
test_xslt_utf8(self) - source code - -
- -
-   - - - - - - -
test_xslt_encoding(self) - source code - -
- -
-   - - - - - - -
test_xslt_encoding_override(self) - source code - -
- -
-   - - - - - - -
test_xslt_unicode(self) - source code - -
- -
-   - - - - - - -
test_xslt_input(self) - source code - -
- -
-   - - - - - - -
test_xslt_input_partial_doc(self) - source code - -
- -
-   - - - - - - -
test_xslt_broken(self) - source code - -
- -
-   - - - - - - -
test_xslt_parameters(self) - source code - -
- -
-   - - - - - - -
test_xslt_string_parameters(self) - source code - -
- -
-   - - - - - - -
test_xslt_parameter_invalid(self) - source code - -
- -
-   - - - - - - -
test_xslt_parameter_missing(self) - source code - -
- -
-   - - - - - - -
test_xslt_multiple_parameters(self) - source code - -
- -
-   - - - - - - -
test_xslt_parameter_xpath(self) - source code - -
- -
-   - - - - - - -
test_xslt_parameter_xpath_object(self) - source code - -
- -
-   - - - - - - -
test_xslt_default_parameters(self) - source code - -
- -
-   - - - - - - -
test_xslt_html_output(self) - source code - -
- -
-   - - - - - - -
test_xslt_include(self) - source code - -
- -
-   - - - - - - -
test_xslt_include_from_filelike(self) - source code - -
- -
-   - - - - - - -
test_xslt_multiple_transforms(self) - source code - -
- -
-   - - - - - - -
test_xslt_repeat_transform(self) - source code - -
- -
-   - - - - - - -
test_xslt_empty(self) - source code - -
- -
-   - - - - - - -
test_xslt_message(self) - source code - -
- -
-   - - - - - - -
test_xslt_message_terminate(self) - source code - -
- -
-   - - - - - - -
test_xslt_shortcut(self) - source code - -
- -
-   - - - - - - -
test_multiple_elementrees(self) - source code - -
- -
-   - - - - - - -
test_xslt_document_XML(self) - source code - -
- -
-   - - - - - - -
test_xslt_document_parse(self) - source code - -
- -
-   - - - - - - -
test_xslt_document_elementtree(self) - source code - -
- -
-   - - - - - - -
test_xslt_document_error(self) - source code - -
- -
-   - - - - - - -
test_xslt_document_XML_resolver(self) - source code - -
- -
-   - - - - - - -
test_xslt_resolver_url_building(self) - source code - -
- -
-   - - - - - - -
test_xslt_document_parse_allow(self) - source code - -
- -
-   - - - - - - -
test_xslt_document_parse_deny(self) - source code - -
- -
-   - - - - - - -
test_xslt_document_parse_deny_all(self) - source code - -
- -
-   - - - - - - -
test_xslt_move_result(self) - source code - -
- -
-   - - - - - - -
test_xslt_pi(self) - source code - -
- -
-   - - - - - - -
test_xslt_pi_embedded_xmlid(self) - source code - -
- -
-   - - - - - - -
test_xslt_pi_embedded_id(self) - source code - -
- -
-   - - - - - - -
test_xslt_pi_get(self) - source code - -
- -
-   - - - - - - -
test_xslt_pi_get_all(self) - source code - -
- -
-   - - - - - - -
test_xslt_pi_get_all_reversed(self) - source code - -
- -
-   - - - - - - -
test_xslt_pi_get_unknown(self) - source code - -
- -
-   - - - - - - -
test_xslt_pi_set_replace(self) - source code - -
- -
-   - - - - - - -
test_xslt_pi_set_new(self) - source code - -
- -
-

Inherited from common_imports.HelperTestCase: - parse, - tearDown -

-

Inherited from common_imports.HelperTestCase (private): - _rootstring -

-

Inherited from unittest.case.TestCase: - __call__, - __eq__, - __hash__, - __init__, - __ne__, - __repr__, - __str__, - addCleanup, - addTypeEqualityFunc, - assertAlmostEqual, - assertAlmostEquals, - assertDictContainsSubset, - assertDictEqual, - assertEqual, - assertEquals, - assertGreater, - assertGreaterEqual, - assertIn, - assertIs, - assertIsInstance, - assertIsNone, - assertIsNot, - assertIsNotNone, - assertItemsEqual, - assertLess, - assertLessEqual, - assertListEqual, - assertMultiLineEqual, - assertNotAlmostEqual, - assertNotAlmostEquals, - assertNotEqual, - assertNotEquals, - assertNotIn, - assertNotIsInstance, - assertNotRegexpMatches, - assertRaises, - assertRaisesRegexp, - assertRegexpMatches, - assertSequenceEqual, - assertSetEqual, - assertTrue, - assertTupleEqual, - assert_, - countTestCases, - debug, - defaultTestResult, - doCleanups, - fail, - failIf, - failIfAlmostEqual, - failIfEqual, - failUnless, - failUnlessAlmostEqual, - failUnlessEqual, - failUnlessRaises, - id, - run, - setUp, - shortDescription, - skipTest -

-

Inherited from unittest.case.TestCase (private): - _addSkip, - _baseAssertEqual, - _deprecate, - _formatMessage, - _getAssertEqualityFunc, - _truncateMessage -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __new__, - __reduce__, - __reduce_ex__, - __setattr__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Class Methods[hide private]
-
-

Inherited from unittest.case.TestCase: - setUpClass, - tearDownClass -

-
- - - - - - - - - -
- - - - - -
Class Variables[hide private]
-
-

Inherited from common_imports.HelperTestCase: - assertFalse -

-

Inherited from unittest.case.TestCase: - longMessage, - maxDiff -

-

Inherited from unittest.case.TestCase (private): - _classSetupFailed, - _diffThreshold -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.tests.test_xslt.Py3XSLTTestCase-class.html b/doc/html/api/lxml.tests.test_xslt.Py3XSLTTestCase-class.html deleted file mode 100644 index 3e07ef1..0000000 --- a/doc/html/api/lxml.tests.test_xslt.Py3XSLTTestCase-class.html +++ /dev/null @@ -1,403 +0,0 @@ - - - - - lxml.tests.test_xslt.Py3XSLTTestCase - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Package tests :: - Module test_xslt :: - Class Py3XSLTTestCase - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class Py3XSLTTestCase

source code

-
-               object --+        
-                        |        
-   unittest.case.TestCase --+    
-                            |    
-common_imports.HelperTestCase --+
-                                |
-                               Py3XSLTTestCase
-
- -
-XSLT tests for etree under Python 3 - - - - - - - - - - -
- - - - - -
Nested Classes[hide private]
-
-

Inherited from unittest.case.TestCase: - failureException -

-
- - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
test_xslt_result_bytes(self) - source code - -
- -
-   - - - - - - -
test_xslt_result_bytearray(self) - source code - -
- -
-   - - - - - - -
test_xslt_result_memoryview(self) - source code - -
- -
-

Inherited from common_imports.HelperTestCase: - parse, - tearDown -

-

Inherited from common_imports.HelperTestCase (private): - _rootstring -

-

Inherited from unittest.case.TestCase: - __call__, - __eq__, - __hash__, - __init__, - __ne__, - __repr__, - __str__, - addCleanup, - addTypeEqualityFunc, - assertAlmostEqual, - assertAlmostEquals, - assertDictContainsSubset, - assertDictEqual, - assertEqual, - assertEquals, - assertGreater, - assertGreaterEqual, - assertIn, - assertIs, - assertIsInstance, - assertIsNone, - assertIsNot, - assertIsNotNone, - assertItemsEqual, - assertLess, - assertLessEqual, - assertListEqual, - assertMultiLineEqual, - assertNotAlmostEqual, - assertNotAlmostEquals, - assertNotEqual, - assertNotEquals, - assertNotIn, - assertNotIsInstance, - assertNotRegexpMatches, - assertRaises, - assertRaisesRegexp, - assertRegexpMatches, - assertSequenceEqual, - assertSetEqual, - assertTrue, - assertTupleEqual, - assert_, - countTestCases, - debug, - defaultTestResult, - doCleanups, - fail, - failIf, - failIfAlmostEqual, - failIfEqual, - failUnless, - failUnlessAlmostEqual, - failUnlessEqual, - failUnlessRaises, - id, - run, - setUp, - shortDescription, - skipTest -

-

Inherited from unittest.case.TestCase (private): - _addSkip, - _baseAssertEqual, - _deprecate, - _formatMessage, - _getAssertEqualityFunc, - _truncateMessage -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __new__, - __reduce__, - __reduce_ex__, - __setattr__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Class Methods[hide private]
-
-

Inherited from unittest.case.TestCase: - setUpClass, - tearDownClass -

-
- - - - - - - - - - - - -
- - - - - -
Class Variables[hide private]
-
-   - - pytestmark = skipif('sys.version_info < (3,0)') -
-

Inherited from common_imports.HelperTestCase: - assertFalse -

-

Inherited from unittest.case.TestCase: - longMessage, - maxDiff -

-

Inherited from unittest.case.TestCase (private): - _classSetupFailed, - _diffThreshold -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.usedoctest-module.html b/doc/html/api/lxml.usedoctest-module.html deleted file mode 100644 index 1030d20..0000000 --- a/doc/html/api/lxml.usedoctest-module.html +++ /dev/null @@ -1,122 +0,0 @@ - - - - - lxml.usedoctest - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module usedoctest - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Module usedoctest

source code

-

Doctest module for XML comparison.

-

Usage:

-
->>> import lxml.usedoctest
->>> # now do your XML doctests ...
-
-

See lxml.doctestcompare

- - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/lxml.usedoctest-pysrc.html b/doc/html/api/lxml.usedoctest-pysrc.html deleted file mode 100644 index 7bc5101..0000000 --- a/doc/html/api/lxml.usedoctest-pysrc.html +++ /dev/null @@ -1,134 +0,0 @@ - - - - - lxml.usedoctest - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package lxml :: - Module usedoctest - - - - - - -
[hide private]
[frames] | no frames]
-
-

Source Code for Module lxml.usedoctest

-
- 1  """Doctest module for XML comparison. 
- 2   
- 3  Usage:: 
- 4   
- 5     >>> import lxml.usedoctest 
- 6     >>> # now do your XML doctests ... 
- 7   
- 8  See `lxml.doctestcompare` 
- 9  """ 
-10   
-11  from lxml import doctestcompare 
-12   
-13  doctestcompare.temp_install(del_module=__name__) 
-14   
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/module-tree.html b/doc/html/api/module-tree.html deleted file mode 100644 index 595afe4..0000000 --- a/doc/html/api/module-tree.html +++ /dev/null @@ -1,174 +0,0 @@ - - - - - Module Hierarchy - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  - - - - -
[hide private]
[frames] | no frames]
-
-
- [ Module Hierarchy - | Class Hierarchy ] -

-

Module Hierarchy

- - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/redirect.html b/doc/html/api/redirect.html deleted file mode 100644 index 3aa9d9a..0000000 --- a/doc/html/api/redirect.html +++ /dev/null @@ -1,38 +0,0 @@ -Epydoc Redirect Page - - - - - - - - -

Epydoc Auto-redirect page

- -

When javascript is enabled, this page will redirect URLs of -the form redirect.html#dotted.name to the -documentation for the object with the given fully-qualified -dotted name.

-

 

- - - - - diff --git a/doc/html/api/str-class.html b/doc/html/api/str-class.html deleted file mode 100644 index 0d46781..0000000 --- a/doc/html/api/str-class.html +++ /dev/null @@ -1,1650 +0,0 @@ - - - - - str - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - str :: - Class str - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class str

-
-object --+    
-         |    
-basestring --+
-             |
-            str
-
- -
Known Subclasses:
-
- -
- -
-

str(object) -> string

-

Return a nice string representation of the object. -If the argument is a string, the return value is the same object.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__add__(x, - y)
- x+y
- - -
- -
-   - - - - - - -
__contains__(x, - y)
- y in x
- - -
- -
-   - - - - - - -
__eq__(x, - y)
- x==y
- - -
- -
- string - - - - - - -
__format__(S, - format_spec)
- Return a formatted version of S as described by format_spec.
- - -
- -
-   - - - - - - -
__ge__(x, - y)
- x>=y
- - -
- -
-   - - - - - - -
__getattribute__(...)
- x.__getattribute__('name') <==> x.name
- - -
- -
-   - - - - - - -
__getitem__(x, - y)
- x[y]
- - -
- -
-   - - - - - - -
__getnewargs__(...) - - -
- -
-   - - - - - - -
__getslice__(x, - i, - j)
- x[i:j]
- - -
- -
-   - - - - - - -
__gt__(x, - y)
- x>y
- - -
- -
-   - - - - - - -
__hash__(x)
- hash(x)
- - -
- -
-   - - - - - - -
__le__(x, - y)
- x<=y
- - -
- -
-   - - - - - - -
__len__(x)
- len(x)
- - -
- -
-   - - - - - - -
__lt__(x, - y)
- x<y
- - -
- -
-   - - - - - - -
__mod__(x, - y)
- x%y
- - -
- -
-   - - - - - - -
__mul__(x, - n)
- x*n
- - -
- -
-   - - - - - - -
__ne__(x, - y)
- x!=y
- - -
- -
- a new object with type S, a subtype of T - - - - - - -
__new__(T, - S, - ...) - - -
- -
-   - - - - - - -
__repr__(x)
- repr(x)
- - -
- -
-   - - - - - - -
__rmod__(x, - y)
- y%x
- - -
- -
-   - - - - - - -
__rmul__(x, - n)
- n*x
- - -
- -
- size of S in memory, in bytes - - - - - - -
__sizeof__(S)
- size of object in memory, in bytes
- - -
- -
-   - - - - - - -
__str__(x)
- str(x)
- - -
- -
-   - - - - - - -
_formatter_field_name_split(...) - - -
- -
-   - - - - - - -
_formatter_parser(...) - - -
- -
- string - - - - - - -
capitalize(S)
- Return a copy of the string S with only its first character -capitalized.
- - -
- -
- string - - - - - - -
center(S, - width, - fillchar=...)
- Return S centered in a string of length width. Padding is -done using the specified fill character (default is a space)
- - -
- -
- int - - - - - - -
count(S, - sub, - start=..., - end=...)
- Return the number of non-overlapping occurrences of substring sub in -string S[start:end]. Optional arguments start and end are interpreted -as in slice notation.
- - -
- -
- object - - - - - - -
decode(S, - encoding=..., - errors=...)
- Decodes S using the codec registered for encoding. encoding defaults -to the default encoding. errors may be given to set a different error -handling scheme. Default is 'strict' meaning that encoding errors raise -a UnicodeDecodeError. Other possible values are 'ignore' and 'replace' -as well as any other name registered with codecs.register_error that is -able to handle UnicodeDecodeErrors.
- - -
- -
- object - - - - - - -
encode(S, - encoding=..., - errors=...)
- Encodes S using the codec registered for encoding. encoding defaults -to the default encoding. errors may be given to set a different error -handling scheme. Default is 'strict' meaning that encoding errors raise -a UnicodeEncodeError. Other possible values are 'ignore', 'replace' and -'xmlcharrefreplace' as well as any other name registered with -codecs.register_error that is able to handle UnicodeEncodeErrors.
- - -
- -
- bool - - - - - - -
endswith(S, - suffix, - start=..., - end=...)
- Return True if S ends with the specified suffix, False otherwise. -With optional start, test S beginning at that position. -With optional end, stop comparing S at that position. -suffix can also be a tuple of strings to try.
- - -
- -
- string - - - - - - -
expandtabs(S, - tabsize=...)
- Return a copy of S where all tab characters are expanded using spaces. -If tabsize is not given, a tab size of 8 characters is assumed.
- - -
- -
- int - - - - - - -
find(S, - sub, - start=... , - end=...)
- Return the lowest index in S where substring sub is found, -such that sub is contained within S[start:end]. Optional -arguments start and end are interpreted as in slice notation.
- - -
- -
- string - - - - - - -
format(S, - *args, - **kwargs)
- Return a formatted version of S, using substitutions from args and kwargs. -The substitutions are identified by braces ('{' and '}').
- - -
- -
- int - - - - - - -
index(S, - sub, - start=... , - end=...)
- Like S.find() but raise ValueError when the substring is not found.
- - -
- -
- bool - - - - - - -
isalnum(S)
- Return True if all characters in S are alphanumeric -and there is at least one character in S, False otherwise.
- - -
- -
- bool - - - - - - -
isalpha(S)
- Return True if all characters in S are alphabetic -and there is at least one character in S, False otherwise.
- - -
- -
- bool - - - - - - -
isdigit(S)
- Return True if all characters in S are digits -and there is at least one character in S, False otherwise.
- - -
- -
- bool - - - - - - -
islower(S)
- Return True if all cased characters in S are lowercase and there is -at least one cased character in S, False otherwise.
- - -
- -
- bool - - - - - - -
isspace(S)
- Return True if all characters in S are whitespace -and there is at least one character in S, False otherwise.
- - -
- -
- bool - - - - - - -
istitle(S)
- Return True if S is a titlecased string and there is at least one -character in S, i.e. uppercase characters may only follow uncased -characters and lowercase characters only cased ones. Return False -otherwise.
- - -
- -
- bool - - - - - - -
isupper(S)
- Return True if all cased characters in S are uppercase and there is -at least one cased character in S, False otherwise.
- - -
- -
- string - - - - - - -
join(S, - iterable)
- Return a string which is the concatenation of the strings in the -iterable. The separator between elements is S.
- - -
- -
- string - - - - - - -
ljust(S, - width, - fillchar=...)
- Return S left-justified in a string of length width. Padding is -done using the specified fill character (default is a space).
- - -
- -
- string - - - - - - -
lower(S)
- Return a copy of the string S converted to lowercase.
- - -
- -
- string or unicode - - - - - - -
lstrip(S, - chars=...)
- Return a copy of the string S with leading whitespace removed. -If chars is given and not None, remove characters in chars instead. -If chars is unicode, S will be converted to unicode before stripping
- - -
- -
- (head, sep, tail) - - - - - - -
partition(S, - sep)
- Search for the separator sep in S, and return the part before it, -the separator itself, and the part after it. If the separator is not -found, return S and two empty strings.
- - -
- -
- string - - - - - - -
replace(S, - old, - new, - count=...)
- Return a copy of string S with all occurrences of substring -old replaced by new. If the optional argument count is -given, only the first count occurrences are replaced.
- - -
- -
- int - - - - - - -
rfind(S, - sub, - start=... , - end=...)
- Return the highest index in S where substring sub is found, -such that sub is contained within S[start:end]. Optional -arguments start and end are interpreted as in slice notation.
- - -
- -
- int - - - - - - -
rindex(S, - sub, - start=... , - end=...)
- Like S.rfind() but raise ValueError when the substring is not found.
- - -
- -
- string - - - - - - -
rjust(S, - width, - fillchar=...)
- Return S right-justified in a string of length width. Padding is -done using the specified fill character (default is a space)
- - -
- -
- (head, sep, tail) - - - - - - -
rpartition(S, - sep)
- Search for the separator sep in S, starting at the end of S, and return -the part before it, the separator itself, and the part after it. If the -separator is not found, return two empty strings and S.
- - -
- -
- list of strings - - - - - - -
rsplit(S, - sep=... , - maxsplit=...)
- Return a list of the words in the string S, using sep as the -delimiter string, starting at the end of the string and working -to the front. If maxsplit is given, at most maxsplit splits are -done. If sep is not specified or is None, any whitespace string -is a separator.
- - -
- -
- string or unicode - - - - - - -
rstrip(S, - chars=...)
- Return a copy of the string S with trailing whitespace removed. -If chars is given and not None, remove characters in chars instead. -If chars is unicode, S will be converted to unicode before stripping
- - -
- -
- list of strings - - - - - - -
split(S, - sep=... , - maxsplit=...)
- Return a list of the words in the string S, using sep as the -delimiter string. If maxsplit is given, at most maxsplit -splits are done. If sep is not specified or is None, any -whitespace string is a separator and empty strings are removed -from the result.
- - -
- -
- list of strings - - - - - - -
splitlines(S, - keepends=...)
- Return a list of the lines in S, breaking at line boundaries. -Line breaks are not included in the resulting list unless keepends -is given and true.
- - -
- -
- bool - - - - - - -
startswith(S, - prefix, - start=..., - end=...)
- Return True if S starts with the specified prefix, False otherwise. -With optional start, test S beginning at that position. -With optional end, stop comparing S at that position. -prefix can also be a tuple of strings to try.
- - -
- -
- string or unicode - - - - - - -
strip(S, - chars=...)
- Return a copy of the string S with leading and trailing -whitespace removed. -If chars is given and not None, remove characters in chars instead. -If chars is unicode, S will be converted to unicode before stripping
- - -
- -
- string - - - - - - -
swapcase(S)
- Return a copy of the string S with uppercase characters -converted to lowercase and vice versa.
- - -
- -
- string - - - - - - -
title(S)
- Return a titlecased version of S, i.e. words start with uppercase -characters, all remaining cased characters have lowercase.
- - -
- -
- string - - - - - - -
translate(S, - table, - deletechars=...)
- Return a copy of the string S, where all characters occurring -in the optional argument deletechars are removed, and the -remaining characters have been mapped through the given -translation table, which must be a string of length 256 or None. -If the table argument is None, no translation is applied and -the operation simply removes the characters in deletechars.
- - -
- -
- string - - - - - - -
upper(S)
- Return a copy of the string S converted to uppercase.
- - -
- -
- string - - - - - - -
zfill(S, - width)
- Pad a numeric string S with zeros on the left, to fill a field -of the specified width. The string S is never truncated.
- - -
- -
-

Inherited from object: - __delattr__, - __init__, - __reduce__, - __reduce_ex__, - __setattr__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__format__(S, - format_spec) -

-
  -
- - Return a formatted version of S as described by format_spec. -
-
Returns: string
-
Overrides: - object.__format__ -
-
-
-
- -
- -
- - -
-

__getattribute__(...) -

-
  -
- - x.__getattribute__('name') <==> x.name -
-
Overrides: - object.__getattribute__ -
-
-
-
- -
- -
- - -
-

__getslice__(x, - i, - j) -
(Slicling operator) -

-
  -
- -

x[i:j]

-

Use of negative indices is not supported.

-
-
-
-
- -
- -
- - -
-

__hash__(x) -
(Hashing function) -

-
  -
- - hash(x) -
-
Overrides: - object.__hash__ -
-
-
-
- -
- -
- - -
-

__new__(T, - S, - ...) -

-
  -
- - -
-
Returns: a new object with type S, a subtype of T
-
Overrides: - object.__new__ -
-
-
-
- -
- -
- - -
-

__repr__(x) -
(Representation operator) -

-
  -
- - repr(x) -
-
Overrides: - object.__repr__ -
-
-
-
- -
- -
- - -
-

__sizeof__(S) -

-
  -
- - size of object in memory, in bytes -
-
Returns: size of S in memory, in bytes
-
Overrides: - object.__sizeof__ -
-
-
-
- -
- -
- - -
-

__str__(x) -
(Informal representation operator) -

-
  -
- - str(x) -
-
Overrides: - object.__str__ -
-
-
-
- -
- -
- - -
-

find(S, - sub, - start=... , - end=...) -

-
  -
- -

Return the lowest index in S where substring sub is found, -such that sub is contained within S[start:end]. Optional -arguments start and end are interpreted as in slice notation.

-

Return -1 on failure.

-
-
Returns: int
-
-
-
- -
- -
- - -
-

rfind(S, - sub, - start=... , - end=...) -

-
  -
- -

Return the highest index in S where substring sub is found, -such that sub is contained within S[start:end]. Optional -arguments start and end are interpreted as in slice notation.

-

Return -1 on failure.

-
-
Returns: int
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/toc-everything.html b/doc/html/api/toc-everything.html deleted file mode 100644 index 945442c..0000000 --- a/doc/html/api/toc-everything.html +++ /dev/null @@ -1,1203 +0,0 @@ - - - - - Everything - - - - - -

Everything

-
-

All Classes

- abc.ABCMeta
exceptions.AssertionError
lxml.ElementInclude.FatalIncludeError
lxml.builder.ElementMaker
lxml.cssselect.CSSSelector
- - lxml.doctestcompare.LHTMLOutputChecker
lxml.doctestcompare.LXMLOutputChecker
- - lxml.etree.AttributeBasedElementClassLookup
lxml.etree.C14NError
lxml.etree.CDATA
lxml.etree.CommentBase
lxml.etree.CustomElementClassLookup
lxml.etree.DTD
lxml.etree.DTDError
lxml.etree.DTDParseError
lxml.etree.DTDValidateError
- lxml.etree.DocumentInvalid
lxml.etree.ETCompatXMLParser
lxml.etree.ETXPath
lxml.etree.ElementBase
- lxml.etree.ElementClassLookup
lxml.etree.ElementDefaultClassLookup
- lxml.etree.ElementNamespaceClassLookup
- lxml.etree.EntityBase
lxml.etree.Error
lxml.etree.ErrorDomains
lxml.etree.ErrorLevels
lxml.etree.ErrorTypes
lxml.etree.FallbackElementClassLookup
lxml.etree.HTMLParser
lxml.etree.LxmlError
lxml.etree.LxmlRegistryError
lxml.etree.LxmlSyntaxError
lxml.etree.NamespaceRegistryError
lxml.etree.PIBase
lxml.etree.ParseError
lxml.etree.ParserBasedElementClassLookup
lxml.etree.ParserError
lxml.etree.PyErrorLog
lxml.etree.PythonElementClassLookup
lxml.etree.QName
lxml.etree.RelaxNG
lxml.etree.RelaxNGError
lxml.etree.RelaxNGErrorTypes
lxml.etree.RelaxNGParseError
lxml.etree.RelaxNGValidateError
lxml.etree.Resolver
lxml.etree.Schematron
lxml.etree.SchematronError
lxml.etree.SchematronParseError
lxml.etree.SchematronValidateError
lxml.etree.SerialisationError
- lxml.etree.TreeBuilder
lxml.etree.XInclude
lxml.etree.XIncludeError
lxml.etree.XMLParser
lxml.etree.XMLSchema
lxml.etree.XMLSchemaError
lxml.etree.XMLSchemaParseError
lxml.etree.XMLSchemaValidateError
lxml.etree.XMLSyntaxError
lxml.etree.XPath
lxml.etree.XPathDocumentEvaluator
- lxml.etree.XPathError
lxml.etree.XPathEvalError
lxml.etree.XPathFunctionError
lxml.etree.XPathResultError
lxml.etree.XPathSyntaxError
lxml.etree.XSLT
lxml.etree.XSLTAccessControl
lxml.etree.XSLTApplyError
lxml.etree.XSLTError
lxml.etree.XSLTExtension
lxml.etree.XSLTExtensionError
lxml.etree.XSLTParseError
lxml.etree.XSLTSaveError
- - - - - - - - - - - - - - - - - - - - - - - - - - - lxml.etree.iterparse
lxml.etree.iterwalk
- - - - - - - - - - - - - - - - - - - - - lxml.html.clean.Cleaner
- - - - - - - lxml.html.formfill.DefaultErrorCreator
lxml.html.formfill.FormNotFound
lxml.html.html5parser.HTMLParser
lxml.html.html5parser.XHTMLParser
lxml.isoschematron.Schematron
lxml.objectify.BoolElement
lxml.objectify.ElementMaker
lxml.objectify.FloatElement
lxml.objectify.IntElement
lxml.objectify.LongElement
lxml.objectify.NoneElement
lxml.objectify.NumberElement
lxml.objectify.ObjectPath
lxml.objectify.ObjectifiedDataElement
lxml.objectify.ObjectifiedElement
lxml.objectify.ObjectifyElementClassLookup
lxml.objectify.PyType
lxml.objectify.StringElement
- lxml.sax.ElementTreeContentHandler
lxml.sax.ElementTreeProducer
lxml.sax.SaxError
lxml.tests.common_imports.HelperTestCase
lxml.tests.common_imports.LargeFileLike
lxml.tests.common_imports.LargeFileLikeUnicode
lxml.tests.common_imports.SillyFileLike
lxml.tests.common_imports.skipif
lxml.tests.test_builder.BuilderTestCase
lxml.tests.test_classlookup.ClassLookupTestCase
lxml.tests.test_css.CSSTestCase
lxml.tests.test_dtd.ETreeDtdTestCase
lxml.tests.test_elementtree.CElementTreeTestCase
lxml.tests.test_elementtree.ETreeTestCase
lxml.tests.test_elementtree.ElementTreeTestCase
- lxml.tests.test_errors.ErrorTestCase
lxml.tests.test_etree.ETreeC14NTestCase
lxml.tests.test_etree.ETreeErrorLogTest
lxml.tests.test_etree.ETreeOnlyTestCase
lxml.tests.test_etree.ETreeWriteTestCase
lxml.tests.test_etree.ETreeXIncludeTestCase
lxml.tests.test_etree.ElementIncludeTestCase
- lxml.tests.test_htmlparser.HtmlParserTestCase
lxml.tests.test_io.ETreeIOTestCase
lxml.tests.test_io.ElementTreeIOTestCase
- lxml.tests.test_isoschematron.ETreeISOSchematronTestCase
lxml.tests.test_nsclasses.ETreeNamespaceClassesTestCase
lxml.tests.test_nsclasses.ETreeNamespaceClassesTestCase.bluff_class
lxml.tests.test_nsclasses.ETreeNamespaceClassesTestCase.default_class
lxml.tests.test_nsclasses.ETreeNamespaceClassesTestCase.maeh_class
lxml.tests.test_objectify.ObjectifyTestCase
lxml.tests.test_pyclasslookup.PyClassLookupTestCase
lxml.tests.test_relaxng.ETreeRelaxNGTestCase
lxml.tests.test_sax.ETreeSaxTestCase
lxml.tests.test_schematron.ETreeSchematronTestCase
lxml.tests.test_threading.ThreadPipelineTestCase
lxml.tests.test_threading.ThreadPipelineTestCase.ParseAndExtendWorker
lxml.tests.test_threading.ThreadPipelineTestCase.ParseWorker
lxml.tests.test_threading.ThreadPipelineTestCase.ReverseWorker
lxml.tests.test_threading.ThreadPipelineTestCase.RotateWorker
lxml.tests.test_threading.ThreadPipelineTestCase.SerialiseWorker
lxml.tests.test_threading.ThreadPipelineTestCase.Worker
lxml.tests.test_threading.ThreadingTestCase
lxml.tests.test_unicode.UnicodeTestCase
lxml.tests.test_xmlschema.ETreeXMLSchemaResolversTestCase
lxml.tests.test_xmlschema.ETreeXMLSchemaResolversTestCase.simple_resolver
lxml.tests.test_xmlschema.ETreeXMLSchemaTestCase
lxml.tests.test_xpathevaluator.ETreeETXPathClassTestCase
lxml.tests.test_xpathevaluator.ETreeXPathClassTestCase
lxml.tests.test_xpathevaluator.ETreeXPathExsltTestCase
lxml.tests.test_xpathevaluator.ETreeXPathTestCase
lxml.tests.test_xslt.ETreeEXSLTTestCase
lxml.tests.test_xslt.ETreeXSLTExtElementTestCase
lxml.tests.test_xslt.ETreeXSLTExtFuncTestCase
lxml.tests.test_xslt.ETreeXSLTTestCase
lxml.tests.test_xslt.Py3XSLTTestCase
str
xml.etree.ElementTree.Element
xml.etree.ElementTree.ElementTree
xml.etree.ElementTree.ParseError
xml.etree.ElementTree.QName
xml.etree.ElementTree.TreeBuilder
xml.etree.ElementTree.XMLParser
xml.etree.ElementTree._IterParseIterator
xml.etree.ElementTree._SimpleElementPath

All Functions

- - - - lxml.ElementInclude.default_loader
lxml.ElementInclude.include
lxml.builder.callable
- - - lxml.doctestcompare.install
- - lxml.doctestcompare.temp_install
lxml.etree.Comment
lxml.etree.Element
lxml.etree.ElementTree
lxml.etree.Entity
lxml.etree.Extension
lxml.etree.FunctionNamespace
lxml.etree.HTML
lxml.etree.PI
lxml.etree.SubElement
lxml.etree.XML
lxml.etree.XMLDTDID
lxml.etree.XMLID
lxml.etree.XPathEvaluator
lxml.etree.cleanup_namespaces
lxml.etree.clear_error_log
lxml.etree.dump
lxml.etree.fromstring
lxml.etree.fromstringlist
lxml.etree.get_default_parser
lxml.etree.iselement
lxml.etree.parse
lxml.etree.parseid
lxml.etree.register_namespace
lxml.etree.set_default_parser
lxml.etree.set_element_class_lookup
lxml.etree.strip_attributes
lxml.etree.strip_elements
lxml.etree.strip_tags
lxml.etree.tostring
lxml.etree.tostringlist
lxml.etree.tounicode
lxml.etree.use_global_python_log
lxml.get_include
lxml.html.ElementSoup.parse
lxml.html.builder.CLASS
lxml.html.builder.FOR
- - - - lxml.html.clean.autolink
lxml.html.clean.autolink_html
lxml.html.clean.clean_html
- lxml.html.clean.word_break
lxml.html.clean.word_break_html
- - - - - - - - - - - - - - - lxml.html.diff.html_annotate
- lxml.html.diff.htmldiff
- - - - - - - - - - - - - - - - - - - - - - - - - - - - lxml.html.formfill.fill_form
lxml.html.formfill.fill_form_html
lxml.html.formfill.insert_errors
lxml.html.formfill.insert_errors_html
- - lxml.html.html5parser.document_fromstring
lxml.html.html5parser.fragment_fromstring
lxml.html.html5parser.fragments_fromstring
lxml.html.html5parser.fromstring
lxml.html.html5parser.parse
- - - - lxml.html.soupparser.convert_tree
lxml.html.soupparser.fromstring
- lxml.html.soupparser.parse
- - lxml.isoschematron.stylesheet_params
lxml.objectify.DataElement
lxml.objectify.Element
lxml.objectify.XML
- - - - lxml.objectify.annotate
lxml.objectify.deannotate
lxml.objectify.dump
lxml.objectify.enable_recursive_str
lxml.objectify.fromstring
lxml.objectify.getRegisteredTypes
lxml.objectify.makeparser
lxml.objectify.parse
lxml.objectify.pyannotate
lxml.objectify.pytypename
lxml.objectify.set_default_parser
lxml.objectify.set_pytype_attribute_tag
lxml.objectify.xsiannotate
- lxml.sax.saxify
- - - - - - lxml.tests.common_imports.canonicalize
lxml.tests.common_imports.fileInTestDir
lxml.tests.common_imports.filter_by_version
lxml.tests.common_imports.make_doctest
lxml.tests.common_imports.make_version_tuple
lxml.tests.common_imports.readFileInTestDir
lxml.tests.common_imports.read_file
lxml.tests.common_imports.unentitify
lxml.tests.common_imports.write_to_file
lxml.tests.test_builder.test_suite
lxml.tests.test_classlookup.test_suite
lxml.tests.test_css.test_suite
lxml.tests.test_dtd.test_suite
lxml.tests.test_elementtree.reversed
lxml.tests.test_elementtree.test_suite
lxml.tests.test_errors.test_suite
lxml.tests.test_etree.test_suite
lxml.tests.test_htmlparser.test_suite
lxml.tests.test_io.test_suite
lxml.tests.test_isoschematron.test_suite
lxml.tests.test_nsclasses.test_suite
lxml.tests.test_objectify.test_suite
lxml.tests.test_pyclasslookup.test_suite
lxml.tests.test_relaxng.test_suite
lxml.tests.test_sax.test_suite
lxml.tests.test_schematron.test_suite
lxml.tests.test_threading.test_suite
lxml.tests.test_unicode.test_suite
lxml.tests.test_xmlschema.test_suite
lxml.tests.test_xpathevaluator.argsTest1
lxml.tests.test_xpathevaluator.argsTest2
lxml.tests.test_xpathevaluator.booleanTest
lxml.tests.test_xpathevaluator.floatTest
lxml.tests.test_xpathevaluator.resultTypesTest
lxml.tests.test_xpathevaluator.resultTypesTest2
lxml.tests.test_xpathevaluator.setTest
lxml.tests.test_xpathevaluator.setTest2
lxml.tests.test_xpathevaluator.stringListTest
lxml.tests.test_xpathevaluator.stringTest
lxml.tests.test_xpathevaluator.tag
lxml.tests.test_xpathevaluator.tag_or_value
lxml.tests.test_xpathevaluator.test_suite
lxml.tests.test_xpathevaluator.xpath
lxml.tests.test_xslt.test_suite

All Variables

- lxml.ElementInclude.XINCLUDE
lxml.ElementInclude.XINCLUDE_FALLBACK
lxml.ElementInclude.XINCLUDE_INCLUDE
lxml.ElementInclude.__package__
lxml.__package__
lxml.builder.E
lxml.builder.__package__
lxml.cssselect.ExpressionError
lxml.cssselect.SelectorError
lxml.cssselect.SelectorSyntaxError
- - lxml.doctestcompare.NOPARSE_MARKUP
lxml.doctestcompare.PARSE_HTML
lxml.doctestcompare.PARSE_XML
- - - - - - lxml.etree.DEBUG
lxml.etree.LIBXML_COMPILED_VERSION
lxml.etree.LIBXML_VERSION
lxml.etree.LIBXSLT_COMPILED_VERSION
lxml.etree.LIBXSLT_VERSION
lxml.etree.LXML_VERSION
- - - - - - - - - - - - - - - - - - - lxml.html.builder.A
lxml.html.builder.ABBR
lxml.html.builder.ACRONYM
lxml.html.builder.ADDRESS
lxml.html.builder.APPLET
lxml.html.builder.AREA
lxml.html.builder.B
lxml.html.builder.BASE
lxml.html.builder.BASEFONT
lxml.html.builder.BDO
lxml.html.builder.BIG
lxml.html.builder.BLOCKQUOTE
lxml.html.builder.BODY
lxml.html.builder.BR
lxml.html.builder.BUTTON
lxml.html.builder.CAPTION
lxml.html.builder.CENTER
lxml.html.builder.CITE
lxml.html.builder.CODE
lxml.html.builder.COL
lxml.html.builder.COLGROUP
lxml.html.builder.DD
lxml.html.builder.DEL
lxml.html.builder.DFN
lxml.html.builder.DIR
lxml.html.builder.DIV
lxml.html.builder.DL
lxml.html.builder.DT
lxml.html.builder.E
lxml.html.builder.EM
lxml.html.builder.FIELDSET
lxml.html.builder.FONT
lxml.html.builder.FORM
lxml.html.builder.FRAME
lxml.html.builder.FRAMESET
lxml.html.builder.H1
lxml.html.builder.H2
lxml.html.builder.H3
lxml.html.builder.H4
lxml.html.builder.H5
lxml.html.builder.H6
lxml.html.builder.HEAD
lxml.html.builder.HR
lxml.html.builder.HTML
lxml.html.builder.I
lxml.html.builder.IFRAME
lxml.html.builder.IMG
lxml.html.builder.INPUT
lxml.html.builder.INS
lxml.html.builder.ISINDEX
lxml.html.builder.KBD
lxml.html.builder.LABEL
lxml.html.builder.LEGEND
lxml.html.builder.LI
lxml.html.builder.LINK
lxml.html.builder.MAP
lxml.html.builder.MENU
lxml.html.builder.META
lxml.html.builder.NOFRAMES
lxml.html.builder.NOSCRIPT
lxml.html.builder.OBJECT
lxml.html.builder.OL
lxml.html.builder.OPTGROUP
lxml.html.builder.OPTION
lxml.html.builder.P
lxml.html.builder.PARAM
lxml.html.builder.PRE
lxml.html.builder.Q
lxml.html.builder.S
lxml.html.builder.SAMP
lxml.html.builder.SCRIPT
lxml.html.builder.SELECT
lxml.html.builder.SMALL
lxml.html.builder.SPAN
lxml.html.builder.STRIKE
lxml.html.builder.STRONG
lxml.html.builder.STYLE
lxml.html.builder.SUB
lxml.html.builder.SUP
lxml.html.builder.TABLE
lxml.html.builder.TBODY
lxml.html.builder.TD
lxml.html.builder.TEXTAREA
lxml.html.builder.TFOOT
lxml.html.builder.TH
lxml.html.builder.THEAD
lxml.html.builder.TITLE
lxml.html.builder.TR
lxml.html.builder.TT
lxml.html.builder.U
lxml.html.builder.UL
lxml.html.builder.VAR
lxml.html.builder.__package__
- - - - - - - - - - - - - - - lxml.html.clean.clean
lxml.html.defs.__package__
lxml.html.defs.block_tags
lxml.html.defs.deprecated_tags
lxml.html.defs.empty_tags
lxml.html.defs.event_attrs
lxml.html.defs.font_style_tags
lxml.html.defs.form_tags
lxml.html.defs.frame_tags
lxml.html.defs.general_block_tags
lxml.html.defs.head_tags
lxml.html.defs.link_attrs
lxml.html.defs.list_tags
lxml.html.defs.nonstandard_tags
lxml.html.defs.phrase_tags
lxml.html.defs.safe_attrs
lxml.html.defs.special_inline_tags
lxml.html.defs.table_tags
lxml.html.defs.tags
lxml.html.defs.top_level_tags
- - - - - - - - - lxml.html.find_class
lxml.html.find_rel_links
- - - - - - - lxml.html.html5parser.__package__
lxml.html.html5parser.html_parser
lxml.html.html5parser.xhtml_parser
- lxml.html.iterlinks
lxml.html.make_links_absolute
lxml.html.resolve_base_href
lxml.html.rewrite_links
- - - lxml.includes.__package__
- - - - - - - - lxml.isoschematron.extract_rng
lxml.isoschematron.extract_xsd
lxml.isoschematron.iso_abstract_expand
lxml.isoschematron.iso_dsdl_include
lxml.isoschematron.iso_svrl_for_xslt1
lxml.isoschematron.schematron_schema_valid
lxml.isoschematron.svrl_validation_errors
lxml.objectify.E
lxml.objectify.PYTYPE_ATTRIBUTE
- - lxml.pyclasslookup.__package__
lxml.sax.__package__
lxml.tests.__package__
lxml.tests.common_imports.CET_VERSION
lxml.tests.common_imports.ET_VERSION
lxml.tests.common_imports.__package__
- lxml.tests.common_imports.doctest_parser
lxml.tests.test_builder.__package__
lxml.tests.test_builder.this_dir
lxml.tests.test_classlookup.__package__
lxml.tests.test_classlookup.this_dir
lxml.tests.test_classlookup.xml_str
lxml.tests.test_css.HTML
lxml.tests.test_css.__package__
lxml.tests.test_dtd.__package__
lxml.tests.test_dtd.this_dir
lxml.tests.test_elementtree.__package__
lxml.tests.test_elementtree.cElementTree
lxml.tests.test_elementtree.this_dir
lxml.tests.test_errors.__package__
lxml.tests.test_errors.this_dir
lxml.tests.test_etree.__package__
lxml.tests.test_etree.this_dir
lxml.tests.test_htmlparser.__package__
lxml.tests.test_htmlparser.this_dir
lxml.tests.test_io.__package__
lxml.tests.test_io.this_dir
lxml.tests.test_isoschematron.__package__
lxml.tests.test_isoschematron.this_dir
lxml.tests.test_nsclasses.__package__
lxml.tests.test_nsclasses.this_dir
lxml.tests.test_objectify.DEFAULT_NSMAP
lxml.tests.test_objectify.PYTYPE_NAMESPACE
lxml.tests.test_objectify.TREE_PYTYPE
lxml.tests.test_objectify.XML_SCHEMA_INSTANCE_NS
lxml.tests.test_objectify.XML_SCHEMA_INSTANCE_TYPE_ATTR
lxml.tests.test_objectify.XML_SCHEMA_NIL_ATTR
lxml.tests.test_objectify.XML_SCHEMA_NS
lxml.tests.test_objectify.__package__
lxml.tests.test_objectify.objectclass2pytype
lxml.tests.test_objectify.objectclass2xsitype
lxml.tests.test_objectify.pytype2objclass
lxml.tests.test_objectify.this_dir
lxml.tests.test_objectify.v
lxml.tests.test_objectify.xml_str
lxml.tests.test_objectify.xsitype2objclass
lxml.tests.test_pyclasslookup.__package__
lxml.tests.test_pyclasslookup.this_dir
lxml.tests.test_pyclasslookup.xml_str
lxml.tests.test_relaxng.__package__
lxml.tests.test_relaxng.this_dir
lxml.tests.test_sax.__package__
lxml.tests.test_sax.this_dir
lxml.tests.test_schematron.__package__
lxml.tests.test_schematron.this_dir
lxml.tests.test_threading.__package__
lxml.tests.test_threading.this_dir
lxml.tests.test_unicode.__package__
lxml.tests.test_unicode.ascii_uni
lxml.tests.test_unicode.invalid_tag
lxml.tests.test_unicode.klingon
lxml.tests.test_unicode.this_dir
lxml.tests.test_unicode.uni
lxml.tests.test_unicode.uxml
lxml.tests.test_xmlschema.__package__
lxml.tests.test_xmlschema.this_dir
lxml.tests.test_xpathevaluator.SAMPLE_XML
lxml.tests.test_xpathevaluator.__package__
lxml.tests.test_xpathevaluator.extension
lxml.tests.test_xpathevaluator.this_dir
lxml.tests.test_xpathevaluator.uri
lxml.tests.test_xslt.__package__
lxml.tests.test_xslt.is_python3
lxml.tests.test_xslt.this_dir
xml.etree.ElementTree.HTML_EMPTY
xml.etree.ElementTree.VERSION
xml.etree.ElementTree.__package__
xml.etree.ElementTree._namespace_map
xml.etree.ElementTree._serialize

-[hide private] - - - - diff --git a/doc/html/api/toc-lxml-module.html b/doc/html/api/toc-lxml-module.html deleted file mode 100644 index 3c34147..0000000 --- a/doc/html/api/toc-lxml-module.html +++ /dev/null @@ -1,33 +0,0 @@ - - - - - lxml - - - - - -

Module lxml

-
-

Functions

- get_include

Variables

- __package__

-[hide private] - - - - diff --git a/doc/html/api/toc-lxml.ElementInclude-module.html b/doc/html/api/toc-lxml.ElementInclude-module.html deleted file mode 100644 index 8ccf386..0000000 --- a/doc/html/api/toc-lxml.ElementInclude-module.html +++ /dev/null @@ -1,48 +0,0 @@ - - - - - ElementInclude - - - - - -

Module ElementInclude

-
-

Classes

- FatalIncludeError

Functions

- - - - default_loader
include

Variables

- XINCLUDE
XINCLUDE_FALLBACK
XINCLUDE_INCLUDE
__package__

-[hide private] - - - - diff --git a/doc/html/api/toc-lxml.builder-module.html b/doc/html/api/toc-lxml.builder-module.html deleted file mode 100644 index a4d4c9d..0000000 --- a/doc/html/api/toc-lxml.builder-module.html +++ /dev/null @@ -1,38 +0,0 @@ - - - - - builder - - - - - -

Module builder

-
-

Classes

- ElementMaker
basestring
unicode

Functions

- callable

Variables

- E
__package__

-[hide private] - - - - diff --git a/doc/html/api/toc-lxml.cssselect-module.html b/doc/html/api/toc-lxml.cssselect-module.html deleted file mode 100644 index 1cd7e53..0000000 --- a/doc/html/api/toc-lxml.cssselect-module.html +++ /dev/null @@ -1,51 +0,0 @@ - - - - - cssselect - - - - - -

Module cssselect

-
-

Classes

- CSSSelector
- -

Functions

- -

Variables

- ExpressionError
SelectorError
SelectorSyntaxError
-
- ns
-
-[hide private] - - - - diff --git a/doc/html/api/toc-lxml.doctestcompare-module.html b/doc/html/api/toc-lxml.doctestcompare-module.html deleted file mode 100644 index 79b9a7e..0000000 --- a/doc/html/api/toc-lxml.doctestcompare-module.html +++ /dev/null @@ -1,72 +0,0 @@ - - - - - doctestcompare - - - - - -

Module doctestcompare

-
-

Classes

- LHTMLOutputChecker
LXMLOutputChecker
-

Functions

- - - install
-
- strip
- temp_install

Variables

- NOPARSE_MARKUP
PARSE_HTML
PARSE_XML
- - - - - -
-[hide private] - - - - diff --git a/doc/html/api/toc-lxml.etree-module.html b/doc/html/api/toc-lxml.etree-module.html deleted file mode 100644 index 55b4fa5..0000000 --- a/doc/html/api/toc-lxml.etree-module.html +++ /dev/null @@ -1,257 +0,0 @@ - - - - - etree - - - - - -

Module etree

-
-

Classes

- - AttributeBasedElementClassLookup
C14NError
CDATA
CommentBase
CustomElementClassLookup
DTD
DTDError
DTDParseError
DTDValidateError
- DocumentInvalid
ETCompatXMLParser
ETXPath
ElementBase
- ElementClassLookup
ElementDefaultClassLookup
- ElementNamespaceClassLookup
- EntityBase
Error
ErrorDomains
ErrorLevels
ErrorTypes
FallbackElementClassLookup
HTMLParser
LxmlError
LxmlRegistryError
LxmlSyntaxError
NamespaceRegistryError
PIBase
ParseError
ParserBasedElementClassLookup
ParserError
PyErrorLog
PythonElementClassLookup
QName
RelaxNG
RelaxNGError
RelaxNGErrorTypes
RelaxNGParseError
RelaxNGValidateError
Resolver
Schematron
SchematronError
SchematronParseError
SchematronValidateError
SerialisationError
- TreeBuilder
XInclude
XIncludeError
XMLParser
XMLSchema
XMLSchemaError
XMLSchemaParseError
XMLSchemaValidateError
XMLSyntaxError
XMLTreeBuilder
XPath
XPathDocumentEvaluator
- XPathError
XPathEvalError
XPathFunctionError
XPathResultError
XPathSyntaxError
XSLT
XSLTAccessControl
XSLTApplyError
XSLTError
XSLTExtension
XSLTExtensionError
XSLTParseError
XSLTSaveError
- - - - - - - - - - - - - - - - - - - - - - - - - - - iterparse
iterwalk

Functions

- Comment
Element
ElementTree
Entity
Extension
FunctionNamespace
HTML
PI
ProcessingInstruction
SubElement
XML
XMLDTDID
XMLID
XPathEvaluator
cleanup_namespaces
clear_error_log
dump
fromstring
fromstringlist
get_default_parser
iselement
parse
parseid
register_namespace
set_default_parser
set_element_class_lookup
strip_attributes
strip_elements
strip_tags
tostring
tostringlist
tounicode
use_global_python_log

Variables

- DEBUG
LIBXML_COMPILED_VERSION
LIBXML_VERSION
LIBXSLT_COMPILED_VERSION
LIBXSLT_VERSION
LXML_VERSION
- - - -
-[hide private] - - - - diff --git a/doc/html/api/toc-lxml.html-module.html b/doc/html/api/toc-lxml.html-module.html deleted file mode 100644 index 58a74a8..0000000 --- a/doc/html/api/toc-lxml.html-module.html +++ /dev/null @@ -1,194 +0,0 @@ - - - - - html - - - - - -

Module html

-
-

Classes

- - - - - - - - - - - - - - - - - - - - - -
- bytes
- -

Functions

- Element
- - - - -
- _nons
- - - document_fromstring
fragment_fromstring
fragments_fromstring
fromstring
- - open_in_browser
parse
submit_form
tostring
-

Variables

- - - - - - - - - - - - - - find_class
find_rel_links
- iterlinks
make_links_absolute
resolve_base_href
rewrite_links
-
-[hide private] - - - - diff --git a/doc/html/api/toc-lxml.html.ElementSoup-module.html b/doc/html/api/toc-lxml.html.ElementSoup-module.html deleted file mode 100644 index 1a7167a..0000000 --- a/doc/html/api/toc-lxml.html.ElementSoup-module.html +++ /dev/null @@ -1,39 +0,0 @@ - - - - - ElementSoup - - - - - -

Module ElementSoup

-
-

Functions

- convert_tree
parse

Variables

- - -
-[hide private] - - - - diff --git a/doc/html/api/toc-lxml.html.builder-module.html b/doc/html/api/toc-lxml.html.builder-module.html deleted file mode 100644 index 05a4e98..0000000 --- a/doc/html/api/toc-lxml.html.builder-module.html +++ /dev/null @@ -1,126 +0,0 @@ - - - - - builder - - - - - -

Module builder

-
-

Functions

- CLASS
FOR

Variables

- A
ABBR
ACRONYM
ADDRESS
APPLET
AREA
B
BASE
BASEFONT
BDO
BIG
BLOCKQUOTE
BODY
BR
BUTTON
CAPTION
CENTER
CITE
CODE
COL
COLGROUP
DD
DEL
DFN
DIR
DIV
DL
DT
E
EM
FIELDSET
FONT
FORM
FRAME
FRAMESET
H1
H2
H3
H4
H5
H6
HEAD
HR
HTML
I
IFRAME
IMG
INPUT
INS
ISINDEX
KBD
LABEL
LEGEND
LI
LINK
MAP
MENU
META
NOFRAMES
NOSCRIPT
OBJECT
OL
OPTGROUP
OPTION
P
PARAM
PRE
Q
S
SAMP
SCRIPT
SELECT
SMALL
SPAN
STRIKE
STRONG
STYLE
SUB
SUP
TABLE
TBODY
TD
TEXTAREA
TFOOT
TH
THEAD
TITLE
TR
TT
U
UL
VAR
__package__

-[hide private] - - - - diff --git a/doc/html/api/toc-lxml.html.clean-module.html b/doc/html/api/toc-lxml.html.clean-module.html deleted file mode 100644 index e553eac..0000000 --- a/doc/html/api/toc-lxml.html.clean-module.html +++ /dev/null @@ -1,105 +0,0 @@ - - - - - clean - - - - - -

Module clean

-
-

Classes

- Cleaner
- bytes
- -

Functions

- - - - - autolink
autolink_html
clean_html
- unichr
- word_break
word_break_html

Variables

- - - - - - - - - - - - - - - - clean

-[hide private] - - - - diff --git a/doc/html/api/toc-lxml.html.defs-module.html b/doc/html/api/toc-lxml.html.defs-module.html deleted file mode 100644 index 5e4cc60..0000000 --- a/doc/html/api/toc-lxml.html.defs-module.html +++ /dev/null @@ -1,49 +0,0 @@ - - - - - defs - - - - - -

Module defs

-
-

Variables

- __package__
block_tags
deprecated_tags
empty_tags
event_attrs
font_style_tags
form_tags
frame_tags
general_block_tags
head_tags
link_attrs
list_tags
nonstandard_tags
phrase_tags
safe_attrs
special_inline_tags
table_tags
tags
top_level_tags

-[hide private] - - - - diff --git a/doc/html/api/toc-lxml.html.diff-module.html b/doc/html/api/toc-lxml.html.diff-module.html deleted file mode 100644 index e39fd5e..0000000 --- a/doc/html/api/toc-lxml.html.diff-module.html +++ /dev/null @@ -1,184 +0,0 @@ - - - - - diff - - - - - -

Module diff

-
-

Classes

- - - - - - - -
- token
-

Functions

- - - - - - - - - - - - - - - - html_annotate
- htmldiff
- - - - - - - - - - - - - - - - -

Variables

- - - - - - - - - -
-[hide private] - - - - diff --git a/doc/html/api/toc-lxml.html.formfill-module.html b/doc/html/api/toc-lxml.html.formfill-module.html deleted file mode 100644 index 6674849..0000000 --- a/doc/html/api/toc-lxml.html.formfill-module.html +++ /dev/null @@ -1,95 +0,0 @@ - - - - - formfill - - - - - -

Module formfill

-
-

Classes

- DefaultErrorCreator
FormNotFound
-

Functions

- -
- _check
- - - - - - - - - - fill_form
fill_form_html
insert_errors
insert_errors_html

Variables

- - - - - -
- _tag
- -
-[hide private] - - - - diff --git a/doc/html/api/toc-lxml.html.html5parser-module.html b/doc/html/api/toc-lxml.html.html5parser-module.html deleted file mode 100644 index 1200a41..0000000 --- a/doc/html/api/toc-lxml.html.html5parser-module.html +++ /dev/null @@ -1,48 +0,0 @@ - - - - - html5parser - - - - - -

Module html5parser

-
-

Classes

- HTMLParser
XHTMLParser

Functions

- - - document_fromstring
fragment_fromstring
fragments_fromstring
fromstring
parse

Variables

- __package__
html_parser
xhtml_parser

-[hide private] - - - - diff --git a/doc/html/api/toc-lxml.html.soupparser-module.html b/doc/html/api/toc-lxml.html.soupparser-module.html deleted file mode 100644 index 3f927d6..0000000 --- a/doc/html/api/toc-lxml.html.soupparser-module.html +++ /dev/null @@ -1,58 +0,0 @@ - - - - - soupparser - - - - - -

Module soupparser

-
-

Functions

- - - -
- _parse
- convert_tree
fromstring
- parse
-

Variables

- - -
-[hide private] - - - - diff --git a/doc/html/api/toc-lxml.html.usedoctest-module.html b/doc/html/api/toc-lxml.html.usedoctest-module.html deleted file mode 100644 index ee5971f..0000000 --- a/doc/html/api/toc-lxml.html.usedoctest-module.html +++ /dev/null @@ -1,29 +0,0 @@ - - - - - usedoctest - - - - - -

Module usedoctest

-
-
-[hide private] - - - - diff --git a/doc/html/api/toc-lxml.includes-module.html b/doc/html/api/toc-lxml.includes-module.html deleted file mode 100644 index 1bed2a8..0000000 --- a/doc/html/api/toc-lxml.includes-module.html +++ /dev/null @@ -1,31 +0,0 @@ - - - - - includes - - - - - -

Module includes

-
-

Variables

- __package__

-[hide private] - - - - diff --git a/doc/html/api/toc-lxml.isoschematron-module.html b/doc/html/api/toc-lxml.isoschematron-module.html deleted file mode 100644 index ceb8173..0000000 --- a/doc/html/api/toc-lxml.isoschematron-module.html +++ /dev/null @@ -1,77 +0,0 @@ - - - - - isoschematron - - - - - -

Module isoschematron

-
-

Classes

- Schematron
-
- bytes
- -

Functions

- - stylesheet_params

Variables

- - - - - - - - - extract_rng
extract_xsd
iso_abstract_expand
iso_dsdl_include
iso_svrl_for_xslt1
schematron_schema_valid
svrl_validation_errors

-[hide private] - - - - diff --git a/doc/html/api/toc-lxml.objectify-module.html b/doc/html/api/toc-lxml.objectify-module.html deleted file mode 100644 index 0293d79..0000000 --- a/doc/html/api/toc-lxml.objectify-module.html +++ /dev/null @@ -1,85 +0,0 @@ - - - - - objectify - - - - - -

Module objectify

-
-

Classes

- BoolElement
ElementMaker
FloatElement
IntElement
LongElement
NoneElement
NumberElement
ObjectPath
ObjectifiedDataElement
ObjectifiedElement
ObjectifyElementClassLookup
PyType
StringElement
-

Functions

- DataElement
Element
SubElement
XML
- - - - annotate
deannotate
dump
enable_recursive_str
fromstring
getRegisteredTypes
makeparser
parse
pyannotate
pytypename
set_default_parser
set_pytype_attribute_tag
xsiannotate

Variables

- E
PYTYPE_ATTRIBUTE
- -
-[hide private] - - - - diff --git a/doc/html/api/toc-lxml.pyclasslookup-module.html b/doc/html/api/toc-lxml.pyclasslookup-module.html deleted file mode 100644 index fbbebb2..0000000 --- a/doc/html/api/toc-lxml.pyclasslookup-module.html +++ /dev/null @@ -1,31 +0,0 @@ - - - - - pyclasslookup - - - - - -

Module pyclasslookup

-
-

Variables

- __package__

-[hide private] - - - - diff --git a/doc/html/api/toc-lxml.sax-module.html b/doc/html/api/toc-lxml.sax-module.html deleted file mode 100644 index 07b37a6..0000000 --- a/doc/html/api/toc-lxml.sax-module.html +++ /dev/null @@ -1,40 +0,0 @@ - - - - - sax - - - - - -

Module sax

-
-

Classes

- ElementTreeContentHandler
ElementTreeProducer
SaxError

Functions

- - saxify

Variables

- __package__

-[hide private] - - - - diff --git a/doc/html/api/toc-lxml.tests-module.html b/doc/html/api/toc-lxml.tests-module.html deleted file mode 100644 index d21a924..0000000 --- a/doc/html/api/toc-lxml.tests-module.html +++ /dev/null @@ -1,31 +0,0 @@ - - - - - tests - - - - - -

Module tests

-
-

Variables

- __package__

-[hide private] - - - - diff --git a/doc/html/api/toc-lxml.tests.common_imports-module.html b/doc/html/api/toc-lxml.tests.common_imports-module.html deleted file mode 100644 index caa378d..0000000 --- a/doc/html/api/toc-lxml.tests.common_imports-module.html +++ /dev/null @@ -1,71 +0,0 @@ - - - - - common_imports - - - - - -

Module common_imports

-
-

Classes

- HelperTestCase
LargeFileLike
LargeFileLikeUnicode
SillyFileLike
skipif

Functions

-
- _bytes
- - - - -
- _str
- canonicalize
fileInTestDir
filter_by_version
make_doctest
make_version_tuple
readFileInTestDir
read_file
unentitify
write_to_file

Variables

- CET_VERSION
ET_VERSION
__package__
- doctest_parser

-[hide private] - - - - diff --git a/doc/html/api/toc-lxml.tests.test_builder-module.html b/doc/html/api/toc-lxml.tests.test_builder-module.html deleted file mode 100644 index c2f5a10..0000000 --- a/doc/html/api/toc-lxml.tests.test_builder-module.html +++ /dev/null @@ -1,36 +0,0 @@ - - - - - test_builder - - - - - -

Module test_builder

-
-

Classes

- BuilderTestCase

Functions

- test_suite

Variables

- __package__
this_dir

-[hide private] - - - - diff --git a/doc/html/api/toc-lxml.tests.test_classlookup-module.html b/doc/html/api/toc-lxml.tests.test_classlookup-module.html deleted file mode 100644 index 8c18125..0000000 --- a/doc/html/api/toc-lxml.tests.test_classlookup-module.html +++ /dev/null @@ -1,37 +0,0 @@ - - - - - test_classlookup - - - - - -

Module test_classlookup

-
-

Classes

- ClassLookupTestCase

Functions

- test_suite

Variables

- __package__
this_dir
xml_str

-[hide private] - - - - diff --git a/doc/html/api/toc-lxml.tests.test_css-module.html b/doc/html/api/toc-lxml.tests.test_css-module.html deleted file mode 100644 index 05606f2..0000000 --- a/doc/html/api/toc-lxml.tests.test_css-module.html +++ /dev/null @@ -1,36 +0,0 @@ - - - - - test_css - - - - - -

Module test_css

-
-

Classes

- CSSTestCase

Functions

- test_suite

Variables

- HTML
__package__

-[hide private] - - - - diff --git a/doc/html/api/toc-lxml.tests.test_dtd-module.html b/doc/html/api/toc-lxml.tests.test_dtd-module.html deleted file mode 100644 index e7a946f..0000000 --- a/doc/html/api/toc-lxml.tests.test_dtd-module.html +++ /dev/null @@ -1,36 +0,0 @@ - - - - - test_dtd - - - - - -

Module test_dtd

-
-

Classes

- ETreeDtdTestCase

Functions

- test_suite

Variables

- __package__
this_dir

-[hide private] - - - - diff --git a/doc/html/api/toc-lxml.tests.test_elementtree-module.html b/doc/html/api/toc-lxml.tests.test_elementtree-module.html deleted file mode 100644 index 91a0244..0000000 --- a/doc/html/api/toc-lxml.tests.test_elementtree-module.html +++ /dev/null @@ -1,43 +0,0 @@ - - - - - test_elementtree - - - - - -

Module test_elementtree

-
-

Classes

- CElementTreeTestCase
ETreeTestCase
ElementTreeTestCase
-

Functions

- reversed
test_suite

Variables

- __package__
cElementTree
this_dir

-[hide private] - - - - diff --git a/doc/html/api/toc-lxml.tests.test_errors-module.html b/doc/html/api/toc-lxml.tests.test_errors-module.html deleted file mode 100644 index 53d0dfb..0000000 --- a/doc/html/api/toc-lxml.tests.test_errors-module.html +++ /dev/null @@ -1,36 +0,0 @@ - - - - - test_errors - - - - - -

Module test_errors

-
-

Classes

- ErrorTestCase

Functions

- test_suite

Variables

- __package__
this_dir

-[hide private] - - - - diff --git a/doc/html/api/toc-lxml.tests.test_etree-module.html b/doc/html/api/toc-lxml.tests.test_etree-module.html deleted file mode 100644 index b6d4b95..0000000 --- a/doc/html/api/toc-lxml.tests.test_etree-module.html +++ /dev/null @@ -1,44 +0,0 @@ - - - - - test_etree - - - - - -

Module test_etree

-
-

Classes

- ETreeC14NTestCase
ETreeErrorLogTest
ETreeOnlyTestCase
ETreeWriteTestCase
ETreeXIncludeTestCase
ElementIncludeTestCase
-

Functions

- test_suite

Variables

- __package__
this_dir

-[hide private] - - - - diff --git a/doc/html/api/toc-lxml.tests.test_htmlparser-module.html b/doc/html/api/toc-lxml.tests.test_htmlparser-module.html deleted file mode 100644 index cd47cb4..0000000 --- a/doc/html/api/toc-lxml.tests.test_htmlparser-module.html +++ /dev/null @@ -1,37 +0,0 @@ - - - - - test_htmlparser - - - - - -

Module test_htmlparser

-
-

Classes

- HtmlParserTestCase
unicode

Functions

- test_suite

Variables

- __package__
this_dir

-[hide private] - - - - diff --git a/doc/html/api/toc-lxml.tests.test_io-module.html b/doc/html/api/toc-lxml.tests.test_io-module.html deleted file mode 100644 index b700653..0000000 --- a/doc/html/api/toc-lxml.tests.test_io-module.html +++ /dev/null @@ -1,40 +0,0 @@ - - - - - test_io - - - - - -

Module test_io

-
-

Classes

- ETreeIOTestCase
ElementTreeIOTestCase
-

Functions

- test_suite

Variables

- __package__
this_dir

-[hide private] - - - - diff --git a/doc/html/api/toc-lxml.tests.test_isoschematron-module.html b/doc/html/api/toc-lxml.tests.test_isoschematron-module.html deleted file mode 100644 index b82c7fa..0000000 --- a/doc/html/api/toc-lxml.tests.test_isoschematron-module.html +++ /dev/null @@ -1,36 +0,0 @@ - - - - - test_isoschematron - - - - - -

Module test_isoschematron

-
-

Classes

- ETreeISOSchematronTestCase

Functions

- test_suite

Variables

- __package__
this_dir

-[hide private] - - - - diff --git a/doc/html/api/toc-lxml.tests.test_nsclasses-module.html b/doc/html/api/toc-lxml.tests.test_nsclasses-module.html deleted file mode 100644 index 733c6e7..0000000 --- a/doc/html/api/toc-lxml.tests.test_nsclasses-module.html +++ /dev/null @@ -1,36 +0,0 @@ - - - - - test_nsclasses - - - - - -

Module test_nsclasses

-
-

Classes

- ETreeNamespaceClassesTestCase

Functions

- test_suite

Variables

- __package__
this_dir

-[hide private] - - - - diff --git a/doc/html/api/toc-lxml.tests.test_objectify-module.html b/doc/html/api/toc-lxml.tests.test_objectify-module.html deleted file mode 100644 index 014216c..0000000 --- a/doc/html/api/toc-lxml.tests.test_objectify-module.html +++ /dev/null @@ -1,49 +0,0 @@ - - - - - test_objectify - - - - - -

Module test_objectify

-
-

Classes

- ObjectifyTestCase

Functions

- test_suite

Variables

- DEFAULT_NSMAP
PYTYPE_NAMESPACE
TREE_PYTYPE
XML_SCHEMA_INSTANCE_NS
XML_SCHEMA_INSTANCE_TYPE_ATTR
XML_SCHEMA_NIL_ATTR
XML_SCHEMA_NS
__package__
objectclass2pytype
objectclass2xsitype
pytype2objclass
this_dir
v
xml_str
xsitype2objclass

-[hide private] - - - - diff --git a/doc/html/api/toc-lxml.tests.test_pyclasslookup-module.html b/doc/html/api/toc-lxml.tests.test_pyclasslookup-module.html deleted file mode 100644 index 9841ca0..0000000 --- a/doc/html/api/toc-lxml.tests.test_pyclasslookup-module.html +++ /dev/null @@ -1,37 +0,0 @@ - - - - - test_pyclasslookup - - - - - -

Module test_pyclasslookup

-
-

Classes

- PyClassLookupTestCase

Functions

- test_suite

Variables

- __package__
this_dir
xml_str

-[hide private] - - - - diff --git a/doc/html/api/toc-lxml.tests.test_relaxng-module.html b/doc/html/api/toc-lxml.tests.test_relaxng-module.html deleted file mode 100644 index f3efaea..0000000 --- a/doc/html/api/toc-lxml.tests.test_relaxng-module.html +++ /dev/null @@ -1,36 +0,0 @@ - - - - - test_relaxng - - - - - -

Module test_relaxng

-
-

Classes

- ETreeRelaxNGTestCase

Functions

- test_suite

Variables

- __package__
this_dir

-[hide private] - - - - diff --git a/doc/html/api/toc-lxml.tests.test_sax-module.html b/doc/html/api/toc-lxml.tests.test_sax-module.html deleted file mode 100644 index 8e79611..0000000 --- a/doc/html/api/toc-lxml.tests.test_sax-module.html +++ /dev/null @@ -1,36 +0,0 @@ - - - - - test_sax - - - - - -

Module test_sax

-
-

Classes

- ETreeSaxTestCase

Functions

- test_suite

Variables

- __package__
this_dir

-[hide private] - - - - diff --git a/doc/html/api/toc-lxml.tests.test_schematron-module.html b/doc/html/api/toc-lxml.tests.test_schematron-module.html deleted file mode 100644 index a51a892..0000000 --- a/doc/html/api/toc-lxml.tests.test_schematron-module.html +++ /dev/null @@ -1,36 +0,0 @@ - - - - - test_schematron - - - - - -

Module test_schematron

-
-

Classes

- ETreeSchematronTestCase

Functions

- test_suite

Variables

- __package__
this_dir

-[hide private] - - - - diff --git a/doc/html/api/toc-lxml.tests.test_threading-module.html b/doc/html/api/toc-lxml.tests.test_threading-module.html deleted file mode 100644 index 710e1c7..0000000 --- a/doc/html/api/toc-lxml.tests.test_threading-module.html +++ /dev/null @@ -1,37 +0,0 @@ - - - - - test_threading - - - - - -

Module test_threading

-
-

Classes

- ThreadPipelineTestCase
ThreadingTestCase

Functions

- test_suite

Variables

- __package__
this_dir

-[hide private] - - - - diff --git a/doc/html/api/toc-lxml.tests.test_unicode-module.html b/doc/html/api/toc-lxml.tests.test_unicode-module.html deleted file mode 100644 index 1f31e0e..0000000 --- a/doc/html/api/toc-lxml.tests.test_unicode-module.html +++ /dev/null @@ -1,42 +0,0 @@ - - - - - test_unicode - - - - - -

Module test_unicode

-
-

Classes

- UnicodeTestCase
unicode

Functions

- test_suite

Variables

- __package__
ascii_uni
invalid_tag
klingon
this_dir
uni
uxml

-[hide private] - - - - diff --git a/doc/html/api/toc-lxml.tests.test_xmlschema-module.html b/doc/html/api/toc-lxml.tests.test_xmlschema-module.html deleted file mode 100644 index cdc9c51..0000000 --- a/doc/html/api/toc-lxml.tests.test_xmlschema-module.html +++ /dev/null @@ -1,37 +0,0 @@ - - - - - test_xmlschema - - - - - -

Module test_xmlschema

-
-

Classes

- ETreeXMLSchemaResolversTestCase
ETreeXMLSchemaTestCase

Functions

- test_suite

Variables

- __package__
this_dir

-[hide private] - - - - diff --git a/doc/html/api/toc-lxml.tests.test_xpathevaluator-module.html b/doc/html/api/toc-lxml.tests.test_xpathevaluator-module.html deleted file mode 100644 index 7753fef..0000000 --- a/doc/html/api/toc-lxml.tests.test_xpathevaluator-module.html +++ /dev/null @@ -1,55 +0,0 @@ - - - - - test_xpathevaluator - - - - - -

Module test_xpathevaluator

-
-

Classes

- ETreeETXPathClassTestCase
ETreeXPathClassTestCase
ETreeXPathExsltTestCase
ETreeXPathTestCase

Functions

- argsTest1
argsTest2
booleanTest
floatTest
resultTypesTest
resultTypesTest2
setTest
setTest2
stringListTest
stringTest
tag
tag_or_value
test_suite
xpath

Variables

- SAMPLE_XML
__package__
extension
this_dir
uri

-[hide private] - - - - diff --git a/doc/html/api/toc-lxml.tests.test_xslt-module.html b/doc/html/api/toc-lxml.tests.test_xslt-module.html deleted file mode 100644 index 5c40e73..0000000 --- a/doc/html/api/toc-lxml.tests.test_xslt-module.html +++ /dev/null @@ -1,43 +0,0 @@ - - - - - test_xslt - - - - - -

Module test_xslt

-
-

Classes

- ETreeEXSLTTestCase
ETreeXSLTExtElementTestCase
ETreeXSLTExtFuncTestCase
ETreeXSLTTestCase
Py3XSLTTestCase
basestring
unicode

Functions

- test_suite

Variables

- __package__
is_python3
this_dir

-[hide private] - - - - diff --git a/doc/html/api/toc-lxml.usedoctest-module.html b/doc/html/api/toc-lxml.usedoctest-module.html deleted file mode 100644 index ee5971f..0000000 --- a/doc/html/api/toc-lxml.usedoctest-module.html +++ /dev/null @@ -1,29 +0,0 @@ - - - - - usedoctest - - - - - -

Module usedoctest

-
-
-[hide private] - - - - diff --git a/doc/html/api/toc-xml.etree.ElementTree-module.html b/doc/html/api/toc-xml.etree.ElementTree-module.html deleted file mode 100644 index a90ac01..0000000 --- a/doc/html/api/toc-xml.etree.ElementTree-module.html +++ /dev/null @@ -1,72 +0,0 @@ - - - - - ElementTree - - - - - -

Module ElementTree

-
-

Classes

- Element
ElementTree
ParseError
QName
TreeBuilder
XMLParser
XMLTreeBuilder
_Element
_ElementInterface
_IterParseIterator
_SimpleElementPath

Functions

- Comment
PI
ProcessingInstruction
SubElement
XML
XMLID
_encode
_escape_attrib
_escape_attrib_html
_escape_cdata
_namespaces
_raise_serialization_error
_serialize_html
_serialize_text
_serialize_xml
dump
fromstring
fromstringlist
iselement
iterparse
parse
register_namespace
tostring
tostringlist

Variables

- HTML_EMPTY
VERSION
__package__
_namespace_map
_serialize

-[hide private] - - - - diff --git a/doc/html/api/toc.html b/doc/html/api/toc.html deleted file mode 100644 index d1c5733..0000000 --- a/doc/html/api/toc.html +++ /dev/null @@ -1,78 +0,0 @@ - - - - - Table of Contents - - - - - -

Table of Contents

-
- Everything -
-

Modules

- lxml
lxml.ElementInclude
lxml.builder
lxml.cssselect
lxml.doctestcompare
lxml.etree
lxml.html
lxml.html.ElementSoup
lxml.html.builder
lxml.html.clean
lxml.html.defs
lxml.html.diff
lxml.html.formfill
lxml.html.html5parser
lxml.html.soupparser
lxml.html.usedoctest
lxml.includes
lxml.isoschematron
lxml.objectify
lxml.pyclasslookup
lxml.sax
lxml.tests
lxml.tests.common_imports
lxml.tests.test_builder
lxml.tests.test_classlookup
lxml.tests.test_css
lxml.tests.test_dtd
lxml.tests.test_elementtree
lxml.tests.test_errors
lxml.tests.test_etree
lxml.tests.test_htmlparser
lxml.tests.test_io
lxml.tests.test_isoschematron
lxml.tests.test_nsclasses
lxml.tests.test_objectify
lxml.tests.test_pyclasslookup
lxml.tests.test_relaxng
lxml.tests.test_sax
lxml.tests.test_schematron
lxml.tests.test_threading
lxml.tests.test_unicode
lxml.tests.test_xmlschema
lxml.tests.test_xpathevaluator
lxml.tests.test_xslt
lxml.usedoctest
xml.etree.ElementTree

- [hide private] - - - - diff --git a/doc/html/api/xml.etree.ElementTree-module.html b/doc/html/api/xml.etree.ElementTree-module.html deleted file mode 100644 index ed8b45f..0000000 --- a/doc/html/api/xml.etree.ElementTree-module.html +++ /dev/null @@ -1,805 +0,0 @@ - - - - - xml.etree.ElementTree - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package xml :: - Package etree :: - Module ElementTree - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Module ElementTree

source code

-hash(x) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Classes[hide private]
-
-   - - Element -
-   - - ElementTree -
-   - - ParseError -
-   - - QName -
-   - - TreeBuilder -
-   - - XMLParser -
-   - - XMLTreeBuilder -
-   - - _Element -
-   - - _ElementInterface -
-   - - _IterParseIterator -
-   - - _SimpleElementPath -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Functions[hide private]
-
-   - - - - - - -
Comment(text=None) - source code - -
- -
-   - - - - - - -
PI(target, - text=None) - source code - -
- -
-   - - - - - - -
ProcessingInstruction(target, - text=None) - source code - -
- -
-   - - - - - - -
SubElement(parent, - tag, - attrib={}, - **extra) - source code - -
- -
-   - - - - - - -
XML(text, - parser=None) - source code - -
- -
-   - - - - - - -
XMLID(text, - parser=None) - source code - -
- -
-   - - - - - - -
_encode(text, - encoding) - source code - -
- -
-   - - - - - - -
_escape_attrib(text, - encoding) - source code - -
- -
-   - - - - - - -
_escape_attrib_html(text, - encoding) - source code - -
- -
-   - - - - - - -
_escape_cdata(text, - encoding) - source code - -
- -
-   - - - - - - -
_namespaces(elem, - encoding, - default_namespace=None) - source code - -
- -
-   - - - - - - -
_raise_serialization_error(text) - source code - -
- -
-   - - - - - - -
_serialize_html(write, - elem, - encoding, - qnames, - namespaces) - source code - -
- -
-   - - - - - - -
_serialize_text(write, - elem, - encoding) - source code - -
- -
-   - - - - - - -
_serialize_xml(write, - elem, - encoding, - qnames, - namespaces) - source code - -
- -
-   - - - - - - -
dump(elem) - source code - -
- -
-   - - - - - - -
fromstring(text, - parser=None) - source code - -
- -
-   - - - - - - -
fromstringlist(sequence, - parser=None) - source code - -
- -
-   - - - - - - -
iselement(element) - source code - -
- -
-   - - - - - - -
iterparse(source, - events=None, - parser=None) - source code - -
- -
-   - - - - - - -
parse(source, - parser=None) - source code - -
- -
-   - - - - - - -
register_namespace(prefix, - uri) - source code - -
- -
-   - - - - - - -
tostring(element, - encoding=None, - method=None) - source code - -
- -
-   - - - - - - -
tostringlist(element, - encoding=None, - method=None) - source code - -
- -
- - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Variables[hide private]
-
-   - - HTML_EMPTY = set(['area', 'base', 'basefont', 'br', 'col', 'fr... -
-   - - VERSION = '1.3.0' -
-   - - __package__ = 'xml.etree' -
-   - - _namespace_map = {'http://purl.org/dc/elements/1.1/': 'dc', 'h... -
-   - - _serialize = {'html': <function _serialize_html at 0x29fd758>,... -
- - - - - - -
- - - - - -
Variables Details[hide private]
-
- -
- -
-

HTML_EMPTY

- -
-
-
-
Value:
-
-set(['area',
-     'base',
-     'basefont',
-     'br',
-     'col',
-     'frame',
-     'hr',
-     'img',
-...
-
-
-
-
-
- -
- -
-

_namespace_map

- -
-
-
-
Value:
-
-{'http://purl.org/dc/elements/1.1/': 'dc',
- 'http://schemas.xmlsoap.org/wsdl/': 'wsdl',
- 'http://www.w3.org/1999/02/22-rdf-syntax-ns#': 'rdf',
- 'http://www.w3.org/1999/xhtml': 'html',
- 'http://www.w3.org/2001/XMLSchema': 'xs',
- 'http://www.w3.org/2001/XMLSchema-instance': 'xsi',
- 'http://www.w3.org/XML/1998/namespace': 'xml'}
-
-
-
-
-
- -
- -
-

_serialize

- -
-
-
-
Value:
-
-{'html': <function _serialize_html at 0x29fd758>,
- 'text': <function _serialize_text at 0x29fd7d0>,
- 'xml': <function _serialize_xml at 0x29fd6e0>}
-
-
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/xml.etree.ElementTree-pysrc.html b/doc/html/api/xml.etree.ElementTree-pysrc.html deleted file mode 100644 index 1c2f3f3..0000000 --- a/doc/html/api/xml.etree.ElementTree-pysrc.html +++ /dev/null @@ -1,3062 +0,0 @@ - - - - - xml.etree.ElementTree - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package xml :: - Package etree :: - Module ElementTree - - - - - - -
[hide private]
[frames] | no frames]
-
-

Source Code for Module xml.etree.ElementTree

-
-   1  # 
-   2  # ElementTree 
-   3  # $Id: ElementTree.py 3440 2008-07-18 14:45:01Z fredrik $ 
-   4  # 
-   5  # light-weight XML support for Python 2.3 and later. 
-   6  # 
-   7  # history (since 1.2.6): 
-   8  # 2005-11-12 fl   added tostringlist/fromstringlist helpers 
-   9  # 2006-07-05 fl   merged in selected changes from the 1.3 sandbox 
-  10  # 2006-07-05 fl   removed support for 2.1 and earlier 
-  11  # 2007-06-21 fl   added deprecation/future warnings 
-  12  # 2007-08-25 fl   added doctype hook, added parser version attribute etc 
-  13  # 2007-08-26 fl   added new serializer code (better namespace handling, etc) 
-  14  # 2007-08-27 fl   warn for broken /tag searches on tree level 
-  15  # 2007-09-02 fl   added html/text methods to serializer (experimental) 
-  16  # 2007-09-05 fl   added method argument to tostring/tostringlist 
-  17  # 2007-09-06 fl   improved error handling 
-  18  # 2007-09-13 fl   added itertext, iterfind; assorted cleanups 
-  19  # 2007-12-15 fl   added C14N hooks, copy method (experimental) 
-  20  # 
-  21  # Copyright (c) 1999-2008 by Fredrik Lundh.  All rights reserved. 
-  22  # 
-  23  # fredrik@pythonware.com 
-  24  # http://www.pythonware.com 
-  25  # 
-  26  # -------------------------------------------------------------------- 
-  27  # The ElementTree toolkit is 
-  28  # 
-  29  # Copyright (c) 1999-2008 by Fredrik Lundh 
-  30  # 
-  31  # By obtaining, using, and/or copying this software and/or its 
-  32  # associated documentation, you agree that you have read, understood, 
-  33  # and will comply with the following terms and conditions: 
-  34  # 
-  35  # Permission to use, copy, modify, and distribute this software and 
-  36  # its associated documentation for any purpose and without fee is 
-  37  # hereby granted, provided that the above copyright notice appears in 
-  38  # all copies, and that both that copyright notice and this permission 
-  39  # notice appear in supporting documentation, and that the name of 
-  40  # Secret Labs AB or the author not be used in advertising or publicity 
-  41  # pertaining to distribution of the software without specific, written 
-  42  # prior permission. 
-  43  # 
-  44  # SECRET LABS AB AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD 
-  45  # TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANT- 
-  46  # ABILITY AND FITNESS.  IN NO EVENT SHALL SECRET LABS AB OR THE AUTHOR 
-  47  # BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY 
-  48  # DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 
-  49  # WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS 
-  50  # ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 
-  51  # OF THIS SOFTWARE. 
-  52  # -------------------------------------------------------------------- 
-  53   
-  54  # Licensed to PSF under a Contributor Agreement. 
-  55  # See http://www.python.org/psf/license for licensing details. 
-  56   
-  57  __all__ = [ 
-  58      # public symbols 
-  59      "Comment", 
-  60      "dump", 
-  61      "Element", "ElementTree", 
-  62      "fromstring", "fromstringlist", 
-  63      "iselement", "iterparse", 
-  64      "parse", "ParseError", 
-  65      "PI", "ProcessingInstruction", 
-  66      "QName", 
-  67      "SubElement", 
-  68      "tostring", "tostringlist", 
-  69      "TreeBuilder", 
-  70      "VERSION", 
-  71      "XML", 
-  72      "XMLParser", "XMLTreeBuilder", 
-  73      ] 
-  74   
-  75  VERSION = "1.3.0" 
-  76   
-  77  ## 
-  78  # The <b>Element</b> type is a flexible container object, designed to 
-  79  # store hierarchical data structures in memory. The type can be 
-  80  # described as a cross between a list and a dictionary. 
-  81  # <p> 
-  82  # Each element has a number of properties associated with it: 
-  83  # <ul> 
-  84  # <li>a <i>tag</i>. This is a string identifying what kind of data 
-  85  # this element represents (the element type, in other words).</li> 
-  86  # <li>a number of <i>attributes</i>, stored in a Python dictionary.</li> 
-  87  # <li>a <i>text</i> string.</li> 
-  88  # <li>an optional <i>tail</i> string.</li> 
-  89  # <li>a number of <i>child elements</i>, stored in a Python sequence</li> 
-  90  # </ul> 
-  91  # 
-  92  # To create an element instance, use the {@link #Element} constructor 
-  93  # or the {@link #SubElement} factory function. 
-  94  # <p> 
-  95  # The {@link #ElementTree} class can be used to wrap an element 
-  96  # structure, and convert it from and to XML. 
-  97  ## 
-  98   
-  99  import sys 
- 100  import re 
- 101  import warnings 
- 102   
- 103   
-
104 -class _SimpleElementPath(object): -
105 # emulate pre-1.2 find/findtext/findall behaviour -
106 - def find(self, element, tag, namespaces=None): -
107 for elem in element: - 108 if elem.tag == tag: - 109 return elem - 110 return None -
111 - def findtext(self, element, tag, default=None, namespaces=None): -
112 elem = self.find(element, tag) - 113 if elem is None: - 114 return default - 115 return elem.text or "" -
116 - def iterfind(self, element, tag, namespaces=None): -
117 if tag[:3] == ".//": - 118 for elem in element.iter(tag[3:]): - 119 yield elem - 120 for elem in element: - 121 if elem.tag == tag: - 122 yield elem -
123 - def findall(self, element, tag, namespaces=None): -
124 return list(self.iterfind(element, tag, namespaces)) -
125 - 126 try: - 127 from . import ElementPath - 128 except ImportError: - 129 ElementPath = _SimpleElementPath() - 130 - 131 ## - 132 # Parser error. This is a subclass of <b>SyntaxError</b>. - 133 # <p> - 134 # In addition to the exception value, an exception instance contains a - 135 # specific exception code in the <b>code</b> attribute, and the line and - 136 # column of the error in the <b>position</b> attribute. - 137 -
138 -class ParseError(SyntaxError): -
139 pass -
140 - 141 # -------------------------------------------------------------------- - 142 - 143 ## - 144 # Checks if an object appears to be a valid element object. - 145 # - 146 # @param An element instance. - 147 # @return A true value if this is an element object. - 148 # @defreturn flag - 149 -
150 -def iselement(element): -
151 # FIXME: not sure about this; might be a better idea to look - 152 # for tag/attrib/text attributes - 153 return isinstance(element, Element) or hasattr(element, "tag") -
154 - 155 ## - 156 # Element class. This class defines the Element interface, and - 157 # provides a reference implementation of this interface. - 158 # <p> - 159 # The element name, attribute names, and attribute values can be - 160 # either ASCII strings (ordinary Python strings containing only 7-bit - 161 # ASCII characters) or Unicode strings. - 162 # - 163 # @param tag The element name. - 164 # @param attrib An optional dictionary, containing element attributes. - 165 # @param **extra Additional attributes, given as keyword arguments. - 166 # @see Element - 167 # @see SubElement - 168 # @see Comment - 169 # @see ProcessingInstruction - 170 -
171 -class Element(object): -
172 # <tag attrib>text<child/>...</tag>tail - 173 - 174 ## - 175 # (Attribute) Element tag. - 176 - 177 tag = None - 178 - 179 ## - 180 # (Attribute) Element attribute dictionary. Where possible, use - 181 # {@link #Element.get}, - 182 # {@link #Element.set}, - 183 # {@link #Element.keys}, and - 184 # {@link #Element.items} to access - 185 # element attributes. - 186 - 187 attrib = None - 188 - 189 ## - 190 # (Attribute) Text before first subelement. This is either a - 191 # string or the value None. Note that if there was no text, this - 192 # attribute may be either None or an empty string, depending on - 193 # the parser. - 194 - 195 text = None - 196 - 197 ## - 198 # (Attribute) Text after this element's end tag, but before the - 199 # next sibling element's start tag. This is either a string or - 200 # the value None. Note that if there was no text, this attribute - 201 # may be either None or an empty string, depending on the parser. - 202 - 203 tail = None # text after end tag, if any - 204 - 205 # constructor - 206 -
207 - def __init__(self, tag, attrib={}, **extra): -
208 attrib = attrib.copy() - 209 attrib.update(extra) - 210 self.tag = tag - 211 self.attrib = attrib - 212 self._children = [] -
213 -
214 - def __repr__(self): -
215 return "<Element %s at 0x%x>" % (repr(self.tag), id(self)) -
216 - 217 ## - 218 # Creates a new element object of the same type as this element. - 219 # - 220 # @param tag Element tag. - 221 # @param attrib Element attributes, given as a dictionary. - 222 # @return A new element instance. - 223 -
224 - def makeelement(self, tag, attrib): -
225 return self.__class__(tag, attrib) -
226 - 227 ## - 228 # (Experimental) Copies the current element. This creates a - 229 # shallow copy; subelements will be shared with the original tree. - 230 # - 231 # @return A new element instance. - 232 -
233 - def copy(self): -
234 elem = self.makeelement(self.tag, self.attrib) - 235 elem.text = self.text - 236 elem.tail = self.tail - 237 elem[:] = self - 238 return elem -
239 - 240 ## - 241 # Returns the number of subelements. Note that this only counts - 242 # full elements; to check if there's any content in an element, you - 243 # have to check both the length and the <b>text</b> attribute. - 244 # - 245 # @return The number of subelements. - 246 -
247 - def __len__(self): -
248 return len(self._children) -
249 -
250 - def __nonzero__(self): -
251 warnings.warn( - 252 "The behavior of this method will change in future versions. " - 253 "Use specific 'len(elem)' or 'elem is not None' test instead.", - 254 FutureWarning, stacklevel=2 - 255 ) - 256 return len(self._children) != 0 # emulate old behaviour, for now -
257 - 258 ## - 259 # Returns the given subelement, by index. - 260 # - 261 # @param index What subelement to return. - 262 # @return The given subelement. - 263 # @exception IndexError If the given element does not exist. - 264 -
265 - def __getitem__(self, index): -
266 return self._children[index] -
267 - 268 ## - 269 # Replaces the given subelement, by index. - 270 # - 271 # @param index What subelement to replace. - 272 # @param element The new element value. - 273 # @exception IndexError If the given element does not exist. - 274 -
275 - def __setitem__(self, index, element): -
276 # if isinstance(index, slice): - 277 # for elt in element: - 278 # assert iselement(elt) - 279 # else: - 280 # assert iselement(element) - 281 self._children[index] = element -
282 - 283 ## - 284 # Deletes the given subelement, by index. - 285 # - 286 # @param index What subelement to delete. - 287 # @exception IndexError If the given element does not exist. - 288 -
289 - def __delitem__(self, index): -
290 del self._children[index] -
291 - 292 ## - 293 # Adds a subelement to the end of this element. In document order, - 294 # the new element will appear after the last existing subelement (or - 295 # directly after the text, if it's the first subelement), but before - 296 # the end tag for this element. - 297 # - 298 # @param element The element to add. - 299 -
300 - def append(self, element): -
301 # assert iselement(element) - 302 self._children.append(element) -
303 - 304 ## - 305 # Appends subelements from a sequence. - 306 # - 307 # @param elements A sequence object with zero or more elements. - 308 # @since 1.3 - 309 -
310 - def extend(self, elements): -
311 # for element in elements: - 312 # assert iselement(element) - 313 self._children.extend(elements) -
314 - 315 ## - 316 # Inserts a subelement at the given position in this element. - 317 # - 318 # @param index Where to insert the new subelement. - 319 -
320 - def insert(self, index, element): -
321 # assert iselement(element) - 322 self._children.insert(index, element) -
323 - 324 ## - 325 # Removes a matching subelement. Unlike the <b>find</b> methods, - 326 # this method compares elements based on identity, not on tag - 327 # value or contents. To remove subelements by other means, the - 328 # easiest way is often to use a list comprehension to select what - 329 # elements to keep, and use slice assignment to update the parent - 330 # element. - 331 # - 332 # @param element What element to remove. - 333 # @exception ValueError If a matching element could not be found. - 334 -
335 - def remove(self, element): -
336 # assert iselement(element) - 337 self._children.remove(element) -
338 - 339 ## - 340 # (Deprecated) Returns all subelements. The elements are returned - 341 # in document order. - 342 # - 343 # @return A list of subelements. - 344 # @defreturn list of Element instances - 345 -
346 - def getchildren(self): -
347 warnings.warn( - 348 "This method will be removed in future versions. " - 349 "Use 'list(elem)' or iteration over elem instead.", - 350 DeprecationWarning, stacklevel=2 - 351 ) - 352 return self._children -
353 - 354 ## - 355 # Finds the first matching subelement, by tag name or path. - 356 # - 357 # @param path What element to look for. - 358 # @keyparam namespaces Optional namespace prefix map. - 359 # @return The first matching element, or None if no element was found. - 360 # @defreturn Element or None - 361 -
362 - def find(self, path, namespaces=None): -
363 return ElementPath.find(self, path, namespaces) -
364 - 365 ## - 366 # Finds text for the first matching subelement, by tag name or path. - 367 # - 368 # @param path What element to look for. - 369 # @param default What to return if the element was not found. - 370 # @keyparam namespaces Optional namespace prefix map. - 371 # @return The text content of the first matching element, or the - 372 # default value no element was found. Note that if the element - 373 # is found, but has no text content, this method returns an - 374 # empty string. - 375 # @defreturn string - 376 -
377 - def findtext(self, path, default=None, namespaces=None): -
378 return ElementPath.findtext(self, path, default, namespaces) -
379 - 380 ## - 381 # Finds all matching subelements, by tag name or path. - 382 # - 383 # @param path What element to look for. - 384 # @keyparam namespaces Optional namespace prefix map. - 385 # @return A list or other sequence containing all matching elements, - 386 # in document order. - 387 # @defreturn list of Element instances - 388 -
389 - def findall(self, path, namespaces=None): -
390 return ElementPath.findall(self, path, namespaces) -
391 - 392 ## - 393 # Finds all matching subelements, by tag name or path. - 394 # - 395 # @param path What element to look for. - 396 # @keyparam namespaces Optional namespace prefix map. - 397 # @return An iterator or sequence containing all matching elements, - 398 # in document order. - 399 # @defreturn a generated sequence of Element instances - 400 -
401 - def iterfind(self, path, namespaces=None): -
402 return ElementPath.iterfind(self, path, namespaces) -
403 - 404 ## - 405 # Resets an element. This function removes all subelements, clears - 406 # all attributes, and sets the <b>text</b> and <b>tail</b> attributes - 407 # to None. - 408 -
409 - def clear(self): -
410 self.attrib.clear() - 411 self._children = [] - 412 self.text = self.tail = None -
413 - 414 ## - 415 # Gets an element attribute. Equivalent to <b>attrib.get</b>, but - 416 # some implementations may handle this a bit more efficiently. - 417 # - 418 # @param key What attribute to look for. - 419 # @param default What to return if the attribute was not found. - 420 # @return The attribute value, or the default value, if the - 421 # attribute was not found. - 422 # @defreturn string or None - 423 -
424 - def get(self, key, default=None): -
425 return self.attrib.get(key, default) -
426 - 427 ## - 428 # Sets an element attribute. Equivalent to <b>attrib[key] = value</b>, - 429 # but some implementations may handle this a bit more efficiently. - 430 # - 431 # @param key What attribute to set. - 432 # @param value The attribute value. - 433 -
434 - def set(self, key, value): -
435 self.attrib[key] = value -
436 - 437 ## - 438 # Gets a list of attribute names. The names are returned in an - 439 # arbitrary order (just like for an ordinary Python dictionary). - 440 # Equivalent to <b>attrib.keys()</b>. - 441 # - 442 # @return A list of element attribute names. - 443 # @defreturn list of strings - 444 -
445 - def keys(self): -
446 return self.attrib.keys() -
447 - 448 ## - 449 # Gets element attributes, as a sequence. The attributes are - 450 # returned in an arbitrary order. Equivalent to <b>attrib.items()</b>. - 451 # - 452 # @return A list of (name, value) tuples for all attributes. - 453 # @defreturn list of (string, string) tuples - 454 -
455 - def items(self): -
456 return self.attrib.items() -
457 - 458 ## - 459 # Creates a tree iterator. The iterator loops over this element - 460 # and all subelements, in document order, and returns all elements - 461 # with a matching tag. - 462 # <p> - 463 # If the tree structure is modified during iteration, new or removed - 464 # elements may or may not be included. To get a stable set, use the - 465 # list() function on the iterator, and loop over the resulting list. - 466 # - 467 # @param tag What tags to look for (default is to return all elements). - 468 # @return An iterator containing all the matching elements. - 469 # @defreturn iterator - 470 -
471 - def iter(self, tag=None): -
472 if tag == "*": - 473 tag = None - 474 if tag is None or self.tag == tag: - 475 yield self - 476 for e in self._children: - 477 for e in e.iter(tag): - 478 yield e -
479 - 480 # compatibility -
481 - def getiterator(self, tag=None): -
482 # Change for a DeprecationWarning in 1.4 - 483 warnings.warn( - 484 "This method will be removed in future versions. " - 485 "Use 'elem.iter()' or 'list(elem.iter())' instead.", - 486 PendingDeprecationWarning, stacklevel=2 - 487 ) - 488 return list(self.iter(tag)) -
489 - 490 ## - 491 # Creates a text iterator. The iterator loops over this element - 492 # and all subelements, in document order, and returns all inner - 493 # text. - 494 # - 495 # @return An iterator containing all inner text. - 496 # @defreturn iterator - 497 -
498 - def itertext(self): -
499 tag = self.tag - 500 if not isinstance(tag, basestring) and tag is not None: - 501 return - 502 if self.text: - 503 yield self.text - 504 for e in self: - 505 for s in e.itertext(): - 506 yield s - 507 if e.tail: - 508 yield e.tail -
509 - 510 # compatibility - 511 _Element = _ElementInterface = Element - 512 - 513 ## - 514 # Subelement factory. This function creates an element instance, and - 515 # appends it to an existing element. - 516 # <p> - 517 # The element name, attribute names, and attribute values can be - 518 # either 8-bit ASCII strings or Unicode strings. - 519 # - 520 # @param parent The parent element. - 521 # @param tag The subelement name. - 522 # @param attrib An optional dictionary, containing element attributes. - 523 # @param **extra Additional attributes, given as keyword arguments. - 524 # @return An element instance. - 525 # @defreturn Element - 526 -
527 -def SubElement(parent, tag, attrib={}, **extra): -
528 attrib = attrib.copy() - 529 attrib.update(extra) - 530 element = parent.makeelement(tag, attrib) - 531 parent.append(element) - 532 return element -
533 - 534 ## - 535 # Comment element factory. This factory function creates a special - 536 # element that will be serialized as an XML comment by the standard - 537 # serializer. - 538 # <p> - 539 # The comment string can be either an 8-bit ASCII string or a Unicode - 540 # string. - 541 # - 542 # @param text A string containing the comment string. - 543 # @return An element instance, representing a comment. - 544 # @defreturn Element - 545 -
546 -def Comment(text=None): -
547 element = Element(Comment) - 548 element.text = text - 549 return element -
550 - 551 ## - 552 # PI element factory. This factory function creates a special element - 553 # that will be serialized as an XML processing instruction by the standard - 554 # serializer. - 555 # - 556 # @param target A string containing the PI target. - 557 # @param text A string containing the PI contents, if any. - 558 # @return An element instance, representing a PI. - 559 # @defreturn Element - 560 -
561 -def ProcessingInstruction(target, text=None): -
562 element = Element(ProcessingInstruction) - 563 element.text = target - 564 if text: - 565 element.text = element.text + " " + text - 566 return element -
567 - 568 PI = ProcessingInstruction - 569 - 570 ## - 571 # QName wrapper. This can be used to wrap a QName attribute value, in - 572 # order to get proper namespace handling on output. - 573 # - 574 # @param text A string containing the QName value, in the form {uri}local, - 575 # or, if the tag argument is given, the URI part of a QName. - 576 # @param tag Optional tag. If given, the first argument is interpreted as - 577 # an URI, and this argument is interpreted as a local name. - 578 # @return An opaque object, representing the QName. - 579 -
580 -class QName(object): -
581 - def __init__(self, text_or_uri, tag=None): -
582 if tag: - 583 text_or_uri = "{%s}%s" % (text_or_uri, tag) - 584 self.text = text_or_uri -
585 - def __str__(self): -
586 return self.text -
587 - def __hash__(self): -
588 return hash(self.text) -
589 - def __cmp__(self, other): -
590 if isinstance(other, QName): - 591 return cmp(self.text, other.text) - 592 return cmp(self.text, other) -
593 - 594 # -------------------------------------------------------------------- - 595 - 596 ## - 597 # ElementTree wrapper class. This class represents an entire element - 598 # hierarchy, and adds some extra support for serialization to and from - 599 # standard XML. - 600 # - 601 # @param element Optional root element. - 602 # @keyparam file Optional file handle or file name. If given, the - 603 # tree is initialized with the contents of this XML file. - 604 -
605 -class ElementTree(object): -
606 -
607 - def __init__(self, element=None, file=None): -
608 # assert element is None or iselement(element) - 609 self._root = element # first node - 610 if file: - 611 self.parse(file) -
612 - 613 ## - 614 # Gets the root element for this tree. - 615 # - 616 # @return An element instance. - 617 # @defreturn Element - 618 -
619 - def getroot(self): -
620 return self._root -
621 - 622 ## - 623 # Replaces the root element for this tree. This discards the - 624 # current contents of the tree, and replaces it with the given - 625 # element. Use with care. - 626 # - 627 # @param element An element instance. - 628 -
629 - def _setroot(self, element): -
630 # assert iselement(element) - 631 self._root = element -
632 - 633 ## - 634 # Loads an external XML document into this element tree. - 635 # - 636 # @param source A file name or file object. If a file object is - 637 # given, it only has to implement a <b>read(n)</b> method. - 638 # @keyparam parser An optional parser instance. If not given, the - 639 # standard {@link XMLParser} parser is used. - 640 # @return The document root element. - 641 # @defreturn Element - 642 # @exception ParseError If the parser fails to parse the document. - 643 -
644 - def parse(self, source, parser=None): -
645 close_source = False - 646 if not hasattr(source, "read"): - 647 source = open(source, "rb") - 648 close_source = True - 649 try: - 650 if not parser: - 651 parser = XMLParser(target=TreeBuilder()) - 652 while 1: - 653 data = source.read(65536) - 654 if not data: - 655 break - 656 parser.feed(data) - 657 self._root = parser.close() - 658 return self._root - 659 finally: - 660 if close_source: - 661 source.close() -
662 - 663 ## - 664 # Creates a tree iterator for the root element. The iterator loops - 665 # over all elements in this tree, in document order. - 666 # - 667 # @param tag What tags to look for (default is to return all elements) - 668 # @return An iterator. - 669 # @defreturn iterator - 670 -
671 - def iter(self, tag=None): -
672 # assert self._root is not None - 673 return self._root.iter(tag) -
674 - 675 # compatibility -
676 - def getiterator(self, tag=None): -
677 # Change for a DeprecationWarning in 1.4 - 678 warnings.warn( - 679 "This method will be removed in future versions. " - 680 "Use 'tree.iter()' or 'list(tree.iter())' instead.", - 681 PendingDeprecationWarning, stacklevel=2 - 682 ) - 683 return list(self.iter(tag)) -
684 - 685 ## - 686 # Finds the first toplevel element with given tag. - 687 # Same as getroot().find(path). - 688 # - 689 # @param path What element to look for. - 690 # @keyparam namespaces Optional namespace prefix map. - 691 # @return The first matching element, or None if no element was found. - 692 # @defreturn Element or None - 693 -
694 - def find(self, path, namespaces=None): -
695 # assert self._root is not None - 696 if path[:1] == "/": - 697 path = "." + path - 698 warnings.warn( - 699 "This search is broken in 1.3 and earlier, and will be " - 700 "fixed in a future version. If you rely on the current " - 701 "behaviour, change it to %r" % path, - 702 FutureWarning, stacklevel=2 - 703 ) - 704 return self._root.find(path, namespaces) -
705 - 706 ## - 707 # Finds the element text for the first toplevel element with given - 708 # tag. Same as getroot().findtext(path). - 709 # - 710 # @param path What toplevel element to look for. - 711 # @param default What to return if the element was not found. - 712 # @keyparam namespaces Optional namespace prefix map. - 713 # @return The text content of the first matching element, or the - 714 # default value no element was found. Note that if the element - 715 # is found, but has no text content, this method returns an - 716 # empty string. - 717 # @defreturn string - 718 -
719 - def findtext(self, path, default=None, namespaces=None): -
720 # assert self._root is not None - 721 if path[:1] == "/": - 722 path = "." + path - 723 warnings.warn( - 724 "This search is broken in 1.3 and earlier, and will be " - 725 "fixed in a future version. If you rely on the current " - 726 "behaviour, change it to %r" % path, - 727 FutureWarning, stacklevel=2 - 728 ) - 729 return self._root.findtext(path, default, namespaces) -
730 - 731 ## - 732 # Finds all toplevel elements with the given tag. - 733 # Same as getroot().findall(path). - 734 # - 735 # @param path What element to look for. - 736 # @keyparam namespaces Optional namespace prefix map. - 737 # @return A list or iterator containing all matching elements, - 738 # in document order. - 739 # @defreturn list of Element instances - 740 -
741 - def findall(self, path, namespaces=None): -
742 # assert self._root is not None - 743 if path[:1] == "/": - 744 path = "." + path - 745 warnings.warn( - 746 "This search is broken in 1.3 and earlier, and will be " - 747 "fixed in a future version. If you rely on the current " - 748 "behaviour, change it to %r" % path, - 749 FutureWarning, stacklevel=2 - 750 ) - 751 return self._root.findall(path, namespaces) -
752 - 753 ## - 754 # Finds all matching subelements, by tag name or path. - 755 # Same as getroot().iterfind(path). - 756 # - 757 # @param path What element to look for. - 758 # @keyparam namespaces Optional namespace prefix map. - 759 # @return An iterator or sequence containing all matching elements, - 760 # in document order. - 761 # @defreturn a generated sequence of Element instances - 762 -
763 - def iterfind(self, path, namespaces=None): -
764 # assert self._root is not None - 765 if path[:1] == "/": - 766 path = "." + path - 767 warnings.warn( - 768 "This search is broken in 1.3 and earlier, and will be " - 769 "fixed in a future version. If you rely on the current " - 770 "behaviour, change it to %r" % path, - 771 FutureWarning, stacklevel=2 - 772 ) - 773 return self._root.iterfind(path, namespaces) -
774 - 775 ## - 776 # Writes the element tree to a file, as XML. - 777 # - 778 # @def write(file, **options) - 779 # @param file A file name, or a file object opened for writing. - 780 # @param **options Options, given as keyword arguments. - 781 # @keyparam encoding Optional output encoding (default is US-ASCII). - 782 # @keyparam method Optional output method ("xml", "html", "text" or - 783 # "c14n"; default is "xml"). - 784 # @keyparam xml_declaration Controls if an XML declaration should - 785 # be added to the file. Use False for never, True for always, - 786 # None for only if not US-ASCII or UTF-8. None is default. - 787 -
788 - def write(self, file_or_filename, - 789 # keyword arguments - 790 encoding=None, - 791 xml_declaration=None, - 792 default_namespace=None, - 793 method=None): -
794 # assert self._root is not None - 795 if not method: - 796 method = "xml" - 797 elif method not in _serialize: - 798 # FIXME: raise an ImportError for c14n if ElementC14N is missing? - 799 raise ValueError("unknown method %r" % method) - 800 if hasattr(file_or_filename, "write"): - 801 file = file_or_filename - 802 else: - 803 file = open(file_or_filename, "wb") - 804 write = file.write - 805 if not encoding: - 806 if method == "c14n": - 807 encoding = "utf-8" - 808 else: - 809 encoding = "us-ascii" - 810 elif xml_declaration or (xml_declaration is None and - 811 encoding not in ("utf-8", "us-ascii")): - 812 if method == "xml": - 813 write("<?xml version='1.0' encoding='%s'?>\n" % encoding) - 814 if method == "text": - 815 _serialize_text(write, self._root, encoding) - 816 else: - 817 qnames, namespaces = _namespaces( - 818 self._root, encoding, default_namespace - 819 ) - 820 serialize = _serialize[method] - 821 serialize(write, self._root, encoding, qnames, namespaces) - 822 if file_or_filename is not file: - 823 file.close() -
824 -
825 - def write_c14n(self, file): -
826 # lxml.etree compatibility. use output method instead - 827 return self.write(file, method="c14n") -
828 - 829 # -------------------------------------------------------------------- - 830 # serialization support - 831 -
832 -def _namespaces(elem, encoding, default_namespace=None): -
833 # identify namespaces used in this tree - 834 - 835 # maps qnames to *encoded* prefix:local names - 836 qnames = {None: None} - 837 - 838 # maps uri:s to prefixes - 839 namespaces = {} - 840 if default_namespace: - 841 namespaces[default_namespace] = "" - 842 - 843 def encode(text): - 844 return text.encode(encoding) -
845 - 846 def add_qname(qname): - 847 # calculate serialized qname representation - 848 try: - 849 if qname[:1] == "{": - 850 uri, tag = qname[1:].rsplit("}", 1) - 851 prefix = namespaces.get(uri) - 852 if prefix is None: - 853 prefix = _namespace_map.get(uri) - 854 if prefix is None: - 855 prefix = "ns%d" % len(namespaces) - 856 if prefix != "xml": - 857 namespaces[uri] = prefix - 858 if prefix: - 859 qnames[qname] = encode("%s:%s" % (prefix, tag)) - 860 else: - 861 qnames[qname] = encode(tag) # default element - 862 else: - 863 if default_namespace: - 864 # FIXME: can this be handled in XML 1.0? - 865 raise ValueError( - 866 "cannot use non-qualified names with " - 867 "default_namespace option" - 868 ) - 869 qnames[qname] = encode(qname) - 870 except TypeError: - 871 _raise_serialization_error(qname) - 872 - 873 # populate qname and namespaces table - 874 try: - 875 iterate = elem.iter - 876 except AttributeError: - 877 iterate = elem.getiterator # cET compatibility - 878 for elem in iterate(): - 879 tag = elem.tag - 880 if isinstance(tag, QName): - 881 if tag.text not in qnames: - 882 add_qname(tag.text) - 883 elif isinstance(tag, basestring): - 884 if tag not in qnames: - 885 add_qname(tag) - 886 elif tag is not None and tag is not Comment and tag is not PI: - 887 _raise_serialization_error(tag) - 888 for key, value in elem.items(): - 889 if isinstance(key, QName): - 890 key = key.text - 891 if key not in qnames: - 892 add_qname(key) - 893 if isinstance(value, QName) and value.text not in qnames: - 894 add_qname(value.text) - 895 text = elem.text - 896 if isinstance(text, QName) and text.text not in qnames: - 897 add_qname(text.text) - 898 return qnames, namespaces - 899 -
900 -def _serialize_xml(write, elem, encoding, qnames, namespaces): -
901 tag = elem.tag - 902 text = elem.text - 903 if tag is Comment: - 904 write("<!--%s-->" % _encode(text, encoding)) - 905 elif tag is ProcessingInstruction: - 906 write("<?%s?>" % _encode(text, encoding)) - 907 else: - 908 tag = qnames[tag] - 909 if tag is None: - 910 if text: - 911 write(_escape_cdata(text, encoding)) - 912 for e in elem: - 913 _serialize_xml(write, e, encoding, qnames, None) - 914 else: - 915 write("<" + tag) - 916 items = elem.items() - 917 if items or namespaces: - 918 if namespaces: - 919 for v, k in sorted(namespaces.items(), - 920 key=lambda x: x[1]): # sort on prefix - 921 if k: - 922 k = ":" + k - 923 write(" xmlns%s=\"%s\"" % ( - 924 k.encode(encoding), - 925 _escape_attrib(v, encoding) - 926 )) - 927 for k, v in sorted(items): # lexical order - 928 if isinstance(k, QName): - 929 k = k.text - 930 if isinstance(v, QName): - 931 v = qnames[v.text] - 932 else: - 933 v = _escape_attrib(v, encoding) - 934 write(" %s=\"%s\"" % (qnames[k], v)) - 935 if text or len(elem): - 936 write(">") - 937 if text: - 938 write(_escape_cdata(text, encoding)) - 939 for e in elem: - 940 _serialize_xml(write, e, encoding, qnames, None) - 941 write("</" + tag + ">") - 942 else: - 943 write(" />") - 944 if elem.tail: - 945 write(_escape_cdata(elem.tail, encoding)) -
946 - 947 HTML_EMPTY = ("area", "base", "basefont", "br", "col", "frame", "hr", - 948 "img", "input", "isindex", "link", "meta" "param") - 949 - 950 try: - 951 HTML_EMPTY = set(HTML_EMPTY) - 952 except NameError: - 953 pass - 954 -
955 -def _serialize_html(write, elem, encoding, qnames, namespaces): -
956 tag = elem.tag - 957 text = elem.text - 958 if tag is Comment: - 959 write("<!--%s-->" % _escape_cdata(text, encoding)) - 960 elif tag is ProcessingInstruction: - 961 write("<?%s?>" % _escape_cdata(text, encoding)) - 962 else: - 963 tag = qnames[tag] - 964 if tag is None: - 965 if text: - 966 write(_escape_cdata(text, encoding)) - 967 for e in elem: - 968 _serialize_html(write, e, encoding, qnames, None) - 969 else: - 970 write("<" + tag) - 971 items = elem.items() - 972 if items or namespaces: - 973 if namespaces: - 974 for v, k in sorted(namespaces.items(), - 975 key=lambda x: x[1]): # sort on prefix - 976 if k: - 977 k = ":" + k - 978 write(" xmlns%s=\"%s\"" % ( - 979 k.encode(encoding), - 980 _escape_attrib(v, encoding) - 981 )) - 982 for k, v in sorted(items): # lexical order - 983 if isinstance(k, QName): - 984 k = k.text - 985 if isinstance(v, QName): - 986 v = qnames[v.text] - 987 else: - 988 v = _escape_attrib_html(v, encoding) - 989 # FIXME: handle boolean attributes - 990 write(" %s=\"%s\"" % (qnames[k], v)) - 991 write(">") - 992 tag = tag.lower() - 993 if text: - 994 if tag == "script" or tag == "style": - 995 write(_encode(text, encoding)) - 996 else: - 997 write(_escape_cdata(text, encoding)) - 998 for e in elem: - 999 _serialize_html(write, e, encoding, qnames, None) -1000 if tag not in HTML_EMPTY: -1001 write("</" + tag + ">") -1002 if elem.tail: -1003 write(_escape_cdata(elem.tail, encoding)) -
1004 -
1005 -def _serialize_text(write, elem, encoding): -
1006 for part in elem.itertext(): -1007 write(part.encode(encoding)) -1008 if elem.tail: -1009 write(elem.tail.encode(encoding)) -
1010 -1011 _serialize = { -1012 "xml": _serialize_xml, -1013 "html": _serialize_html, -1014 "text": _serialize_text, -1015 # this optional method is imported at the end of the module -1016 # "c14n": _serialize_c14n, -1017 } -1018 -1019 ## -1020 # Registers a namespace prefix. The registry is global, and any -1021 # existing mapping for either the given prefix or the namespace URI -1022 # will be removed. -1023 # -1024 # @param prefix Namespace prefix. -1025 # @param uri Namespace uri. Tags and attributes in this namespace -1026 # will be serialized with the given prefix, if at all possible. -1027 # @exception ValueError If the prefix is reserved, or is otherwise -1028 # invalid. -1029 -
1030 -def register_namespace(prefix, uri): -
1031 if re.match("ns\d+$", prefix): -1032 raise ValueError("Prefix format reserved for internal use") -1033 for k, v in _namespace_map.items(): -1034 if k == uri or v == prefix: -1035 del _namespace_map[k] -1036 _namespace_map[uri] = prefix -
1037 -1038 _namespace_map = { -1039 # "well-known" namespace prefixes -1040 "http://www.w3.org/XML/1998/namespace": "xml", -1041 "http://www.w3.org/1999/xhtml": "html", -1042 "http://www.w3.org/1999/02/22-rdf-syntax-ns#": "rdf", -1043 "http://schemas.xmlsoap.org/wsdl/": "wsdl", -1044 # xml schema -1045 "http://www.w3.org/2001/XMLSchema": "xs", -1046 "http://www.w3.org/2001/XMLSchema-instance": "xsi", -1047 # dublin core -1048 "http://purl.org/dc/elements/1.1/": "dc", -1049 } -1050 -
1051 -def _raise_serialization_error(text): -
1052 raise TypeError( -1053 "cannot serialize %r (type %s)" % (text, type(text).__name__) -1054 ) -
1055 -
1056 -def _encode(text, encoding): -
1057 try: -1058 return text.encode(encoding, "xmlcharrefreplace") -1059 except (TypeError, AttributeError): -1060 _raise_serialization_error(text) -
1061 -
1062 -def _escape_cdata(text, encoding): -
1063 # escape character data -1064 try: -1065 # it's worth avoiding do-nothing calls for strings that are -1066 # shorter than 500 character, or so. assume that's, by far, -1067 # the most common case in most applications. -1068 if "&" in text: -1069 text = text.replace("&", "&amp;") -1070 if "<" in text: -1071 text = text.replace("<", "&lt;") -1072 if ">" in text: -1073 text = text.replace(">", "&gt;") -1074 return text.encode(encoding, "xmlcharrefreplace") -1075 except (TypeError, AttributeError): -1076 _raise_serialization_error(text) -
1077 -
1078 -def _escape_attrib(text, encoding): -
1079 # escape attribute value -1080 try: -1081 if "&" in text: -1082 text = text.replace("&", "&amp;") -1083 if "<" in text: -1084 text = text.replace("<", "&lt;") -1085 if ">" in text: -1086 text = text.replace(">", "&gt;") -1087 if "\"" in text: -1088 text = text.replace("\"", "&quot;") -1089 if "\n" in text: -1090 text = text.replace("\n", "&#10;") -1091 return text.encode(encoding, "xmlcharrefreplace") -1092 except (TypeError, AttributeError): -1093 _raise_serialization_error(text) -
1094 -
1095 -def _escape_attrib_html(text, encoding): -
1096 # escape attribute value -1097 try: -1098 if "&" in text: -1099 text = text.replace("&", "&amp;") -1100 if ">" in text: -1101 text = text.replace(">", "&gt;") -1102 if "\"" in text: -1103 text = text.replace("\"", "&quot;") -1104 return text.encode(encoding, "xmlcharrefreplace") -1105 except (TypeError, AttributeError): -1106 _raise_serialization_error(text) -
1107 -1108 # -------------------------------------------------------------------- -1109 -1110 ## -1111 # Generates a string representation of an XML element, including all -1112 # subelements. -1113 # -1114 # @param element An Element instance. -1115 # @keyparam encoding Optional output encoding (default is US-ASCII). -1116 # @keyparam method Optional output method ("xml", "html", "text" or -1117 # "c14n"; default is "xml"). -1118 # @return An encoded string containing the XML data. -1119 # @defreturn string -1120 -
1121 -def tostring(element, encoding=None, method=None): -
1122 class dummy: -1123 pass -
1124 data = [] -1125 file = dummy() -1126 file.write = data.append -1127 ElementTree(element).write(file, encoding, method=method) -1128 return "".join(data) -1129 -1130 ## -1131 # Generates a string representation of an XML element, including all -1132 # subelements. The string is returned as a sequence of string fragments. -1133 # -1134 # @param element An Element instance. -1135 # @keyparam encoding Optional output encoding (default is US-ASCII). -1136 # @keyparam method Optional output method ("xml", "html", "text" or -1137 # "c14n"; default is "xml"). -1138 # @return A sequence object containing the XML data. -1139 # @defreturn sequence -1140 # @since 1.3 -1141 -
1142 -def tostringlist(element, encoding=None, method=None): -
1143 class dummy: -1144 pass -
1145 data = [] -1146 file = dummy() -1147 file.write = data.append -1148 ElementTree(element).write(file, encoding, method=method) -1149 # FIXME: merge small fragments into larger parts -1150 return data -1151 -1152 ## -1153 # Writes an element tree or element structure to sys.stdout. This -1154 # function should be used for debugging only. -1155 # <p> -1156 # The exact output format is implementation dependent. In this -1157 # version, it's written as an ordinary XML file. -1158 # -1159 # @param elem An element tree or an individual element. -1160 -
1161 -def dump(elem): -
1162 # debugging -1163 if not isinstance(elem, ElementTree): -1164 elem = ElementTree(elem) -1165 elem.write(sys.stdout) -1166 tail = elem.getroot().tail -1167 if not tail or tail[-1] != "\n": -1168 sys.stdout.write("\n") -
1169 -1170 # -------------------------------------------------------------------- -1171 # parsing -1172 -1173 ## -1174 # Parses an XML document into an element tree. -1175 # -1176 # @param source A filename or file object containing XML data. -1177 # @param parser An optional parser instance. If not given, the -1178 # standard {@link XMLParser} parser is used. -1179 # @return An ElementTree instance -1180 -
1181 -def parse(source, parser=None): -
1182 tree = ElementTree() -1183 tree.parse(source, parser) -1184 return tree -
1185 -1186 ## -1187 # Parses an XML document into an element tree incrementally, and reports -1188 # what's going on to the user. -1189 # -1190 # @param source A filename or file object containing XML data. -1191 # @param events A list of events to report back. If omitted, only "end" -1192 # events are reported. -1193 # @param parser An optional parser instance. If not given, the -1194 # standard {@link XMLParser} parser is used. -1195 # @return A (event, elem) iterator. -1196 -
1197 -def iterparse(source, events=None, parser=None): -
1198 close_source = False -1199 if not hasattr(source, "read"): -1200 source = open(source, "rb") -1201 close_source = True -1202 if not parser: -1203 parser = XMLParser(target=TreeBuilder()) -1204 return _IterParseIterator(source, events, parser, close_source) -
1205 -
1206 -class _IterParseIterator(object): -
1207 -
1208 - def __init__(self, source, events, parser, close_source=False): -
1209 self._file = source -1210 self._close_file = close_source -1211 self._events = [] -1212 self._index = 0 -1213 self._error = None -1214 self.root = self._root = None -1215 self._parser = parser -1216 # wire up the parser for event reporting -1217 parser = self._parser._parser -1218 append = self._events.append -1219 if events is None: -1220 events = ["end"] -1221 for event in events: -1222 if event == "start": -1223 try: -1224 parser.ordered_attributes = 1 -1225 parser.specified_attributes = 1 -1226 def handler(tag, attrib_in, event=event, append=append, -1227 start=self._parser._start_list): -1228 append((event, start(tag, attrib_in))) -
1229 parser.StartElementHandler = handler -1230 except AttributeError: -1231 def handler(tag, attrib_in, event=event, append=append, -1232 start=self._parser._start): -1233 append((event, start(tag, attrib_in))) -
1234 parser.StartElementHandler = handler -1235 elif event == "end": -1236 def handler(tag, event=event, append=append, -1237 end=self._parser._end): -1238 append((event, end(tag))) -1239 parser.EndElementHandler = handler -1240 elif event == "start-ns": -1241 def handler(prefix, uri, event=event, append=append): -1242 try: -1243 uri = (uri or "").encode("ascii") -1244 except UnicodeError: -1245 pass -1246 append((event, (prefix or "", uri or ""))) -1247 parser.StartNamespaceDeclHandler = handler -1248 elif event == "end-ns": -1249 def handler(prefix, event=event, append=append): -1250 append((event, None)) -1251 parser.EndNamespaceDeclHandler = handler -1252 else: -1253 raise ValueError("unknown event %r" % event) -1254 -
1255 - def next(self): -
1256 while 1: -1257 try: -1258 item = self._events[self._index] -1259 self._index += 1 -1260 return item -1261 except IndexError: -1262 pass -1263 if self._error: -1264 e = self._error -1265 self._error = None -1266 raise e -1267 if self._parser is None: -1268 self.root = self._root -1269 if self._close_file: -1270 self._file.close() -1271 raise StopIteration -1272 # load event buffer -1273 del self._events[:] -1274 self._index = 0 -1275 data = self._file.read(16384) -1276 if data: -1277 try: -1278 self._parser.feed(data) -1279 except SyntaxError as exc: -1280 self._error = exc -1281 else: -1282 self._root = self._parser.close() -1283 self._parser = None -
1284 -
1285 - def __iter__(self): -
1286 return self -
1287 -1288 ## -1289 # Parses an XML document from a string constant. This function can -1290 # be used to embed "XML literals" in Python code. -1291 # -1292 # @param source A string containing XML data. -1293 # @param parser An optional parser instance. If not given, the -1294 # standard {@link XMLParser} parser is used. -1295 # @return An Element instance. -1296 # @defreturn Element -1297 -
1298 -def XML(text, parser=None): -
1299 if not parser: -1300 parser = XMLParser(target=TreeBuilder()) -1301 parser.feed(text) -1302 return parser.close() -
1303 -1304 ## -1305 # Parses an XML document from a string constant, and also returns -1306 # a dictionary which maps from element id:s to elements. -1307 # -1308 # @param source A string containing XML data. -1309 # @param parser An optional parser instance. If not given, the -1310 # standard {@link XMLParser} parser is used. -1311 # @return A tuple containing an Element instance and a dictionary. -1312 # @defreturn (Element, dictionary) -1313 -
1314 -def XMLID(text, parser=None): -
1315 if not parser: -1316 parser = XMLParser(target=TreeBuilder()) -1317 parser.feed(text) -1318 tree = parser.close() -1319 ids = {} -1320 for elem in tree.iter(): -1321 id = elem.get("id") -1322 if id: -1323 ids[id] = elem -1324 return tree, ids -
1325 -1326 ## -1327 # Parses an XML document from a string constant. Same as {@link #XML}. -1328 # -1329 # @def fromstring(text) -1330 # @param source A string containing XML data. -1331 # @return An Element instance. -1332 # @defreturn Element -1333 -1334 fromstring = XML -1335 -1336 ## -1337 # Parses an XML document from a sequence of string fragments. -1338 # -1339 # @param sequence A list or other sequence containing XML data fragments. -1340 # @param parser An optional parser instance. If not given, the -1341 # standard {@link XMLParser} parser is used. -1342 # @return An Element instance. -1343 # @defreturn Element -1344 # @since 1.3 -1345 -
1346 -def fromstringlist(sequence, parser=None): -
1347 if not parser: -1348 parser = XMLParser(target=TreeBuilder()) -1349 for text in sequence: -1350 parser.feed(text) -1351 return parser.close() -
1352 -1353 # -------------------------------------------------------------------- -1354 -1355 ## -1356 # Generic element structure builder. This builder converts a sequence -1357 # of {@link #TreeBuilder.start}, {@link #TreeBuilder.data}, and {@link -1358 # #TreeBuilder.end} method calls to a well-formed element structure. -1359 # <p> -1360 # You can use this class to build an element structure using a custom XML -1361 # parser, or a parser for some other XML-like format. -1362 # -1363 # @param element_factory Optional element factory. This factory -1364 # is called to create new Element instances, as necessary. -1365 -
1366 -class TreeBuilder(object): -
1367 -
1368 - def __init__(self, element_factory=None): -
1369 self._data = [] # data collector -1370 self._elem = [] # element stack -1371 self._last = None # last element -1372 self._tail = None # true if we're after an end tag -1373 if element_factory is None: -1374 element_factory = Element -1375 self._factory = element_factory -
1376 -1377 ## -1378 # Flushes the builder buffers, and returns the toplevel document -1379 # element. -1380 # -1381 # @return An Element instance. -1382 # @defreturn Element -1383 -
1384 - def close(self): -
1385 assert len(self._elem) == 0, "missing end tags" -1386 assert self._last is not None, "missing toplevel element" -1387 return self._last -
1388 -
1389 - def _flush(self): -
1390 if self._data: -1391 if self._last is not None: -1392 text = "".join(self._data) -1393 if self._tail: -1394 assert self._last.tail is None, "internal error (tail)" -1395 self._last.tail = text -1396 else: -1397 assert self._last.text is None, "internal error (text)" -1398 self._last.text = text -1399 self._data = [] -
1400 -1401 ## -1402 # Adds text to the current element. -1403 # -1404 # @param data A string. This should be either an 8-bit string -1405 # containing ASCII text, or a Unicode string. -1406 -
1407 - def data(self, data): -
1408 self._data.append(data) -
1409 -1410 ## -1411 # Opens a new element. -1412 # -1413 # @param tag The element name. -1414 # @param attrib A dictionary containing element attributes. -1415 # @return The opened element. -1416 # @defreturn Element -1417 -
1418 - def start(self, tag, attrs): -
1419 self._flush() -1420 self._last = elem = self._factory(tag, attrs) -1421 if self._elem: -1422 self._elem[-1].append(elem) -1423 self._elem.append(elem) -1424 self._tail = 0 -1425 return elem -
1426 -1427 ## -1428 # Closes the current element. -1429 # -1430 # @param tag The element name. -1431 # @return The closed element. -1432 # @defreturn Element -1433 -
1434 - def end(self, tag): -
1435 self._flush() -1436 self._last = self._elem.pop() -1437 assert self._last.tag == tag,\ -1438 "end tag mismatch (expected %s, got %s)" % ( -1439 self._last.tag, tag) -1440 self._tail = 1 -1441 return self._last -
1442 -1443 ## -1444 # Element structure builder for XML source data, based on the -1445 # <b>expat</b> parser. -1446 # -1447 # @keyparam target Target object. If omitted, the builder uses an -1448 # instance of the standard {@link #TreeBuilder} class. -1449 # @keyparam html Predefine HTML entities. This flag is not supported -1450 # by the current implementation. -1451 # @keyparam encoding Optional encoding. If given, the value overrides -1452 # the encoding specified in the XML file. -1453 # @see #ElementTree -1454 # @see #TreeBuilder -1455 -
1456 -class XMLParser(object): -
1457 -
1458 - def __init__(self, html=0, target=None, encoding=None): -
1459 try: -1460 from xml.parsers import expat -1461 except ImportError: -1462 try: -1463 import pyexpat as expat -1464 except ImportError: -1465 raise ImportError( -1466 "No module named expat; use SimpleXMLTreeBuilder instead" -1467 ) -1468 parser = expat.ParserCreate(encoding, "}") -1469 if target is None: -1470 target = TreeBuilder() -1471 # underscored names are provided for compatibility only -1472 self.parser = self._parser = parser -1473 self.target = self._target = target -1474 self._error = expat.error -1475 self._names = {} # name memo cache -1476 # callbacks -1477 parser.DefaultHandlerExpand = self._default -1478 parser.StartElementHandler = self._start -1479 parser.EndElementHandler = self._end -1480 parser.CharacterDataHandler = self._data -1481 # optional callbacks -1482 parser.CommentHandler = self._comment -1483 parser.ProcessingInstructionHandler = self._pi -1484 # let expat do the buffering, if supported -1485 try: -1486 self._parser.buffer_text = 1 -1487 except AttributeError: -1488 pass -1489 # use new-style attribute handling, if supported -1490 try: -1491 self._parser.ordered_attributes = 1 -1492 self._parser.specified_attributes = 1 -1493 parser.StartElementHandler = self._start_list -1494 except AttributeError: -1495 pass -1496 self._doctype = None -1497 self.entity = {} -1498 try: -1499 self.version = "Expat %d.%d.%d" % expat.version_info -1500 except AttributeError: -1501 pass # unknown -
1502 -
1503 - def _raiseerror(self, value): -
1504 err = ParseError(value) -1505 err.code = value.code -1506 err.position = value.lineno, value.offset -1507 raise err -
1508 -
1509 - def _fixtext(self, text): -
1510 # convert text string to ascii, if possible -1511 try: -1512 return text.encode("ascii") -1513 except UnicodeError: -1514 return text -
1515 -
1516 - def _fixname(self, key): -
1517 # expand qname, and convert name string to ascii, if possible -1518 try: -1519 name = self._names[key] -1520 except KeyError: -1521 name = key -1522 if "}" in name: -1523 name = "{" + name -1524 self._names[key] = name = self._fixtext(name) -1525 return name -
1526 -
1527 - def _start(self, tag, attrib_in): -
1528 fixname = self._fixname -1529 fixtext = self._fixtext -1530 tag = fixname(tag) -1531 attrib = {} -1532 for key, value in attrib_in.items(): -1533 attrib[fixname(key)] = fixtext(value) -1534 return self.target.start(tag, attrib) -
1535 -
1536 - def _start_list(self, tag, attrib_in): -
1537 fixname = self._fixname -1538 fixtext = self._fixtext -1539 tag = fixname(tag) -1540 attrib = {} -1541 if attrib_in: -1542 for i in range(0, len(attrib_in), 2): -1543 attrib[fixname(attrib_in[i])] = fixtext(attrib_in[i+1]) -1544 return self.target.start(tag, attrib) -
1545 -
1546 - def _data(self, text): -
1547 return self.target.data(self._fixtext(text)) -
1548 -
1549 - def _end(self, tag): -
1550 return self.target.end(self._fixname(tag)) -
1551 -
1552 - def _comment(self, data): -
1553 try: -1554 comment = self.target.comment -1555 except AttributeError: -1556 pass -1557 else: -1558 return comment(self._fixtext(data)) -
1559 -
1560 - def _pi(self, target, data): -
1561 try: -1562 pi = self.target.pi -1563 except AttributeError: -1564 pass -1565 else: -1566 return pi(self._fixtext(target), self._fixtext(data)) -
1567 -
1568 - def _default(self, text): -
1569 prefix = text[:1] -1570 if prefix == "&": -1571 # deal with undefined entities -1572 try: -1573 self.target.data(self.entity[text[1:-1]]) -1574 except KeyError: -1575 from xml.parsers import expat -1576 err = expat.error( -1577 "undefined entity %s: line %d, column %d" % -1578 (text, self._parser.ErrorLineNumber, -1579 self._parser.ErrorColumnNumber) -1580 ) -1581 err.code = 11 # XML_ERROR_UNDEFINED_ENTITY -1582 err.lineno = self._parser.ErrorLineNumber -1583 err.offset = self._parser.ErrorColumnNumber -1584 raise err -1585 elif prefix == "<" and text[:9] == "<!DOCTYPE": -1586 self._doctype = [] # inside a doctype declaration -1587 elif self._doctype is not None: -1588 # parse doctype contents -1589 if prefix == ">": -1590 self._doctype = None -1591 return -1592 text = text.strip() -1593 if not text: -1594 return -1595 self._doctype.append(text) -1596 n = len(self._doctype) -1597 if n > 2: -1598 type = self._doctype[1] -1599 if type == "PUBLIC" and n == 4: -1600 name, type, pubid, system = self._doctype -1601 elif type == "SYSTEM" and n == 3: -1602 name, type, system = self._doctype -1603 pubid = None -1604 else: -1605 return -1606 if pubid: -1607 pubid = pubid[1:-1] -1608 if hasattr(self.target, "doctype"): -1609 self.target.doctype(name, pubid, system[1:-1]) -1610 elif self.doctype is not self._XMLParser__doctype: -1611 # warn about deprecated call -1612 self._XMLParser__doctype(name, pubid, system[1:-1]) -1613 self.doctype(name, pubid, system[1:-1]) -1614 self._doctype = None -
1615 -1616 ## -1617 # (Deprecated) Handles a doctype declaration. -1618 # -1619 # @param name Doctype name. -1620 # @param pubid Public identifier. -1621 # @param system System identifier. -1622 -
1623 - def doctype(self, name, pubid, system): -
1624 """This method of XMLParser is deprecated.""" -1625 warnings.warn( -1626 "This method of XMLParser is deprecated. Define doctype() " -1627 "method on the TreeBuilder target.", -1628 DeprecationWarning, -1629 ) -
1630 -1631 # sentinel, if doctype is redefined in a subclass -1632 __doctype = doctype -1633 -1634 ## -1635 # Feeds data to the parser. -1636 # -1637 # @param data Encoded data. -1638 -
1639 - def feed(self, data): -
1640 try: -1641 self._parser.Parse(data, 0) -1642 except self._error, v: -1643 self._raiseerror(v) -
1644 -1645 ## -1646 # Finishes feeding data to the parser. -1647 # -1648 # @return An element structure. -1649 # @defreturn Element -1650 -
1651 - def close(self): -
1652 try: -1653 self._parser.Parse("", 1) # end of data -1654 except self._error, v: -1655 self._raiseerror(v) -1656 tree = self.target.close() -1657 del self.target, self._parser # get rid of circular references -1658 return tree -
1659 -1660 # compatibility -1661 XMLTreeBuilder = XMLParser -1662 -1663 # workaround circular import. -1664 try: -1665 from ElementC14N import _serialize_c14n -1666 _serialize["c14n"] = _serialize_c14n -1667 except ImportError: -1668 pass -1669 -
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/xml.etree.ElementTree.Element-class.html b/doc/html/api/xml.etree.ElementTree.Element-class.html deleted file mode 100644 index 345b2b7..0000000 --- a/doc/html/api/xml.etree.ElementTree.Element-class.html +++ /dev/null @@ -1,751 +0,0 @@ - - - - - xml.etree.ElementTree.Element - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - xml :: - etree :: - ElementTree :: - Element :: - Class Element - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class Element

source code

-
-object --+
-         |
-        Element
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__delitem__(self, - index) - source code - -
- -
-   - - - - - - -
__getitem__(self, - index) - source code - -
- -
-   - - - - - - -
__init__(self, - tag, - attrib={}, - **extra)
- x.__init__(...) initializes x; see help(type(x)) for signature
- source code - -
- -
-   - - - - - - -
__len__(self) - source code - -
- -
-   - - - - - - -
__nonzero__(self) - source code - -
- -
-   - - - - - - -
__repr__(self)
- repr(x)
- source code - -
- -
-   - - - - - - -
__setitem__(self, - index, - element) - source code - -
- -
-   - - - - - - -
append(self, - element) - source code - -
- -
-   - - - - - - -
clear(self) - source code - -
- -
-   - - - - - - -
copy(self) - source code - -
- -
-   - - - - - - -
extend(self, - elements) - source code - -
- -
-   - - - - - - -
find(self, - path, - namespaces=None) - source code - -
- -
-   - - - - - - -
findall(self, - path, - namespaces=None) - source code - -
- -
-   - - - - - - -
findtext(self, - path, - default=None, - namespaces=None) - source code - -
- -
-   - - - - - - -
get(self, - key, - default=None) - source code - -
- -
-   - - - - - - -
getchildren(self) - source code - -
- -
-   - - - - - - -
getiterator(self, - tag=None) - source code - -
- -
-   - - - - - - -
insert(self, - index, - element) - source code - -
- -
-   - - - - - - -
items(self) - source code - -
- -
-   - - - - - - -
iter(self, - tag=None) - source code - -
- -
-   - - - - - - -
iterfind(self, - path, - namespaces=None) - source code - -
- -
-   - - - - - - -
itertext(self) - source code - -
- -
-   - - - - - - -
keys(self) - source code - -
- -
-   - - - - - - -
makeelement(self, - tag, - attrib) - source code - -
- -
-   - - - - - - -
remove(self, - element) - source code - -
- -
-   - - - - - - -
set(self, - key, - value) - source code - -
- -
-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __new__, - __reduce__, - __reduce_ex__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - - - - - - - - - - -
- - - - - -
Class Variables[hide private]
-
-   - - attrib = None
- hash(x) -
-   - - tag = None
- hash(x) -
-   - - tail = None
- hash(x) -
-   - - text = None
- hash(x) -
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__init__(self, - tag, - attrib={}, - **extra) -
(Constructor) -

-
source code  -
- - x.__init__(...) initializes x; see help(type(x)) for signature -
-
Overrides: - object.__init__ -
(inherited documentation)
- -
-
-
- -
- -
- - -
-

__repr__(self) -
(Representation operator) -

-
source code  -
- - repr(x) -
-
Overrides: - object.__repr__ -
(inherited documentation)
- -
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/xml.etree.ElementTree.ElementTree-class.html b/doc/html/api/xml.etree.ElementTree.ElementTree-class.html deleted file mode 100644 index 19cb287..0000000 --- a/doc/html/api/xml.etree.ElementTree.ElementTree-class.html +++ /dev/null @@ -1,445 +0,0 @@ - - - - - xml.etree.ElementTree.ElementTree - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - xml :: - etree :: - ElementTree :: - ElementTree :: - Class ElementTree - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class ElementTree

source code

-
-object --+
-         |
-        ElementTree
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__init__(self, - element=None, - file=None)
- x.__init__(...) initializes x; see help(type(x)) for signature
- source code - -
- -
-   - - - - - - -
_setroot(self, - element) - source code - -
- -
-   - - - - - - -
find(self, - path, - namespaces=None) - source code - -
- -
-   - - - - - - -
findall(self, - path, - namespaces=None) - source code - -
- -
-   - - - - - - -
findtext(self, - path, - default=None, - namespaces=None) - source code - -
- -
-   - - - - - - -
getiterator(self, - tag=None) - source code - -
- -
-   - - - - - - -
getroot(self) - source code - -
- -
-   - - - - - - -
iter(self, - tag=None) - source code - -
- -
-   - - - - - - -
iterfind(self, - path, - namespaces=None) - source code - -
- -
-   - - - - - - -
parse(self, - source, - parser=None) - source code - -
- -
-   - - - - - - -
write(self, - file_or_filename, - encoding=None, - xml_declaration=None, - default_namespace=None, - method=None) - source code - -
- -
-   - - - - - - -
write_c14n(self, - file) - source code - -
- -
-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __new__, - __reduce__, - __reduce_ex__, - __repr__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__init__(self, - element=None, - file=None) -
(Constructor) -

-
source code  -
- - x.__init__(...) initializes x; see help(type(x)) for signature -
-
Overrides: - object.__init__ -
(inherited documentation)
- -
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/xml.etree.ElementTree.ParseError-class.html b/doc/html/api/xml.etree.ElementTree.ParseError-class.html deleted file mode 100644 index 9662d3d..0000000 --- a/doc/html/api/xml.etree.ElementTree.ParseError-class.html +++ /dev/null @@ -1,214 +0,0 @@ - - - - - xml.etree.ElementTree.ParseError - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - xml :: - etree :: - ElementTree :: - ParseError :: - Class ParseError - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class ParseError

source code

-
-              object --+                
-                       |                
-exceptions.BaseException --+            
-                           |            
-        exceptions.Exception --+        
-                               |        
-        exceptions.StandardError --+    
-                                   |    
-              exceptions.SyntaxError --+
-                                       |
-                                      ParseError
-
- -
- - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-

Inherited from exceptions.SyntaxError: - __init__, - __new__, - __str__ -

-

Inherited from exceptions.BaseException: - __delattr__, - __getattribute__, - __getitem__, - __getslice__, - __reduce__, - __repr__, - __setattr__, - __setstate__, - __unicode__ -

-

Inherited from object: - __format__, - __hash__, - __reduce_ex__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from exceptions.SyntaxError: - filename, - lineno, - msg, - offset, - print_file_and_line, - text -

-

Inherited from exceptions.BaseException: - args, - message -

-

Inherited from object: - __class__ -

-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/xml.etree.ElementTree.QName-class.html b/doc/html/api/xml.etree.ElementTree.QName-class.html deleted file mode 100644 index 446c326..0000000 --- a/doc/html/api/xml.etree.ElementTree.QName-class.html +++ /dev/null @@ -1,346 +0,0 @@ - - - - - xml.etree.ElementTree.QName - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - xml :: - etree :: - ElementTree :: - QName :: - Class QName - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class QName

source code

-
-object --+
-         |
-        QName
-
- -
- - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__cmp__(self, - other) - source code - -
- -
-   - - - - - - -
__hash__(self)
- hash(x)
- source code - -
- -
-   - - - - - - -
__init__(self, - text_or_uri, - tag=None)
- x.__init__(...) initializes x; see help(type(x)) for signature
- source code - -
- -
-   - - - - - - -
__str__(self)
- str(x)
- source code - -
- -
-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __new__, - __reduce__, - __reduce_ex__, - __repr__, - __setattr__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__hash__(self) -
(Hashing function) -

-
source code  -
- - hash(x) -
-
Overrides: - object.__hash__ -
(inherited documentation)
- -
-
-
- -
- -
- - -
-

__init__(self, - text_or_uri, - tag=None) -
(Constructor) -

-
source code  -
- - x.__init__(...) initializes x; see help(type(x)) for signature -
-
Overrides: - object.__init__ -
(inherited documentation)
- -
-
-
- -
- -
- - -
-

__str__(self) -
(Informal representation operator) -

-
source code  -
- - str(x) -
-
Overrides: - object.__str__ -
(inherited documentation)
- -
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/xml.etree.ElementTree.TreeBuilder-class.html b/doc/html/api/xml.etree.ElementTree.TreeBuilder-class.html deleted file mode 100644 index 3310c50..0000000 --- a/doc/html/api/xml.etree.ElementTree.TreeBuilder-class.html +++ /dev/null @@ -1,331 +0,0 @@ - - - - - xml.etree.ElementTree.TreeBuilder - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - xml :: - etree :: - ElementTree :: - TreeBuilder :: - Class TreeBuilder - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class TreeBuilder

source code

-
-object --+
-         |
-        TreeBuilder
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__init__(self, - element_factory=None)
- x.__init__(...) initializes x; see help(type(x)) for signature
- source code - -
- -
-   - - - - - - -
_flush(self) - source code - -
- -
-   - - - - - - -
close(self) - source code - -
- -
-   - - - - - - -
data(self, - data) - source code - -
- -
-   - - - - - - -
end(self, - tag) - source code - -
- -
-   - - - - - - -
start(self, - tag, - attrs) - source code - -
- -
-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __new__, - __reduce__, - __reduce_ex__, - __repr__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__init__(self, - element_factory=None) -
(Constructor) -

-
source code  -
- - x.__init__(...) initializes x; see help(type(x)) for signature -
-
Overrides: - object.__init__ -
(inherited documentation)
- -
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/xml.etree.ElementTree.XMLParser-class.html b/doc/html/api/xml.etree.ElementTree.XMLParser-class.html deleted file mode 100644 index 79c7f0b..0000000 --- a/doc/html/api/xml.etree.ElementTree.XMLParser-class.html +++ /dev/null @@ -1,497 +0,0 @@ - - - - - xml.etree.ElementTree.XMLParser - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - xml :: - etree :: - ElementTree :: - XMLParser :: - Class XMLParser - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class XMLParser

source code

-
-object --+
-         |
-        XMLParser
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__doctype(self, - name, - pubid, - system)
- This method of XMLParser is deprecated.
- source code - -
- -
-   - - - - - - -
__init__(self, - html=0, - target=None, - encoding=None)
- x.__init__(...) initializes x; see help(type(x)) for signature
- source code - -
- -
-   - - - - - - -
_comment(self, - data) - source code - -
- -
-   - - - - - - -
_data(self, - text) - source code - -
- -
-   - - - - - - -
_default(self, - text) - source code - -
- -
-   - - - - - - -
_end(self, - tag) - source code - -
- -
-   - - - - - - -
_fixname(self, - key) - source code - -
- -
-   - - - - - - -
_fixtext(self, - text) - source code - -
- -
-   - - - - - - -
_pi(self, - target, - data) - source code - -
- -
-   - - - - - - -
_raiseerror(self, - value) - source code - -
- -
-   - - - - - - -
_start(self, - tag, - attrib_in) - source code - -
- -
-   - - - - - - -
_start_list(self, - tag, - attrib_in) - source code - -
- -
-   - - - - - - -
close(self) - source code - -
- -
-   - - - - - - -
doctype(self, - name, - pubid, - system)
- This method of XMLParser is deprecated.
- source code - -
- -
-   - - - - - - -
feed(self, - data) - source code - -
- -
-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __new__, - __reduce__, - __reduce_ex__, - __repr__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__init__(self, - html=0, - target=None, - encoding=None) -
(Constructor) -

-
source code  -
- - x.__init__(...) initializes x; see help(type(x)) for signature -
-
Overrides: - object.__init__ -
(inherited documentation)
- -
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/xml.etree.ElementTree._IterParseIterator-class.html b/doc/html/api/xml.etree.ElementTree._IterParseIterator-class.html deleted file mode 100644 index ffd9a31..0000000 --- a/doc/html/api/xml.etree.ElementTree._IterParseIterator-class.html +++ /dev/null @@ -1,285 +0,0 @@ - - - - - xml.etree.ElementTree._IterParseIterator - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - xml :: - etree :: - ElementTree :: - _IterParseIterator :: - Class _IterParseIterator - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class _IterParseIterator

source code

-
-object --+
-         |
-        _IterParseIterator
-
- -
- - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__init__(self, - source, - events, - parser, - close_source=False)
- x.__init__(...) initializes x; see help(type(x)) for signature
- source code - -
- -
-   - - - - - - -
__iter__(self) - source code - -
- -
-   - - - - - - -
next(self) - source code - -
- -
-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __new__, - __reduce__, - __reduce_ex__, - __repr__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__init__(self, - source, - events, - parser, - close_source=False) -
(Constructor) -

-
source code  -
- - x.__init__(...) initializes x; see help(type(x)) for signature -
-
Overrides: - object.__init__ -
(inherited documentation)
- -
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/api/xml.etree.ElementTree._SimpleElementPath-class.html b/doc/html/api/xml.etree.ElementTree._SimpleElementPath-class.html deleted file mode 100644 index dcaf6b1..0000000 --- a/doc/html/api/xml.etree.ElementTree._SimpleElementPath-class.html +++ /dev/null @@ -1,263 +0,0 @@ - - - - - xml.etree.ElementTree._SimpleElementPath - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - xml :: - etree :: - ElementTree :: - _SimpleElementPath :: - Class _SimpleElementPath - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class _SimpleElementPath

source code

-
-object --+
-         |
-        _SimpleElementPath
-
- -
- - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
find(self, - element, - tag, - namespaces=None) - source code - -
- -
-   - - - - - - -
findall(self, - element, - tag, - namespaces=None) - source code - -
- -
-   - - - - - - -
findtext(self, - element, - tag, - default=None, - namespaces=None) - source code - -
- -
-   - - - - - - -
iterfind(self, - element, - tag, - namespaces=None) - source code - -
- -
-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __init__, - __new__, - __reduce__, - __reduce_ex__, - __repr__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/doc/html/build.html b/doc/html/build.html index d734336..23d6778 100644 --- a/doc/html/build.html +++ b/doc/html/build.html @@ -2,13 +2,13 @@ - + How to build lxml from source
-

How to build lxml from source

+

How to build lxml from source

To build lxml from source, you need libxml2 and libxslt properly installed, including the header files. These are likely shipped in @@ -45,9 +45,9 @@ developer sources (e.g. to test a bug fix that has not been release yet) or if you want to be an lxml developer, then you do need a working Cython installation. You can use pip to install it:

-pip install "Cython>=0.17.1"
+pip install "Cython>=0.17.3"
 
-

lxml currently requires Cython 0.17.1, later release versions should +

lxml currently requires Cython 0.17.3, later release versions should work as well.

@@ -305,7 +305,7 @@ installed using dpkg -i diff --git a/doc/html/capi.html b/doc/html/capi.html index 242d6e5..9b95f52 100644 --- a/doc/html/capi.html +++ b/doc/html/capi.html @@ -2,13 +2,13 @@ - + The public C-API of lxml.etree
-

The public C-API of lxml.etree

+

The public C-API of lxml.etree

As of version 1.1, lxml.etree provides a public C-API. This allows external C extensions to efficiently access public functions and classes of lxml, @@ -94,7 +94,7 @@ includes may not be sufficient.

diff --git a/doc/html/changes-3.0.1.html b/doc/html/changes-3.0.2.html similarity index 99% rename from doc/html/changes-3.0.1.html rename to doc/html/changes-3.0.2.html index 047a211..2829b5e 100644 --- a/doc/html/changes-3.0.1.html +++ b/doc/html/changes-3.0.2.html @@ -3,7 +3,7 @@ - + lxml changelog @@ -12,29 +12,44 @@

lxml changelog

-

3.0.1 (2012-10-14)

+

3.0.2 (2012-12-14)

Features added

Bugs fixed

    +
  • Fix crash during interpreter shutdown by switching to Cython 0.17.3 for building.
  • +
+
+
+

Other changes

+
+
+
+

3.0.1 (2012-10-14)

+
+

Features added

+
+
+

Bugs fixed

+
  • LP#1065924: Element proxies could disappear during garbage collection in PyPy without proper cleanup.
  • GH#71: Failure to work with libxml2 2.6.x.
  • LP#1065139: static MacOS-X build failed in Py3.
-
+

Other changes

-
+

3.0 (2012-10-08)

-
+

Features added

-
+

Bugs fixed

  • End-of-file handling was incorrect in iterparse() when reading from @@ -42,7 +57,7 @@ a low-level C file stream and failed in libxml2 2.9.0 due to its improved consistency checks.
-
+

Other changes

  • The build no longer uses Cython by default unless the generated C files @@ -55,21 +70,21 @@ run special setup.py commands that do not actually run a build), pass

3.0beta1 (2012-09-26)

-
+

Features added

  • Python level access to (optional) libxml2 memory debugging features to simplify debugging of memory leaks etc.
-
+

Bugs fixed

  • Fix a memory leak in XPath by switching to Cython 0.17.1.
  • Some tests were adapted to work with PyPy.
-
+

Other changes

  • The code was adapted to work with the upcoming libxml2 2.9.0 release.
  • @@ -78,7 +93,7 @@ to simplify debugging of memory leaks etc.

3.0alpha2 (2012-08-23)

-
+

Features added

diff --git a/doc/html/cssselect.html b/doc/html/cssselect.html index 47f1caa..c165565 100644 --- a/doc/html/cssselect.html +++ b/doc/html/cssselect.html @@ -2,13 +2,13 @@ - + lxml.cssselect
-

lxml.cssselect

+

lxml.cssselect

lxml supports a number of interesting languages for tree traversal and element selection. The most important is obviously XPath, but there is also @@ -92,7 +92,7 @@ namespace URIs: the CSSSelector class accepts

diff --git a/doc/html/element_classes.html b/doc/html/element_classes.html index 1f140dd..c733657 100644 --- a/doc/html/element_classes.html +++ b/doc/html/element_classes.html @@ -2,13 +2,13 @@ - + Using custom Element classes in lxml
-

Using custom Element classes in lxml

+

Using custom Element classes in lxml

lxml has very sophisticated support for custom Element classes. You can provide your own classes for Elements and have lxml use them by @@ -443,7 +443,7 @@ subclasses for elements of this namespace:

diff --git a/doc/html/elementsoup.html b/doc/html/elementsoup.html index 7ca8e91..dc10cfb 100644 --- a/doc/html/elementsoup.html +++ b/doc/html/elementsoup.html @@ -2,13 +2,13 @@ - + BeautifulSoup Parser
-

BeautifulSoup Parser

+

BeautifulSoup Parser

BeautifulSoup is a Python package that parses broken HTML, just like lxml supports it based on the parser of libxml2. BeautifulSoup uses a @@ -169,7 +169,7 @@ BeautifulSoup's

-Generated on: 2012-10-14. +Generated on: 2012-12-14.
diff --git a/doc/html/extensions.html b/doc/html/extensions.html index 48f9e85..790ba5c 100644 --- a/doc/html/extensions.html +++ b/doc/html/extensions.html @@ -2,13 +2,13 @@ - + Python extensions for XPath and XSLT
-

Python extensions for XPath and XSLT

+

Python extensions for XPath and XSLT

This document describes how to use Python extension functions in XPath and XSLT like this:

@@ -486,7 +486,7 @@ will work:

diff --git a/doc/html/html5parser.html b/doc/html/html5parser.html index d99f00e..c660c50 100644 --- a/doc/html/html5parser.html +++ b/doc/html/html5parser.html @@ -2,13 +2,13 @@ - + html5lib Parser
-

html5lib Parser

+

html5lib Parser

html5lib is a Python package that implements the HTML5 parsing algorithm which is heavily influenced by current browsers and based on the WHATWG @@ -74,7 +74,7 @@ module. Note that these are the parser classes provided by html5lib.

diff --git a/doc/html/index.html b/doc/html/index.html index d32fae2..4be3745 100644 --- a/doc/html/index.html +++ b/doc/html/index.html @@ -2,7 +2,7 @@ - + lxml - Processing XML and HTML with Python @@ -10,7 +10,7 @@
-

lxml - XML and HTML with Python

+

lxml - XML and HTML with Python

@@ -55,7 +55,7 @@ and fast Python XML processing.

Documentation

-

The complete lxml documentation is available for download as PDF +

The complete lxml documentation is available for download as PDF documentation. The HTML documentation from this web site is part of the normal source download.

diff --git a/doc/html/installation.html b/doc/html/installation.html index 78cce2c..9b88e76 100644 --- a/doc/html/installation.html +++ b/doc/html/installation.html @@ -2,13 +2,13 @@ - + Installing lxml
-

Installing lxml

+

Installing lxml

For special installation instructions regarding MS Windows and MacOS-X, see the specific sections below.

@@ -160,7 +160,7 @@ follow the static build instructions above.

diff --git a/doc/html/intro.html b/doc/html/intro.html index 6ad48ee..f3fe41d 100644 --- a/doc/html/intro.html +++ b/doc/html/intro.html @@ -2,13 +2,13 @@ - + Why lxml?
-

Why lxml?

+

Why lxml?

Contents

@@ -66,7 +66,7 @@ having to learn new things -- XML is complicated enough.

diff --git a/doc/html/lxml-source-howto.html b/doc/html/lxml-source-howto.html index 6857b45..81caa92 100644 --- a/doc/html/lxml-source-howto.html +++ b/doc/html/lxml-source-howto.html @@ -2,7 +2,7 @@ - + How to read the source of lxml @@ -11,7 +11,7 @@
-

How to read the source of lxml

+

How to read the source of lxml

@@ -270,7 +270,7 @@ implemented in pure Python.

diff --git a/doc/html/lxmlhtml.html b/doc/html/lxmlhtml.html index a3f2bf0..afaed08 100644 --- a/doc/html/lxmlhtml.html +++ b/doc/html/lxmlhtml.html @@ -2,14 +2,14 @@ - +lxml.html
-

lxml.html

+

lxml.html

@@ -675,7 +675,7 @@ microformat.

diff --git a/doc/html/objectify.html b/doc/html/objectify.html index f247b2f..358f755 100644 --- a/doc/html/objectify.html +++ b/doc/html/objectify.html @@ -2,14 +2,14 @@ - +lxml.objectify
-

lxml.objectify

+

lxml.objectify

@@ -1149,7 +1149,7 @@ support any XPath expression. diff --git a/doc/html/parsing.html b/doc/html/parsing.html index cc84d1b..197864e 100644 --- a/doc/html/parsing.html +++ b/doc/html/parsing.html @@ -2,13 +2,13 @@ - +Parsing XML and HTML with lxml
-

Parsing XML and HTML with lxml

+

Parsing XML and HTML with lxml

lxml provides a very simple and powerful API for parsing XML and HTML. It supports one-step parsing as well as step-by-step parsing using an @@ -676,7 +676,7 @@ with UTF-8 is also considerably faster in most cases.

diff --git a/doc/html/performance.html b/doc/html/performance.html index ab2f98a..737162b 100644 --- a/doc/html/performance.html +++ b/doc/html/performance.html @@ -2,7 +2,7 @@ - +Benchmarks and Speed @@ -11,7 +11,7 @@
-

Benchmarks and Speed

+

Benchmarks and Speed

@@ -779,7 +779,7 @@ random.

diff --git a/doc/html/resolvers.html b/doc/html/resolvers.html index d576bdc..e6e20d9 100644 --- a/doc/html/resolvers.html +++ b/doc/html/resolvers.html @@ -2,13 +2,13 @@ - +Document loading and URL resolving
-

Document loading and URL resolving

+

Document loading and URL resolving

Contents

@@ -234,7 +234,7 @@ documents or raises exceptions if access is denied.
diff --git a/doc/html/sax.html b/doc/html/sax.html index 784a819..4b2e87a 100644 --- a/doc/html/sax.html +++ b/doc/html/sax.html @@ -2,13 +2,13 @@ - + Sax support
-

Sax support

+

Sax support

In this document we'll describe lxml's SAX support. lxml has support for producing SAX events for an ElementTree or Element. lxml can also turn SAX @@ -108,7 +108,7 @@ DOM implementation connot generate SAX events from a DOM tree.

diff --git a/doc/html/sitemap.html b/doc/html/sitemap.html index 0b29c5b..14108b0 100644 --- a/doc/html/sitemap.html +++ b/doc/html/sitemap.html @@ -8,5 +8,5 @@

Sitemap of lxml.de - Processing XML and HTML with Python

-
+
\ No newline at end of file diff --git a/doc/html/tutorial.html b/doc/html/tutorial.html index 12667b7..8bbd26d 100644 --- a/doc/html/tutorial.html +++ b/doc/html/tutorial.html @@ -2,7 +2,7 @@ - + The lxml.etree Tutorial @@ -11,7 +11,7 @@
-

The lxml.etree Tutorial

+

The lxml.etree Tutorial

@@ -1033,7 +1033,7 @@ expression diff --git a/doc/html/validation.html b/doc/html/validation.html index aed9cfd..682a809 100644 --- a/doc/html/validation.html +++ b/doc/html/validation.html @@ -2,13 +2,13 @@ - +Validation with lxml
-

Validation with lxml

+

Validation with lxml

Apart from the built-in DTD support in parsers, lxml currently supports three schema languages: DTD, Relax NG and XML Schema. All three provide @@ -536,7 +536,7 @@ reporting during validation.

diff --git a/doc/html/xpathxslt.html b/doc/html/xpathxslt.html index 7881daa..d9a76e8 100644 --- a/doc/html/xpathxslt.html +++ b/doc/html/xpathxslt.html @@ -2,13 +2,13 @@ - +XPath and XSLT with lxml
-

XPath and XSLT with lxml

+

XPath and XSLT with lxml

lxml supports XPath 1.0, XSLT 1.0 and the EXSLT extensions through libxml2 and libxslt in a standards compliant way.

@@ -589,7 +589,7 @@ If you want to free it from memory, just do:

diff --git a/doc/main.txt b/doc/main.txt index 484e655..a6a3ffa 100644 --- a/doc/main.txt +++ b/doc/main.txt @@ -157,8 +157,8 @@ Index`_ (PyPI). It has the source that compiles on various platforms. The source distribution is signed with `this key`_. Binary builds are not available from PyPI due to the increased maintenance overhead. -The latest version is `lxml 3.0.1`_, released 2012-10-14 -(`changes for 3.0.1`_). `Older versions`_ are listed below. +The latest version is `lxml 3.0.2`_, released 2012-12-14 +(`changes for 3.0.2`_). `Older versions`_ are listed below. Please take a look at the `installation instructions`_! @@ -234,7 +234,9 @@ See the web sites of lxml `2.3 `_ and the `latest in-development version `_. -.. _`PDF documentation`: lxmldoc-3.0.1.pdf +.. _`PDF documentation`: lxmldoc-3.0.2.pdf + +* `lxml 3.0.1`_, released 2012-10-14 (`changes for 3.0.1`_) * `lxml 3.0`_, released 2012-10-08 (`changes for 3.0`_) @@ -258,6 +260,7 @@ and the `latest in-development version `_. * `older releases `_ +.. _`lxml 3.0.2`: /files/lxml-3.0.2.tgz .. _`lxml 3.0.1`: /files/lxml-3.0.1.tgz .. _`lxml 3.0`: /files/lxml-3.0.tgz .. _`lxml 3.0beta1`: /files/lxml-3.0beta1.tgz @@ -271,6 +274,7 @@ and the `latest in-development version `_. .. _`lxml 2.3.1`: /files/lxml-2.3.1.tgz .. _`lxml 2.3`: /files/lxml-2.3.tgz +.. _`changes for 3.0.2`: /changes-3.0.2.html .. _`changes for 3.0.1`: /changes-3.0.1.html .. _`changes for 3.0`: /changes-3.0.html .. _`changes for 3.0beta1`: /changes-3.0beta1.html diff --git a/doc/pdf/pubkey.asc b/doc/pdf/pubkey.asc deleted file mode 100644 index f72804c..0000000 --- a/doc/pdf/pubkey.asc +++ /dev/null @@ -1,36 +0,0 @@ ------BEGIN PGP PUBLIC KEY BLOCK----- -Version: GnuPG v1.4.2 (GNU/Linux) - -mQGiBEQf3JQRBACciSqxoX0q3VurkRENVVtG/pVqtFh/d2CohbVJlLCrO4s7nnPj -CTfZFt6tmykZjsLJl24XpEJt0O/C0jLcaBqvXVgVvRXHz4DjEYYuQF4LPthhI4MA -4T7ExptX4lU5g3BVJ46vPU8uRBbbxarBRas9rYewgnrYKWpZZCa7yMq+9wCgnyyR -Si4E3viLwi77jda135nA6vcD/iqu8zIl9/dFuUcOvxJrhrm+UdY72puZ1TVczSAH -GOqMjrKkfyHlaJh/ZzWENpTZIfOdVhy7Chvva18vH4Wz7jKj5UeIpRrBvjAD28r3 -Y3W5bfsnpPkvDOyU1vqBsw4q+/250GXEX0JqV2Rbf5yLVgEZPdGrswO460dr4UVS -8RS0BACYTmyrz57AugHc5tRkqNw6o7ux2deOT0c3AbUcOWtOocGumCsUf+M1nOrc -VWkeBWTv4HIIiecWYY/KwIemTthQGjxywaZDxOlBT0BOL/+vfYTq/plZULXr+g90 -rSe82+kLl9N5onkBDJKeDIcJDzRoxIRPV1i0Om/5JBI4jmUnv7QnU3RlZmFuIEJl -aG5lbCA8c2NvZGVyQHVzZXJzLmJlcmxpb3MuZGU+iF8EExECACAFAkQiqKYCGwMG -CwkIBwMCBBUCCAMEFgIDAQIeAQIXgAAKCRANPVNpCNOgHi+2AJ0a0JH8iP3RqrOL -JefvHz1dSl3MxACYo7Ma6CeIgsGnyaSSdNOmNVXn+IhGBBARAgAGBQJEIqk0AAoJ -ELO5mMzzmgZbmCcAoKZ2En1IlsxBpaPPxgWYrUOWfc6hAKCBWODMMOYptCBkSrjg -m3gsrjHgYbQsU3RlZmFuIEJlaG5lbCA8c2NvZGVyQHVzZXJzLnNvdXJjZWZvcmdl -Lm5ldD6IYAQTEQIAIAUCRB/clAIbAwYLCQgHAwIEFQIIAwQWAgMBAh4BAheAAAoJ -EA09U2kI06Aen2YAn0hvuDs+Gslq9vPRFFbsFNJI40PmAJ0chjiiEy0xV5C+n6YX -XFuldRDILYhGBBARAgAGBQJEIp4AAAoJELO5mMzzmgZbgKQAn3pWrmFdj8YaEyuR -tEjKVZJDQ6ZVAJ0Y1igwADT40BPra+G/xiLa3YbCrrkCDQREH9ynEAgAiR4/0r0d -doViNECfSLClllu5K0Bo1SEiMtvVNC3sJYgVzBddD8Xn8UAdjyAgmaL5FC2FsNQu -RxxKkNlHNYCq8ZSWtZaL2MQ+SyMUyHv6VXVCGuSW0COpzbx58u+SZpjyESJ1kaZc -73SaIw6kv/dVQHjurwmlo1lg3dLZ3PG08WGCYUMqkkv2K+J7+puzE2Cjo31gTq4s -LYDCV26wjVQ6BqT2EcHQhVEjh0xq5ugc908cr/2FQAKkTifEbF+OVBGWiFMGgri+ -6+G54/BV/RakpvNCFYBiZHn/M9mQaWt7XoTmnEQ1ldq5KNlRhkqnQRF/NK5VpGcQ -29As28aqpZTECwADBgf/WlRvBRI1Q1eIv2falEv7C6sOxqc3kr5z1uUBTRG5v9t6 -ff9k/J4oC6cnQx00GK3ZR8ija6bl8zwu+0m0M3rW49Krb1rsiT7r4ahOZ7p9RRro -oG3NbUJYgMG10D1nxpaioYqa/m+PpILJM0wfYZZEuX0xkZcOB24yb+J7EIcGR09T -mMd5sXtdTU+w/p7Xi2cP61uQ8qixyHBH8E06qgW2JtVFV9rGn7CNUOvkNaUBRnY5 -QxhdkvKJRx7voOLYWZFUBIWgto+6vmTgKmc2Ho6qddzME9UgwUNcknRgm0cf6Cxr -6zPtxZl8a6KemjQcK7kARSmMNCDkqp/Pohe519A5vYhJBBgRAgAJBQJEH9ynAhsM -AAoJEA09U2kI06Aesv4AnjiVQVLzqnNS/64vvMMP1UARY3HtAJ90YxNGhRNIhWYL -UU16oJlGD/9M1Q== -=gWy2 ------END PGP PUBLIC KEY BLOCK----- diff --git a/doc/s5/lxml-ep2008.html b/doc/s5/lxml-ep2008.html index 27421a3..eadd3ab 100644 --- a/doc/s5/lxml-ep2008.html +++ b/doc/s5/lxml-ep2008.html @@ -3,14 +3,14 @@ - + Implementing XML languages with lxml