LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Trouble with the XML parser

I'm trying to use the NI XML lib to read in an XML file. It seems to have trouble with files with the degree symbol in them. I'm not quite sure why.

 

As far as I can tell, as a standard, almost anything goes with XML. But if there is a restriction, it would be nice to have a list of illegal chars. 

Message Edited by InfiniteNothing on 03-16-2010 07:06 PM
CLED (2016)
0 Kudos
Message 1 of 5
(2,702 Views)
Not an expert here, but I do know the XML Parser VIs in LabVIEW use the Xerces 2.7 parser. A quick Google search indicates this is a local code page issue with using the Xerces parser. Not sure what that means exactly, but I would suggest focusing your search there.
0 Kudos
Message 2 of 5
(2,689 Views)
Actually, that was a pretty good tip.
Apparently, by default Xerces uses UTF-8 where LabVIEW (on my computer at least) is using Windows-1252. I think if I add an XML header like
<?xml version="1.0" encoding="windows-1252">
everything should work out.  I'll try this out tomorrow.
CLED (2016)
0 Kudos
Message 3 of 5
(2,680 Views)

Yup, this works: 

CropperCapture[31].Png

CLED (2016)
0 Kudos
Message 4 of 5
(2,658 Views)
Good to hear that you found the solution for it. Smiley Wink
0 Kudos
Message 5 of 5
(2,656 Views)