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

How to use Attribute as search keyword with TinyXML2(C++)

I'm trying use Attribute as keyword to find Element I want. it can work but only when it is first element. bool readXML(){ string gateWay_str="",user_Input=""; XMLDocument XML_file; XML_file.LoadFile("exception_ip.xml"); //XML…
LocoOcelot
  • 65
  • 7
0
votes
0 answers

How to extract XML attributes and process these into a dataframe?

I am a beginner in R Programming. I would like to scrape football data from Squawka and place these in a dataframe in order to conduct analyses (newborn hobby of Football Analytics), more precisely from these kind of pages:…
0
votes
1 answer

PHP - Parsing XML Challenge

I'm trying to parse a feed similar to the following:
John C
  • 666
  • 4
  • 8
0
votes
2 answers

XML get attributes

I saw lots of tutorials here in overflow, but I could not understand what I am missing.. So I need some help.. I have an XML which it is online and I am trying to parse it like this: 13389
0
votes
4 answers

How do I load multiple XML nodes with two attributes as key-value pairs?

I have a XML file which is like this;
0
votes
1 answer

xpath Query for attribute values having the same name

Hey guys I wanted to know whats the xpath needed to get all the attribute values which have a specific name:I need the values of the attribute "code": eg:
java
  • 11
  • 3
0
votes
2 answers

XmlSerializer in C#, deserialize a class decorated with multiple XmlElement with same name by a particular attribute?

I have a class which is decorated with XmlElement in a wrong way, but it has also attributes that could allow me to identify the fields I need. I can only modify [IWantToSerializeThisAttribute] and add other attributes to MySerializableClass because…
user5851643
0
votes
1 answer

How to pretty print XML Attributes in Java?

Transformer tf = TransformerFactory.newInstance().newTransformer(); tf.setOutputProperty(OutputKeys.INDENT, "yes"); tf.setOutputProperty("{http://xml.apache.org/xslt}indent-amount", "4"); tf.transform(new StreamSource(reader), new…
阿尔曼
  • 1,275
  • 2
  • 14
  • 18
0
votes
2 answers

How to get values of XML node filtering by attribute name in C#?

This is part of my XML file 100 200 300 1000
WEAPI
  • 101
  • 4
  • 9
0
votes
2 answers
0
votes
1 answer

How to reference colors in a drawable using style in a RelativeLayout

I have a RelativeLayout which background is a drawable which has referenced colors. I want to change the colors from the drawable depending on the style. I have tried 2 options but any of them are working: OPTION 1: RelativeLayout
Alberto Crespo
  • 2,429
  • 5
  • 28
  • 51
0
votes
2 answers

String and Integer mixed array for android XML?

I want to grab the drawable ID from an xml array but using string array, is this possible? Downward-Facing Dog Adho mukh a savanasana
Stephen
  • 1,072
  • 1
  • 19
  • 33
0
votes
0 answers

How to write XPATH to write values as below

I have to write values as below by reading the values from a text file Text File: 123|John XML file to generate: 123 John XAPTH I am using: For writing the value for…
tradersjoe
  • 37
  • 4
0
votes
1 answer

Converting Jaxb attribute value to Upper Case during UnMarshalling

I want to convert uid attribute's value in MyJaxbModel class to uppercase during UnMarshalling. I did write UpperCaseAdapter that does the work for me. However with this approach, application performance is deteriorated to unacceptable level (as…
0
votes
1 answer

Intelligently handling attributes when fetching an xml text value from XML using PowerShell

To fetch the value of an XML element in powershell, we can simply write out the path by treating the elemnts as if they were properties of a PowerShell object; i.e. $xml.RootElement.ChildElement.GrandChild. However, if the element we're interested…
JohnLBevan
  • 22,735
  • 13
  • 96
  • 178