Changes between Version 9 and Version 10 of XMLPackageDesign
- Timestamp:
- 02/29/08 02:23:08 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
XMLPackageDesign
v9 v10 46 46 ||start an xpath style query?||doc.query||document.createExpression()||XPathFactory. newInstance(). newXPath();|| 47 47 ||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|| 49 49 ||add a new element to the doc? || doc.element("foo");||elem = doc.createElement("foo"); doc.appendChild(elem);|| elem = doc.createElement("foo"); doc.appendChild(elem);|| 50 50 ||add an attribute?||elem.attribute(prefix, localName, value);||elem.setAttributeNS(uri, name, value);||elem.setAttributeNS(uri, name, value);||