Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic What range of ASCII characters are accepted? (Read 7654 times)
vera
YaBB Newbies
*
Offline



Posts: 4
Joined: Jul 14th, 2009
What range of ASCII characters are accepted?
Jul 14th, 2009 at 3:33pm
Print Post  
Hi,

The first impression of the product is good, but a small help text would be useful...

I´m trying to read a XML file generated by phpMyAdmin XML Dump version 2.11.2.1 but I get the error "an invalid character was found in text content" and cannot view the file.

The first line of my XML file is <?xml version="1.0" encoding="utf-8" ?> and I have no problem opening the file with Internet Explorer.

XML Viewer gives no clue about the line where the error occured or the rejected character.

After some tries I found the character  (shows as a square) at a line. After deleting the character, XML Viewer read the file with no problems.

Questions:

1) What range of ASCII characters are accepted?
2) Is there an easier way to find the character or line number that generated the error?
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: What range of ASCII characters are accepted?
Reply #1 - Jul 15th, 2009 at 10:22am
Print Post  
Hi,

The XML Viewer relies on MSXML for parsing the input XML file. When parsing fails (for whatever reason) the opening simply fails. We will probably release a new, .NET-based version of the viewer which will be more stable and appealing.

On a side note, have you tried changing the encoding of the XML file to something else, such as:

Code
Select All
<?xml version="1.0" encoding="iso-8859-1"?> 


Regards,
Meppy
  
Back to top
 
IP Logged
 
vera
YaBB Newbies
*
Offline



Posts: 4
Joined: Jul 14th, 2009
Re: What range of ASCII characters are accepted?
Reply #2 - Jul 16th, 2009 at 11:32am
Print Post  
Hi Meppy,

Thanks for your fast answer.
Yes, I tried <?xml version="1.0" encoding="iso-8859-1"?> but got the message:
"Switch from current encoding to specified encoding not supported".
Any other tip?
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: What range of ASCII characters are accepted?
Reply #3 - Jul 17th, 2009 at 5:38am
Print Post  
Hi Vera,

Is it possible to e-mail me the XML file in question to meppy@mindfusion.eu to see if there is something I can do?

Regards,
Meppy
  
Back to top
 
IP Logged
 
vera
YaBB Newbies
*
Offline



Posts: 4
Joined: Jul 14th, 2009
Re: What range of ASCII characters are accepted?
Reply #4 - Jul 17th, 2009 at 2:42pm
Print Post  
Hi Meppy,

I´ve sent 2 files:

[b]vera_error.xml [/b]- 5 records marked as Test 1 to 5 (column DESCRICAO), records 1 and 5 are OK, records 2, 3 and 4 with error

[b]vera_ok.xml[/b] - same records, error characters changed to | and at column DESCRICAO I've changed ERROR with ERROR FIXED

Is it difficult to add an option like "generate a log file"? It could create a xml_file_name.log with some simple statistics like: number of lines at XML file, line number where the first error occured, number of records with no errors (if no error is detected).

Again, thanks for your fast answer.
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: What range of ASCII characters are accepted?
Reply #5 - Jul 20th, 2009 at 1:52pm
Print Post  
Hi Vera,

You can download a new build of the XML Viewer from here. This build should display the line number and position of an invalid character, when one is found in the source document. Eventually we will release a new version of XML Viewer at some point in the future, which will be based on the .NET Framework and will be more dependable.

Regards,
Meppy
  
Back to top
 
IP Logged
 
vera
YaBB Newbies
*
Offline



Posts: 4
Joined: Jul 14th, 2009
Re: What range of ASCII characters are accepted?
Reply #6 - Jul 20th, 2009 at 8:50pm
Print Post  
Meppy,

It now works perfectly!

Thanks a lot!
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint