<?xml version="1.0" encoding="utf-8"?> <ModelInformation Version="1.0"> <Model Name="MatlabToJenkinsIntegrationSample"> <P Name="Version">9.0</P> <P Name="SavedCharacterEncoding">windows-1252</P> <GraphicalInterface> <P Name="NumRootInports">3</P> <Inport Name="Input1"> <P Name="BusObject"/> <P Name="OutputFunctionCall">off</P> <P Name="SampleTime">-1</P> <P Name="UnitExpr">inherit</P> </Inport> <Inport Name="Input2 "> <P Name="BusObject"/> <P Name="OutputFunctionCall">off</P> <P Name="SampleTime">-1</P> <P Name="UnitExpr">inherit</P> </Inport> <Inport Name="MultiplicationFactor"> <P Name="BusObject"/> <P Name="OutputFunctionCall">off</P> <P Name="SampleTime">-1</P> <P Name="UnitExpr">inherit</P> </Inport> <P Name="NumRootOutports">1</P> <Outport Name="Result"> <P Name="BusObject"/> <P Name="BusOutputAsStruct">off</P> <P Name="UnitExpr">inherit</P> </Outport> <P Name="ParameterArgumentNames"/> <P Name="ComputedModelVersion">1.4</P> <P Name="NumModelReferences">0</P> <P Name="NumTestPointedSignals">0</P> <P Name="NumProvidedFunctions">0</P> <P Name="NumRequiredFunctions">0</P> <P Name="NumResetEvents">0</P> <P Name="HasInitializeEvent">0</P> <P Name="HasTerminateEvent">0</P> <P Name="IsExportFunctionModel">0</P> <P Name="NumParameterArguments">0</P> <P Name="NumExternalFileReferences">0</P> <P Name="OrderedModelArguments">1</P> </GraphicalInterface> </Model> </ModelInformation>
I created classes to get the objects as shown below <pre>public class Model { public string Name { get; set; } public string Version { get; set; } public string SavedCharacterEncoding { get; set; } public GraphicalInterface TheGraphicalInterface { get; set; } }
public class GraphicalInterface { public List<Port> InPorts { get; set; } public List<Port> OutPorts { get; set; } }
public class Port { public string OutputFunctionCall { get; set; } public double SampleTime { get; set; } public string UnitExpression { get; set; } }
KumarAbhishekJaiswal - Professional Profile[^] wrote:it does not look like any traditional XML
xsd.exe
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)