You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by "Bagepalli, Kiran" <kb...@informatica.com> on 2002/09/19 20:40:46 UTC

DOM Format

I had a couple of questions on DOM writing
  1. Is there a method to convert a string with special escape characters(<
> &... etc). 
  2. How far is pretty printing implemented. I need a formatted output
giving proper indents
     so that the resulting XML is viewable in a text editor. If not, could I
override anything
     in the DOMWriter to plug in this functionality.

Thanks
Kiran

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org


Re: DOM Format

Posted by Gareth Reakes <ga...@decisionsoft.com>.
Hi,

On Thu, 19 Sep 2002, Bagepalli, Kiran wrote:

> I had a couple of questions on DOM writing
>   1. Is there a method to convert a string with special escape characters(<
> > &... etc). 

They get escaped on the way out by default.


>   2. How far is pretty printing implemented. I need a formatted output
> giving proper indents
>      so that the resulting XML is viewable in a text editor. If not, could I
> override anything
>      in the DOMWriter to plug in this functionality.

Its not that advanced yet. Have a look at DOMWriterImpl. If you do make 
improvements then post them to the list. We would all like to see it :). 


Gareth

-- 
Gareth Reakes, Head of Product Development  
DecisionSoft Ltd.            http://www.decisionsoft.com
Office: +44 (0) 1865 203192



---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org