Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Serializer] added the ability to add attributes to nodes using an ar…
…ray key begining with @ Example: array( 'foo-bar' => array( '@id' => 1, '@name' => 'Bar' ), Foo' => array( 'Bar' => "Test", '@type' => 'test' ) ) Parse XML now creates @ attribites for the array. $rss = array( "channel" => array( "title" => "Test RSS", "description" => "Test description", "item" => array( 0 => array( "title" => "Test Title 1", "link" => "http://foo.com" ), 1 => array( "title" => "Test Title 2", "link" => "http://bar.com" ) ) ) ); <channel> <title>Test RSS</title> <description>Test description</description> <item> <title>Test Title 1</title> <link>http://foo.com</link> </item> <item> <title>Test Title 2</title> <link>http://bar.com</title> </item> </channel>
- Loading branch information
Showing
2 changed files
with
61 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters