![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Re: Problem using XERCES JAVA 2 DOM [Thread Next] Re: Problem using XERCES JAVA 2 DOMTo: NULL Date: 12/7/2004 10:53:00 PM Martin Honnen <mahotrash@y...> wrote: : 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. I do have an XML Schema which declares attributes of type ID. Is a schema not good enough? It seems silly that I should need a DTD when I already have a Schema. Does getElementById not work with Schemas? cheers, Dorin --------------"Que sera, sera."------------- email: dorin-at-engsoc-dot-org --------------- Dorin Petriu --------------- | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
