mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-06 18:21:39 +09:00
XmlParser class로 뺌
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3305 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
548c58b30a
commit
190a67301e
2 changed files with 9 additions and 3 deletions
|
|
@ -1,5 +1,11 @@
|
|||
<?php
|
||||
class Me2DayXmlParser {
|
||||
/**
|
||||
* @class GeneralXmlParser
|
||||
* @author haneul (haneul0318@gmail.com)
|
||||
* @brief XE에서 쓰는 XmlParser보다 좀더 범용으로 쓸 수 있는 Parser
|
||||
* @version 0.1
|
||||
*/
|
||||
class GeneralXmlParser {
|
||||
var $output = array();
|
||||
|
||||
function parse($input = '') {
|
||||
|
|
@ -8,7 +8,7 @@
|
|||
set_include_path("./modules/springnote/lib/PEAR");
|
||||
require_once('PEAR.php');
|
||||
require_once('HTTP/Request.php');
|
||||
require_once('me2dayXmlParser.class.php');
|
||||
require_once('./classes/xml/GeneralXmlParser.class.php');
|
||||
|
||||
class lifepodModel extends lifepod {
|
||||
|
||||
|
|
@ -64,7 +64,7 @@
|
|||
|
||||
$body = $oReqeust->getResponseBody();
|
||||
|
||||
$oXmlParser = new Me2DayXmlParser();
|
||||
$oXmlParser = new GeneralXmlParser();
|
||||
$xmldoc = $oXmlParser->parse($body);
|
||||
if(!$xmldoc->childNodes["feed"]->childNodes["entry"])
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue