wood burning stoves 2.0*
The moose likes XML and Related Technologies and the fly likes xml id Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "xml id" Watch "xml id" New topic
Author

xml id

kahkean chor
Ranch Hand

Joined: Jan 26, 2013
Posts: 56
can i create a xml document without id?

is this correct?

<?xml version="1.0"?>
<cookies> <- root
<rmbme> <-name
<id>asdasd</id> <-element
<pw>asdsd</pw>
</rmbme>
</cookies>
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18140
    
    8

You can have an element named "id" if you like. There are very few restrictions on elements names in XML, the main one being that they can't start with the string "xml". And you can have documents which don't contain any elements named "id" as well. If you've ever seen any other XML documents then chances are that you have seen a document without any such element.
 
Don't get me started about those stupid light bulbs.
 
subject: xml id
 
Similar Threads
cookie age
Httpsession
Validate a user id and password on unix
How to get multiple session in single browser
SFTP and PGP?