Hi I have XML something like this :

<component AttributeA="1"> <Node1 AttributeB="AAAA" Name="John" /> </component>

in powershell I can load and read through xml like this :

[xml] $xmlDocument = Get-Content (#path to xml file)

Write-Host $xmlDocument.componet.AttributeA

Write-HOst $xmlDocument.componet.Node1.AttributeB

Write-HOst $xmlDocument.componet.Node1.Name

that gives me the fallow output :

1
AAAA
John

My question is there is a way to do the same in C++?, what about Java or C#

Thanks

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.