I'm adding XSLT support to one of our products in the last few weeks. To do that, I've been experimenting with using the microsoft MSXML libraries to transform the XML and XSL files.
Parsing with MSXML basically works, but I've run into a couple of places where it won't support certain things that XSL should allow. This makes me worry t...
I have an Excel workbook that is used as a starting point to generate a user-fillable form in our internal system. As an aide to the users creating these workbook, I'm trying to add a preview function, that takes that spreadsheet, does some VBA magic to generate an HTML file, and then display that in their browser.
I have the basic stru...
Is there a good tutorial to read/write XML? I have been scouting all over the Internet, but found nothing about MSXML.
Thanks
...
Using VBScript, want to talk to a HTTPS website but it fails with:
The client and server cannot
communicate, because they do not
possess a common algorithm
Found out this is because it needs to use SSL3. How can I tell it to use SSL v3?
Thanks
...
Hi guys,
I'm new to C++ and inherited the following code that is supposed to transform the given XML using the XSLT file to just spit out the text values.
It loads both the XML and XSLT fine and the transformnode() call returns success but no transformation has been applied. The original output at the bottom contains the original XML i...
hello
I am playing with XSLT with MSXML2 for the first time. And of course it doesn't work :-)
I have a bug which I cannot figure to solve.
So as to fix the bug, I try to understand everything around: and something shocks me.
void xsltProcessing(IXMLDOMDocument* pXmlDoc, IXMLDOMDocument * pXslDoc)
{
CComPtr<IXSLTemplate> pTemplate...
Well, it's been several hours I'm lost...
IXSLTemplate::putref_stylesheet doesn't document any error except E_FAIL.
However in my case putref_stylesheet returns E_INVALIDARG. GetErrorInfo() is only redundant telling me that the "Argument is invalid". So I am not left with much information.
However my code is pretty close to all exampl...
I'm using MSXML2 to load an XML file (a feed from Google Analytics).
I now need to get data out of it, but I can't figure out how.
This is the XML:
<?xml version='1.0' encoding='utf-8'?>
<feed xmlns='http://www.w3.org/2005/Atom' xmlns:dxp='http://schemas.google.com/analytics/2009' xmlns:openSearch='http://a9.com/-/spec/opensearch/1.1/...
I'm considering using an XML dsig for basic app licensing. The app is native windows code (no .net). I can easily use .net to create a dsig offline, but then I want to verify it in native c++. From what I've found so far MSXML V5 will do the job, but musn't be used and V6 removes support for dsigs.
So how can I easily verify an XML dsig...
Hello
I want to allow an xml document, that contains some configuration items, concurrent read-accesses (no write access) from several machines on a domain.
Could a simple DOMDocument30 be just what I need.
Or do you think FreeThreadedDOMDocument xml document template should be sufficient.
Or do you think of other xml document types ...
I'm encoding a document to attach as a base64 encoded element inside an xml document for transmission. It's easy enough, I just slurp the entire file into a byte array and then use MSXML's nodeTypedValue to base64 encode the data as I put it into the element. The problem, however, is that MS XML then adds its own namespace and datatype a...
For a document which has a DOCTPYE declaration like
<!DOCTYPE RootElement SYSTEM "file.dtd">
Delphi 2009, using MSXML, reports that the systemId is empty (""):
Assert(Doc.DOMDocument.doctype.systemId <> ''); // fails!
while
Assert(Doc.DOMDocument.doctype.name = 'RootElement'); // ok
correctly verifies that the DOCTYPE name id "...
I am using XSLT inside of ASP, it's serviced by msxml6.
Incoming XML loaded to the object has "carriage returns" which I think may be ASCII 10. I would like to transform those to <br/> in the output.
I am trying to detect in the incoming XML, but can't seem to find that. I've tried Javascript (JScript inside of ASP), to no avai...
I am using MSXML 6.0 to perform a transform of my own XML into another XML format. I am not sure if I maybe just don't understand exactly how MSXML works, but I believe I have noticed some strange behaviour with it....
I am adding in the namespaces to my XML doc using the setProperty method e.g.
XmlDocument.setProperty('SelectionNamesp...
When I build a XML in C# using XmlDocument, and I want to save to XML to file, including the encoding information, I use XmlTextWriter, as below:
using (StringWriter swr = new StringWriter())
{
using (XmlTextWriter xtw = new XmlTextWriter(swr))
{
xmlDoc.WriteTo(xtw);
return swr.ToString();...
I have a function which uses MSXML to post an Xml document which yesterday started failing despite no change being made to the code. The function is as follows:
Public Function PostFile(ByVal address As String, ByVal data As Byte()) As xmldocument
Dim xmlHTTP As New MSXML2.XMLHTTP
Dim response As New XmlDocument
Dim xmlDoc...