File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ """Module for supporting the lxml.etree library. The idea here is to use as much
2+ of the native library as possible, without using fragile hacks like custom element
3+ names that break between releases. The downside of this is that we cannot represent
4+ all possible trees; specifically the following are known to cause problems:
5+
6+ Text or comments as siblings of the root element
7+ Docypes with no name
8+
9+ When any of these things occur, we emit a DataLossWarning
10+ """
11+
112import warnings
213import re
314
1526fullTree = True
1627tag_regexp = re .compile ("{([^}]*)}(.*)" )
1728
18- """Module for supporting the lxml.etree library. The idea here is to use as much
19- of the native library as possible, without using fragile hacks like custom element
20- names that break between releases. The downside of this is that we cannot represent
21- all possible trees; specifically the following are known to cause problems:
22-
23- Text or comments as siblings of the root element
24- Docypes with no name
25-
26- When any of these things occur, we emit a DataLossWarning
27- """
2829
2930class DocumentType (object ):
3031 def __init__ (self , name , publicId , systemId ):
You can’t perform that action at this time.
0 commit comments