Parse a fragment of a document from a string, given the context from which it was originally extracted. context should be the parent of the node(s) which are in the fragment.
(string, context, namespaces=True)
| 943 | |
| 944 | |
| 945 | def parseFragmentString(string, context, namespaces=True): |
| 946 | """Parse a fragment of a document from a string, given the context |
| 947 | from which it was originally extracted. context should be the |
| 948 | parent of the node(s) which are in the fragment. |
| 949 | """ |
| 950 | if namespaces: |
| 951 | builder = FragmentBuilderNS(context) |
| 952 | else: |
| 953 | builder = FragmentBuilder(context) |
| 954 | return builder.parseString(string) |
| 955 | |
| 956 | |
| 957 | def makeBuilder(options): |
nothing calls this directly
no test coverage detected
searching dependent graphs…