File: Poco.XML.DOMParser.html

package info (click to toggle)
poco-doc 1.3.6-1
  • links: PTS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, squeeze, stretch, wheezy
  • size: 10,076 kB
  • ctags: 9,611
  • sloc: makefile: 31
file content (112 lines) | stat: -rw-r--r-- 9,535 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Class Poco::XML::DOMParser</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<meta name="author" content="Applied Informatics Software Engineering GmbH and Contributors"/>
<meta name="publisher" content="Applied Informatics Software Engineering GmbH and Contributors"/>
<meta name="copyright" content="Copyright (c) 2009, Applied Informatics Software Engineering GmbH and Contributors"/>
<meta name="language" content="en"/>
<meta name="date" content="2009-11-24"/>
<meta name="generator" content="PocoDoc"/>
<link rel="stylesheet" href="css/styles.css" type="text/css"/>
</head>
<body bgcolor="#ffffff" leftmargin="0" topmargin="0">
<div class="header">
<h1 class="namespace"><a href="Poco.XML.html" class="namespace">Poco::XML</a></h1>
<h1 class="symbol">class DOMParser</h1>
</div>
<div class="body">
<p>
<b>Library:</b> XML<br />
<b>Package:</b> DOM<br />
<b>Header:</b> Poco/DOM/DOMParser.h</p>
<h2>Description</h2>
<div class="description">
<p>This is a convenience class that combines a <a href="Poco.XML.DOMBuilder.html" title="class Poco::XML::DOMBuilder">DOMBuilder</a> with a <a href="Poco.XML.SAXParser.html" title="class Poco::XML::SAXParser">SAXParser</a>, with the optional support of a <a href="Poco.XML.WhitespaceFilter.html" title="class Poco::XML::WhitespaceFilter">WhitespaceFilter</a>. </p>
</div>
<h2>Member Summary</h2>
<p><b>Member Functions: </b><a href="Poco.XML.DOMParser.html#17897" title="Poco::XML::DOMParser::addEncoding()">addEncoding</a>, <a href="Poco.XML.DOMParser.html#17896" title="Poco::XML::DOMParser::getEncoding()">getEncoding</a>, <a href="Poco.XML.DOMParser.html#17914" title="Poco::XML::DOMParser::getEntityResolver()">getEntityResolver</a>, <a href="Poco.XML.DOMParser.html#17903" title="Poco::XML::DOMParser::getFeature()">getFeature</a>, <a href="Poco.XML.DOMParser.html#17905" title="Poco::XML::DOMParser::parse()">parse</a>, <a href="Poco.XML.DOMParser.html#17911" title="Poco::XML::DOMParser::parseMemory()">parseMemory</a>, <a href="Poco.XML.DOMParser.html#17909" title="Poco::XML::DOMParser::parseString()">parseString</a>, <a href="Poco.XML.DOMParser.html#17894" title="Poco::XML::DOMParser::setEncoding()">setEncoding</a>, <a href="Poco.XML.DOMParser.html#17915" title="Poco::XML::DOMParser::setEntityResolver()">setEntityResolver</a>, <a href="Poco.XML.DOMParser.html#17900" title="Poco::XML::DOMParser::setFeature()">setFeature</a></p>
<h2>Constructors</h2>
<h3><a name="17891">DOMParser</a></h3>
<p class="decl"><a href="Poco.XML.DOMParser.html" title="class Poco::XML::DOMParser">DOMParser</a>(<br />&nbsp;&nbsp;&nbsp;&nbsp;<a href="Poco.XML.NamePool.html" title="class Poco::XML::NamePool">NamePool</a> * pNamePool = 0<br />);</p>
<div class="description">
<p>Creates a new <a href="Poco.XML.DOMParser.html" title="class Poco::XML::DOMParser">DOMParser</a>.  If a <a href="Poco.XML.NamePool.html" title="class Poco::XML::NamePool">NamePool</a> is given, it becomes the <a href="Poco.XML.Document.html" title="class Poco::XML::Document">Document</a>'s <a href="Poco.XML.NamePool.html" title="class Poco::XML::NamePool">NamePool</a>. </p>
</div>
<h2>Destructor</h2>
<h3><a name="17893">~DOMParser</a></h3>
<p class="decl">~<a href="Poco.XML.DOMParser.html" title="class Poco::XML::DOMParser">DOMParser</a>();</p>
<div class="description">
<p>Destroys the <a href="Poco.XML.DOMParser.html" title="class Poco::XML::DOMParser">DOMParser</a>. </p>
</div>
<h2>Member Functions</h2>
<h3><a name="17897">addEncoding</a></h3>
<p class="decl">void addEncoding(<br />&nbsp;&nbsp;&nbsp;&nbsp;const <a href="Poco.XML.html#19841" title="Poco::XML::XMLString">XMLString</a> &amp; name,<br />&nbsp;&nbsp;&nbsp;&nbsp;<a href="Poco.TextEncoding.html" title="class Poco::TextEncoding">Poco::TextEncoding</a> * pEncoding<br />);</p>
<div class="description">
<p>Adds an encoding to the parser. </p>
</div>
<h3><a name="17896">getEncoding</a></h3>
<p class="decl">const <a href="Poco.XML.html#19841" title="Poco::XML::XMLString">XMLString</a> &amp; getEncoding() const;</p>
<div class="description">
<p>Returns the name of the encoding used by the parser if no encoding is specified in the <a href="Poco.XML.html" title="namespace Poco::XML">XML</a> document. </p>
</div>
<h3><a name="17914">getEntityResolver</a></h3>
<p class="decl"><a href="Poco.XML.EntityResolver.html" title="class Poco::XML::EntityResolver">EntityResolver</a> * getEntityResolver() const;</p>
<div class="description">
<p>Returns the entity resolver used by the underlying <a href="Poco.XML.SAXParser.html" title="class Poco::XML::SAXParser">SAXParser</a>. </p>
</div>
<h3><a name="17903">getFeature</a></h3>
<p class="decl">bool getFeature(<br />&nbsp;&nbsp;&nbsp;&nbsp;const <a href="Poco.XML.html#19841" title="Poco::XML::XMLString">XMLString</a> &amp; name<br />) const;</p>
<div class="description">
<p>Look up the value of a feature. </p>
<p>If a feature is not recognized by the <a href="Poco.XML.DOMParser.html" title="class Poco::XML::DOMParser">DOMParser</a>, the <a href="Poco.XML.DOMParser.html" title="class Poco::XML::DOMParser">DOMParser</a> queries the underlying <a href="Poco.XML.SAXParser.html" title="class Poco::XML::SAXParser">SAXParser</a> for the feature. </p>
</div>
<h3><a name="17905">parse</a></h3>
<p class="decl"><a href="Poco.XML.Document.html" title="class Poco::XML::Document">Document</a> * parse(<br />&nbsp;&nbsp;&nbsp;&nbsp;const <a href="Poco.XML.html#19841" title="Poco::XML::XMLString">XMLString</a> &amp; uri<br />);</p>
<div class="description">
<p>Parse an <a href="Poco.XML.html" title="namespace Poco::XML">XML</a> document from a location identified by an <a href="Poco.URI.html" title="class Poco::URI">URI</a>. </p>
</div>
<h3><a name="17907">parse</a></h3>
<p class="decl"><a href="Poco.XML.Document.html" title="class Poco::XML::Document">Document</a> * parse(<br />&nbsp;&nbsp;&nbsp;&nbsp;<a href="Poco.XML.InputSource.html" title="class Poco::XML::InputSource">InputSource</a> * pInputSource<br />);</p>
<div class="description">
<p>Parse an <a href="Poco.XML.html" title="namespace Poco::XML">XML</a> document from a location identified by an <a href="Poco.XML.InputSource.html" title="class Poco::XML::InputSource">InputSource</a>. </p>
</div>
<h3><a name="17911">parseMemory</a></h3>
<p class="decl"><a href="Poco.XML.Document.html" title="class Poco::XML::Document">Document</a> * parseMemory(<br />&nbsp;&nbsp;&nbsp;&nbsp;const char * xml,<br />&nbsp;&nbsp;&nbsp;&nbsp;std::size_t size<br />);</p>
<div class="description">
<p>Parse an <a href="Poco.XML.html" title="namespace Poco::XML">XML</a> document from memory. </p>
</div>
<h3><a name="17909">parseString</a></h3>
<p class="decl"><a href="Poco.XML.Document.html" title="class Poco::XML::Document">Document</a> * parseString(<br />&nbsp;&nbsp;&nbsp;&nbsp;const std::string &amp; xml<br />);</p>
<div class="description">
<p>Parse an <a href="Poco.XML.html" title="namespace Poco::XML">XML</a> document from a string. </p>
</div>
<h3><a name="17894">setEncoding</a></h3>
<p class="decl">void setEncoding(<br />&nbsp;&nbsp;&nbsp;&nbsp;const <a href="Poco.XML.html#19841" title="Poco::XML::XMLString">XMLString</a> &amp; encoding<br />);</p>
<div class="description">
<p>Sets the encoding used by the parser if no encoding is specified in the <a href="Poco.XML.html" title="namespace Poco::XML">XML</a> document. </p>
</div>
<h3><a name="17915">setEntityResolver</a></h3>
<p class="decl">void setEntityResolver(<br />&nbsp;&nbsp;&nbsp;&nbsp;<a href="Poco.XML.EntityResolver.html" title="class Poco::XML::EntityResolver">EntityResolver</a> * pEntityResolver<br />);</p>
<div class="description">
<p>Sets the entity resolver on the underlying <a href="Poco.XML.SAXParser.html" title="class Poco::XML::SAXParser">SAXParser</a>. </p>
</div>
<h3><a name="17900">setFeature</a></h3>
<p class="decl">void setFeature(<br />&nbsp;&nbsp;&nbsp;&nbsp;const <a href="Poco.XML.html#19841" title="Poco::XML::XMLString">XMLString</a> &amp; name,<br />&nbsp;&nbsp;&nbsp;&nbsp;bool state<br />);</p>
<div class="description">
<p>Set the state of a feature. </p>
<p>If a feature is not recognized by the <a href="Poco.XML.DOMParser.html" title="class Poco::XML::DOMParser">DOMParser</a>, it is passed on to the underlying <a href="Poco.XML.XMLReader.html" title="class Poco::XML::XMLReader">XMLReader</a>. </p>
<p>The only currently supported feature is <a href="http://www.appinf.com/features/no-whitespace-in-element-content" target="_blank">http://www.appinf.com/features/no-whitespace-in-element-content</a> which, when activated, causes the <a href="Poco.XML.WhitespaceFilter.html" title="class Poco::XML::WhitespaceFilter">WhitespaceFilter</a> to be used. </p>
</div>
<h2>Variables</h2>
<h3><a name="17917">FEATURE_WHITESPACE</a> <img src="images/static.gif" alt="static" title="static" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">static const <a href="Poco.XML.html#19841" title="Poco::XML::XMLString">XMLString</a> <a href="Poco.XML.DOMParser.html#17917" title="Poco::XML::DOMParser::FEATURE_WHITESPACE">FEATURE_WHITESPACE</a>;</p>
<div class="description">
<p></p>
</div>
<p class="footer">POCO C++ Libraries 1.3.6-all<br />
Copyright &copy; 2009, <a href="http://pocoproject.org/" target="_blank">Applied Informatics Software Engineering GmbH and Contributors</a></p>

</div>
</body>
</html>