That (1) is pretty much exactly what I would do.  Make a component that
parses your XML into an associative array.  Get your controller action
to pass the uploaded XML to this component, then use the array data to
create and save instances of your model(s).

I agree a lot of heavy lifting can be done in a model, but I wouldn't
put XML parsing in there as it is a generic action.


On Oct 26, 3:37 am, "realien" <[EMAIL PROTECTED]> wrote:
> 1) I parse an XML file from a dv camera and need to insert what I get
> into my database, I will have models for the data, but do I create my
> xml parse class in my own "package" and have my controller call it  and
> map it to my model somehow before inserting it into my database?  Not
> quite sure where it should fit.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---

Reply via email to