how can i get element with this XML?
I try with
XMLResult.Root.Element( “Body”).Element(“GetMedicalMasterResponse”).Element(“GetMedicalMasterResult”).Element( “_medicalType”).Element(“medical_type_name”).value.ToString
Its not working, can you help me
ppr
(Peter Preuss)
October 1, 2020, 2:38pm
2
@ochyalrin
XML is defining namespaces and this is to handle for the retrieval. Find starter Help here:
@Jean_Piere_Ochoa
For working with XML having namespaces have a Look Here
The steps given from @Yoichi are covering the Main actions for your scenario
ADDED: Link to some analysis techniques for XML Namespaces:
@pumrum
Find some starter Help:
retrieving the two responseData elements
reading out an element with name and value
reading out an attribute with name and value
dynamic reading all leaf elements with name and value, adding this to a datatable
[grafik]
[grafik]
Find Xaml here:
pumrum.xaml (12.2 KB)
Let us know your feedback
@sachinns
looking at the returned RSS Data I encountered that the namespace definitions are returned. So it differs from rss returned by the Link. However it made it more clear to the implementation
media:thumbnail - the element thumbnail is defined under a particual namespace with the prefix media
adding a variable of type XNamespace with the namespace value allows to access the element thumbail with following syntax:
[grafik]
as mentioned working with local name would look like this:
[gr…
system
(system)
Closed
October 4, 2020, 2:38pm
3
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.