|
Java™ by example!
|
|
|
How do I check whether a node has attributes?
Use the method hasAttributes defined in the interface Node, a superinterface of Element. Main.java:
customers.xml (!!remove the space between ? and xml):
Further Information
Author of answer: Joris Van den Bogaert
Comments to this answer are only viewable by members. Login or become a member!
|
|
|
|
|