Commit c17e7d8d authored by Robert Henzel's avatar Robert Henzel

Merge branch 'bassystExport' into 'master'

Bassyst export

See merge request !3
parents 82cd51b1 3262bfb8
......@@ -3,7 +3,11 @@ function docNode = getDocNode(transFunc, inputImp, bsName)
xml = getXMLStrings();
docNode = com.mathworks.xml.XMLUtils.createDocument(xml.DocType);
domImpl = docNode.getImplementation();
doctype = domImpl.createDocumentType(xml.DocType, [], '');
docNode.appendChild(doctype);
docRootNode = docNode.getDocumentElement;
% docRootNode.setAttribute('attr_name','attr_value');
versionNode = docNode.createElement(xml.Version);
......@@ -11,6 +15,9 @@ versionNode.appendChild...
(docNode.createTextNode(xml.ActualVersion));
docRootNode.appendChild(versionNode);
optionsNode = getOptionsNode(docNode, bsName);
docRootNode.appendChild(optionsNode);
mainNode = docNode.createElement(xml.SaveTypeQuadripole);
docRootNode.appendChild(mainNode);
......@@ -26,10 +33,9 @@ xml = getXMLStrings();
quadMSNode = docNode.createElement(xml.QuadripoleMeasured);
optionsNode = getOptionsNode(docNode, bsName);
[freqVecNode, transferFunctionNode, inputImpedanceNode] = lsData2DomNodes(docNode, transFunc, inputImp);
quadMSNode.appendChild(optionsNode);
quadMSNode.appendChild(freqVecNode);
quadMSNode.appendChild(transferFunctionNode);
quadMSNode.appendChild(inputImpedanceNode);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment