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
3
votes
1 answer

Add new users in SSAS security

I want to add users in SSAS security using following XMLA script. DECLARE @CreateUserInSsasXMLA VARCHAR(MAX) = '
Mukund
  • 1,679
  • 1
  • 11
  • 20
3
votes
1 answer

Dealing with empty XML nodes in R

I have the following XML file (I am missing the root node but the editor is not allowing me--please assume there is a root node here):
3
votes
1 answer

access ID/GUID Attribute isPermaLink

I use SimplePie to parse RSS feeds in php. For pre-processing the result of SimplePie, I need to know if the the link is a permalink or not. The info is stored in this XML element: FileNr123 If $items is an instance…
The Bndr
  • 13,204
  • 16
  • 68
  • 107
3
votes
1 answer

Remove xmlns=“” attribute when adding element from file

I add XmlElemnt to csproj file from another file: //load the orginal file XmlDocument xd = new XmlDocument(); xd.Load(fileName); //load the csproj file to setting XmlDocument xmlDoc = new XmlDocument(); xmlDoc.Load(project.FullName); //copy a…
user3114639
  • 1,895
  • 16
  • 42
3
votes
1 answer

How can I add a attribute to Root node of my XmlDocument() in C#

I already have a XmlDocument object in C#. Let's say the InnerXml looks like this; 8825 How can I add a attribute which has the name as uuid and the value as 781283721381,…
neildt
  • 5,101
  • 10
  • 56
  • 107
3
votes
1 answer
3
votes
2 answers

Parsing and XML with XmlElement and XmlAttributes using JAXB

I am unable to unmarshall the below xml using JAXB. Kindly help me to solve this. My xml looks like this:
vinay shettar
  • 93
  • 1
  • 6
3
votes
3 answers

Include an ampersand in an XML attribute

The problem We want to assign an attribute whose contents already contain entities like " or &. In this example, we want the title attribute to be Stack "Stacky" Overflow: $elem = $xml.CreateElement("Site"); $elem.SetAttribute("Title",…
ComFreek
  • 29,044
  • 18
  • 104
  • 156
3
votes
2 answers

Do not generate empty xml attributes

First, let me apologize if I use wrong vocabulary, as I'm not too familiar with COBOL. We are trying to generate xml documents from a fixed data structure in COBOL. This is working well, using the GENERATE statement, but we have an issue. If the…
3
votes
1 answer

parsing unknown attributes of elements within an xml file using jquery

Is it possible to get both the attribute name and the value of an element? Basically i want to get the name and the values of all attributes of a single element, in order to write them into a Javascript Object like this: obj { key: "value", …
Julian Weimer
  • 2,605
  • 4
  • 22
  • 23
3
votes
1 answer

How to use RestSharp's default XmlDeserializer for elements with attributes

I am trying to use RestSharp to consume a third-party REST web service and I am having some trouble getting the default XML deserialization to work with the XML I am getting back. The XML is in the form -
Adam Cobb
  • 894
  • 4
  • 14
  • 33
2
votes
1 answer

Using XML Attribute with IntermediateSerializer

I'm making a game with XNA, and trying to write all level information into an XML by using the IntermediateSerializer. So far I had no problem doing this, but the XML have a little too many tags, and I want to make it more efficient. So for example,…
Osguima3
  • 151
  • 10
2
votes
1 answer

What is an “empty” @about attribute?

In “RDFa in XHTML: Syntax and Processing,” Section 5.5, Step 4, the specifications say “if the element is the head or body element then act as if there is an empty @about present, and process it according to the rule for @about, above.” However, I…
GrantRobertson
  • 460
  • 3
  • 15
2
votes
2 answers

Is it possible to disable specific XML attributes from a custom view in Android?

I'm creating my own personalized ListView by extending the ListView itself. This particular ListView shouldn't have scrollbars. How can I disable the XML android:scrollbars attribute for my custom ListView? I can't find a way to disable them…
rfgamaral
  • 16,546
  • 57
  • 163
  • 275
2
votes
2 answers

How to get all results if there are multiple matches : XSL

I'm practicing some XSL and using this XML document as a simple example:
Chris V.
  • 1,123
  • 5
  • 22
  • 50