Displaying XML Data in excel Sheet. How for the following query ?

NimishK

Well-known Member
Joined
Sep 4, 2015
Messages
688
Anyone
How to to display the Following in XML with Following
<co name=""><add1><add2><PHP>
<a1><b1><city><Header>Co Name</Header>
<Address>Add1</Address>
<Address>Add2</Address>
<A1>
<B1>
<customer>ABC Co</customer>
<address>123 Main</address>
<city>Salem</city>
</B1>
</A1>



</PHP>
</city></b1></a1>Output in Excel should be like below as with XML file

ABC Co
N2345 Lane
NJ-23456

customer address city
ABC Co 123 Main Salem

Some how not able to display the Co name its Add1 and Add2
Thanks and Regards
NimishK
</add2></add1></co>
 
Last edited:

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Excuse me for the above post . Sorry I could not lay down in Proper format
Inconvenience Regretted
How to to display the Following in XML
XML Tags
PHP:
<Header>Co Name</Header><CoAddress>N2345 Lane </CoAddress><CoAddress>NJ-23456</Address>
PHP:
<A1>   <B1>	<customer>ABC Co</customer>	<address>123 Main</address>		                <city>Salem</city>   </B1></A1>


Output in Excel should bel ike below as with XML file


ABC Co
N2345 Lane
NJ-23456


customer address city
ABC Co 123 Main Salem


Thanks and Regards
NimishK
 
Last edited:
Upvote 0
maybe use PowerQuery
Import XML then transform to format what you want to achieve
 
Upvote 0

Forum statistics

Threads
1,223,896
Messages
6,175,265
Members
452,627
Latest member
KitkatToby

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top