Hi

I am using XML DOM parser -
----------------------------------------------------------------------------------------
            org.apache.xerces.parsers.DOMParser parser = new
org.apache.xerces.parsers.DOMParser();
            String inputSpecName
            StringReader reader = new StringReader(inputSpecName);
            InputSource inputSource = new InputSource(reader);
             parser.parse(inputSource);
             //parser.
             org.w3c.dom.Document doc = parser.getDocument();
             org.w3c.dom.Node xNode = doc.getDocumentElement();
--------------------------------------------------------------------------------------------
where inputSpecName is a XML document as a String

Issue:

<Node Id="iioui" FunctionType="*iioui = &amp;srcFld1 ;*

*iioui=iioui+1 + ~contDeductible ;*

*iioui=iioui*5;*

*iioui=fibo(iioui);*

*iioui=mynewfunc(iioui)*

*iioui= iioui +1*" />
String in the attribute FunctionType consists of multiple-lines. Till
'inputSource' this is the case but once I parse and try to read myAttribute
from xNode - it loses this info & all new lines/ tabs etc are replaced by
simple space. Is there somthing creepy which I am doing...???

Tried to search Mailing List but couldn't find anything concrete (
http://marc.info/?l=xerces-j-user&m=112119927804184&w=2)

Reply via email to