Questions tagged [ixmldomdocument]

27 questions
0
votes
1 answer

How to write the STX / ETX ( C0 control code) into the BSTR buffer IXMLDOMElement*

I have one application which is passing one (BSTR* ProfileXml) as out parameter. So One I am sending the Profile after allocating it using SysAllocString(Profile) WCHAR Profile[] = L"
mukul sharma
  • 177
  • 2
  • 13
0
votes
1 answer

How to create node from XML String then append to another node

I have a string variable containing XML that I would simply like to append to an IXMLDOMNode. Hilariously, this is the most primitive task, yet painfully unintuitive, in MSXML2. (I don't want to use XSLT). My approach was: Set xRoot =…
vbaToad
  • 31
  • 2
0
votes
1 answer

Remove XML declaration using msxml6/IXMLDOMDocument2

I want to remove XML declaration only from an XML using C++/COM- using the IXMLDOMDocument2 interface of msxml6 How can I achieve this ?
Angshuman Agarwal
  • 4,796
  • 7
  • 41
  • 89
0
votes
1 answer

Setting a path on an IXMLDOMDocument that is loaded from RAM

I am using classic ASP. I have a stylesheet that is loaded into RAM already. What my problem is, is my XSLT has an in it. When I load it from RAM into an IXMLDOMDocument object the relative path is…
numone
  • 694
  • 1
  • 6
  • 11
0
votes
1 answer

memoryleak (node) in IXMLDocument AddChild

Apparently there is a memory leak in this code: procedure TForm1.Button1Click(Sender: TObject); var doc: IXMLDocument; begin doc := TXMLDocument.Create(Nil); doc.Active := True; doc.AddChild('test'); doc := Nil; end; Clicking on the…
vincent
  • 78
  • 7
0
votes
1 answer

Remove xsi:nil attibute using IXMLDOMDOCUMENT in Delphi

I have an xml document that contains many xml nodes. The document has xsi:nil="true" attributes. If I set values on these nodes, the nil attribute remains and it becomes invalid against my xsd. Question: How do I remove the xsi:nil attributes using…
JamesW
  • 849
  • 2
  • 14
  • 27
0
votes
3 answers

Save XML like XmlTextWriter but with DOM

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…
Pascal
  • 2,944
  • 7
  • 49
  • 78
0
votes
1 answer

reading namespace xml data using php

I have xml data as 009 00038 00038 i need to…
Santy
  • 3
  • 1
0
votes
3 answers

How to Validate an XML Node against an XSD in C++?

Please note that I'm asking for validation against a particular node and not the whole file. For examples For this XML doc, I…
Ashish
  • 75
  • 1
  • 1
  • 8
0
votes
1 answer

Parse HTML chunk with nbsp in MSXML

I'm trying to load a chunk of HTML into MSXML's DOMDocument. The said chunk is valid XML with one excepton - it has   entities. MSXML chokes on them, claims "Reference to undefined entity 'nbsp'.". Can I make MSXML recognize it as valid…
Seva Alekseyev
  • 59,826
  • 25
  • 160
  • 281
0
votes
1 answer

domdocument issue in visual basic

i am thinking of working on xml file in visual basic. when i tried it using DOMDOCUMENT visual basic is showing error. It is not recognising what domdocument is. Do i have to call any library to make it working. take a look at my code Attribute…
ruby007
  • 57
  • 2
  • 7
0
votes
1 answer

php : xml node content edit and return xml

Here is my XML 200 OK 89898 some text with HTML content
tv4free
  • 287
  • 3
  • 17
1
2