Hello,

I try to use Sabre XML Reader to handle this 
xml: http://www.eplakaty.pl/xml/ceneo.xml

If I map elements like this:

$this->xmlReader->elementMap = [
 '{}o' => 'Product',
 ];



I got only attributes from "o" element (url, price etc) but I want map also 
cat, name, imgs and desc.

I would like to do something like:
$this->xmlReader->elementMap = [
 '{}o' => 'Product',
 '{}cat'=> 'Category',
 '{}etc'=> 'Etc',
 ];

But it map only Product class.

I can get sub elements by 

$reader->parseInnerTree()

in Product class, parse it on my own and set fields by myself, but should 
I? Maybe it is better way to do that?
 

-- 
You received this message because you are subscribed to the Google Groups 
"SabreDAV Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sabredav-discuss/d0e52c40-9499-40e0-b2a0-38755bc0b78b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to