XML/DOM serialization: Difference between revisions
Content added Content deleted
Thundergnat (talk | contribs) m (syntax highlighting fixup automation) |
|||
Line 438: | Line 438: | ||
xmlCleanupParser(); |
xmlCleanupParser(); |
||
}</syntaxhighlight> |
}</syntaxhighlight> |
||
{{libheader|Gadget}} |
|||
<syntaxhighlight lang="c"> |
|||
#include <gadget/gadget.h> |
|||
LIB_GADGET_START |
|||
Main |
|||
String XML, body; |
|||
Stack{ |
|||
Store ( XML, Parser( "element", "","Some text here", NORMAL_TAG) ); |
|||
Store ( XML, Parser( "root", "",XML, NORMAL_TAG) ); |
|||
} Stack_off; |
|||
body = Multi_copy( body,"<?xml version=\"1.0\" ?>", XML, NULL); |
|||
Print "%s\n", body; |
|||
Free secure XML, body; |
|||
End |
|||
</syntaxhighlight> |
|||
{{out}} |
|||
<pre> |
|||
$ ./tests/RC_dom |
|||
<?xml version="1.0" ?><root><element>Some text here</element></root> |
|||
</pre> |
|||
=={{header|C sharp}}== |
=={{header|C sharp}}== |