Questions tagged [xml-attribute]

xml attributes deliver additional information about xml elements/tags.

xml attributes are name/value pairs delimited by equal sign and where the value is enclosed with quotes:

<element  attribute="value"/>

Usually the same information can be provided with sub-elements:

<element>
  <attribute>value</attribute>
</elemenbt>

Links:

317 questions
0
votes
1 answer

How to add an XML element to an existing text in a XML file with python

I have a problem with some values not being declared as XML elements in my XML files. But for further processing, I need them to be an element. Example: Lore 9 12.34
JME
  • 27
  • 4
0
votes
1 answer

Adding attributes with ascending integer values to XML elements only if they have children

I want to add the add attribute 'id="number"' to an existing file. id attributes should only be added if the element has at least one child. So right now my XML file looks like this:
JME
  • 27
  • 4
0
votes
1 answer

Adding attributes with ascending integer values to XML elements

I want to add the add attribute 'id="number"' to an existing file. But the number should be ascending in the way they are added. So right now my XML file looks like this:
JME
  • 27
  • 4
0
votes
0 answers

Why is my fab button having another color below or around its edges?

Please view image I've called a backroundtint in xml and set its color to orange but I noticed that it has another underlying color blue how do I make the color go away and what is the reason for this…
TEEPEE
  • 3
  • 4
0
votes
0 answers

How to add attribute to @XmlRootElement

I need an XML root element like this. How to do it with @XmlRootElement? I tried this @XmlRootElement(name = "SYSTEM Version 1.0"), but it creates a closing tag like the one below. Thanks
Tas
  • 115
  • 3
  • 12
0
votes
2 answers

Retrieve XML values by attribute

public string[] UnpackXML(string xml_string) { string response = xml_string; string[] return_values = new string[6]; XmlDocument xml = new XmlDocument(); xml.LoadXml(response); return_values[0] = xml.GetElementsByTagName("meas…
bullfighter
  • 397
  • 1
  • 4
  • 21
0
votes
1 answer

how to parse XML with namespace and attribute in Python?

hi I am trying to parse xml with namespace and attribute. I am almost close by using root.findall() and .get() However still struggling to get the accurate values from xml file. How to get the xml attribute values ? Input:
anonymus
  • 3
  • 3
0
votes
1 answer

PHP - I would like to return values of attributes from xml file and retrieve their value from a predefined array

If I println($values) I will get the results of the correct attributes for each file fully written as shown in array as key on left but I would like to run the results against the array (valuesCodes) to get the values on right. Any help would be…
0
votes
1 answer

PowerShell - Export to Excel - How to Add Column for File Name

My code currently goes through a list of folders/subdirectories looking for '.csproj' files. The properties "Include" and "Version" are taken from the found .csproj file(s) and are exported to an excel sheet. While this works and I do get two…
sirgroot
  • 11
  • 1
0
votes
0 answers

How to write xml file without encoding utf-8 to HTML entity in PHP DOMDocument?

I'm creating hacking lab(XML injection) and i want to save the text as it is for example: input text: tryingtoattack" but DOMDocument encoding the quotes(or any spacial char) like this output text: tryingtoattac" so my question is how can i…
0
votes
1 answer

Versatile xml attribute regex with javascript

Basically I have an xml document and the only thing I know about the document is an attribute name. Given that information, I have to find out if that attribute name exists, and if it does exist I need to know the attribute value. for…
thirsty93
  • 2,602
  • 6
  • 26
  • 26
0
votes
1 answer

How to serialize XML with collections of nodes using Xml Attributes

I'm trying to serialize Xml using the XmlSerializer and by using its attributes. My problem is that I'm not getting the data of the EVENT items. I'm not fully aware of how to treat the combination between EVENTSCOLLECTION and EVENT by using the…
Guy E
  • 1,775
  • 2
  • 27
  • 55
0
votes
0 answers

access xml node attributes inside a foreach loop

I have an XML string obtained as response of SoapClient request (I have also tried with cURL) I then use: $xml = simplexml_load_string($result); I am able to obtain the attributes of a node inside $xml by the node index (Lets say I want to access…
HeytalePazguato
  • 290
  • 4
  • 13
0
votes
1 answer

Removing xml:space attributes when using copy-of in xslt

The following is part of the code in my input.xml file: Sachin J , Sushant K When I…
Sachin J
  • 2,081
  • 12
  • 36
  • 50
0
votes
1 answer

IPAD xml parsing with attributes deal

… … … … … … … … … This is my xml file, I'm not sure how to deal with attribute i am using NSXMLParser. My question is how to deal with above attributes in NSXMLParser.…
nipin 555
  • 203
  • 1
  • 3
  • 9