Download NHK English news podcast automatically. XML Parser "spxml" is used. This application requires mpod mother board. See also http://mbed.org/users/geodenx/notebook/mpod/

Dependencies:   BlinkLed HTTPClient EthernetInterface FatFileSystemCpp MSCFileSystem spxml mbed-rtos mbed

Fork of mpod_nhk_english by Satoshi Togawa

Download NHK English news podcast automatically.
XML Parser "spxml" is used.
This application requires mpod mother board.
See also http://mbed.org/users/geodenx/notebook/mpod/

Committer:
togayan
Date:
Mon Aug 20 13:27:17 2012 +0000
Revision:
4:7dae52cf560f
1st revision

Who changed what in which revision?

UserRevisionLine numberNew contents of line
togayan 4:7dae52cf560f 1 /*
togayan 4:7dae52cf560f 2 * Copyright 2007 Stephen Liu
togayan 4:7dae52cf560f 3 * For license terms, see the file COPYING along with this library.
togayan 4:7dae52cf560f 4 */
togayan 4:7dae52cf560f 5
togayan 4:7dae52cf560f 6 #ifndef __spcanonxml_hpp__
togayan 4:7dae52cf560f 7 #define __spcanonxml_hpp__
togayan 4:7dae52cf560f 8
togayan 4:7dae52cf560f 9 class SP_XmlNode;
togayan 4:7dae52cf560f 10 class SP_XmlStringBuffer;
togayan 4:7dae52cf560f 11 class SP_XmlDocDeclNode;
togayan 4:7dae52cf560f 12 class SP_XmlDocTypeNode;
togayan 4:7dae52cf560f 13
togayan 4:7dae52cf560f 14 /// XML Canonical, defined by James Clark.
togayan 4:7dae52cf560f 15 class SP_CanonXmlBuffer {
togayan 4:7dae52cf560f 16 public:
togayan 4:7dae52cf560f 17 SP_CanonXmlBuffer( const SP_XmlNode * node );
togayan 4:7dae52cf560f 18 ~SP_CanonXmlBuffer();
togayan 4:7dae52cf560f 19
togayan 4:7dae52cf560f 20 const char * getBuffer() const;
togayan 4:7dae52cf560f 21 int getSize() const;
togayan 4:7dae52cf560f 22
togayan 4:7dae52cf560f 23 private:
togayan 4:7dae52cf560f 24 SP_CanonXmlBuffer( SP_CanonXmlBuffer & );
togayan 4:7dae52cf560f 25 SP_CanonXmlBuffer & operator=( SP_CanonXmlBuffer & );
togayan 4:7dae52cf560f 26
togayan 4:7dae52cf560f 27 static void dump( const SP_XmlNode * node,
togayan 4:7dae52cf560f 28 SP_XmlStringBuffer * buffer );
togayan 4:7dae52cf560f 29 static void dumpElement( const SP_XmlNode * node,
togayan 4:7dae52cf560f 30 SP_XmlStringBuffer * buffer );
togayan 4:7dae52cf560f 31
togayan 4:7dae52cf560f 32 static void canonEncode( const char * value,
togayan 4:7dae52cf560f 33 SP_XmlStringBuffer * buffer );
togayan 4:7dae52cf560f 34
togayan 4:7dae52cf560f 35 SP_XmlStringBuffer * mBuffer;
togayan 4:7dae52cf560f 36 };
togayan 4:7dae52cf560f 37
togayan 4:7dae52cf560f 38 #endif