Questions tagged [xml-parsing]

An XML parser goes through text documents containing XML trees and allows the information in the hierarchy to be used. Use this tag for problems implementing an XML parser or generated by the use of an existing parser in a given language.

An XML parser goes through text documents containing XML trees and allows the information in the hierarchy to be used. Use this tag for problems implementing an XML parser or generated by the use of an existing parser in a given language.

An XML parser converts an XML document into an XML DOM object - which can then be manipulated with JavaScript. All modern browsers have a built-in XML parser.

The XML document specification places requirements on what an XML processor must do and not do, but the application is outside its scope. The processor (as the specification calls it) is often referred to colloquially as an XML parser.

13856 questions
2
votes
1 answer

Parsing xml string containing hyperlink

I am using DOM to parse an XML string as in the following example. This works great except in one instance. The document which I am trying to parse looks like this: Alarm
Greg
  • 284
  • 6
  • 23
2
votes
3 answers

Reading XML Strings from Java

With something that I thought was so simple, I'm surprised to be getting such a strange error... In my program, I have a layout with 5 buttons on it. When you press a button, it launches the phone's dialer with the number pre-loaded into it. I've…
Mxyk
  • 10,678
  • 16
  • 57
  • 76
2
votes
2 answers

Difficulty parsing response containing characters like '\u00'

I am using NSXML Parser to do parsing in my iPhone app. Now everything works fine except when data comes in French language. For example, data from server comes as Ch\u00e9rie FM. Now under the string argument of foundCharacters method, I only get…
Parth Bhatt
  • 19,381
  • 28
  • 133
  • 216
2
votes
1 answer

YouTube URL with channel_id vs 'c'

I am writing a PHP script where I am using the YouTube XML URLs as my input I understood that if the channel has a 'user' like https://www.youtube.com/user/ahodzi24 then its XML URL will be https://www.youtube.com/feeds/videos.xml?user=ahodzi24 And…
2
votes
2 answers

Trouble retrieving numbers using IMPORTXML

does anyone know how to grab the # of networks (one at a time in each cell) from a list on this page? After trial and error, I think =IMPORTXML("https://www.peeringdb.com/fac/167","//div[@data-filter-value='BGP.Exchange' and @'participants']")…
2
votes
0 answers

Reading/Parsing a .ddd (digital tachograph - second generation) file in NodeJS

I need some way to read/parse .ddd files (tachograph second generation - new smart ddd) in NodeJS. I found solutions like jugglingcats https://github.com/jugglingcats/tachograph-reader , but when I tried reading new smart card ddd its was quite…
2
votes
1 answer

Is there any way in php to select all classes that contain the same word

I would like to know if there is any way, in php, to match all classes with the same word, Example:
Dg2A
  • 33
  • 4
2
votes
0 answers

Possible Memory Leak in Parsing a XML File?

I have a long running script, which parses a large XML file(~9GB) and inserts data into a database in chunks. This is what that looks like, import lxml.etree as ET import gc def __get_elements1(self): context = ET.iterparse(tmp_folder +…
2
votes
1 answer

XSD for optional list of at least one element?

I want to make sure, that can be optional, but when it occurs, I want to make sure, that it has at least one . Imagine the following XML: Editor
2
votes
2 answers

replace with big files java heap space out of memory

I have a big xml document 250mb, which one of the tags contains another xml that I need to process. But the problem is, this xml is wrapped by CDATA and if I try to do a replace/replaceAll String xml= fileContent.replace("
paul
  • 12,873
  • 23
  • 91
  • 153
2
votes
2 answers

How to Improve GWT XML parsing?

How to Improve xml parsing in GWT ? My xml is as follows with 1 record To parse 100 Record GWT takes 8 sec Is there any way to improve performance ? Plz see my gwt code to parse xml < Record productid="0" productidext="0" productkeyid="16000"…
StackOverFlow
  • 4,486
  • 12
  • 52
  • 87
2
votes
2 answers

get the attributes from an XML File using Java

I have an XML file with this structure: Anonymous How can I extract the attributes names and values using wathever you want. I tried JDOM, but I still can't…
Wassim AZIRAR
  • 10,823
  • 38
  • 121
  • 174
2
votes
2 answers

select xml child element with jQuery

Is it possible to find an xml element by searching with the value of a child element? So for XML such as: Lakeway LAKE MAIN If…
simon
  • 25
  • 1
  • 1
  • 4
2
votes
3 answers

parsing xml in python

I want to parse text from a xml file.Consider that I have a some lines in a file.xml Castro Verde is situated in the Baixo Alentejo Subregion within a territory known locally as the Campo Branco (English: White Plains). How…
Blue Ice
  • 85
  • 2
  • 9
2
votes
1 answer

Asynchronous loaded Image is not reusable inside the same view

I have a problem with the asyncimage. Here is the link to the files https://www.vadimbulavin.com/asynchronous-swiftui-image-loading-from-url-with-combine-and-swift/ The image of the bottom bar does not change on button action. How could I fix it and…
Leff
  • 43
  • 4