Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Test for integers in XML content?

 
Doug Zirbel
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm using the Xerces DOM parser to read an XML file. One of the elements can contain either text or integers and I need to find out which. Is there some class already out there which does this, or would I have to write it myself?
Thanks!
 
Jessica Sant
Sheriff
Posts: 4313
Android IntelliJ IDE Java
 
Doug Zirbel
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Jessica Sant:
how about Character.isDigit(char) and Character.isLetter(char)??

THANKS!! Just what I was hoping for.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic