Hello!
I have a script to export a ModelView to Excel.
We changed our environment to a new remote desktop (or something idk).
Before the move, the exported texts (notes, requirement-texts, etc), came in one cell in Excel even when the text included line breaks. But now I can't parse the returning XML because of line breaks.
I use, from the Repository class, SQLQuery (string SQL)
queryResult = Repository.SQLQuery(query);
where the query is picked up from the ViewProperties memo on the ModelView.
The error occurs when I try to parse the XML with the built in function:
var DOMDoc = XMLParseXML(queryResult);
because of line breaks in
queryResult.
EAScriptLib.JScript-XML error: Expected token '&&' found 'NAME'.
//Row/Krav-k-->&<--#228;lla, Line:182
Referring me to:
182: var nodeList = xmlDOM.documentElement.selectNodes( nodePath );
As I said, I didn't have this problem before.
Can I somehow clean the
queryResult before parsing? I know in Excel line break is CHAR(10).
Or should I just remove all the line breaks in all the texts and have to live with it?
Someone out there with a similar issue?
Thank you for your time!