1QXmlLocator(3qt) QXmlLocator(3qt)
2
3
4
6 QXmlLocator - The XML handler classes with information about the
7 parsing position within a file
8
10 All the functions in this class are reentrant when Qt is built with
11 thread support.</p>
12
13 #include <qxml.h>
14
15 Public Members
16 QXmlLocator ()
17 virtual ~QXmlLocator ()
18 virtual int columnNumber () = 0
19 virtual int lineNumber () = 0
20
22 The QXmlLocator class provides the XML handler classes with information
23 about the parsing position within a file.
24
25 The reader reports a QXmlLocator to the content handler before it
26 starts to parse the document. This is done with the
27 QXmlContentHandler::setDocumentLocator() function. The handler classes
28 can now use this locator to get the position (lineNumber() and
29 columnNumber()) that the reader has reached.
30
31 See also XML.
32
35 Constructor.
36
38 Destructor.
39
41 Returns the column number (starting at 1) or -1 if there is no column
42 number available.
43
45 Returns the line number (starting at 1) or -1 if there is no line
46 number available.
47
48
50 http://doc.trolltech.com/qxmllocator.html
51 http://www.trolltech.com/faq/tech.html
52
54 Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the
55 license file included in the distribution for a complete license
56 statement.
57
59 Generated automatically from the source code.
60
62 If you find a bug in Qt, please report it as described in
63 http://doc.trolltech.com/bughowto.html. Good bug reports help us to
64 help you. Thank you.
65
66 The definitive Qt documentation is provided in HTML format; it is
67 located at $QTDIR/doc/html and can be read using Qt Assistant or with a
68 web browser. This man page is provided as a convenience for those users
69 who prefer man pages, although this format is not officially supported
70 by Trolltech.
71
72 If you find errors in this manual page, please report them to qt-
73 bugs@trolltech.com. Please include the name of the manual page
74 (qxmllocator.3qt) and the Qt version (3.3.8).
75
76
77
78Trolltech AS 2 February 2007 QXmlLocator(3qt)