I had almost lost my breath over this issue for an entire day and found that the solutions provided in most blogs and forums doesn't for a tight schedule.
Here, I am sharing the method that finally worked for me. I am using Netbeans with the default DOM parser(SAX Parser) provided in javax package.
The problem is that the method:
returns null unless we explicitly specify the type of an attribute as ID.
The Javadoc for this method says: "The DOM implementation must have information that says which attributes are of type ID. Attributes with the name "ID" are not of type ID unless so defined. Implementations that do not know whether attributes are of type ID or not are expected to return null."
The type of attributes can be defined in two ways, either by using a DTD or xml schema.
But, because I was really in short of time, I didn't want to go through all the complexities of implementing a DTD or XSD validation. Trust me…
Sending an Email to Multiple Recipients - Cc: and Bcc:
Use Cc and Bcc to send an email to more than one person easily and fast:
Cc: — Carbon Copy
"Cc" is short for "carbon copy". Those naming and designing this
email feature probably had the real world counterpart to email in mind:
letters. Carbon copy paper made it possible to send the same letter to
two (or even more if you hit the keys really hard) different people
without the onerous task of having to write or type it twice.
The analogy works well. An email is sent to the person in the To: field, of course.
A verbatim copy of the message is also sent to all the addresses listed in the Cc:
field, though. Yes, there can be more than one email address in this
field, and they all get a copy. To enter more than one address in the Cc: field, separate them with commas.
The Shortcomings of Cc:
When you send a message to more than one address using the Cc: field, both the original recipient and all the recip…
Initial newspaper reports of the technology were debunked by multiple technical sources, although Abideen says those reports were based on a misunderstanding of the technology. The paper meant to demonstrate the capability of storing relatively large amounts of data (and not necessarily in the gigabyte range) using textures and diagrams.
The Rainbow data storage technology claims to use geometrical shapes such as triangles, circles and squares of various colors to store a large amount of data on ordinary paper or plastic surfaces. This would provide several advantages over current forms of optical- or magneticdata storage like less environmental pollution due to the biodegradability of paper, low cost and high capacity. Data could be stored on &quo…