Using SOAP to generate XML attributes in PHP

djkrikke

New Member
I found you can generate this in SOAP in php:\[code\]<foo bar="blah">12345</foo>\[/code\]With this:\[code\]array("foo" => array("_" => 12345, "bar" => "blah"));\[/code\]However, the underscore method does not seem to work when the value is not a number and string, but instead embedded xml code. How would you do this for instance?\[code\]<foo bar="blah"> <aaa a="b">blah</aaa></foo>\[/code\]This is an extension of this person's question:http://www.bigresource.com/Tracker/Track-php-uQwDoUib/
 
Back
Top