How to read the xml file and write its content into a plain text file?

Posted by CrazyNick on Stack Overflow See other posts from Stack Overflow or by CrazyNick
Published on 2010-03-15T18:42:29Z Indexed on 2010/03/15 18:49 UTC
Read the original article Hit count: 456

How to read the below xml file and write its content into a plain text file?

< compare > < source >d:\demo\< /source > < destination >e:\demo\< / destination > < parameters > < parameter >FileName< /parameter> < parameter >Size< /parameter> < parameter>Date< /parameter> < /parameters > < /compare > < compare > < source >d:\sample\< /source > < destination >e:\sample\< /destination > < parameters > < parameter >Name< /parameter > < parameter >FullName< /parameter > < parameter >version< /parameter > < parameter >culture< /parameter > < /parameters > < /compare > < /config > --> Desired Output: d:\demo e:\demo FileName Size Date d:\sample e:\sample Name FullName Version Culture

© Stack Overflow or respective owner

Related posts about powershell

Related posts about powershell-v2.0