Re: What is there in an object representing a complexType element ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 02 May 2005 16:13:34 +0200, LEBUR Guillaume wrote:

> The problem is, I don't know the name of that object's member variables,
> and I don't know how to access them.
> The web service works fine but instead of "<a href="foo.com">This</a> is
> a text <strong>sample</strong>" in the database text column, I get
> "Object id #3".
>  
> Does anyone know how to deal with complex types like that one ? I don't
> want to parse the xhtml code, just to access the "texte" element as a
> block and put it in the database...
To get an idea of the contents of the object try this:
echo var_dump($article->texte)

To save it to the database your field in the database needs to defined as
blob or you can try out this class (mysql->xml->mysql):
http://phpclasses.tmoby.com/browse/package/782.html

As I can see from your code you are using php5 so you might also look at
http://dk2.php.net/manual/en/ref.simplexml.php
It automatically converts a xml document to a php object and back again.

-- 
Hilsen/Regards
Michael Rasmussen
http://keyserver.veridis.com:11371/pks/lookup?op=get&search=0xE3E80917

-- 
PHP Soap Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Kernel Newbies]     [PHP Database]     [Yosemite]

  Powered by Linux