XML parsing help

Discuss SVG code, accessible via the XML Editor.
jamesbowers
Posts: 1
Joined: Sun May 05, 2019 10:53 pm

XML parsing help

Postby jamesbowers » Wed Jun 12, 2019 1:10 pm

Hi,

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

<td>
<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 />
</content>
</td>

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

User avatar
Xav
Posts: 1209
Joined: Fri May 08, 2009 1:18 am
Location: UK
Contact:

Re: XML parsing help

Postby Xav » Wed Jun 12, 2019 4:34 pm

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.
Co-creator of The Greys and Monsters, Inked - Inkscape drawn webcomics
Web SiteFacebookTwitter


Return to “SVG / XML Code”