Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
d62d507b
Commit
d62d507b
authored
Aug 10, 2004
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added missing documentation for UseForeignDTD() (new in 2.3)
someone should backport to the release23-maint branch
parent
fb568ca5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
Doc/lib/libpyexpat.tex
Doc/lib/libpyexpat.tex
+21
-0
No files found.
Doc/lib/libpyexpat.tex
View file @
d62d507b
...
...
@@ -156,6 +156,27 @@ The child parser is created with the \member{ordered_attributes},
values of this parser.
\end{methoddesc}
\begin{methoddesc}
[xmlparser]
{
UseForeignDTD
}{
\optional
{
flag
}}
Calling this with a true value for
\var
{
flag
}
(the default) will cause
Expat to call the
\member
{
ExternalEntityRefHandler
}
with
\constant
{
None
}
for all arguments to allow an alternate DTD to be
loaded. If the document does not contain a document type declaration,
the
\member
{
ExternalEntityRefHandler
}
will still be called, but the
\member
{
StartDoctypeDeclHandler
}
and
\member
{
EndDoctypeDeclHandler
}
will not be called.
Passing a false value for
\var
{
flag
}
will cancel a previous call that
passed a true value, but otherwise has no effect.
This method can only be called before the
\method
{
Parse()
}
or
\method
{
ParseFile()
}
methods are called; calling it after either of
those have been called causes
\exception
{
ExpatError
}
to be raised with
the
\member
{
code
}
attribute set to
\constant
{
errors.XML
_
ERROR
_
CANT
_
CHANGE
_
FEATURE
_
ONCE
_
PARSING
}
.
\versionadded
{
2.3
}
\end{methoddesc}
\class
{
xmlparser
}
objects have the following attributes:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment