Data update
This commit is contained in:
parent
29a5eea0d4
commit
5c1bb7bfa9
2011 changed files with 35081 additions and 3229 deletions
|
|
@ -0,0 +1,19 @@
|
|||
{$reference System.Xml.Serialization.dll}
|
||||
{$reference System.Xml.dll}
|
||||
uses System.Xml;
|
||||
uses System.Xml.Serialization;
|
||||
|
||||
type
|
||||
[XmlRoot('root')]
|
||||
ExampleXML = class
|
||||
public
|
||||
[XmlElementAttribute('element')]
|
||||
element := 'My text';
|
||||
end;
|
||||
|
||||
begin
|
||||
var xmlnamespace := new XmlSerializerNamespaces();
|
||||
xmlnamespace.Add('', '');
|
||||
var writer := XmlWriter.Create('output.xml');
|
||||
(new XmlSerializer(typeof(ExampleXML))).Serialize(writer, new ExampleXML(), xmlnamespace);
|
||||
end.
|
||||
Loading…
Add table
Add a link
Reference in a new issue