Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Changes between Version 9 and Version 10 of XMLPackageDesign

Show
Ignore:
Author:
stonecobra (IP: 65.198.37.66)
Timestamp:
02/29/08 02:23:08 (10 years ago)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • XMLPackageDesign

    v9 v10  
    4646||start an xpath style query?||doc.query||document.createExpression()||XPathFactory. newInstance(). newXPath();|| 
    4747||create a new document?||auto doc = new Document!(char)||document.getImplementation().createDocument()||DocumentBuilderFactory. newInstance(). newDocumentBuilder(). newDocument();|| 
    48 ||add an xml prolog to a new document?||doc.header||document.appendChild( document.createProcessingInstruction( "target", "instruction"));|| 
     48||add an xml prolog to a new document?||doc.header||document.appendChild( document.createProcessingInstruction( "target", "instruction"));||same as DOM, but usually done at serialization time|| 
    4949||add a new element to the doc? || doc.element("foo");||elem = doc.createElement("foo"); doc.appendChild(elem);|| elem = doc.createElement("foo"); doc.appendChild(elem);|| 
    5050||add an attribute?||elem.attribute(prefix, localName, value);||elem.setAttributeNS(uri, name, value);||elem.setAttributeNS(uri, name, value);||