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

read key value from xml using powershell

I wish to read the below xml values for a given key in a secure encrypted manner using powershell. So, for example, a given key port it should print the value 8814 Likewise for app_name it should print Signup-qa
Ashar
  • 2,942
  • 10
  • 58
  • 122
2
votes
1 answer

How to get HTML Table Value created in Jenkins

I have a situation where I have created the html table for Jenkins Parameter which looks like below and I want to get the value in the Desired Count column for each component if its NOT equal to Current count or if it is null/zero. For example, if I…
2
votes
0 answers

Casting string to bytes while parsing XML to Objects ('str' does not support the buffer interface)

I encountered a problem while using function parseString xml.sax.parseString(src, builder) TypeError: 'str' does not support the buffer interface I trying change this calling to: xml.sax.parseString(bytes(src,'utf-8'), builder) but still not…
falek.marcin
  • 9,679
  • 9
  • 28
  • 33
2
votes
1 answer

org.xml.sax.SAXException: Parser configuration problem:

I am stuck with this error org.xml.sax.SAXException: Parser configuration problem: namespace reporting is not enabled at net.sf.saxon.event.ReceivingContentHandler.getNameCode(ReceivingContentHandler.java:383) at…
naamadheya
  • 1,902
  • 5
  • 21
  • 28
2
votes
1 answer

How to locate error after MalformedByteSequenceException thrown by XML parser

I'm getting a MalformedByteSequenceException when parsing an XML file. My app allows external customers to submit XML files. They can use any supported encoding but most specify ...encoding="UTF-8"... at the top of the file as per the examples that…
Adrian Pronk
  • 13,486
  • 7
  • 36
  • 60
2
votes
3 answers

parsing the xml file using pandas

So, I'm trying to extract information from this xml --
2
votes
2 answers

XML: Back tracing parent element

I am looking for solution to my problem related to XML in python. Though spectrum is not a root element let's suppose it's for this example.
thchand
  • 358
  • 2
  • 8
  • 20
2
votes
0 answers

Is there any new XmlConverter to use with retrofit in android?

Today i encountered this question What kind of XmlConverter can I use for Retrofit in Android? When looking for a problem i'm having, and i wondered if there are any new xml conversion library that i can use with retrofit in android. As it is an old…
Void
  • 969
  • 1
  • 11
  • 19
2
votes
2 answers

how can i hash a specific tag from XML file in a correct way?

we are working on e-invoicing and to send the invoice to the government. and they gave us what they want from us to do like signing some tags and hashing another. my problem now is in hashing, when i hash the specific tag after doing every thing…
Pythoner-sh
  • 134
  • 6
2
votes
1 answer

Parsing a non-XML document with Nokogiri when the node names are/contain integers

When I run: #!/usr/bin/env ruby require 'nokogiri' xml = <<-EOXML bar bar <1>bar EOXML doc = Nokogiri::XML(xml) puts doc.at('/pajamas/bananas/foo') puts…
engartst
  • 23
  • 3
2
votes
1 answer

How can I access the value from this complex and strange XML? (subsubsubclass)

I'm new to working with XML files. I don't know how can I read the properties only from the object 'Convergence' and how can I access the value of 'Molar Flow'.
2
votes
1 answer

file parsing with a condition, display on screen

My code is currently building with no errors. It is searching in an xml file for values, and I need for it to check if the values are within a range that determines if they pass/fail. I believe I have the code right but I need the pass/fail to…
user933467
2
votes
1 answer

Dom XML parser exception in converting node to element

I'm experiencing a crash in this XML parser I wrote public class LevelParser { Level parsedData=new Level(); public Level getParsedData() { return parsedData; } public void parseXml(InputStream parseFile, int wantedLevel){ …
Makers_F
  • 3,033
  • 4
  • 36
  • 51
2
votes
1 answer

XML parsing python

1208 Track ID1208 NameKings And Queens Artist30 Seconds To Mars Album…
nightf0x
  • 1,969
  • 3
  • 17
  • 24
2
votes
3 answers

Android XML Rich Text Processing

I used the tutorial listed here to parse my XML: http://android-er.blogspot.com/2010/05/simple-rss-reader-iii-show-details-once.html The problem I am having is when I try to read in the XML description tag all I get is this: The "<" symbol is where…
Courtney Stephenson
  • 912
  • 2
  • 18
  • 43