![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Problem using XERCES JAVA 2 DOM >Thread Next - Re: Problem using XERCES JAVA 2 DOM Re: Problem using XERCES JAVA 2 DOMTo: NULL Date: 12/3/2004 3:50:00 PM dorin wrote: > I wonder if anyone can help me with a problem using the DOM > getElementById method. > > I am using the Xerces Java 2 library to parse an XML file and create and > validate the DOM Document. I am able to access the Node objects using > the getElementsByTagName method but whenever I try to us getElementsById > the method just returns null. You need to have a DTD for the XML which declares attributes of type ID to be able to use getElementById successfully. -- Martin Honnen http://JavaScript.FAQTs.com/ | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
