Tagged Questions
1
vote
1answer
25 views
XML parsing using jQuery and append in HTML table
<rows>
<row id='1'> // parent
<cell>1</cell>
<cell>Task ABC0134</cell>
<row id="2"> // parent
<cell>1</cell>
<cell>Task ...
0
votes
0answers
11 views
jstree: getting all nodes in xml format as string
I want to fetch all nodes from jstree in the format of xml_data(flat) as string. So that i
can set it as data to other jstree. Please help me with the problem.
0
votes
2answers
28 views
Match attribute value of XML string in JS
I've researched stackoverflow and find similar results but it is not really what I wanted.
Given an xml string: "<a b=\"c\"></a>" in javascript context, I want to create a regex that will ...
0
votes
0answers
13 views
phonegap : pare xml (+ downloading it from web)
i want to make a Phonegap app to connect to a website with headers and get the response as XML
then parse it
:D simple with XML HTTP Request ... but the problem is that when i'm using it ... the ...
0
votes
2answers
27 views
Pull api information without refreshing the page
I have a form that will be posted to a PHP method. However before it is posted I want to pull some information from a 3rd party api service that returns an xml and use that xml to populate my ...
0
votes
1answer
21 views
XML / Java Simple Text Search; js or java approach
I have some XML coming from a remote server that I need to implement in a filtered/searchable way for a web form.
I know of quite a few ways to approach the problem.. extJS provides a nice livesearch ...
0
votes
1answer
40 views
Unable to parse XML dynamically
In the JavaScript code below it works for first loop but for the second loop it always shows y.length equals 0 and never enters the loop. The y.length is not zero, my xml file has lot of my thing. I ...
1
vote
0answers
111 views
How to implement XML parsing in Phonegap/Android?
I have searched the web regarding XML parsing in Phonegap/Android. But I haven't found any sort of useful post.
I only found this one.
This tells how to implement in Javascript. But I would like to ...
2
votes
3answers
62 views
Node.js Error Handling — how to deal with undefined values causing errors
Take this URL for instance: https://api.eveonline.com/eve/CharacterID.xml.aspx?names=Khan
Using xml2js node.js module you may parse that XML, although it does not look pretty:
var CharacterID = ...
0
votes
1answer
34 views
xml parser for IE is not working. loadXML is returing null
var xmlDoc;
try {
//For IE
//This is what i am trying to do.But alas! fails.
var xmlDoc ;
xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
xmlDoc .async = ...
1
vote
1answer
27 views
JQuery & XML adjusting background
I have the following issue and I have no clue as in how to resolve this.
I have an xml file which looks like this:
<Item active="true" price="29.71" artnr="11123" group="fish"
...
0
votes
1answer
28 views
Preventing Firefox to add xmlns=“” in Javascript
I don't know why, Firefox adds xmlns="" to my xml elements
Here's my base xml document. I would like, in javascript, to add a Relationship
<?xml version="1.0" encoding="UTF-8" ...
0
votes
3answers
51 views
Jquery - How to split and get the actual data from an XML file.?
Want to split and get the actual data from an XML, where multiple records exists.
XML
<description>
<div><b>Article_Title:</b> Title_Content</div>
...
0
votes
1answer
51 views
JS: Convert XML or JSON to XML/RDF
In JavaScript, what's the easiest way to convert a String that holds XML or JSON into an XML/RDF file? I know I will probably have to use String parsing, but has this already been done or is there an ...
0
votes
2answers
59 views
Jquery xml parse error
I am using ajax to download an xml about Sharepoint 2010 search (packet query).
However the issue is when I try to traverse the xml using jquery.
$(document).ready(function() {
...
0
votes
0answers
59 views
Parsing XML with Pure Javascript (can someone loan me some asprin?)
The overall goal I have is to parse out an xml file using pure JS (no dependencies... I can't have any dependencies).
At this point, I am merely trying to get this script to print out every child ...
0
votes
1answer
55 views
Assigning value to a global variable inside a callback function and returning it [Node.js]
I have an xml file with leagues there xml tree is so nexted with so many nodes but i want to return only the id and the name of each leage, i am using the xml-object-stream node module that can be ...
0
votes
0answers
43 views
recursively parse xml when child tag name is same
I am trying to parse this xml file using jQuery. The <Pathway> tag contains the children node <Pathway> recursively for example <Pathway> tag for attribute displayName="Apoptosis" ...
0
votes
0answers
32 views
Write XML and view XML based on user cookie
I'm trying to have this script write XML based on a username cookie, so it knows which XML document to access.
Here it is:
{
var username = getCookie("username"); // another script defines getCookie
...
0
votes
0answers
54 views
Create XML file based on Input values
So, I need a script that takes All the form data in the URL and creates, or changes the existing nodes of an XML File.
I have done some research and found this:
if (window.XMLHttpRequest) {
// ...
1
vote
1answer
172 views
Removing html tags and content where tag content matches an array of values using Xml.parse()
I've extracted some html from GmailApp using .getBody() and would like to return some html which filters a specific tag and contents where the contents matches any value in an array (specifically ...
0
votes
1answer
117 views
Link Multiple Markers from XML on Google Maps [duplicate]
I was able to pull in my markers from an XML file and place them on a Google Map, but now I want each marker to link to its respective url once clicked. Can someone please let me know what I'm doing ...
0
votes
1answer
29 views
Return edited XML string with Javascript
I'm using the the XML for < script > library W3C DOM Parser available here. (This because I'm using js inside a .NET CLI Jint program instead of a browser.)
My problem is, I edit a XML using ...
0
votes
2answers
71 views
Using XML to populate an HTML page based on user defined options
I have a list of products that I want to return to the user depending on their selection from 3 options. The kicker is that this has to be a static page with nothing more fancy than javascript, HTML ...
0
votes
1answer
37 views
escape single quote in JKL.Parsexml
I'm facing a strange problem with escaping a single quote through an xml parser:
var strCallUrl = contextPath + ...
0
votes
1answer
81 views
How can I download a XML #document generated by DOMparser?
Good morning.
I have a webpage with a form that generates a XML Document with DOMparser().
That's the function to get the XML:
function textToXML(text) {
try {
var xml = null;
...
0
votes
1answer
88 views
JS Regex to remove everything outside certain html tags (including tags)
I have a SOAP output that need to parse via JS REGEX, (i know there is plenty of js libraries that will do the job, and i know that regex is not the best thing to parse html / xml, but in this case, ...
0
votes
2answers
249 views
Convert XML to Object using jQuery of plain javascript
Here is a sample XML:
<xml id="javascriptObject">
<name>Joe</name>
<age>12</age>
<gender>M</gender>
</xml>
Object produced after digesting the ...
0
votes
0answers
102 views
How to increase or decrease web browser font size using button in windows phone?
Hi am using code given below.I want to increase or decrease text font size on web browser using A+ and A- buttons.i am getting html file from xml feed.so any one help to resolve in this solution.
...
1
vote
0answers
87 views
Jath.js Xml parsing IE Error
I'm using jath.js to parse XML with Xpath selectors.
But in IE Version 10/9, I am getting the below error:
Object doesn't support property or method setProperty
Below is the jath source ...
0
votes
1answer
108 views
XML containing SVG and VML based on the browser
I am using Fusion Chart with "PURE JAVASCRIPT" but with the export feature we want at client side.so FusionChart gives SVG or VML of the chart at client side.we want to merge this VML or SVG to XML ...
-1
votes
2answers
54 views
Jquery Get method doesn't run the success event
I've got the following code to read a XML file.
function getServiceURL(serviceName) {
$.get("/xml/ServiceUrls.xml", function(xml){
$(xml).find("service-name").each(function(){
...
1
vote
2answers
234 views
How to get xml all child node value?
I have a xml that xml contains folder and image details.I load a xml using jquery and i got folder details but the image path not getting properly now i am getting
...
0
votes
1answer
33 views
why I can't get the name of the desired tag of this xml file
I try to get the name of the child nodes of the head - > text node (so I need
Buut when I write
var headerstyles = ...
0
votes
1answer
208 views
How to increase or decrease web browser control font size using button?
Hi i am using web browser control.I have two button increase and decrease.I want to increase or decrease web view content
My xaml code
<phone:WebBrowser x:Name="Webbrowser" ...
0
votes
0answers
254 views
Sencha Touch parse nested XML from WS
i'm trying to read a nested xml with sencha touch but i'm stuck.
The xml response is the following:
<eugin-tips>
<eugin-tip day="1">
<eugin-language locale="es">
...
0
votes
1answer
177 views
Windows 8 javascript html5 app not parsing xml
My javascript XML parsing code works fine when I load it in firefox using local HTML & XML files, however when i build my app in visual studio 2012 (HTML5 javascript app) using the same code it ...
0
votes
0answers
120 views
object doesn't support this property or method while loading XML using document.implementation.createDocument in javascript
I am trying to load XML and convert to json like object and display it as tree.
Its working fine in firefox and also IE if activex is enabled.
But If activex is not enabled,I am getting an error ...
-1
votes
1answer
128 views
XML parsing with XPath and Javascript
<root>
<method name="A">
<childcall name="B"></childcall>
<childcall name="C"></childcall>
</method>
<method name="B">
<childcall ...
0
votes
2answers
470 views
Save xml file data in a javascript variable
i searched on my problem and found a lot of useful stuff which i already used.
This is the plan:
I want to load data from an xml file into a javascript variable. A DOMParser function which reads the ...
0
votes
4answers
183 views
Traversing an XML Nodes using javascript
I have an XML that i get from an AJAX call to an XML File. The XML that i get is as below.
<cars>
<car id="Spyder">
<year>1946</year>
<power>150bhp</power>
...
0
votes
1answer
34 views
How can I find an XML element by one of its attributes, and retreive the value of its other attribute?
For example, I have the following in an XML file:
<decisionPoint fileName="5">
<choice label="ARIN, RIPE, APNIC" goTo="5aa"/>
<choice label="Whois.org, Network Solutions" ...
0
votes
1answer
109 views
Why XMLHttpRequest return null?
This is a bit strange. I ran this script in different computer and got different result. In one computer, this code worked but didn't work in another. Here's my js code:
xmlDoc = loadXmlDoc();
...
0
votes
2answers
159 views
Centering a Google Map based on parsed XML Latitude and Longitude values
This bit of Javascript parses an xml file which contains latitude and longitude co-ordinates for a start and end point. I can get the markers out on a map fine, the issue I'm having is that the map ...
1
vote
0answers
66 views
Trying to Parse XML with JS…not working
I'm having issues parsing XML with jS. Basically, I want to take content from an RSS feed and automatically post it on my website. I'm not showing any errors, but I could be wrong on that. Well, I ...
0
votes
0answers
175 views
ActiveXObject(“Msxml2.DOMDocument.3.0”) throw exception
Please help with this, it's should be an easy task, but it drive me crazy!!
I've this little piece of code:
var doc;
try {
if (document.implementation && ...
0
votes
3answers
68 views
Missing ) after For-loop. Not idea what's wrong.
I'm attempting to run this script to parse an XML document. When I validate the js I get a missing ) after for-loop. I'm new to programming and not sure where I've gone wrong. I've posted the ...
3
votes
3answers
126 views
Loop through XML Parser?
I am developing an app, where on the click of a button, a list of the document information stored in an XML file is shown on screen in a <ul> tag. The current JavaScript in the function is;
...
0
votes
1answer
133 views
Multiple Map Markers with Infoboxes from parsed XML
I know I'm fairly close to solving this, I just need a little push in the right direction. I'm generating XML from a database that has marker locations and some other data that should be displayed in ...
0
votes
1answer
138 views
Loop Through XML Parse Function and Display in HTML
I have a function that at the moment displays the hard-coded XML data in an iPhone app;
function viewXMLFiles() {
xmlhttp = new XMLHttpRequest();
xmlhttp.open("GET", ...