Click here to Skip to main content
14,492,702 members
Rate this:
Please Sign up or sign in to vote.
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

Rate this:
Please Sign up or sign in to vote.

Solution 1

See Select-Xml[^].
   

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




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100