Current Position:Home > CVI XML

CVI XML

Update:11-30Source: network consolidation
Advertisement
I am using CVI 2012 to build a XML string with the command MSXML_IXMLDOMDocumentGetxml.  Unfortunately, the string is built with default encoding that appears to be ASCII -7.  I need the XML string in UTF-8 for the expanded character set.  Is there a method to change the encoding for the Getxml command ?
Such as adding  <?xml version="1.0" encoding="UTF-8" standalone="yes" ?> in the xml file.

The Best Answer

Advertisement
Hey mike7,
I researched the MSXML functions a bit, and found this page on MSDN that might be helpful: http://msdn.microsoft.com/en-us/library/aa468560.aspx#xmlencod_topic4
In particular, the section on creating documents mentions that by default, the data is encoded in UTF-8. Are you sure that this isn't the case for your data?  The section on "Creating New XML Documents with MSXML" also talks about some weird behavior that you might see when encoding into UTF-8, and also mentions an attribute you can add to the document to change the encoding format. 
Hopefully that will help resolve the issue, but please let us know if you need any more assistance with the issue!
Daniel E.
TestStand Product Support Engineer
National Instruments
  • CVI XML Update:11-30

    I am using CVI 2012 to build a XML string with the command MSXML_IXMLDOMDocumentGetxml.  Unfortunately, the string is built with default encoding that appears to be ASCII -7.  I need the XML string in UTF-8 for the expanded character set.  Is there a

  • CVI XML Functions Execution Times Increase When Looped Update:11-30

    I have written multiple functions using CVI that read XML files. I have confirmed in the Resource Tracking utility that i have cleaned up all of my lists, elements, documents, etc. I have found that when I loop any of the functions I have created, th

  • Problems embedding HTML into XML with CVIXMLSetElementValue - unwanted &lt and &gt Update:10-11

    I'm using the CVI XML functions. When I try to insert some pre-exsting HTML as the element value with CVIXMLSetElementValue, it dutifuly converts all the HTMLangle brackets into &lt and &gt, which is NOT what I want. (I can protect the XML integri

  • Variables reset and memory management Update:10-11

        Hi,         I'm writing an application that works on sophisticated     data-structures, and though rely a lot on memory allocations.     As I wanted to do a clean job as much as possible, I divided     the work in different modules, and I'm encou

  • CVI dll to read XML file causes memory leak Update:11-30

    Hello, I am facing a memory leak issue when I execute a dll created using CVI to read a XML file. Each iteration of the step is taking around 200k of memory. Short description of the code: Basically I am using a function created in CVI to read from a

  • How can I transfer a XML file content to a MS SQL database by stored procedure using LabWindows/CVI SQL Toolkit? Update:10-11

    Hi, I have a problem to transfer a XML file content to a MS SQL database by a given/fixed stored procedure. I'm able to transfer the content of the file by using following method ... hstmt = DBPrepareSQL (hdbc, EXEC usp_InsertReport '<Report> .....

  • Software Development Engineer positions at Hysitron, Inc. in Minneapolis (LabWindows CVI exp preferred) Update:10-11

    Software Development Engineer Hysitron, Inc. is a premier scientific instrument manufacturer. Founded in 1992 with headquarters located in Eden Prairie, MN we are committed to promoting nanotechnology by developing advanced transducer and control tec

  • How to set encoding for xml Marshaller? Update:11-30

    Hi, I am using SAPXMLToolkit. And I use XMLMarshaller to convert from xml to java classes (jaxb classes). Now when I get some characters like ü, the marshaller gives an error com.sap.engine.lib.xml.parser.ParserException: Unsupported character: 69(:m

  • CVI debugger reports dynamic memory corrupt Update:11-30

    Hi, There is a problem most likely between debugger and CVIXML group of functions. When I operate even one of CVI examples involving population of tree control out of XML the following function corrupting heap:                 CVIXMLGetElementValue (

  • XML Nested Element HELP Update:11-30

    HELP. I am having problems creating this XML schema in CVI. In particular, the creation of <chassis> and <slot> tags throws an error.  ie. <chassis1> does not start the container, </chassis1> starts the container and there is no su