AlexPonnath
asked on
Vb.net XML Read all nodes and
I am looking for some code, that will read an XML document including all Child Nodes no matter how deep as well
as the attributes. i have some code that does that but only goes 1 child deep and i am looking for a more dynamic
code which will go as deep as required. As an output i am looking for something like. below is an XML sample
as the attributes. i have some code that does that but only goes 1 child deep and i am looking for a more dynamic
code which will go as deep as required. As an output i am looking for something like. below is an XML sample
<OrigParty type="PBXPartyType" subscribergroup="Subscribers in LATA 738" billingtype="flat rate" privacy="false" cpc="normal" ani-ii="00">
<TrunkGroup type="sip">
<TrunkGroupId>65535</TrunkGroupId>
<TrunkMemberId>0</TrunkMemberId>
</TrunkGroup>
<SubscriberAddr type="e164">+12095551122</SubscriberAddr>
<CallingPartyAddr type="e164">+12095551122</CallingPartyAddr>
<ChargeAddr type="e164">+12095551122</ChargeAddr>
<SIPCallId>32822942-575B11E6-95DAB3D4-69DB7200@192.168.233.30</SIPCallId>
</OrigParty>
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
That was not stated in the original question. Please show exactly what you want to receive back from the XML document. If a class for each element and what properties you want in the class. If just a string for each node what exactly do you want in it. Please be specific.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
i would like to have a output where names would be like
RootNode
RootNode-1StChild
RootNode-1stChild-SecondCh