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

IE11 Strips Commas from my SVG/XML Attributes

I have a simple web based drawing tool where I use SVG to store the drawing in a data base. Typical sag looks like this :
Zoran
  • 391
  • 1
  • 3
  • 12
1
vote
1 answer

Using XmlAttributeOverrides to change element names in object tree

I need to figure out how to rename elements and/or attributes in generated XML using values retrieved from the database as my element names. For instance, here is a potential XML output from my current process:
1
vote
3 answers

C# Storing Value of XML attribute from Listbox

My program is currently grabbing all attribute values when I only want a specific one depending on which list box item is checked. Any help would be greatly appreciated, thanks in advance! XML:
SlopTonio
  • 1,105
  • 1
  • 16
  • 39
1
vote
1 answer

savon response.body does not contains xml attributes

I have following savon response: (contains notes, and other attributes such as create date, create user, location etc)
1
vote
1 answer

Is it possible to use an xsl function to set the value of an xml element's attribute?

Good Day! So I've been looking around to for a solution to a problem I have in an integration project with SAP Business One Integration framework. The long and short of it is that I need to pass the value of an xsl function to serve as the value for…
Medismal
  • 421
  • 3
  • 18
1
vote
1 answer

XmlAttribute value and innertext

I have a piece of code that fills a hashtable with strings, per example: ("name", Oscar). I want to use them to fill (just by memory usage) values and innertexts of XMLAtributes. But there is one problem. XmlElement Co =…
Carlos
  • 57
  • 1
  • 16
1
vote
2 answers

How can I get the WordPress language_attributes function to return valid XHTML 1.1?

I have a WordPress template that contains the following element: > This returns:
dommer
  • 19,610
  • 14
  • 75
  • 137
1
vote
1 answer

C# XML several occurrences of a same element

I'm currently reading about serialization and C# attributes related to serialization (XmlRoot, XmlElement, XmlArray, ...). I want to output something like this: ... ... ... ...
Serge
  • 6,554
  • 5
  • 30
  • 56
1
vote
1 answer

Android library projects and custom xml attributes

I'm using two libraries in my projects: holoeverywhere and google maps v2. Everything works just fine except when I try to use the libraries custom xml-attributes. Since ADT r17 we no longer have to use the package name to define the namespace,…
1
vote
0 answers

How to extend XmlAttribute Behavior?

How to extend XmlAttribute class? Using the below code, I've made my nullable property to be serializable and gets excluded from serialization if there is no value: [XmlIgnore] public DateTime? LastUpdated { get; set; } …
The Light
  • 26,341
  • 62
  • 176
  • 258
1
vote
2 answers

How do I retrieve an XML Element where an attribute is either X or Y?

Consider this xml: and also this xml There should be only a sinlge node at /parent/child with either alpha or beeta as it's name value. To clarrify... there…
Rory Becker
  • 15,551
  • 16
  • 69
  • 94
1
vote
1 answer

How can I get XML comments to appear in generated XSD?

If I have XML documents that follow the following pattern, how can I generate XSDs for these documents but convert the comments to annotation tags? ABC
CJ7
  • 22,579
  • 65
  • 193
  • 321
1
vote
2 answers

Get last attribute value in XML using Linq

My XML file look like this: nhi 15 dt hung
1
vote
1 answer

get xml attribute name using xmldocument

I am using C#, framework 3.5. I am reading xml values using xmldocument. I can get the values of attributes but i cannot get the attribute names. Example: My xml looks like
Raghul Raman
  • 169
  • 1
  • 5
  • 18
1
vote
1 answer

Can I use jOOX to find the xPath of an attribute?

jOOX can be used to find the xPath of an element using something like this: Element element = (Element) someNode; String xPath = $(element).xpath(); Can I do the same for an attribute? I tried this: Attr attr = (Attr) someAttributeNode; String…
james.garriss
  • 12,959
  • 7
  • 83
  • 96