hi every one .......i have one problem , i want to create xml where node name is integer value like
but it gives error "Invalid character in xml "
if there is any way to create the xml like above then please suggest me. I am very thank full to u.
"it gives error"
What exactly is "it"? There are a 101 ways to create XML files. The most simple is simply opening a FileWriter / PrintStream and writing it out as pure text. You won't ever run into problems that way.
When you describe that file as "XML" you are making an error. XML does not permit element names to begin with a digit. So yes, you can certainly create such a file by writing it as text. But don't make the mistake of describing it as an XML document. It isn't. And if you give it to somebody else to parse as XML, they aren't going to be happy with you.
There is no way to do what you want. Xml may not have numbers for node names.
It's difficult to see what you're trying to do but I'd suggest you organise it differently.
Something like this:
This scheme allows you to select all names, all ids or all nodes easily