Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Posts: 43
Registered: ‎11-24-2011
My Device: Perl

Reading special Charter on Dom parsing



I am developing a web service application on this I want to read the email id which is come from the xml


at that time I got the error that  "Invalid charater at &#010 "


my code is as followes

* Read XML

docBuilderFactory = DocumentBuilderFactory.newInstance();
docBuilder = docBuilderFactory.newDocumentBuilder();

// is = htpconn.openInputStream();

Document doc = docBuilder.parse(inputStream);
doc.getDocumentElement ().normalize ();
System.out.println ("Root element of the doc is " + doc.getDocumentElement().getNodeName());

NodeList listOfPersons = doc.getElementsByTagName("emails");

int totalPersons = listOfPersons.getLength();
System.out.println("Total no of email : " + totalPersons);
for(int s=0; s<listOfPersons.getLength() ; s++)

Node firstPersonNode = listOfPersons.item(s);

Node firstPersonElement = firstPersonNode;

NamedNodeMap attributes=firstPersonNode.getAttributes();

Node value=listOfPersons.item(s).getChildNodes().item(0);

gotPass = value.toString();
System.out.println("Meetingtype :-"+ value.toString());




can any one tell me where is my misstake to read the '@' and '.' sign.


the example of email id is m@m.com etc.


Thanks in Advance