Import Xml into excel: Invalid file reference/ Invalid characters (CData) -
i'm having problems importing xml-file excel.
the xml looks follows:
<?xml version="1.0" encoding="utf-8"?> <documents> <document> <name><![cdata[ file1-123 ]]></name> <title><![cdata[ title file 1 ]]></title> </document> ... more docs... <document> <name><![cdata[ file2-456 ]]></name> <title><![cdata[ title file 2 ]]></title> </document> </documents>
when importing excel 2007, following error:
invalid file reference.the path file invalid or multiple schemes not found.
according claims of colleague error result of invalid charachaters
in cdata
. i'm having troubles believing him. characters know invalid:
{ < , > , ' , " , & }
yet characters claims causing errors are:
{ Â , ç , ° , ³ , ë }
example:<name><![cdata[ file1³-123³ ]]></name>
but characters in cdata
question: how cdata interpreted excel during import?and characters cdata may not contain?
optional question: why webutility.htmlencode
(this solved issue, not question) needed when outputting cdata (or xml in extend) asp.net
website?
thanks time
Comments
Post a Comment