forked from pocoproject/poco
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSAXParserTest.cpp
More file actions
executable file
·1173 lines (1064 loc) · 49.5 KB
/
SAXParserTest.cpp
File metadata and controls
executable file
·1173 lines (1064 loc) · 49.5 KB
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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
//
// SAXParserTest.cpp
//
// $Id: //poco/1.4/XML/testsuite/src/SAXParserTest.cpp#1 $
//
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#include "SAXParserTest.h"
#include "CppUnit/TestCaller.h"
#include "CppUnit/TestSuite.h"
#include "Poco/SAX/SAXParser.h"
#include "Poco/SAX/InputSource.h"
#include "Poco/SAX/EntityResolver.h"
#include "Poco/SAX/SAXException.h"
#include "Poco/SAX/WhitespaceFilter.h"
#include "Poco/XML/XMLWriter.h"
#include "Poco/Latin9Encoding.h"
#include "Poco/FileStream.h"
#include <sstream>
using Poco::XML::SAXParser;
using Poco::XML::XMLWriter;
using Poco::XML::XMLReader;
using Poco::XML::InputSource;
using Poco::XML::EntityResolver;
using Poco::XML::XMLString;
using Poco::XML::SAXParseException;
using Poco::XML::WhitespaceFilter;
class TestEntityResolver: public EntityResolver
{
public:
InputSource* resolveEntity(const XMLString* publicId, const XMLString& systemId)
{
if (systemId == "include.xml")
{
std::istringstream* istr = new std::istringstream(SAXParserTest::INCLUDE);
InputSource* pIS = new InputSource(*istr);
pIS->setSystemId(systemId);
return pIS;
}
else if (systemId == "http://www.w3.org/TR/xhtml1/DTD/xhtml-lat1.ent")
{
std::istringstream* istr = new std::istringstream(SAXParserTest::XHTML_LATIN1_ENTITIES);
InputSource* pIS = new InputSource(*istr);
pIS->setSystemId(systemId);
return pIS;
}
return 0;
}
void releaseInputSource(InputSource* pSource)
{
delete pSource->getByteStream();
delete pSource;
}
};
SAXParserTest::SAXParserTest(const std::string& name): CppUnit::TestCase(name)
{
}
SAXParserTest::~SAXParserTest()
{
}
void SAXParserTest::testSimple1()
{
SAXParser parser;
std::string xml = parse(parser, XMLWriter::CANONICAL, SIMPLE1);
assert (xml == "<foo/>");
}
void SAXParserTest::testSimple2()
{
SAXParser parser;
std::string xml = parse(parser, XMLWriter::CANONICAL, SIMPLE2);
assert (xml == "<foo/>");
}
void SAXParserTest::testAttributes()
{
SAXParser parser;
std::string xml = parse(parser, XMLWriter::CANONICAL, ATTRIBUTES);
assert (xml == ATTRIBUTES);
}
void SAXParserTest::testCDATA()
{
SAXParser parser;
std::string xml = parse(parser, XMLWriter::CANONICAL, CDATA);
assert (xml == CDATA);
}
void SAXParserTest::testComment()
{
SAXParser parser;
std::string xml = parse(parser, XMLWriter::CANONICAL, COMMENT);
assert (xml == COMMENT);
}
void SAXParserTest::testPI()
{
SAXParser parser;
std::string xml = parse(parser, XMLWriter::CANONICAL, PROCESSING_INSTRUCTION);
assert (xml == PROCESSING_INSTRUCTION);
}
void SAXParserTest::testDTD()
{
SAXParser parser;
std::string xml = parse(parser, XMLWriter::CANONICAL, DTD);
assert (xml == "<!DOCTYPE test SYSTEM \"test.dtd\"><foo/>");
}
void SAXParserTest::testInternalEntity()
{
SAXParser parser;
std::string xml = parse(parser, XMLWriter::CANONICAL, INTERNAL_ENTITY);
assert (xml == "<!DOCTYPE sample><root>\n\t<company>Applied Informatics</company>\n</root>");
}
void SAXParserTest::testNotation()
{
SAXParser parser;
std::string xml = parse(parser, XMLWriter::CANONICAL, NOTATION);
assert (xml == "<!DOCTYPE test [<!NOTATION mov SYSTEM \"quicktime\">"
"<!NOTATION xml PUBLIC \"-//W3C//NOTATION XML 1.0//EN\">]>"
"<foo/>");
}
void SAXParserTest::testExternalUnparsed()
{
SAXParser parser;
std::string xml = parse(parser, XMLWriter::CANONICAL, EXTERNAL_UNPARSED);
assert (xml == "<!DOCTYPE test [<!NOTATION mov SYSTEM \"quicktime\">"
"<!ENTITY movie SYSTEM \"movie.mov\" NDATA mov>]>"
"<sample/>");
}
void SAXParserTest::testExternalParsed()
{
SAXParser parser;
TestEntityResolver resolver;
parser.setEntityResolver(&resolver);
parser.setFeature(XMLReader::FEATURE_EXTERNAL_GENERAL_ENTITIES, true);
std::string xml = parse(parser, XMLWriter::CANONICAL, EXTERNAL_PARSED);
assert (xml == "<!DOCTYPE test><sample>\n\t<elem>\n\tAn external entity.\n</elem>\n\n</sample>");
}
void SAXParserTest::testDefaultNamespace()
{
SAXParser parser;
std::string xml = parse(parser, XMLWriter::CANONICAL, DEFAULT_NAMESPACE);
assert (xml == DEFAULT_NAMESPACE);
}
void SAXParserTest::testNamespaces()
{
SAXParser parser;
parser.setFeature(XMLReader::FEATURE_NAMESPACES, true);
parser.setFeature(XMLReader::FEATURE_NAMESPACE_PREFIXES, true);
std::string xml = parse(parser, XMLWriter::CANONICAL, NAMESPACES);
assert (xml == NAMESPACES);
}
void SAXParserTest::testNamespacesNoPrefixes()
{
SAXParser parser;
parser.setFeature(XMLReader::FEATURE_NAMESPACES, true);
parser.setFeature(XMLReader::FEATURE_NAMESPACE_PREFIXES, false);
std::string xml = parse(parser, XMLWriter::CANONICAL, NAMESPACES);
assert (xml == NAMESPACES);
}
void SAXParserTest::testNoNamespaces()
{
SAXParser parser;
parser.setFeature(XMLReader::FEATURE_NAMESPACES, false);
std::string xml = parse(parser, XMLWriter::CANONICAL, NAMESPACES);
assert (xml == NAMESPACES);
}
void SAXParserTest::testUndeclaredNamespace()
{
SAXParser parser;
parser.setFeature(XMLReader::FEATURE_NAMESPACES, true);
parser.setFeature(XMLReader::FEATURE_NAMESPACE_PREFIXES, true);
try
{
std::string xml = parse(parser, XMLWriter::CANONICAL, UNDECLARED_NAMESPACE);
fail("undeclared namespace - must throw exception");
}
catch (SAXParseException&)
{
}
}
void SAXParserTest::testUndeclaredNamespaceNoPrefixes()
{
SAXParser parser;
parser.setFeature(XMLReader::FEATURE_NAMESPACES, true);
parser.setFeature(XMLReader::FEATURE_NAMESPACE_PREFIXES, false);
try
{
std::string xml = parse(parser, XMLWriter::CANONICAL, UNDECLARED_NAMESPACE);
fail("undeclared namespace - must throw exception");
}
catch (SAXParseException&)
{
}
}
void SAXParserTest::testUndeclaredNoNamespace()
{
SAXParser parser;
parser.setFeature(XMLReader::FEATURE_NAMESPACES, false);
std::string xml = parse(parser, XMLWriter::CANONICAL, UNDECLARED_NAMESPACE);
assert (xml == UNDECLARED_NAMESPACE);
}
void SAXParserTest::testRSS()
{
SAXParser parser;
WhitespaceFilter filter(&parser);
TestEntityResolver resolver;
filter.setEntityResolver(&resolver);
parser.setFeature(XMLReader::FEATURE_EXTERNAL_GENERAL_ENTITIES, true);
parser.setFeature(XMLReader::FEATURE_EXTERNAL_PARAMETER_ENTITIES, true);
std::istringstream istr(RSS);
Poco::FileOutputStream ostr("rss.xml");
XMLWriter writer(ostr, XMLWriter::CANONICAL | XMLWriter::PRETTY_PRINT);
filter.setContentHandler(&writer);
filter.setDTDHandler(&writer);
filter.setProperty(XMLReader::PROPERTY_LEXICAL_HANDLER, static_cast<Poco::XML::LexicalHandler*>(&writer));
InputSource source(istr);
filter.parse(&source);
}
void SAXParserTest::testEncoding()
{
SAXParser parser;
Poco::Latin9Encoding encoding;
parser.addEncoding("ISO-8859-15", &encoding);
std::istringstream istr(ENCODING);
std::ostringstream ostr;
XMLWriter writer(ostr, XMLWriter::WRITE_XML_DECLARATION, "ISO-8859-15", encoding);
parser.setContentHandler(&writer);
parser.setDTDHandler(&writer);
parser.setProperty(XMLReader::PROPERTY_LEXICAL_HANDLER, static_cast<Poco::XML::LexicalHandler*>(&writer));
InputSource source(istr);
parser.parse(&source);
std::string xml = ostr.str();
assert (xml == ENCODING);
}
void SAXParserTest::testCharacters()
{
static const XMLString xml("<textnode> TEXT & AMPERSAND </textnode>");
SAXParser parser;
parser.setFeature(XMLReader::FEATURE_NAMESPACES, false);
std::string result = parse(parser, XMLWriter::CANONICAL, xml);
assert (result == xml);
}
void SAXParserTest::testParseMemory()
{
SAXParser parser;
std::string xml = parseMemory(parser, XMLWriter::CANONICAL | XMLWriter::PRETTY_PRINT, WSDL);
assert (xml == WSDL);
}
void SAXParserTest::testParsePartialReads()
{
SAXParser parser;
parser.setFeature("http://www.appinf.com/features/enable-partial-reads", true);
std::string xml = parse(parser, XMLWriter::CANONICAL | XMLWriter::PRETTY_PRINT, WSDL);
assert (xml == WSDL);
}
void SAXParserTest::setUp()
{
}
void SAXParserTest::tearDown()
{
}
std::string SAXParserTest::parse(XMLReader& reader, int options, const std::string& data)
{
std::istringstream istr(data);
std::ostringstream ostr;
XMLWriter writer(ostr, options);
writer.setNewLine(XMLWriter::NEWLINE_LF);
reader.setContentHandler(&writer);
reader.setDTDHandler(&writer);
reader.setProperty(XMLReader::PROPERTY_LEXICAL_HANDLER, static_cast<Poco::XML::LexicalHandler*>(&writer));
InputSource source(istr);
reader.parse(&source);
return ostr.str();
}
std::string SAXParserTest::parseMemory(XMLReader& reader, int options, const std::string& data)
{
std::ostringstream ostr;
XMLWriter writer(ostr, options);
writer.setNewLine(XMLWriter::NEWLINE_LF);
reader.setContentHandler(&writer);
reader.setDTDHandler(&writer);
reader.setProperty(XMLReader::PROPERTY_LEXICAL_HANDLER, static_cast<Poco::XML::LexicalHandler*>(&writer));
reader.parseMemoryNP(data.data(), data.size());
return ostr.str();
}
CppUnit::Test* SAXParserTest::suite()
{
CppUnit::TestSuite* pSuite = new CppUnit::TestSuite("SAXParserTest");
CppUnit_addTest(pSuite, SAXParserTest, testSimple1);
CppUnit_addTest(pSuite, SAXParserTest, testSimple2);
CppUnit_addTest(pSuite, SAXParserTest, testAttributes);
CppUnit_addTest(pSuite, SAXParserTest, testCDATA);
CppUnit_addTest(pSuite, SAXParserTest, testComment);
CppUnit_addTest(pSuite, SAXParserTest, testPI);
CppUnit_addTest(pSuite, SAXParserTest, testDTD);
CppUnit_addTest(pSuite, SAXParserTest, testInternalEntity);
CppUnit_addTest(pSuite, SAXParserTest, testNotation);
CppUnit_addTest(pSuite, SAXParserTest, testExternalUnparsed);
CppUnit_addTest(pSuite, SAXParserTest, testExternalParsed);
CppUnit_addTest(pSuite, SAXParserTest, testDefaultNamespace);
CppUnit_addTest(pSuite, SAXParserTest, testNamespaces);
CppUnit_addTest(pSuite, SAXParserTest, testNamespacesNoPrefixes);
CppUnit_addTest(pSuite, SAXParserTest, testNoNamespaces);
CppUnit_addTest(pSuite, SAXParserTest, testUndeclaredNamespace);
CppUnit_addTest(pSuite, SAXParserTest, testUndeclaredNamespaceNoPrefixes);
CppUnit_addTest(pSuite, SAXParserTest, testUndeclaredNoNamespace);
CppUnit_addTest(pSuite, SAXParserTest, testRSS);
CppUnit_addTest(pSuite, SAXParserTest, testEncoding);
CppUnit_addTest(pSuite, SAXParserTest, testCharacters);
CppUnit_addTest(pSuite, SAXParserTest, testParseMemory);
CppUnit_addTest(pSuite, SAXParserTest, testParsePartialReads);
return pSuite;
}
const std::string SAXParserTest::SIMPLE1 =
"<foo/>\n";
const std::string SAXParserTest::SIMPLE2 =
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
"<foo/>\n";
const std::string SAXParserTest::ATTRIBUTES =
"<root a1=\"v1\">\n"
"\t<elem a1=\"v1\" a2=\"v2\"/>\n"
"</root>";
const std::string SAXParserTest::CDATA =
"<data>\n"
"<![CDATA[\n"
"\tThe following <tag attr=\"value\">is inside a CDATA section</tag>.\n"
"]]>\n"
"</data>";
const std::string SAXParserTest::COMMENT =
"<!--this is a comment-->"
"<root>\n"
"\t<!--another comment-->\n"
"\t<elem/>\n"
"</root>";
const std::string SAXParserTest::PROCESSING_INSTRUCTION =
"<html>\n"
"\t<head>\n"
"\t\t<?xml-stylesheet href=\"style.css\" type=\"text/css\"?>\n"
"\t\t<title>test</title>\n"
"\t</head>\n"
"\t<body>\n"
"\t\t<p>this is a test</p>\n"
"\t</body>\n"
"</html>";
const std::string SAXParserTest::DTD =
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
"<!DOCTYPE test SYSTEM \"test.dtd\">\n"
"<foo/>";
const std::string SAXParserTest::INTERNAL_ENTITY =
"<!DOCTYPE sample [\n"
"\t<!ENTITY appinf \"Applied Informatics\">\n"
"]>\n"
"<root>\n"
"\t<company>&appinf;</company>\n"
"</root>";
const std::string SAXParserTest::NOTATION =
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
"<!DOCTYPE test [\n"
"\t<!NOTATION mov SYSTEM \"quicktime\">\n"
"\t<!NOTATION xml PUBLIC \"-//W3C//NOTATION XML 1.0//EN\">\n"
"]>\n"
"<foo/>";
const std::string SAXParserTest::EXTERNAL_UNPARSED =
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
"<!DOCTYPE test [\n"
"\t<!NOTATION mov SYSTEM \"quicktime\">\n"
"\t<!ENTITY movie SYSTEM \"movie.mov\" NDATA mov>\n"
"]>\n"
"<sample/>";
const std::string SAXParserTest::EXTERNAL_PARSED =
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
"<!DOCTYPE test [\n"
"\t<!ENTITY include SYSTEM \"include.xml\">\n"
"]>\n"
"<sample>\n"
"\t&include;\n"
"</sample>\n";
const std::string SAXParserTest::INCLUDE =
"<elem>\n"
"\tAn external entity.\n"
"</elem>\n";
const std::string SAXParserTest::DEFAULT_NAMESPACE =
"<root xmlns=\"urn:ns1\">\n"
"\t<elem>data</elem>\n"
"</root>";
const std::string SAXParserTest::NAMESPACES =
"<ns1:root xmlns:ns1=\"urn:ns1\" xmlns:ns2=\"urn:ns2\">\n"
"\t<ns2:elem>data</ns2:elem>\n"
"\t<ns3:elem a1=\"v1\" ns2:a2=\"v2\" xmlns:ns3=\"urn:ns3\">\n"
"\t\tmore data\n"
"\t</ns3:elem>\n"
"</ns1:root>";
const std::string SAXParserTest::UNDECLARED_NAMESPACE =
"<ns1:root xmlns:ns1=\"urn:ns1\" xmlns:ns2=\"urn:ns2\">\n"
"\t<ns2:elem>data</ns2:elem>\n"
"\t<ns3:elem a1=\"v1\" ns2:a2=\"v2\" xmlns:ns3=\"urn:ns3\">\n"
"\t\tmore data\n"
"\t</ns3:elem>\n"
"\t<ns4:elem/>\n"
"</ns1:root>";
const std::string SAXParserTest::XHTML_LATIN1_ENTITIES =
"<!-- Portions (C) International Organization for Standardization 1986\n"
" Permission to copy in any form is granted for use with\n"
" conforming SGML systems and applications as defined in\n"
" ISO 8879, provided this notice is included in all copies.\n"
"-->\n"
"<!-- Character entity set. Typical invocation:\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"
"<!ENTITY nbsp \" \"> <!-- no-break space = non-breaking space,\n"
" U+00A0 ISOnum -->\n"
"<!ENTITY iexcl \"¡\"> <!-- inverted exclamation mark, U+00A1 ISOnum -->\n"
"<!ENTITY cent \"¢\"> <!-- cent sign, U+00A2 ISOnum -->\n"
"<!ENTITY pound \"£\"> <!-- pound sign, U+00A3 ISOnum -->\n"
"<!ENTITY curren \"¤\"> <!-- currency sign, U+00A4 ISOnum -->\n"
"<!ENTITY yen \"¥\"> <!-- yen sign = yuan sign, U+00A5 ISOnum -->\n"
"<!ENTITY brvbar \"¦\"> <!-- broken bar = broken vertical bar,\n"
" U+00A6 ISOnum -->\n"
"<!ENTITY sect \"§\"> <!-- section sign, U+00A7 ISOnum -->\n"
"<!ENTITY uml \"¨\"> <!-- diaeresis = spacing diaeresis,\n"
" U+00A8 ISOdia -->\n"
"<!ENTITY copy \"©\"> <!-- copyright sign, U+00A9 ISOnum -->\n"
"<!ENTITY ordf \"ª\"> <!-- feminine ordinal indicator, U+00AA ISOnum -->\n"
"<!ENTITY laquo \"«\"> <!-- left-pointing double angle quotation mark\n"
" = left pointing guillemet, U+00AB ISOnum -->\n"
"<!ENTITY not \"¬\"> <!-- not sign = angled dash,\n"
" U+00AC ISOnum -->\n"
"<!ENTITY shy \"­\"> <!-- soft hyphen = discretionary hyphen,\n"
" U+00AD ISOnum -->\n"
"<!ENTITY reg \"®\"> <!-- registered sign = registered trade mark sign,\n"
" U+00AE ISOnum -->\n"
"<!ENTITY macr \"¯\"> <!-- macron = spacing macron = overline\n"
" = APL overbar, U+00AF ISOdia -->\n"
"<!ENTITY deg \"°\"> <!-- degree sign, U+00B0 ISOnum -->\n"
"<!ENTITY plusmn \"±\"> <!-- plus-minus sign = plus-or-minus sign,\n"
" U+00B1 ISOnum -->\n"
"<!ENTITY sup2 \"²\"> <!-- superscript two = superscript digit two\n"
" = squared, U+00B2 ISOnum -->\n"
"<!ENTITY sup3 \"³\"> <!-- superscript three = superscript digit three\n"
" = cubed, U+00B3 ISOnum -->\n"
"<!ENTITY acute \"´\"> <!-- acute accent = spacing acute,\n"
" U+00B4 ISOdia -->\n"
"<!ENTITY micro \"µ\"> <!-- micro sign, U+00B5 ISOnum -->\n"
"<!ENTITY para \"¶\"> <!-- pilcrow sign = paragraph sign,\n"
" U+00B6 ISOnum -->\n"
"<!ENTITY middot \"·\"> <!-- middle dot = Georgian comma\n"
" = Greek middle dot, U+00B7 ISOnum -->\n"
"<!ENTITY cedil \"¸\"> <!-- cedilla = spacing cedilla, U+00B8 ISOdia -->\n"
"<!ENTITY sup1 \"¹\"> <!-- superscript one = superscript digit one,\n"
" U+00B9 ISOnum -->\n"
"<!ENTITY ordm \"º\"> <!-- masculine ordinal indicator,\n"
" U+00BA ISOnum -->\n"
"<!ENTITY raquo \"»\"> <!-- right-pointing double angle quotation mark\n"
" = right pointing guillemet, U+00BB ISOnum -->\n"
"<!ENTITY frac14 \"¼\"> <!-- vulgar fraction one quarter\n"
" = fraction one quarter, U+00BC ISOnum -->\n"
"<!ENTITY frac12 \"½\"> <!-- vulgar fraction one half\n"
" = fraction one half, U+00BD ISOnum -->\n"
"<!ENTITY frac34 \"¾\"> <!-- vulgar fraction three quarters\n"
" = fraction three quarters, U+00BE ISOnum -->\n"
"<!ENTITY iquest \"¿\"> <!-- inverted question mark\n"
" = turned question mark, U+00BF ISOnum -->\n"
"<!ENTITY Agrave \"À\"> <!-- latin capital letter A with grave\n"
" = latin capital letter A grave,\n"
" U+00C0 ISOlat1 -->\n"
"<!ENTITY Aacute \"Á\"> <!-- latin capital letter A with acute,\n"
" U+00C1 ISOlat1 -->\n"
"<!ENTITY Acirc \"Â\"> <!-- latin capital letter A with circumflex,\n"
" U+00C2 ISOlat1 -->\n"
"<!ENTITY Atilde \"Ã\"> <!-- latin capital letter A with tilde,\n"
" U+00C3 ISOlat1 -->\n"
"<!ENTITY Auml \"Ä\"> <!-- latin capital letter A with diaeresis,\n"
" U+00C4 ISOlat1 -->\n"
"<!ENTITY Aring \"Å\"> <!-- latin capital letter A with ring above\n"
" = latin capital letter A ring,\n"
" U+00C5 ISOlat1 -->\n"
"<!ENTITY AElig \"Æ\"> <!-- latin capital letter AE\n"
" = latin capital ligature AE,\n"
" U+00C6 ISOlat1 -->\n"
"<!ENTITY Ccedil \"Ç\"> <!-- latin capital letter C with cedilla,\n"
" U+00C7 ISOlat1 -->\n"
"<!ENTITY Egrave \"È\"> <!-- latin capital letter E with grave,\n"
" U+00C8 ISOlat1 -->\n"
"<!ENTITY Eacute \"É\"> <!-- latin capital letter E with acute,\n"
" U+00C9 ISOlat1 -->\n"
"<!ENTITY Ecirc \"Ê\"> <!-- latin capital letter E with circumflex,\n"
" U+00CA ISOlat1 -->\n"
"<!ENTITY Euml \"Ë\"> <!-- latin capital letter E with diaeresis,\n"
" U+00CB ISOlat1 -->\n"
"<!ENTITY Igrave \"Ì\"> <!-- latin capital letter I with grave,\n"
" U+00CC ISOlat1 -->\n"
"<!ENTITY Iacute \"Í\"> <!-- latin capital letter I with acute,\n"
" U+00CD ISOlat1 -->\n"
"<!ENTITY Icirc \"Î\"> <!-- latin capital letter I with circumflex,\n"
" U+00CE ISOlat1 -->\n"
"<!ENTITY Iuml \"Ï\"> <!-- latin capital letter I with diaeresis,\n"
" U+00CF ISOlat1 -->\n"
"<!ENTITY ETH \"Ð\"> <!-- latin capital letter ETH, U+00D0 ISOlat1 -->\n"
"<!ENTITY Ntilde \"Ñ\"> <!-- latin capital letter N with tilde,\n"
" U+00D1 ISOlat1 -->\n"
"<!ENTITY Ograve \"Ò\"> <!-- latin capital letter O with grave,\n"
" U+00D2 ISOlat1 -->\n"
"<!ENTITY Oacute \"Ó\"> <!-- latin capital letter O with acute,\n"
" U+00D3 ISOlat1 -->\n"
"<!ENTITY Ocirc \"Ô\"> <!-- latin capital letter O with circumflex,\n"
" U+00D4 ISOlat1 -->\n"
"<!ENTITY Otilde \"Õ\"> <!-- latin capital letter O with tilde,\n"
" U+00D5 ISOlat1 -->\n"
"<!ENTITY Ouml \"Ö\"> <!-- latin capital letter O with diaeresis,\n"
" U+00D6 ISOlat1 -->\n"
"<!ENTITY times \"×\"> <!-- multiplication sign, U+00D7 ISOnum -->\n"
"<!ENTITY Oslash \"Ø\"> <!-- latin capital letter O with stroke\n"
" = latin capital letter O slash,\n"
" U+00D8 ISOlat1 -->\n"
"<!ENTITY Ugrave \"Ù\"> <!-- latin capital letter U with grave,\n"
" U+00D9 ISOlat1 -->\n"
"<!ENTITY Uacute \"Ú\"> <!-- latin capital letter U with acute,\n"
" U+00DA ISOlat1 -->\n"
"<!ENTITY Ucirc \"Û\"> <!-- latin capital letter U with circumflex,\n"
" U+00DB ISOlat1 -->\n"
"<!ENTITY Uuml \"Ü\"> <!-- latin capital letter U with diaeresis,\n"
" U+00DC ISOlat1 -->\n"
"<!ENTITY Yacute \"Ý\"> <!-- latin capital letter Y with acute,\n"
" U+00DD ISOlat1 -->\n"
"<!ENTITY THORN \"Þ\"> <!-- latin capital letter THORN,\n"
" U+00DE ISOlat1 -->\n"
"<!ENTITY szlig \"ß\"> <!-- latin small letter sharp s = ess-zed,\n"
" U+00DF ISOlat1 -->\n"
"<!ENTITY agrave \"à\"> <!-- latin small letter a with grave\n"
" = latin small letter a grave,\n"
" U+00E0 ISOlat1 -->\n"
"<!ENTITY aacute \"á\"> <!-- latin small letter a with acute,\n"
" U+00E1 ISOlat1 -->\n"
"<!ENTITY acirc \"â\"> <!-- latin small letter a with circumflex,\n"
" U+00E2 ISOlat1 -->\n"
"<!ENTITY atilde \"ã\"> <!-- latin small letter a with tilde,\n"
" U+00E3 ISOlat1 -->\n"
"<!ENTITY auml \"ä\"> <!-- latin small letter a with diaeresis,\n"
" U+00E4 ISOlat1 -->\n"
"<!ENTITY aring \"å\"> <!-- latin small letter a with ring above\n"
" = latin small letter a ring,\n"
" U+00E5 ISOlat1 -->\n"
"<!ENTITY aelig \"æ\"> <!-- latin small letter ae\n"
" = latin small ligature ae, U+00E6 ISOlat1 -->\n"
"<!ENTITY ccedil \"ç\"> <!-- latin small letter c with cedilla,\n"
" U+00E7 ISOlat1 -->\n"
"<!ENTITY egrave \"è\"> <!-- latin small letter e with grave,\n"
" U+00E8 ISOlat1 -->\n"
"<!ENTITY eacute \"é\"> <!-- latin small letter e with acute,\n"
" U+00E9 ISOlat1 -->\n"
"<!ENTITY ecirc \"ê\"> <!-- latin small letter e with circumflex,\n"
" U+00EA ISOlat1 -->\n"
"<!ENTITY euml \"ë\"> <!-- latin small letter e with diaeresis,\n"
" U+00EB ISOlat1 -->\n"
"<!ENTITY igrave \"ì\"> <!-- latin small letter i with grave,\n"
" U+00EC ISOlat1 -->\n"
"<!ENTITY iacute \"í\"> <!-- latin small letter i with acute,\n"
" U+00ED ISOlat1 -->\n"
"<!ENTITY icirc \"î\"> <!-- latin small letter i with circumflex,\n"
" U+00EE ISOlat1 -->\n"
"<!ENTITY iuml \"ï\"> <!-- latin small letter i with diaeresis,\n"
" U+00EF ISOlat1 -->\n"
"<!ENTITY eth \"ð\"> <!-- latin small letter eth, U+00F0 ISOlat1 -->\n"
"<!ENTITY ntilde \"ñ\"> <!-- latin small letter n with tilde,\n"
" U+00F1 ISOlat1 -->\n"
"<!ENTITY ograve \"ò\"> <!-- latin small letter o with grave,\n"
" U+00F2 ISOlat1 -->\n"
"<!ENTITY oacute \"ó\"> <!-- latin small letter o with acute,\n"
" U+00F3 ISOlat1 -->\n"
"<!ENTITY ocirc \"ô\"> <!-- latin small letter o with circumflex,\n"
" U+00F4 ISOlat1 -->\n"
"<!ENTITY otilde \"õ\"> <!-- latin small letter o with tilde,\n"
" U+00F5 ISOlat1 -->\n"
"<!ENTITY ouml \"ö\"> <!-- latin small letter o with diaeresis,\n"
" U+00F6 ISOlat1 -->\n"
"<!ENTITY divide \"÷\"> <!-- division sign, U+00F7 ISOnum -->\n"
"<!ENTITY oslash \"ø\"> <!-- latin small letter o with stroke,\n"
" = latin small letter o slash,\n"
" U+00F8 ISOlat1 -->\n"
"<!ENTITY ugrave \"ù\"> <!-- latin small letter u with grave,\n"
" U+00F9 ISOlat1 -->\n"
"<!ENTITY uacute \"ú\"> <!-- latin small letter u with acute,\n"
" U+00FA ISOlat1 -->\n"
"<!ENTITY ucirc \"û\"> <!-- latin small letter u with circumflex,\n"
" U+00FB ISOlat1 -->\n"
"<!ENTITY uuml \"ü\"> <!-- latin small letter u with diaeresis,\n"
" U+00FC ISOlat1 -->\n"
"<!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"