tags:

views:

21

answers:

2

can we use auto increment attribute in xml?

+1  A: 

XML is a file format, not a database.

Auto increment has no meaning in an XML file context.

From the main w3 page on XML:

Extensible Markup Language (XML) is a simple, very flexible text format

Oded
A: 

No, an attribute name cannot contain a space, so auto increment is not a permissible attribute.

You could use auto-increment, auto_increment or autoincrement (or any capitalisation thereof)

Paul Butcher