Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

How could I validate CSexported XML file to parse by Powershell ?

$
0
0
I used the below script to change CSexported data to csv file.

http://jorgequestforknowledge.wordpress.com/2013/02/08/parsing-a-csexport-generated-xml-file-into-a-scoped-csv-file/

One xml worked fine.

But I tried the other XML and I encounterd the below error.

Is there Character length limitation to load XML file ?

PS C:\> .\parse.ps1 .\fim_some_gal_ma.xml c:\fim_some_gal_ma.csv
ヒット 'C:\parse.ps1:25' の行のブレークポイント
ヒット 'C:\parse.ps1:25' の行のブレークポイント
[DBG]: PS C:\>> 
"1" 個の引数を指定して "Load" を呼び出し中に例外が発生しました: "Name の解析中に、予期しないファイルの終わりが検出されました。 行 139
4、位置 7131247。"
発生場所 C:\parse.ps1:26 文字:1
+ $xmlCSExportDoc.load($sourceXML)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : DotNetMethodException

Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>