Questions tagged [xmllite]

A lightweight XML parser from Microsoft designed for ease of use, performance, and standards compliance. XmlLite only provides pull model programming interfaces like XmlReader and XmlWriter.

The XmlLite library allows developers to build high-performance XML-based applications that provide a high degree of interoperability with other applications that adhere to the XML 1.0 standard in Microsoft Windows.

The primary goals of XmlLite are ease of use, performance, and standards compliance. Unlike MSXML, the Microsoft Core XML Services, which has a rich set of functionality as DOM, XSD, XPath and XSLT, XmlLite only provides pull model programming interfaces like XmlReader and XmlWriter. XmlLite does not intend to replace MSXML but is a complement.

XmlLite works with any Windows language that can use dynamic link libraries (DLLs), but Microsoft recommends C++. XmlLite comes with all necessary support files for use with C++, but if you want to use it with other languages, some additional work may be required.

19 questions
2
votes
1 answer

XML bindings for Microsoft XMLLite

I have a C++ project in which I am using Microsoft XmlLite for parsing several XML files. Now I have a new file that I need to parse and I have an XSD schema for it. I know there are many C++ XML binding tools out there, but all I have found so far…
Alam Brito
  • 463
  • 1
  • 4
  • 15
1
vote
1 answer

how can i store xml in buffer using xmlite?

I'm trying to write xml data with XmlLite on buffer but couldn't got any api. writing a xml file works perfect but on a memory stream I can't figure i am working on follwong link api http://msdn.microsoft.com/en-us/library/ms752901(v=VS.85).aspx
Suri
  • 3,287
  • 9
  • 45
  • 75
1
vote
1 answer

Creating XML without encoding attribute in prolog using XmlLite IXmlWriter (C++)

I am using the XmlLite library to create an XML file. I want the resulting XML file's prolog to not include the encoding attribute (just the version): Here is my code: HRESULT hr = S_OK; IStream *pOutFileStream =…
Yan4321
  • 329
  • 1
  • 5
  • 17
1
vote
1 answer

How to process the XML using XmlLite returned by the casablanca (PPL) http_client?

I want to make request to the web service, get the XML content, and parse it to get specific values returned by the service. The code is to be written in native C++11 (MS Visual Studio 2013). The Cassablanca PPL library was chosen. For XML parsing,…
pepr
  • 20,112
  • 15
  • 76
  • 139
1
vote
1 answer

XMLLite parser hangs

I'm parsing an XML using XMLLite. I notice that when its a relatively large file, the reader's pointers fails to locate the next element(tag) of the file. When i reduced the contents of the file, it could successfully parse. The reader continually…
mots_g
  • 637
  • 8
  • 27
0
votes
1 answer

Unable to read xml string with xmllite using memory buffer

I am trying to open an in memory stream for use with the xmllite library. Writing to one works ok, but reading from one is giving me a hard time. Below is the code that I am using. Basically I create a default xml string (LPWSTR) and write it to…
0
votes
1 answer

Adding xmllite.lib to Visual Studio 2008

I'm trying to compile an Intel Appup sample program 'SlideshowexampleApplication', which requires Xmllite.lib. I searched and see that I'm supposed to add this file to the linker options in Visual Studio 2008, but I don't see the linker option…
Andy
  • 1,815
  • 2
  • 22
  • 49
0
votes
2 answers

How do I load and update a XML

I have tried with XML Lite which is pretty good with reading and writing a new xml , but when I try to add a new element to an existing XML , I am unable to figure out how to go about it. Is there any other way, I can do XML operation.
Simsons
  • 12,295
  • 42
  • 153
  • 269
0
votes
1 answer

XMLLite ignore encoding

I have to read XML files in C++ and we are using XMLLite the problem I have is that the first line of my XML specifies the encoding and when I try to parse the file with XMLLite, I'm getting the error…
Devolus
  • 21,661
  • 13
  • 66
  • 113
0
votes
0 answers

Unable to update XML Attributes using XMLLITE c++

I'm trying to update a XML document NODE attributes using the XMLLITE reader and writer , but i couldn't. When i try to add new attribute then the writer is adding. My Question is Is it possible to update the Existing XML Node attribute values…
Karthik SV
  • 99
  • 1
  • 9
0
votes
1 answer

can i perform xml operations in XMLLITE with the same features of MSXML?

I know something about MSXML parser ,to create an xml with native code ..Msxml depends COM..So I want to create xml without com and dom ,so i wish to choose XMLLITE..but i dont know full details about xmllite ,when i was read the xmllite…
Rajakumar
  • 442
  • 1
  • 9
  • 21
0
votes
1 answer

Microsoft XmlLite fails to detect end-of-element

I'm using Microsoft's XmlLite DLL to parse a simple XML file, using the code in the example XmlLiteReader. The essential part of the code (C++) is while(S_OK == (hr = pReader->Read(&nodeType))) { switch(nodeType) { …
Woody20
  • 791
  • 11
  • 30
0
votes
0 answers

Using XmlLite, cant get the escape sequence  into the output

I have data I need to write to an xml file, using xmllite from mfc/c++ I am writing it into the form of a C# DataSet, so the C# consumer can use DatSet.ReadXml() For valid reasons it contains certain control characters like TAB and BACKSPACE I…
Bill
  • 79
  • 5
0
votes
0 answers

xmllite & memory mapped files

I'm kind of new to cpp so maybe you guys can save my day... I need to create a simple xml and save it into an existing memory mapped file. This is what I have so far (removed all error checking etc.): HANDLE hFile =…
Tsef
  • 1,018
  • 9
  • 22
0
votes
1 answer

Writing to an xml file with xmllite?

I have an xml file which holds a set of "game" nodes (which contain details about saved gameplay, as you'd save your game on any console game). All of this is contained within a "games" root node. I'm implementing save functionality to this xml…
Chris
  • 21,549
  • 25
  • 71
  • 99
1
2