Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
12
Task/XML-DOM-serialization/D/xml-dom-serialization.d
Normal file
12
Task/XML-DOM-serialization/D/xml-dom-serialization.d
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
module xmltest ;
|
||||
|
||||
import std.stdio ;
|
||||
import std.xml ;
|
||||
|
||||
void main() {
|
||||
auto doc = new Document("root") ;
|
||||
//doc.prolog = q"/<?xml version="1.0"?>/" ; // default
|
||||
doc ~= new Element("element", "Some text here") ;
|
||||
writefln(doc) ;
|
||||
// output: <?xml version="1.0"?><root><element>Some text here</element></root>
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue