On 9 Nov, 21:21, [EMAIL PROTECTED] wrote:
> On 9 Nov, 20:16, Harm Bandstra <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hello All,
>
> > I'm not sure if this is the right place for my question, but here
> > goes...
>
> > I have an XSD file with properties containing hyphens. I can't get it
> > to accept any changes to the properties. In part this is because php
> > doesn't accept hypens in variable names, but I found that "Simple-XML"
> > uses some sort of work around. I have the following php code:
>
> > ===
>
> > $xmldas = SDO_DAS_XML::create('xsd/pre_qual_wso.xsd');
> > $messagebody = $xmldas->createDataObject('','MessagebodyType');
>
> > // This gives a syntax error (duh)
> > $messagebody->portfolio-id     = 'BST';
>
> > // These 2 give the following error:
> > // Problem creating an XML document: DataObjectImpl::setSDOValue -
> > path not found:
> > $messagebody['portfolio-id']   = 'BST';
> > $messagebody[0]                = 'BST';
>
> > // This is the way it's done in simple-xml, but also doesn't work
> > $messagebody->{'portfolio-id'} = 'BST';
>
> > ===
>
> > Can it be done? Any help will be appreciated.
>
> > Kind regards,
>
> > Harm Bandstra
>
> Hi Harm
>
> Yep,  you found the right place to ask the question. I don't know the
> answer off the top of my head and I'm in the middle of rebuilding my
> PHP environment today so I'll take a look when I get it sorted. Sorry
> about the slight delay. I'll get back to you shortly.
>
> In the mean tim, if anyone else knows the answer feel free to jump
> in:-)
>
> Regards
>
> Simon

Hi Harm

Sorry this took me a while to get to. Have just managed to get my dev
environment up on my new machine following the demise of my old one.
The reason that this is failing is that the Tuscany SDO implementation
that we rely on for SDO support doesn't recognize the "-" character as
a valid character in a name. I think that it should in as much that it
is a valid name character [1]. Can you raise a bug report on this and
I'll log it in Tuscany and make a change. I can make the change
locally on PECL in the first instance. If people have doubts about
this then let me know.

Thanks

Simon


--~--~---------~--~----~------------~-------~--~----~
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 
http://groups.google.co.uk/group/phpsoa?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to