You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@royale.apache.org by Jim McNamara <ro...@yahoo.com> on 2022/06/15 17:10:09 UTC
character entities
HI all-
I am making more progress on php_amf3.
I can pass in an array from php and get its representation on the other side.
I have one problem though.
Take a look at this;
�5<html><header></header><body><p>{"Peter":"35","Ben":"37","Joe":"43"}</p></body></html>
If I don't use XML it is clean but when I do this:
mybooks.setValue(obj.toString());
input1.text=mybooks.toXMLString();
It goes crazy with entities. I am trying to pass in a string and get an xml representation so I can get at the array data that survives being encoded with AMF3.
If you now how to clean that up a bit or what package might do it please let me know.
THANKS,
jim
Re: character entities
Posted by Jim McNamara <ro...@yahoo.com>.
HI all-
I fiddled around with the character entity issues.
I decided to go framework hunting.
I am going to learn ant and add the apache flex framework for linux too.
That should help fix the character entity problem.
It seems that the XML class likes to add entities when you assign a string.
It is the final piece to getting actionscript to work with php_amf3 arrays in my code.
The person at php_amf3 likes to let you figure it out on your own somewhat.
He has nice documents, but conceptually you have to work it out a bit.
I like how the data is invisible when you echo the data in the web page for PhP, but somehow
it still gets transported, and you can receive it in AS3.
It's magic.
Have a cool night,
jim
On Wednesday, June 15, 2022, 01:10:09 PM EDT, Jim McNamara <ro...@yahoo.com> wrote:
HI all-
I am making more progress on php_amf3.
I can pass in an array from php and get its representation on the other side.
I have one problem though.
Take a look at this;
�5<html><header></header><body><p>{"Peter":"35","Ben":"37","Joe":"43"}</p></body></html>
If I don't use XML it is clean but when I do this:
mybooks.setValue(obj.toString());
input1.text=mybooks.toXMLString();
It goes crazy with entities. I am trying to pass in a string and get an xml representation so I can get at the array data that survives being encoded with AMF3.
If you now how to clean that up a bit or what package might do it please let me know.
THANKS,
jim