|
a/libupnpp/ixmlwrap.hxx |
|
b/libupnpp/ixmlwrap.hxx |
|
... |
|
... |
15 |
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
15 |
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
16 |
*/
|
16 |
*/
|
17 |
#ifndef _IXMLWRAP_H_INCLUDED_
|
17 |
#ifndef _IXMLWRAP_H_INCLUDED_
|
18 |
#define _IXMLWRAP_H_INCLUDED_
|
18 |
#define _IXMLWRAP_H_INCLUDED_
|
19 |
|
19 |
|
20 |
#include <string>
|
20 |
#include <upnp/ixml.h> // for IXML_Document
|
|
|
21 |
|
|
|
22 |
#include <string> // for string
|
21 |
|
23 |
|
22 |
namespace UPnPP {
|
24 |
namespace UPnPP {
|
23 |
|
25 |
|
24 |
/** Retrieve the text content for the first element of given name.
|
26 |
/** Retrieve the text content for the first element of given name.
|
25 |
* Returns an empty string if the element does not contain a text node */
|
27 |
* Returns an empty string if the element does not contain a text node */
|
26 |
std::string getFirstElementValue(IXML_Document *doc, const string& name);
|
28 |
std::string getFirstElementValue(IXML_Document *doc, const std::string& name);
|
27 |
|
29 |
|
28 |
}
|
30 |
}
|
29 |
|
31 |
|
30 |
#endif /* _IXMLWRAP_H_INCLUDED_ */
|
32 |
#endif /* _IXMLWRAP_H_INCLUDED_ */
|