We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db70285 commit c4aecf4Copy full SHA for c4aecf4
components/serializer.rst
@@ -903,6 +903,18 @@ The array keys beginning with ``@`` are considered XML attributes::
903
// <foo bar="value" />
904
// </response>
905
906
+If you want create a node with value and attribute use this::
907
+
908
+array('foo' => array('@bar' => 'value', # => 'baz'));
909
910
+ // is encoded as follows:
911
+ // <?xml version="1.0"?>
912
+ // <response>
913
+ // <foo bar="value">
914
+ // baz
915
+ // </foo>
916
+ // </response>
917
918
Context
919
~~~~~~~
920
0 commit comments