Hi, I tried posting the two question in the message below to xerces-j-user as I thought that was more appropriate but I got no reply. If one of the developers could help me with either one of these I would be obliged.
Best regads, Giorgos -- i have two questions that i would like to ask. the first one is regarding DTD serialization. i am using the identity transformation trick to serialize an xml document that i have parsed (with validation) into a DOM tree and although everything is written out correctly the DTD is always missing... is there any way to include the original DTD in the serialized document? i have tried transformer.setOutputProperty(OutputKeys.STANDALONE, "yes"); but to no avail. the second question is regarding getElementById(). when i use it to retrieve an element that was in the xml document before this was parsed into a dom tree it works fine. but, if i programmatically add a new node (say using appendChild()) then whenever i use getElementById() to retrieve this node i get back null. by looking into the source code i found the identifiers map which xerces seems to create when first parsing a document. there is also the corresponding putIdentifier() method to insert a new identifier. however i have two problems with this solution: 1. i am using the parser through jaxp and i wouldn't like to make use of xerces specific features, 2. it would only seem logical to me that xerces should call putIdentifier() for me when i add a new node to the DOM tree. i have made sure that my identity attributes are defined as such in the DTD (ID #REQUIRES) and that they contain valid values (start with a character, no spaces) any feedback on both these issue will be greatly appreciated. many thanks, giorgos --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
