On XercesC 301 using DOMLSParser and DOMLSSerializer

I am sure that I am missing something really obvious here.

If I have an element with no content such as: .... <xxx></xxx>  ....
How can I preserve it as an element, without it being normalised to the empty element <xxx /> Of course, I'm only interested in the final output - it doesn't really matter to me how it looks internally. Is it something I need to set in the schema, or an option that I switch within the Parser/Serialzer?

I am using the current set of options:

DOMLSParser options
fgXercesValidationErrorAsFatal, false           
fgXercesUserAdoptsDOMDocument, true             
fgXercesSchema, true    
fgXercesContinueAfterFatalError, true           
fgXercesCacheGrammarFromParse, true             
fgXercesUseCachedGrammarInParse, true           
fgDOMElementContentWhitespace, false            
fgDOMNamespaces, true
fgDOMDatatypeNormalization, true
fgXercesLoadExternalDTD, false
fgXercesIgnoreCachedDTD, false
fgXercesIdentityConstraintChecking,true
fgDOMValidateIfSchema, true

DOMLSSerializer options
fgDOMErrorHandler,errorHandler
fgDOMWRTDiscardDefaultContent,true
fgDOMXMLDeclaration,false
fgDOMWRTWhitespaceInElementContent,true
fgDOMWRTBOM,false


Thanks for any help!

Reply via email to