📄 saxparsertest.cpp
字号:
"<!ENTITY yacute \"ý\"> <!-- latin small letter y with acute,\n" " U+00FD ISOlat1 -->\n" "<!ENTITY thorn \"þ\"> <!-- latin small letter thorn,\n" " U+00FE ISOlat1 -->\n" "<!ENTITY yuml \"ÿ\"> <!-- latin small letter y with diaeresis,\n" " U+00FF ISOlat1 -->\n";const std::string SAXParserTest::RSS = "<?xml version=\"1.0\"?>\n" "\n" "<!DOCTYPE rdf:RDF [\n" "<!ENTITY % HTMLlat1 PUBLIC\n" " \"-//W3C//ENTITIES Latin 1 for XHTML//EN\"\n" " \"http://www.w3.org/TR/xhtml1/DTD/xhtml-lat1.ent\">\n" "%HTMLlat1;\n" "]>\n" "\n" "<rdf:RDF \n" " xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\" \n" " xmlns:dc=\"http://purl.org/dc/elements/1.1/\"\n" " xmlns:sy=\"http://purl.org/rss/1.0/modules/syndication/\"\n" " xmlns=\"http://purl.org/rss/1.0/\"\n" "> \n" "\n" " <channel rdf:about=\"http://meerkat.oreillynet.com/\">\n" " <title>XML.com</title> \n" " <link>http://www.xml.com/</link>\n" " <description>XML.com features a rich mix of information and services for the XML community.</description>\n" " <sy:updatePeriod>hourly</sy:updatePeriod>\n" " <sy:updateFrequency>2</sy:updateFrequency>\n" " <sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase>\n" "\n" " <image rdf:resource=\"http://meerkat.oreillynet.com/icons/meerkat-powered.jpg\" />\n" "\n" " <items>\n" " <rdf:Seq>\n" " <rdf:li rdf:resource=\"http://www.xml.com/pub/a/2005/02/09/xforms.html\" />\n" " <rdf:li rdf:resource=\"http://www.xml.com/pub/a/2005/02/09/cssorxsl.html\" />\n" " <rdf:li rdf:resource=\"http://www.xml.com/pub/a/2005/02/09/xml-http-request.html\" />\n" " <rdf:li rdf:resource=\"http://www.xml.com/pub/a/2005/02/02/xpath2.html\" />\n" " <rdf:li rdf:resource=\"http://www.xml.com/pub/a/2005/02/02/silent.html\" />\n" " <rdf:li rdf:resource=\"http://www.xml.com/pub/a/2005/02/02/xpath2.html\" />\n" " <rdf:li rdf:resource=\"http://www.xml.com/pub/a/2005/02/02/tmapi.html\" />\n" " <rdf:li rdf:resource=\"http://www.xml.com/pub/a/2005/01/26/formtax.html\" />\n" " <rdf:li rdf:resource=\"http://www.xml.com/pub/a/2005/01/26/hacking-ooo.html\" />\n" " <rdf:li rdf:resource=\"http://www.xml.com/pub/a/2005/01/26/simile.html\" />\n" " <rdf:li rdf:resource=\"http://www.xml.com/pub/a/2005/01/19/amara.html\" />\n" " <rdf:li rdf:resource=\"http://www.xml.com/pub/a/2005/01/19/print.html\" />\n" " <rdf:li rdf:resource=\"http://www.xml.com/pub/a/2005/01/19/review.html\" />\n" " <rdf:li rdf:resource=\"http://www.xml.com/pub/a/2005/01/12/saml2.html\" />\n" " <rdf:li rdf:resource=\"http://www.xml.com/pub/a/2005/01/12/comega.html\" />\n" " </rdf:Seq>\n" " </items>\n" " \n" " <textinput rdf:resource=\"http://meerkat.oreillynet.com/\" />\n" "\n" " </channel>\n" "\n" " <image rdf:about=\"http://meerkat.oreillynet.com/icons/meerkat-powered.jpg\">\n" " <title>Meerkat Powered!</title>\n" " <url>http://meerkat.oreillynet.com/icons/meerkat-powered.jpg</url>\n" " <link>http://meerkat.oreillynet.com</link>\n" " </image>\n" "\n" " <item rdf:about=\"http://www.xml.com/pub/a/2005/02/09/xforms.html\">\n" " <title>Features: Top 10 XForms Engines</title>\n" " <link>http://www.xml.com/pub/a/2005/02/09/xforms.html</link>\n" " <description>\n" " Micah Dubinko, one of the gurus of XForms, offers a rundown on the state of XForms engines for 2005.\n" " </description>\n" " <dc:source>XML.com</dc:source>\n" " <dc:creator>Micah Dubinko</dc:creator>\n" " <dc:subject>Web, Applications</dc:subject>\n" " <dc:publisher>O'Reilly Media, Inc.</dc:publisher>\n" " <dc:date>2005-02-09</dc:date>\n" " <dc:type>Features</dc:type>\n" " <dc:format>text/html</dc:format>\n" " <dc:language>en-us</dc:language>\n" " <dc:rights>Copyright 2005, O'Reilly Media, Inc.</dc:rights>\n" " </item>\n" "\n" " <item rdf:about=\"http://www.xml.com/pub/a/2005/02/09/cssorxsl.html\">\n" " <title>Features: Comparing CSS and XSL: A Reply from Norm Walsh</title>\n" " <link>http://www.xml.com/pub/a/2005/02/09/cssorxsl.html</link>\n" " <description>\n" " Norm Walsh responds to a recent article about CSS and XSL, explaining how and when and why you'd want to use XSLFO or CSS or XSLT.\n" " </description>\n" " <dc:source>XML.com</dc:source>\n" " <dc:creator>Norman Walsh</dc:creator>\n" " <dc:subject>Style</dc:subject>\n" " <dc:publisher>O'Reilly Media, Inc.</dc:publisher>\n" " <dc:date>2005-02-09</dc:date>\n" " <dc:type>Features</dc:type>\n" " <dc:format>text/html</dc:format>\n" " <dc:language>en-us</dc:language>\n" " <dc:rights>Copyright 2005, O'Reilly Media, Inc.</dc:rights>\n" " </item>\n" "\n" " <item rdf:about=\"http://www.xml.com/pub/a/2005/02/09/xml-http-request.html\">\n" " <title>Features: Very Dynamic Web Interfaces</title>\n" " <link>http://www.xml.com/pub/a/2005/02/09/xml-http-request.html</link>\n" " <description>\n" " Drew McLellan explains how to use XMLHTTPRequest and Javascript to create web applications with very dynamic, smooth interfaces.\n" " </description>\n" " <dc:source>XML.com</dc:source>\n" " <dc:creator>Drew McLellan</dc:creator>\n" " <dc:subject>Web Development, Instruction</dc:subject>\n" " <dc:publisher>O'Reilly Media, Inc.</dc:publisher>\n" " <dc:date>2005-02-09</dc:date>\n" " <dc:type>Features</dc:type>\n" " <dc:format>text/html</dc:format>\n" " <dc:language>en-us</dc:language>\n" " <dc:rights>Copyright 2005, O'Reilly Media, Inc.</dc:rights>\n" " </item>\n" "\n" " <item rdf:about=\"http://www.xml.com/pub/a/2005/02/02/xpath2.html\">\n" " <title>Transforming XML: The XPath 2.0 Data Model</title>\n" " <link>http://www.xml.com/pub/a/2005/02/02/xpath2.html</link>\n" " <description>\n" " Bob DuCharme, in his latest Transforming XML column, examines the XPath 2.0, hence the XSLT 2.0, data model.\n" " </description>\n" " <dc:source>XML.com</dc:source>\n" " <dc:creator>Bob DuCharme</dc:creator>\n" " <dc:subject>Style, Style</dc:subject>\n" " <dc:publisher>O'Reilly Media, Inc.</dc:publisher>\n" " <dc:date>2005-02-02</dc:date>\n" " <dc:type>Transforming XML</dc:type>\n" " <dc:format>text/html</dc:format>\n" " <dc:language>en-us</dc:language>\n" " <dc:rights>Copyright 2005, O'Reilly Media, Inc.</dc:rights>\n" " </item>\n" "\n" " <item rdf:about=\"http://www.xml.com/pub/a/2005/02/02/silent.html\">\n" " <title>XML Tourist: The Silent Soundtrack</title>\n" " <link>http://www.xml.com/pub/a/2005/02/02/silent.html</link>\n" " <description>\n" " In this installation of XML Tourist, John E. Simpson presents an overview of the types of sound-to-text captioning available. Pinpointing closed captioning as the most suitable for use with computerized multimedia, he then explains how XML-based solutions address synchronization issues.\n" " </description>\n" " <dc:source>XML.com</dc:source>\n" " <dc:creator>John E. Simpson</dc:creator>\n" " <dc:subject>Graphics, Vertical Industries</dc:subject>\n" " <dc:publisher>O'Reilly Media, Inc.</dc:publisher>\n" " <dc:date>2005-02-02</dc:date>\n" " <dc:type>XML Tourist</dc:type>\n" " <dc:format>text/html</dc:format>\n" " <dc:language>en-us</dc:language>\n" " <dc:rights>Copyright 2005, O'Reilly Media, Inc.</dc:rights>\n" " </item>\n" "\n" " <item rdf:about=\"http://www.xml.com/pub/a/2005/02/02/xpath2.html\">\n" " <title>Transforming XML: The XML 2.0 Data Model</title>\n" " <link>http://www.xml.com/pub/a/2005/02/02/xpath2.html</link>\n" " <description>\n" " Bob DuCharme, in his latest Transforming XML column, examines the XPath 2.0, hence the XSLT 2.0, data model.\n" " </description>\n" " <dc:source>XML.com</dc:source>\n" " <dc:creator>Bob DuCharme</dc:creator>\n" " <dc:subject>Style, Style</dc:subject>\n" " <dc:publisher>O'Reilly Media, Inc.</dc:publisher>\n" " <dc:date>2005-02-02</dc:date>\n" " <dc:type>Transforming XML</dc:type>\n" " <dc:format>text/html</dc:format>\n" " <dc:language>en-us</dc:language>\n" " <dc:rights>Copyright 2005, O'Reilly Media, Inc.</dc:rights>\n" " </item>\n" "\n" " <item rdf:about=\"http://www.xml.com/pub/a/2005/02/02/tmapi.html\">\n" " <title>Features: An Introduction to TMAPI</title>\n" " <link>http://www.xml.com/pub/a/2005/02/02/tmapi.html</link>\n" " <description>\n" " TMAPI, a Java Topic Map API, is the standard way to interact with XML Topic Maps programmatically from Java. This article provides a tutorial for TMAPI. \n" " </description>\n" " <dc:source>XML.com</dc:source>\n" " <dc:creator>Robert Barta, Oliver Leimig</dc:creator>\n" " <dc:subject>Metadata, Metadata</dc:subject>\n" " <dc:publisher>O'Reilly Media, Inc.</dc:publisher>\n" " <dc:date>2005-02-02</dc:date>\n" " <dc:type>Features</dc:type>\n" " <dc:format>text/html</dc:format>\n" " <dc:language>en-us</dc:language>\n" " <dc:rights>Copyright 2005, O'Reilly Media, Inc.</dc:rights>\n" " </item>\n" "\n" " <item rdf:about=\"http://www.xml.com/pub/a/2005/01/26/formtax.html\">\n" " <title>Features: Formal Taxonomies for the U.S. Government</title>\n" " <link>http://www.xml.com/pub/a/2005/01/26/formtax.html</link>\n" " <description>\n" " Mike Daconta, Metadata Program Manager at the Department of Homeland Security, introduces the notion of a formal taxonomy in the context of the Federal Enteriprise Architecture's Data Reference Model.\n" " </description>\n" " <dc:source>XML.com</dc:source>\n" " <dc:creator>Michael Daconta</dc:creator>\n" " <dc:subject>Metadata, Metadata</dc:subject>\n" " <dc:publisher>O'Reilly Media, Inc.</dc:publisher>\n" " <dc:date>2005-01-26</dc:date>\n" " <dc:type>Features</dc:type>\n" " <dc:format>text/html</dc:format>\n" " <dc:language>en-us</dc:language>\n" " <dc:rights>Copyright 2005, O'Reilly Media, Inc.</dc:rights>\n" " </item>\n" "\n" " <item rdf:about=\"http://www.xml.com/pub/a/2005/01/26/hacking-ooo.html\">\n" " <title>Features: Hacking Open Office</title>\n" " <link>http://www.xml.com/pub/a/2005/01/26/hacking-ooo.html</link>\n" " <description>\n" " Peter Sefton shows us how to use XML tools to hack Open Office file formats.\n" " </description>\n" " <dc:source>XML.com</dc:source>\n" " <dc:creator>Peter Sefton</dc:creator>\n" " <dc:subject>Programming, Tools, Publishing</dc:subject>\n" " <dc:publisher>O'Reilly Media, Inc.</dc:publisher>\n" " <dc:date>2005-01-26</dc:date>\n" " <dc:type>Features</dc:type>\n" " <dc:format>text/html</dc:format>\n" " <dc:language>en-us</dc:language>\n" " <dc:rights>Copyright 2005, O'Reilly Media, Inc.</dc:rights>\n" " </item>\n" "\n" " <item rdf:about=\"http://www.xml.com/pub/a/2005/01/26/simile.html\">\n" " <title>Features: SIMILE: Practical Metadata for the Semantic Web</title>\n" " <link>http://www.xml.com/pub/a/2005/01/26/simile.html</link>\n" " <description>\n" " Digital libraries and generic metadata form part of the background assumptions and forward-looking goals of the Semantic Web. SIMILE is an interesting project aimed at realizing some of those goals.\n" " </description>\n" " <dc:source>XML.com</dc:source>\n" " <dc:creator>Stephen Garland, Ryan Lee, Stefano Mazzocchi</dc:creator>\n" " <dc:subject>Semantic Web, Metadata</dc:subject>\n" " <dc:publisher>O'Reilly Media, Inc.</dc:publisher>\n" " <dc:date>2005-01-26</dc:date>\n" " <dc:type>Features</dc:type>\n" " <dc:format>text/html</dc:format>\n" " <dc:language>en-us</dc:language>\n" " <dc:rights>Copyright 2005, O'Reilly Media, Inc.</dc:rights>\n" " </item>\n" "\n" " <item rdf:about=\"http://www.xml.com/pub/a/2005/01/19/amara.html\">\n" " <title>Python and XML: Introducing the Amara XML Toolkit</title>\n" " <link>http://www.xml.com/pub/a/2005/01/19/amara.html</link>\n" " <description>\n" " Uche Ogbuji introduces Amara, his new collection of XML tools for Python.\n" " </description>\n" " <dc:source>XML.com</dc:source>\n" " <dc:creator>Uche Ogbuji</dc:creator>\n" " <dc:subject>Programming, Programming</dc:subject>\n" " <dc:publisher>O'Reilly Media, Inc.</dc:publisher>\n" " <dc:date>2005-01-19</dc:date>\n" " <dc:type>Python and XML</dc:type>\n" " <dc:format>text/html</dc:format>\n" " <dc:language>en-us</dc:language>\n" " <dc:rights>Copyright 2005, O'Reilly Media, Inc.</dc:rights>\n" " </item>\n" "\n" " <item rdf:about=\"http://www.xml.com/pub/a/2005/01/19/print.html\">\n" " <title>Features: Printing XML: Why CSS Is Better than XSL</title>\n" " <link>http://www.xml.com/pub/a/2005/01/19/print.html</link>\n" " <description>\n" " One of the old school debates among XML developers is &quot;CSS versus XSLT.&quot; H&aring;kun Wium Lie and Michael Day revive that debate with a shot across XSL's bow.\n" " </description>\n" " <dc:source>XML.com</dc:source>\n" " <dc:creator>Michael Day, H&aring;kon Wium Lie</dc:creator>\n" " <dc:subject>Style, Publishing</dc:subject>\n" " <dc:publisher>O'Reilly Media, Inc.</dc:publisher>\n" " <dc:date>2005-01-19</dc:date>\n" " <dc:type>Features</dc:type>\n" " <dc:format>text/html</dc:format>\n" " <dc:language>en-us</dc:language>\n" " <dc:rights>Copyright 2005, O'Reilly Media, Inc.</dc:rights>\n" " </item>\n" "\n" " <item rdf:about=\"http://www.xml.com/pub/a/2005/01/19/review.html\">\n" " <title>Features: Reviewing the Architecture of the World Wide Web</title>\n" " <link>http://www.xml.com/pub/a/2005/01/19/review.html</link>\n" " <description>\n" " Harry Halpin reviews the final published edition of the W3C TAG's Architecture of the World Wide Web document.\n" " </description>\n" " <dc:source>XML.com</dc:source>\n" " <dc:creator>Harry Halpin</dc:creator>\n" " <dc:subject>Web, Perspectives</dc:subject>\n" " <dc:publisher>O'Reilly Media, Inc.</dc:publisher>\n" " <dc:date>2005-01-19</dc:date>\n" " <dc:type>Features</dc:type>\n" " <dc:format>text/html</dc:format>\n" " <dc:language>en-us</dc:language>\n" " <dc:rights>Copyright 2005, O'Reilly Media, Inc.</dc:rights>\n" " </item>\n" "\n" " <item rdf:about=\"http://www.xml.com/pub/a/2005/01/12/saml2.html\">\n" " <title>Features: SAML 2: The Building Blocks of Federated Identity</title>\n" " <link>http://www.xml.com/pub/a/2005/01/12/saml2.html</link>\n" " <description>\n" " Paul Madsen reports on the developments in web services security, including a new major release of SAML, which provides the basis for building federated identity.\n" " </description>\n" " <dc:source>XML.com</dc:source>\n" " <dc:creator>Paul Madsen</dc:creator>\n" " <dc:subject>Web Services, Specifications</dc:subject>\n" " <dc:publisher>O'Reilly Media, Inc.</dc:publisher>\n" " <dc:date>2005-01-12</dc:date>\n" " <dc:type>Features</dc:type>\n" " <dc:format>text/html</dc:format>\n" " <dc:language>en-us</dc:language>\n" " <dc:rights>Copyright 2005, O'Reilly Media, Inc.</dc:rights>\n" " </item>\n" "\n" " <item rdf:about=\"http://www.xml.com/pub/a/2005/01/12/comega.html\">\n" " <title>Features: Introducing Comega</title>\n" " <link>http://www.xml.com/pub/a/2005/01/12/comega.html</link>\n" " <description>\n" " Dare Obasanjo explains some of the ways in which C&omega;--a new language from Microsoft Research--makes XML processing easier and more natural.\n" " </description>\n" " <dc:source>XML.com</dc:source>\n" " <dc:creator>Dare Obasanjo</dc:creator>\n" " <dc:subject>Programming, Instruction</dc:subject>\n" " <dc:publisher>O'Reilly Media, Inc.</dc:publisher>\n" " <dc:date>2005-01-12</dc:date>\n" " <dc:type>Features</dc:type>\n" " <dc:format>text/html</dc:format>\n" " <dc:language>en-us</dc:language>\n" " <dc:rights>Copyright 2005, O'Reilly Media, Inc.</dc:rights>\n" " </item>\n" "\n" "\n" " <textinput rdf:about=\"http://meerkat.oreillynet.com/\">\n" " <title>Search</title>\n" " <description>Search Meerkat...</description>\n" " <name>s</name>\n" " <link>http://meerkat.oreillynet.com/</link>\n" " </textinput>\n" "\n" "</rdf:RDF>\n";const std::string SAXParserTest::ENCODING = "<?xml version=\"1.0\" encoding=\"ISO-8859-15\"?>" "<euro-sign>\244</euro-sign>";
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -