RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
XMLIntf.TXMLDocOption Enumeration

TXMLDocOption and TXMLDocOptions indicate types of information that an XML document automatically supplies.

Pascal
TXMLDocOption = (
  doNodeAutoCreate,
  doNodeAutoIndent,
  doAttrNull,
  doAutoPrefix,
  doNamespaceDecl,
  doAutoSave
);
C++
enum TXMLDocOption {
  doNodeAutoCreate,
  doNodeAutoIndent,
  doAttrNull,
  doAutoPrefix,
  doNamespaceDecl,
  doAutoSave
};

XMLIntf

TXMLDocOptions is a set of TXMLDocOption values. The following table lists the TXMLDocOption values:

Value 
Meaning 
doNodeAutoCreate  
If the application tries to read a node by name, using the Nodes property of an IXMLNodeList interface, and that node does not exist, then the application creates a new node using the specified name.  
doNodeAutoIndent  
When formatting the XML text from the parsed set of nodes, child nodes are automatically indented from their parent nodes.  
doAttrNull  
When reading the value of an attribute that does not exist, the value is given as a Null Variant (as opposed to a value of an empty string).  
doAutoPrefix  
When generating the name of a new node, the value is automatically given a namespace prefix if a namespace URI is supplied.  
doNamespaceDecl  
When the AddChild method must create a new namespace for the node, it also adds a namespace attribute to declare that new namespace. If doNamespaceDecl is not included, AddChild creates the new namespace but does not add an attribute to declare it.  
doAutoSave  
When the XML document closes, any changes are automatically saved back to the XML document file or to the XML property.  

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!