Questions tagged [xmldom]

The abstract tree structure of an XML document

The abstract tree structure of an XML document See:

The XML DOM is supplemented by the SGML Declaration for XML 1.0 and the XML Infoset.

272 questions
4
votes
1 answer

Perl XML::DOM Copy Node Tree Between Files

I'm just trying to add the people nodes from one XML to another with XML::DOM and even though I am cloning the tree in question, I am still getting a "WRONG_DOCUMENT_ERR" because it says the node came from another file. It happens right when I try…
VolatileRig
  • 2,727
  • 6
  • 32
  • 44
4
votes
1 answer

How overwrite in node/xmldom errorHandler on DOMParser?

I use https://github.com/jindw/xmldom and want check parseerrors on XML files. The documentation write it's necessary to overwrite locator + errorHandler on constructor of DOMParser. But I can't find anywhere code example, how to use these in node…
Gerd
  • 2,265
  • 1
  • 27
  • 46
4
votes
1 answer

"Not enough storage is available to complete this operation" when base64-encoding a zip file

The below code is for converting a zip file to base64 format. Dim inByteArray, base64Encoded, Const TypeBinary = 1 inByteArray = readBytes("F:path/file.zip") base64Encoded = encodeBase64(inByteArray) Private Function readBytes(file) Dim…
rahul raj
  • 105
  • 1
  • 1
  • 13
4
votes
3 answers

VBA - Display each node and its value from XML

I have a simple XML as below and I need to display name of each and every node and its value. No element would have any attribute.
TechGeek
  • 2,172
  • 15
  • 42
  • 69
4
votes
3 answers

speed up xml parse with php

Hi I have an xml file with approximately 12,000 records in it. I have the code written and it works fine it just takes awhile to parse the xml file and return the content. Is there any way to speed this process up any? My Code:
rackemup420
  • 1,600
  • 2
  • 15
  • 37
3
votes
2 answers

DOM navigation: eliminating the text nodes

I have a js script that reads and parses XML. It obtains the XML from an XMLHttpRequest request (which contacts with a php script which returns XML). The script is supposed to receive 2 or more nodes under the first parentNode. The 2 nodes it…
brunoais
  • 6,258
  • 8
  • 39
  • 59
3
votes
1 answer

Loading an XML file using xmlhttp in IE8

I'm designing an online survey, with one of the major features being that the questions are stored externally in an XML file, with random questions being loaded in each time. While the code I have works fine in Firefox, I get "Access is denied"…
3
votes
3 answers

Oracle: How do I display DBMS_XMLDOM.DOMDocument for debugging?

Running Oracle 10g, Sqldeveloper 1.5.5 I want to view the contents of an DBMS_XMLDOM.DOMDocument as a string in the output or results window in sqldeveloper. or some other simple way to debug this thing... Thanks,P
Peter Goras
  • 602
  • 3
  • 14
  • 24
3
votes
2 answers

Microsoft Edge and ActiveXObject("microsoft.xmldom") with JavaScript

I understand Edge will no longer accept ActiveX controls. What replaces the old XMLDom object, using classic ASP?
Ron Brooks
  • 31
  • 1
  • 2
3
votes
2 answers

Error: Cannot find module 'xmldom'

I am getting this error, i have installed xmldom using npm install xmldom , into the directory C:\Program Files (x86)\nodejs_10.35\node_modules\npm\node_modules. i checked the package.json inside xmldom, it is intact and when i run my script with…
user3776320
  • 53
  • 1
  • 5
3
votes
2 answers

Adding qualified XML element doesn't inherit namespace URI

How can I append an element with a ns-prefix to another and make it inherit namespaceURI mappings from document? As an example: Instantiating a document parsing an XML string: The pp:q element inherits namespaceURI == 'abc' from root element, but…
aleclofabbro
  • 1,635
  • 1
  • 18
  • 35
3
votes
1 answer

How can I delete a node within a XML file by using vbscript?

I want to remove & nodes from every node. Here is what the XML looks like:
Gast1
  • 199
  • 1
  • 3
  • 9
3
votes
2 answers

VBScript and loadXML: Invalid at the top level of the document. How to fix it?

This is my fort post on stackoverflow. I have searched many similiar Q&A's on this site but my conditions seem a bit different. here is my vbscript code: ------------ code snippet --------------- xmlurl = "songs.xml" set xmlDoc =…
hacker101
  • 35
  • 1
  • 1
  • 5
2
votes
2 answers

Adding XML DOM elements with jQuery- Is it possible?

I am trying to use jQuery to manipulate the DOM of an XML file I've loaded with ajax. I can select elements, empty them, and remove them, but not add them. jQuery rarely lets me down, but I am feeling burnt out and defeated. Please help. The…
Yarin
  • 173,523
  • 149
  • 402
  • 512
2
votes
1 answer

Node.js - XML validation

How do you validate xml in node.js? I'm mainly interested in checking only if the file is well formed. Additionally I want to receive a line number where error occurs. I have the following test xml:
eko
  • 369
  • 4
  • 15
1
2
3
18 19