Main Page   Data Structures   File List   Data Fields   Globals  

nnxml.c File Reference

XML-format network loading/saving functions. More...

#include <inttypes.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "nn.h"
#include "expat.h"

Data Structures

struct  nnXMLLayer
struct  nnXMLLink
struct  nnXMLNet
struct  nnXMLNode
struct  nodeTable
struct  xmlUserData

Functions

int nnSaveNetworkXML (nnNet *net, FILE *f)
 Save a network's topology and weights to an XML-format file.

nnNetnnLoadNetworkXML (FILE *f)
 Load a network's topology and weights from an XML-format file.


Detailed Description

XML-format network loading/saving functions.


Function Documentation

nnNet* nnLoadNetworkXML FILE *    f
 

Load a network's topology and weights from an XML-format file.

Parameters:
f  stdio file handle.
Returns:
Loaded network, or NULL upon failure.

int nnSaveNetworkXML nnNet   net,
FILE *    f
 

Save a network's topology and weights to an XML-format file.

Parameters:
net  Network to save.
f  stdio file handle.
Returns:
1 if successful, 0 otherwise.


Variable Documentation

const char rcsid[] [static]
 

Initial value:

        "$Id: nnxml.c 319 2003-02-22 08:57:23Z asaddi $"


Generated on Sat Feb 22 03:39:25 2003 for nn by doxygen1.2.18