Page 1 of 1

XML parsing help

Posted: Wed Jun 12, 2019 1:10 pm
by jamesbowers

I need to grab the "Quantity" value from the below xml code using C#:

<content styleCode="xContentWrapping">
<content ID="_42da39b0-83d2-4906-b8d9-531456d3220b">ALPRAZolam 0.25 MG Oral Tablet</content>
<content styleCode="xLabel">; </content>
<content styleCode="xSecondary" ID="_5eba331f-cc26-4e5b-a9fb-fb2614bc14a4">two times daily [2]</content>
<br />
<content styleCode="xLabel"> Quantity: </content>
<content>180 </content>
<br />
<content styleCode="xLabel xSecondary">Refills: </content>
<content styleCode="xSecondary">3</content>
<br />

Is there a simple way to do this or do I need to interrogate each tag to get this?

Re: XML parsing help

Posted: Wed Jun 12, 2019 4:34 pm
by Xav
Hmm... this isn't SVG code, or particularly Inkscape related - and this isn't a C# forum. I very nearly disapproved this post as spam (had there been URLs in the code I would have).

You might have more luck asking this in a C# forum - though you may find that some kind soul replies on here anyway.