File:  [Public] / libwww / Library / src / WWWXML.html
Revision 2.3: download - view: text, annotated - select for diffs
Sun Apr 18 20:24:41 1999 UTC (25 years, 1 month ago) by frystyk
Branches: MAIN
CVS tags: before_webdav, Release-5-4-0, Release-5-3-1, HEAD, Amaya_2_4, Amaya-6-3, Amaya-6-1, Amaya-5-2, Amaya-4-3-2, Amaya-4-3-1, Amaya-4-3, Amaya-4-1-2, Amaya-4-1-0, Amaya-4-0-0, Amaya-3-2-1, Amaya-3-2
Added RDF parser as part of the XML module in libwww

<HTML>
<HEAD>
  <TITLE>W3C Sample Code Library libwww XML/RDF Module</TITLE>
</HEAD>
<BODY>
<H1>
  Declaration of W3C Sample Code XML/RDF Module
</H1>
<PRE>
/*
**	(c) COPYRIGHT MIT 1999.
**	Please first read the full copyright statement in the file COPYRIGH.
*/
</PRE>
<P>
<STRONG>Thanks so much to John Punin for writing this code!</STRONG>
<P>
We use <A href="http://www.jclark.com/xml/expat.html">James Clark's expat
XML parser</A> which is very neat indeed. As the code doesn't come as a separate
library, I included it in the libwww CVS code base where I compile is as
two libraries: <CODE>libxmltok.a</CODE> and <CODE>libxmlparse.a</CODE>. See
the <A HREF="../External/">external modules that libwww works</A> with for
details.
<PRE>
#ifndef WWWXML_H
#define WWWXML_H
</PRE>
<PRE>
#ifdef __cplusplus
extern "C" { 
#endif
</PRE>
<H2>
  System dependencies
</H2>
<P>
The <A HREF="wwwsys.html">wwwsys.h</A> file includes system-specific include
files and flags for I/O to network and disk. The only reason for this file
is that the Internet world is more complicated than Posix and ANSI.
<PRE>
#include "wwwsys.h"
</PRE>
<H3>
  The Libwww Expat Wrapper Stream
</H3>
<PRE>
#ifdef HT_EXPAT
#include "<A HREF="HTXML.html">HTXML.h</A>"
#endif /* HT_EXPAT */
</PRE>
<H3>
  The RDF Parser Using The XML Parser
</H3>
<P>
This RDF parser is based on Janne Saarela's Java based
<A href="/RDF/Implementations/SiRPAC/">SiRPAC</A> and
<A href="http://www.jclark.com/xml/expat.html">James Clark's expat XML
parser</A>
<PRE>
#ifdef HT_EXPAT
#include "<A HREF="HTRDF.html">HTRDF.h</A>"
#endif /* HT_EXPAT */
</PRE>
<P>
End of XML module
<PRE>
#ifdef __cplusplus
} /* end extern C definitions */
#endif

#endif
</PRE>
<P>
  <HR>
<ADDRESS>
  @(#) $Id: WWWXML.html,v 2.3 1999/04/18 20:24:41 frystyk Exp $
</ADDRESS>
</BODY></HTML>

Webmaster