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
2 answers

Parse XML with Powershell to get value of .Name property when masked by child node

In Powershell, how can I get the value of the .Name property of an XML element when it has a child node called 'Name' which masks the property. # Assign XML that contains an element called 'Name' deliberately # to mask the .Name property on the…
Jayden
  • 2,656
  • 2
  • 26
  • 31
2
votes
2 answers

add comment programmatically to xml

Is there any way to programmatically comment a particular child in XML? My requirement is I need to find out the attribute value from the xml.If that values exists I need to comment that particular child itself which the attribute belongs. eg:…
user414967
  • 5,225
  • 10
  • 40
  • 61
2
votes
0 answers

Xml variable substitution doesn't work with individual section key in web.config

I am working with DevOps pipeline using yaml and has deployed a .net web application to cloud. I used xml variable substitution to replace a content from configSections in web.config file. - task: AzureRmWebAppDeployment@4 displayName: 'Service…
Jayaraj
  • 686
  • 10
  • 18
2
votes
1 answer

Parsing xml stored in table records in the select statement - SQL Server

I've run into a problem while trying to parse the xml which is stored in the table records The xml structure is following :
danyloid
  • 1,677
  • 3
  • 21
  • 47
2
votes
1 answer

Optimizing HTML Parsing in VBA

I have some VBA code that makes a request to https://nt3-s.zacks.com/fundamreports/Default.aspx and extracts all the data to a worksheet. My issue is that my parsing technique takes a very long time. Does anyone have any suggestions on how I can…
2
votes
1 answer

Iterating though specific XML elements and namespace issues

I want to read an XML file with metadata and extract specific parts and then write it to another file. However I'm stuck at the beginning of parsing the 2MB metadata XML file. For testing and debugging purposes I've narrowed the input file down to…
BdR
  • 2,770
  • 2
  • 17
  • 36
2
votes
0 answers

How to prevent XXE attacks on Android when DocumentBuilderFactory doesn't allow disable DTD?

When using DocumentBuilderFactory in Android, we are required to enforce some security features so that the XMLs can be safely processed. The following are the flags we are trying to…
Edwin Abraham
  • 645
  • 7
  • 24
2
votes
1 answer

PowerShell Insert xml node at the top

I would like to insert a xml node at the top of other existing child nodes. The problem with my code is it appends to the bottom. I tried InsertBefore() but I keep getting errors Ex: <----I want to insert a provider here …
endlessCode
  • 1,255
  • 4
  • 21
  • 36
2
votes
1 answer

Parsing the XML for the schema location with Xstream

I'm having trouble finding out the schema location from the XML using the xstream. For validation of…
bbaja42
  • 2,099
  • 18
  • 34
2
votes
1 answer

Problem parsing String to DOM in Java

Consider that I have a standard DOMParser, written along the lines of: DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); DocumentBuilder builder = factory.newDocumentBuilder();…
Larry
  • 11,439
  • 15
  • 61
  • 84
2
votes
1 answer

How to add empty xmlns="" to struct tag for request?

Hello I'm new at golang and programming and i have a noobish question. i couldn't find the answer on google. The soap server fails with generated code by gowsdl. but i add this xmlns="" to auth tag its works like a charm. So how can i add this to…
2
votes
1 answer

SimpleXML parse ignores @Root name parameter

SimpleXML library has issue. It ignores @Root name. Here is code with test: Class: @Root(name = "res", strict = true) @Data @NoArgsConstructor @AllArgsConstructor class Response { @Attribute(name = "a") private Integer a; …
Solata
  • 1,444
  • 3
  • 28
  • 42
2
votes
1 answer

XPath command to get only a specific element data and not others

Suppose I have an XML file - 2021 Porsche 911 2020 Porsche 911…
Mud
  • 21
  • 5
2
votes
1 answer

LPX-00209: PI names starting with XML are reserved when parsing soap response

I parsed a SOAP response. Next I want to check the value of like so: DECLARE l_clob CLOB; l_error VARCHAR2(20); BEGIN --SOAP RESPONSE l_clob := '
2
votes
2 answers

MSXML2.DOMDocument60 - Reading XML in VBA with Namespace

I am new in programming in Access and with MSXML2.DOMDocument60 so please accept my apologies if anything is not correct. I am trying to parse an xml but I am facing issue when loading it using MSXML2.DOMDocument. The structrue of the XML is shown…
1 2 3
99
100