1 #include "ACEXML/common/HttpCharStream.h"
2 #include "ace/OS_NS_stdio.h"
3 #include "ace/OS_main.h"
5 int ACE_TMAIN (int, ACE_TCHAR
*[])
7 const ACEXML_Char
* test
= ACE_TEXT("http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd");
9 const ACEXML_Char
* simple
= ACE_TEXT("http://www.w3.org/TR/xhtml1/DTD/xhtml-lat1.ent");
11 ACEXML_HttpCharStream first
;
12 ACEXML_HttpCharStream second
;
15 if (first
.open (test
) != -1)
17 while (first
.get (ch
) != -1)
18 ACE_OS::printf ("%c", ch
);
23 ACE_ERROR ((LM_ERROR
, "Error in opening stream : %m\n"));
25 if (second
.open (simple
) != -1)
27 while (second
.get (ch
) != -1)
28 ACE_OS::printf ("%c", ch
);
33 ACE_ERROR ((LM_ERROR
, "Error in opening stream : %m\n"));