Version: $Revision$
Date: $Date$
Declared in: GSXML.h
Inherits from: NSObject
XML Document.
Creation of a new XML document.
exampleid d = [GSXMLDocument documentWithVersion: @"1.0"]; [d setRoot: [d makeNodeWithNamespace: nil name: @"plist" content: nil]]; [[d root] setProp: @"version" value: @"0.9"]; n1 = [[d root] makeChildWithNamespace: nil name: @"dict" content: nil]; [n1 makeComment: @" this is a comment "]; [n1 makePI: @"pi1" content: @"this is a process instruction"]; [n1 makeChildWithNamespace: nil name: @"key" content: @"Year Of Birth"]; [n1 makeChildWithNamespace: nil name: @"integer" content: @"65"]; [n1 makeChildWithnamespace: nil name: @"key" content: @"Pets Names"];
Creation of a new Document from libxml data.
Creation of a new XML document.
Creation of a new Document from libxml data.
Return the version of document.
Return the encoding of document.
Save XML document.
Return pointer to xmlDoc structure.
Return the root name of document.
Set the root element of the document. Return the old root element.
Creation of a new node element within a document.
exampleGSXMLNode *n1, *n2; GSXMLDocument *d; d = [GSXMLDocument documentWithVersion: @"1.0"]; [d setRoot: [d makeNodeWithNamespace: nil name: @"plist" content: nil]]; [[d root] setProp: @"version" value: @"0.9"]; n1 = [[d root] makeChildWithNamespace: nil name: @"dict" content: nil];