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

Is it possible to SELECT just an attribute's value from XML or RSS using YQL?

I've got some YQL queries from XML and RSS that are returning more than what I want to SELECT. I'm getting all the XML from the itemPath down to the attribute value, which I then have to sift through to dig out just the values I want: This…
hippietrail
  • 15,848
  • 18
  • 99
  • 158
1
vote
2 answers

How to delete specific attributes from all the descendants in XML?

i have an XML like var test:XML = new XML( ); i want to remove all the attributes other than id and type in all nodes of XML. by this code i am unable to do…
1
vote
0 answers

Using Java XMLSerialiser, how can I insert a string into a node

I am currently using xmlserialiser to output something like the following I have a string like this: String stringAttribute = "testAttribute='testAttributeValue'"; is there a way…
foz1284
  • 343
  • 1
  • 4
  • 20
1
vote
2 answers

AS3: all key + values from XML attributes

I need to get all the attributes…
Andy Jacobs
  • 15,187
  • 13
  • 60
  • 91
1
vote
1 answer

XML attribute space separated character list cannot contain both single and double quotes

I am using deltaxml (www.deltaxml.com) to compare 2 XML files. I need to modify define-punctuation.xsl (XSLT) file. To change the characters that should be treated as punctuation, the deltaxml:punctuation attribute should be included in an element…
Rad
  • 933
  • 1
  • 15
  • 32
1
vote
0 answers

XML file creation with Python: How to display the attributes of an element in multiple lines

I am working with python on the creation of two types of files: EVFM and SMURF, which both follow the xml structure. One example of such files is the following: EVFM My approach is to use the xmltodict package with the unparse method, which…
1
vote
0 answers

Can't use anyAttribute using gSOAP generated c++ code

I have an XSD schema file using anyAttributes for allowing custom extensions for different users. Unfortunately, I am getting problems with the C++ code generated by gSOAP. It works fine for everything not being modeled as anyAttributes, but if…
CJacker
  • 11
  • 3
1
vote
1 answer

XML Serialization Namespace both Child and Parent Elements

Good day all, I have trouble adding namespaces correctly to my XML. Both the parent and child elements have the own namespaces. When restructure the code I have gotten mixed results. My sample code below: using System; using System.IO; using…
1
vote
1 answer

How to add a XML element for 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: 12.34 Lore 9 In the…
JME
  • 27
  • 4
1
vote
1 answer

Can two xsi:type attributes exist in the same element?

Within XML there exits elements and attributes. There is a special attribute called xsi:type. Can an element have two xsi:type declarations? Example using Dublin Core. Element Example 1091 Attribute Example
Hugh
  • 15
  • 4
1
vote
3 answers

one2many field view - attribute

I have the following wizard structure [ field name and data type ] Type :- Selection :- Type 1 and Type 2 Route :- One2many When Users select Type 1, I want to allow them to add records in the Route table. While on the Type 2, I want to make Route…
Bhavesh Odedra
  • 10,990
  • 12
  • 33
  • 58
1
vote
1 answer

specify allowed attributes as delimited string in another attribute in XSD

I am confused about how to design an xml schema, where attributes of an element must have names from those listed in an attribute of another element. A valid example: An invalid…
Curious
  • 11
  • 1
1
vote
1 answer

xmlserializer deserialize list containing attributes

I have xml that part of structure looks like this: 1 2 3 1
rideronthestorm
  • 727
  • 1
  • 13
  • 32
1
vote
2 answers

Powershell - Can't Collect and Compile XML attributes into an Excel File

I'm aiming to accomplish the following with a PowerShell script. Most sub folders in "C:\Example-Path\src" contain a single .csproj file that includes a "Property Include" and "Version" attribute. I want to gather these attributes from every…
sirgroot
  • 11
  • 1
1
vote
1 answer

Converting Excelsheet into XML file with XML elements having attributes

I am new to VBA and to use VBA on excel and write a macro to export an xml file per row (see the example in the print screen): Excel Example The Account should be an XML element and the transactionID should be an XML attribute of Account. Example of…
YumYum
  • 41
  • 5