diff -r 000000000000 -r 42188c7ea2d9 Orb/Doxygen/DITA/plugins/apiref/sample/MultiLanguage.dita --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Orb/Doxygen/DITA/plugins/apiref/sample/MultiLanguage.dita Thu Jan 21 17:29:01 2010 +0000 @@ -0,0 +1,55 @@ + + + +Document interface +Represents the entire HTML or XML document. Conceptually, it is +the root of the document tree, and provides the primary access to the document's +data. + +Since elements, text nodes, comments, processing instructions, etc. +cannot exist outside the context of a Document, the Document interface also +contains the factory methods needed to create these objects. The Node objects +created have a ownerDocument attribute which associates them with the Document +within whose context they were created. +
Document doc = docBuilder.newDocument();
+Attr attr = doc.createAttribute("name");
Dim xmlDoc As New Msxml2.DOMDocument30
+Dim newAtt As IXMLDOMAttribute
+Set newAtt = xmlDoc.createAttribute("name")

The example creates a +document object and attribute object.

+
+ +createAttribute() method +Creates an Attr of the given name. + + +Attr createAttribute(String name) throws DOMException + +Attr +The returned Attr object. + + +name +The name for the created attribute. + + + +Sub createAttribute(name, mode) Returns IXMLDOMAttribute + + +mode +The read / write mode for the created attribute. + + +IXMLDOMAttribute + + + +After creation, the Attr instance +can be set on an Element instance +using the setAttributeNode method. + + +