2
* Phoebe DOM Implementation.
4
* This is a C++ approximation of the W3C DOM model, which follows
5
* fairly closely the specifications in the various .idl files, copies of
6
* which are provided for reference. Most important is this one:
8
* http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/idl-definitions.html
13
* Copyright (C) 2005 Bob Jamison
15
* This library is free software; you can redistribute it and/or
16
* modify it under the terms of the GNU Lesser General Public
17
* License as published by the Free Software Foundation; either
18
* version 2.1 of the License, or (at your option) any later version.
20
* This library is distributed in the hope that it will be useful,
21
* but WITHOUT ANY WARRANTY; without even the implied warranty of
22
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
23
* Lesser General Public License for more details.
25
* You should have received a copy of the GNU Lesser General Public
26
* License along with this library; if not, write to the Free Software
27
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
30
#include "io/uristream.h"
35
static bool doURI(char *uristr)
37
org::w3c::dom::URI uri(uristr);
39
printf("URI : '%s'\n", uri.toString().c_str());
40
printf("scheme : '%s'\n", uri.getSchemeStr().c_str());
41
printf("auth : '%s'\n", uri.getAuthority().c_str());
42
printf("path : '%s'\n", uri.getPath().c_str());
43
printf("query : '%s'\n", uri.getQuery().c_str());
44
printf("fragment: '%s'\n", uri.getFragment().c_str());
45
printf("absolute: '%d'\n", uri.getIsAbsolute());
56
char *uristr = "http://www.mit.edu:80/index.html?test=good#hello";
58
uristr = "http://www.mit.edu:80";
71
int main(int argc, char **argv)