Invalid XML character

Hi i have probloem with this delimited charecter,it is actuually an unknown char(not of usual , : | etc.
when i use this i am getting this error;some body please help.

graph:

<?xml version="1.0" encoding="UTF-8"?> COMPANY\_REGION\_ID<1 ${out.0.COMPANY\_ID} = ${in.0.COMPANY\_ID}; ${out.0.COMPANY\_REGION\_ID} = ${in.0.COMPANY\_REGION\_ID}; ${out.0.PERSON\_ID} = ${in.0.PERSON\_ID}; ${out.0.PERSON\_REGION\_ID} = ${in.0.PERSON\_REGION\_ID}; ${out.0.COMPANY\_INDUSTRY\_ID} = ${in.0.COMPANY\_INDUSTRY\_ID}; ${out.0.CREATED\_DATE} = ${in.0.CREATED\_DATE}; ${out.0.MODIFIED\_DATE} = new java.util.Date().toString(); ${out.0.LINE\_ID} = ${seq.Sequence0};

error:

Graph definition file: graphs\per_test1.grf
[Fatal Error] :12:44: Character reference “” is an invalid XML character.
ERROR [main] - Error when parsing graph’s XML definition → on line 12 row 44
org.xml.sax.SAXParseException: Character reference “” is an invalid XML character.
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:264)
at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:292)
at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:98)
at org.jetel.graph.TransformationGraphXMLReaderWriter.read(TransformationGraphXMLReaderWriter.java:224)
at org.jetel.main.runGraph.loadGraph(runGraph.java:147)
at org.jetel.main.runGraph.main(runGraph.java:279)
ERROR [main] - Error in reading graph from XML !
org.jetel.exception.XMLConfigurationException: org.xml.sax.SAXParseException: Character reference “” is an invalid XML character.
at org.jetel.graph.TransformationGraphXMLReaderWriter.read(TransformationGraphXMLReaderWriter.java:229)
at org.jetel.main.runGraph.loadGraph(runGraph.java:147)
at org.jetel.main.runGraph.main(runGraph.java:279)
Caused by: org.xml.sax.SAXParseException: Character reference “” is an invalid XML character.
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:264)
at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:292)
at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:98)
at org.jetel.graph.TransformationGraphXMLReaderWriter.read(TransformationGraphXMLReaderWriter.java:224)
… 2 more

thanks 2 anyone who resorts 2 help

Hello!

Unfortunately it seems that character 29 is really not valid for xml or used xml parser. You can try for example preprocess your input file - substitute all these characters for some normal delimiter (, or :wink: outside clover engine, consider using unix sed command or something like this.

If you are java developer you can extend StringUtils.stringToSpecChar() method for your special char translation - for more information about this solution contact me directly on martin.zatopek@javlinconsulting.cz

Martin