xml


xml record id with one increment


See the image above, each time I would like to increment my record with 1 so I get the xml file as follows:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<data-set xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<record1>
<LastName>Smith</LastName>
<Sales>16753</Sales>
<Country>UK</Country>
<Quarter>Qtr 3</Quarter>
</record1>
<record2>
<LastName>Johnson</LastName>
<Sales>14808</Sales>
<Country>USA</Country>
<Quarter>Qtr 4</Quarter>
</record2>
</data-set>
How is this possible in Excel?
Add a column to your spreadsheet that indicates the row number, give it a header of "RowNumber", then include it in the range you are exporting.
Exporting them as "", "" will cause problems for the programs that will use that XML in the future, because it will see them as different types of rows.
Is there any particular reason you want that xml structure? I would recommend something like an id tag.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<data-set xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<record>
<id>1</id>
<LastName>Smith</LastName>
<Sales>16753</Sales>
<Country>UK</Country>
<Quarter>Qtr 3</Quarter>
</record>
<record>
<id>2</id>
<LastName>Johnson</LastName>
<Sales>14808</Sales>
<Country>USA</Country>
<Quarter>Qtr 4</Quarter>
</record>
</data-set>

Related Links

R programming XML: accessing duplicate node
Cannot find the declaration of element 'xs:schema'
Webservice schema validation not working
How to define XSD element to have multiple children, all of which are simple and only have attributes?
App Engine - Java Cache Control wont work
XML list types required for WCF
What is the meaning of xs:mixed without elements?
Copy xml element with whole tree
how to get unique record count for each location_Name by Record_No when RECORD_TYPE='ERROR' with XSLT
XML and accented charachters
XSLT grouping based on XML element values
REST and links: middle ground?
What's Haskell's attitude towards Unicode in XML?
Specific How-To Minimally Style XML with XSLT after adding over-arching categories
Why is my XSLT style sheet not pulling values from my XML file for a table?
Appending information to an XML file in VB.NEt

Categories

HOME
notepad++
oracle12c
turing-machines
github-for-windows
android-studio-2.2
pda
toolbox
shiro
appcelerator
ms-access-2016
spring-data-mongodb
entity-framework-core
gembox-spreadsheet
spring-session
barcode
arangodb
line
frequency-distribution
gource
sigma.js
asciidoctor-pdf
href
roslyn
pimcore
syntax-highlighting
bulletphysics
linked-data
handler
eviews
dst
android-gridview
vue-chartjs
jwplayer6
baidu-map
least-squares
imx6
roblox
magento-1.9.2.4
jpad
dm-script
cd
ideascript
google-data-api
jvmti
escpos
preloader
microsoft-metro
lpsolve
knime
apache-spark-dataset
ovf
textsum
term
chai-as-promised
singleinstance
custom-font
otp
rackspace-cloud
smartfoxserver
qtplugin
centrifuge
adafruit
rspec2
google-query-language
lua-telegram-bot
uiactionsheet
createprocess
halcon
invoke-sqlcmd
aspen
phpgrid
rubaxa-sortable
slash
mod-proxy
ansi
snackbar
mraid
uvc
mass-assignment
apache-spark-1.3
mruby
genymotion-call
linkedin-jsapi
imagefilter
nsmenu
create.js
synapse
accesscontrolexception
kendo-dataviz
ebay-lms
process-explorer
cakephp-1.2
apache-whirr
jdb
cross-database
infobright
flex-mobile
listactivity
webdev.webserver
nhprof
object-database
opml
data-mapping
fail-fast-fail-early
localizable.strings

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App