msxml4

XSLT/XPath : No upper-case function in MSXML 4.0 ?

I try to use upper-case() in an XPATH, my parser is MSXML 4.0, and I get : upper-case is not a valid XSLT or XPath function. Is it really not implemented ? ...

How do I append elements with duplicate names using MSXML & C++?

I am write some code to update a XML DOM using MSXML4 & C++. I need a method that appends a child element to a parent element. The code I have written below works until the title of the child matches the title of another child under the parent. I cannot change the title of the children so I need to find a way to append them to the par...

Can I rely on MSXML4 being present?

We test the setup of our software on "clean install" images of windows XP, Vista and windows 7 before release. Some old code in the software still relies on MSXML4. Until now, I had assumed that it is not necessary to install MSXML4 because apparently it is already present on clean installs of windows. However, now I have a strange repo...

gtest output not appearing in visual studio output window after including msxml4

I have gtest all setup and running fine with Visual Studio 8. I've included msxml 4.0 in my build and now the test output won't show up in the visual studio output window. The application will run if launched from the command line and return correct results (no missing dlls) I've narrowed it down the msxml4.dll because if I comment ...

problem parsing a xml file with MSXML4 in C++

Here is my parsing code: MSXML2::IXMLDOMNodePtr pNode = m_pXmlDoc->selectSingleNode(kNameOfChild.c_str()); MSXML2::IXMLDOMNodeListPtr pIDOMNodeList = NULL; MSXML2::IXMLDOMNodePtr pIDOMNode = NULL; long numOfChildNodes= 0; BSTR bstrItemText; HRESULT hr; MSXML2::IXMLDOMElementPtr pChildNode = m_pXmlDoc->getElementsByTagName(kNameOfChild...

Need help stopping MSXML from adding namespaces

I am using MSXML 4 to generate the following xml string: <?xml version="1.0"> <Parent_Element xmlns="http://1"&gt; <Child_One> <Child_Two xmlns="http://2"&gt; <Child_Three> </Child_Three> </Child_Two> </Child_One> </Parent> However the output from my IXMLDOMDocument2Ptr always includes a...

MSXML4 and setting the encoding string

I using MSXML4 to generate a XML. I'm trying to set the encoding value to UTF-8. Here is my code: const _bstr_t k_XML_Tag_Name ("xml"); const _bstr_t k_Processing_Tag_Name ("version=\"1.0\" encoding=\"utf-8\""); MSXML2::IXMLDOMProcessingInstructionPtr pProccessingInstruction = m_pXmlDoc->createProcessingInstruction(k_XML_Tag_Name,...

Method 'ownerDocument' of object 'IXMLDOMElement' failed

I have a VB6 COM+ component which is being accessed via IE6. When running normally it works as expected, but when I am debugging in VS6 I get an error: Method 'ownerDocument' of object 'IXMLDOMElement' failed The code is as follows and it fails on the last line of this snippet: Private m_ndContract As MSXML2.IXMLDOMNode ... Dim ndEl...

XSLT nested sort / for-each

I am trying to figure out the best way to perform a nested for-each & sort. For example my XSLT below performs the following: Selects a node set. Sorts by Date attribute. Performs position() to pull 4 nodes. Now, the next part is what I am trying to figure out. After step 3 I need to sort by the Date attribute again, but thi...