Welcome Guest! Log in
×

Notice

The forum is in read only mode.
Stambia versions 2.x, 3.x, S17, S18, S19 and S20 are reaching End of Support January, 15th, 2024. Please consider upgrading to the supported Semarchy xDI versions. See Global Policy Support and the Semarchy Documentation.

The Stambia User Community is moving to Semarchy! All the applicable resources have already been moved or are currently being moved to their new location. Read more…

Topic-icon Question Generate Sequence in XML

  • peter.tse@semarchy.com
  • peter.tse@semarchy.com's Avatar Topic Author
  • Offline
More
11 Jan 2018 16:24 #1 by peter.tse@semarchy.com
Generate Sequence in XML was created by peter.tse@semarchy.com
Hi

How can I generate a sequence number when writing to an XML file?

For example, the first record to have:
<SequenceNumber>1</SequenceNumber>

the second record would be 2
and if the file contained 99 records, the last record is:
<SequenceNumber>99</SequenceNumber>

Regards, Peter
More
17 Jan 2018 12:06 #2 by Thomas BLETON
Replied by Thomas BLETON on topic Generate Sequence in XML
Hi Peter,

You can use the "nodeLocalPosition" Xml property field.
www.stambia.org/doc/66-technology-articl...-xml-property-fields

Regards,
Thomas.