LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

xml <?xml...?> or <ggg>...</ggg>

I have a problem with xml file. I use standard toolkit in LV8.6 to parse xml file.  Everything is ok when in file I see construction e.g. <info>dev1</info>, unfortunately when in xml file is construction <?xml ... ?> xml file can not be parsing and I get "xml-stylesheet" (element on front panel). Where can be the problem in my file, or maybe toolkit from LV can't read file with second construction? Please help. 
0 Kudos
Message 1 of 3
(5,293 Views)

Hi behemot_,

as far as i know, <?xml> is not a valid xml tag. You can simply check it, if you open your xml file with a browser.

 

Hope it helps.

Mike

Message Edited by MikeS81 on 02-05-2009 02:13 PM
0 Kudos
Message 2 of 3
(5,281 Views)

Actually, <?xml propertyx="propertyvalue"?> is a valid XML tag.  It should be the first tag in the file and is there to tell the parser how to parse the file.  It usually includes version and encoding information.

 

What version of LabVIEW and the XML toolkit are you using?

 

Message 3 of 3
(5,247 Views)