Coconut I/O Framework  beta
Functions
CNXMLTextFile.h File Reference

Reader/Write of XML file. More...

#import <Coconut/Coconut.h>
#import <libxml/tree.h>

Go to the source code of this file.

Functions

xmlNodePtr CNXMLReadTextFromFile (FILE *file)
 Read text file as a text node.
xmlNodePtr CNXMLReadTextFromURL (NSURL *url, NSError **error)
 Read XML file at given URL.

Detailed Description

Reader/Write of XML file.

Copyright
Copyright (C) 2012 Steel Wheels Project

Function Documentation

xmlNodePtr CNXMLReadTextFromFile ( FILE *  file)

Read text file as a text node.

Return values:
nodeXML text node
NULLFailed to read the text file
Parameters:
fileInput file stream
xmlNodePtr CNXMLReadTextFromURL ( NSURL *  url,
NSError **  error 
)

Read XML file at given URL.

Return values:
docXML document
NULLFailed to read the XML document
Parameters:
urlLocation of the file
errorThe error information. This is set the returned value is NULL