Parse a document from a string, returning the resulting Document node.
(string, namespaces=True)
| 912 | |
| 913 | |
| 914 | def parseString(string, namespaces=True): |
| 915 | """Parse a document from a string, returning the resulting |
| 916 | Document node. |
| 917 | """ |
| 918 | if namespaces: |
| 919 | builder = ExpatBuilderNS() |
| 920 | else: |
| 921 | builder = ExpatBuilder() |
| 922 | return builder.parseString(string) |
| 923 | |
| 924 | |
| 925 | def parseFragment(file, context, namespaces=True): |
nothing calls this directly
no test coverage detected
searching dependent graphs…