On Aug 20, 12:10 pm, Caroline Maynard <[EMAIL PROTECTED]> wrote:
> Matthew Peters wrote:
> > Incidentally, could you paste in a little of the code that used to add
> > the fields to the entry? I am finding it very hard to write the code
> > that creates an entry - something to do with the weird many-valued
> > nature of entry and author....
> OK, here are the gory details. These are mostly open (therefore
> typically multi-valued) sequenced types, which is why the code is rather
> cumbersome:

Thank you. The mistake I was making was putting
   $entry_author->name = $author;
when I should have had
   $entry_author->name[] = $author;

Isn't it all horrid. When you try to write it from scratch, and if you
do not know what you are doing (that was me) it's baffling. The code I
had (i.e. without the []) executes, but nothing comes out in the
generated xml, or var_dump, so where the author value goes in that
case I don't know.

And as far as I know there is not an example of it in the examples.
The only places I could see where content was being built up, the code
was using heredocs instead. It looks like our examples need a
considerable overhaul (I am remembering your point 1. above also.)

You received this message because you are subscribed to the Google Groups 
"phpsoa" group.
To post to this group, send email to phpsoa@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 

Reply via email to