// C# code: string objectXml = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?><art:details xmlns:udf=\"url\" xmlns:file=\"url\" xmlns:art=\"url\"><art:artifact uri=\"url\" limsid=\"2-281\"><name>JeffsDNASample</name><type>Analyte</type><output-type>Analyte</output-type><parent-process uri=\"url\" limsid=\"24-356\"/><qc-flag>UNKNOWN</qc-flag><working-flag>true</working-flag><sample uri=\"url\" limsid=\"MCK13A1\"/><workflow-stages/></art:artifact><art:artifact uri=\"url\" limsid=\"BAS17A1PA1\"><name>ZTest</name><type>Analyte</type><output-type>Analyte</output-type><qc-flag>UNKNOWN</qc-flag><location><container uri=\"url\" limsid=\"27-101\"/><value>A:1</value></location><working-flag>true</working-flag><sample uri=\"url\" limsid=\"BAS17A1\"/><artifact-group name=\"Infinium LCG PGX V2\" uri=\"url\"/><workflow-stages><workflow-stage status=\"COMPLETE\" name=\"Batching V4\" uri=\"url\"/><workflow-stage status=\"QUEUED\" name=\"Batching V4\" uri=\"url\"/></workflow-stages></art:artifact></art:details>"; LxSerializer<DetailsCt> serializer = new LxSerializer<DetailsCt>(); using (StringReader stringReader = new StringReader(objectXml)) { LxReaderSettings lxReaderSettings = new LxReaderSettings(); var results = serializer.Deserialize(stringReader); }
string detailsXml = "..."; // exactly same as objectXml above string artifactXml; DetailsElm details; ArtifactElm artifact; LxSerializer<DetailsElm> detailsSerializer = new LxSerializer<DetailsElm>(); LxSerializer<ArtifactElm> artifactSerializer = new LxSerializer<ArtifactElm>(); using (StringReader detailsReader = new StringReader(detailsXml)) { details = detailsSerializer.Deserialize(detailsReader); artifactXml = details.UnprocessedElements[0].ToString(); } using (StringReader artifactReader = new StringReader(artifactXml)) { artifact = artifactSerializer.Deserialize(artifactReader); }
Trouble logging in? Simply enter your email address OR username in order to reset your password.
For faster and more reliable delivery, add support@liquid-technologies.com to your trusted senders list in your email software.