Hi,

I have recently started using Xalan/Xerces to help with , very much
using the sample code to guide what I'm doing.  I've successfully parsed
and transformed one document into a XalanSourceTreeDocument for
programmatic access, now am trying to programmatically construct an XML
document then transform it, patterning my code after the
'DocumentBuilder' sample.  However, although the document construction
and transform appear to execute without error, the resulting document
hasn't been populated with attribute values from the constructed
document.

I would very much like to be able to 'dump' out the contents of the
programmatically constructed document built using XalanDocumentBuilder
and its ContentHandler.  Is there a way to get it streamed out say to
cerr without having to passing it thru' the transformer?

BTW, I noticed some discussion on the April archive from someone who was
programmatically constructing a document and then transforming it, but
they appeared to be using different classes as their code referred to
constructing 'DOMDocument' directly so I'm a bit unsure whether using
XalanDocumentBuilder is the right approach?  In that discussion the
poster was referred to caution needed in establishing attribute
name-spaces, but I don't see anything like that in the provided
DocumentBuilder sample code...?


Any suggestions of how to dump out an XalanDocumentBuilder constructed
document for diagnostic purposes much appreciated.

Regards,

Paul Bandler
Nomura International Plc





This e-mail (including any attachments) is confidential, may contain
proprietary or privileged information and is intended for the named
recipient(s) only. Unintended recipients are prohibited from taking action
on the basis of information in this e-mail and must delete all copies.
Nomura will not accept responsibility or liability for the accuracy or
completeness of, or the presence of any virus or disabling code in, this
e-mail. If verification is sought please request a hard copy. Any reference
to the terms of executed transactions should be treated as preliminary only
and subject to formal written confirmation by Nomura. Nomura reserves the
right to monitor e-mail communications through its networks (in accordance
with applicable laws). No confidentiality or privilege is waived or lost by
Nomura by any mistransmission of this e-mail. Any reference to "Nomura" is
a reference to any entity in the Nomura Holdings, Inc. group. Please read
our Electronic Communications Legal Notice which forms part of this e-mail:
http://www.Nomura.com/email_disclaimer.htm

Reply via email to