Click here to Skip to main content
15,888,253 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have an XML file looks like this :


<?xml version="1.0" encoding="UTF-8"?>
<INITIAL>
    <FB1> fr <FB1>
    <FB2> fs <FB2>
    <FB3> ft <FB3>
    <FB4> fu <FB4>
    <FB5> fv <FB5>
    <FB6> fw <FB6>
    <FB7> fh <FB7>
    <FB8> gK <FB8>
    <FB9> fg <FB9>

</INITIAL>


I just want to read element FB1 tp FB9 and convert it to string, be like this :

frfsftfufvfwfhgKfg


What I have tried:

$XML = Get-Content "C:\Users\initial.xml"
$XML
Posted
Updated 17-Apr-19 16:43pm

1 solution

See Select-Xml[^].
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900