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
e0af35eb
Commit
e0af35eb
authored
Sep 20, 2001
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fill in a few more descriptions for xml.parsers.expat.
parent
2e29bfbe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
5 deletions
+24
-5
Doc/lib/libpyexpat.tex
Doc/lib/libpyexpat.tex
+24
-5
No files found.
Doc/lib/libpyexpat.tex
View file @
e0af35eb
...
...
@@ -33,7 +33,9 @@ provide access to the Expat parser. Direct use of the
This module provides one exception and one type object:
\begin{excdesc}
{
ExpatError
}
The exception raised when Expat reports an error.
The exception raised when Expat reports an error. See section
\ref
{
expaterror-objects
}
, ``ExpatError Exceptions,'' for more
information on interpreting Expat errors.
\end{excdesc}
\begin{excdesc}
{
error
}
...
...
@@ -169,7 +171,7 @@ will be passed Unicode strings. If \member{returns_unicode} is 0,
8-bit strings containing UTF-8 encoded data will be passed to the
handlers.
\versionchanged
[Can be changed at any time to affect the result
type
.
]
{
1.6
}
type]
{
1.6
}
\end{memberdesc}
\begin{memberdesc}
[xmlparser]
{
specified
_
attributes
}
...
...
@@ -514,15 +516,16 @@ such as \code{(A, B, C)}.
The constants in the quantifier group are:
\begin{datadescni}
{
XML
_
CQUANT
_
NONE
}
No modifier is given, so it can appear exactly once, as for
\code
{
A
}
.
\end{datadescni}
\begin{datadescni}
{
XML
_
CQUANT
_
OPT
}
The model is option: it can appear once or not at all, as for
The model is option
al
: it can appear once or not at all, as for
\code
{
A?
}
.
\end{datadescni}
\begin{datadescni}
{
XML
_
CQUANT
_
PLUS
}
The model must occur one or more times (
\code
{
A+
}
).
The model must occur one or more times (
like
\code
{
A+
}
).
\end{datadescni}
\begin{datadescni}
{
XML
_
CQUANT
_
REP
}
...
...
@@ -549,9 +552,13 @@ entity instead of an internal entity.
\end{datadescni}
\begin{datadescni}
{
XML
_
ERROR
_
BAD
_
CHAR
_
REF
}
A character reference referred to a character which is illegal in XML
(for example, character
\code
{
0
}
, or `
\code
{
\&\#
0;
}
'.
\end{datadescni}
\begin{datadescni}
{
XML
_
ERROR
_
BINARY
_
ENTITY
_
REF
}
An entity reference referred to an entity which was declared with a
notation, so cannot be parsed.
\end{datadescni}
\begin{datadescni}
{
XML
_
ERROR
_
DUPLICATE
_
ATTRIBUTE
}
...
...
@@ -562,6 +569,9 @@ An attribute was used more than once in a start tag.
\end{datadescni}
\begin{datadescni}
{
XML
_
ERROR
_
INVALID
_
TOKEN
}
Raised when an input byte could not properly be assigned to a
character; for example, a NUL byte (value
\code
{
0
}
) in a UTF-8 input
stream.
\end{datadescni}
\begin{datadescni}
{
XML
_
ERROR
_
JUNK
_
AFTER
_
DOC
_
ELEMENT
}
...
...
@@ -569,10 +579,13 @@ Something other than whitespace occurred after the document element.
\end{datadescni}
\begin{datadescni}
{
XML
_
ERROR
_
MISPLACED
_
XML
_
PI
}
An XML declaration was found somewhere other than the start of the
input data.
\end{datadescni}
\begin{datadescni}
{
XML
_
ERROR
_
NO
_
ELEMENTS
}
The document contains no elements.
The document contains no elements (XML requires all documents to
contain exactly one top-level element)..
\end{datadescni}
\begin{datadescni}
{
XML
_
ERROR
_
NO
_
MEMORY
}
...
...
@@ -580,12 +593,16 @@ Expat was not able to allocate memory internally.
\end{datadescni}
\begin{datadescni}
{
XML
_
ERROR
_
PARAM
_
ENTITY
_
REF
}
A parameter entity reference was found where it was not allowed.
\end{datadescni}
\begin{datadescni}
{
XML
_
ERROR
_
PARTIAL
_
CHAR
}
\end{datadescni}
\begin{datadescni}
{
XML
_
ERROR
_
RECURSIVE
_
ENTITY
_
REF
}
An entity reference contained another reference to the same entity;
possibly via a different name, and possibly indirectly.
\end{datadescni}
\begin{datadescni}
{
XML
_
ERROR
_
SYNTAX
}
...
...
@@ -597,6 +614,8 @@ An end tag did not match the innermost open start tag.
\end{datadescni}
\begin{datadescni}
{
XML
_
ERROR
_
UNCLOSED
_
TOKEN
}
Some token (such as a start tag) was not closed before the end of the
stream or the next token was encountered.
\end{datadescni}
\begin{datadescni}
{
XML
_
ERROR
_
UNDEFINED
_
ENTITY
}
...
...
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