Re: '\n' characters in DOMtree

2001-05-18 Thread Arnaud Le Hors
Krzysztof Zielinski wrote: > > Could you give an example of DTD that tell that there can't be any '\n' > or any other space characters exept text which is an element value ? Here: That says element A contains an element B followed by an element C (and nothing else). In that case any whitespace

Re: '\n' characters in DOMtree

2001-05-18 Thread Krzysztof Zielinski
Could you give an example of DTD that tell that there can't be any '\n' or any other space characters exept text which is an element value ? Thanks K. Arnaud Le Hors schrieb: > > Krzysztof Zielinski wrote: > > > > I have set that feature, but when I am displaying DOM tree, there are > > still t

Re: '\n' characters in DOMtree

2001-05-18 Thread Arnaud Le Hors
Krzysztof Zielinski wrote: > > I have set that feature, but when I am displaying DOM tree, there are > still those elements. You also need a DTD that tells the parser what is "ignorable"... This is done by specifying that your elements only contain elements. -- Arnaud Le Hors - IBM Cupertino, X

Re: '\n' characters in DOMtree

2001-05-18 Thread Krzysztof Zielinski
I have set that feature, but when I am displaying DOM tree, there are still those elements. Andy Clark schrieb: > > sadlion wrote: > > parser.setIncludeIgnorableWhitespace (false) ; > > It's better to use the configuration methods available via > SAX2. There is a feature defined for this. For ex

Re: simple question?

2001-05-18 Thread Sharlene_Sallet
Regarding my question on how to parse out a value from an XML string: The following is the method I use to create the string: To create my XML String, I call the following method from a JSP. The method passes a stored procedure from an Oracle database to an EJB that actually generates the XML. I

Re: '\n' characters in DOMtree

2001-05-18 Thread Krzysztof Zielinski
But I need to have a DOM tree, as I need to modify some text elements after I read document from the file. SAX2 doesn't create DOM tree, does it ? Andy Clark schrieb: > > sadlion wrote: > > parser.setIncludeIgnorableWhitespace (false) ; > > It's better to use the configuration methods available

Re: '\n' characters in DOMtree

2001-05-18 Thread Andy Clark
sadlion wrote: > parser.setIncludeIgnorableWhitespace (false) ; It's better to use the configuration methods available via SAX2. There is a feature defined for this. For example: parser.setFeature("http://apache.org/xml/features/dom/include-ignorable-whitespace";, false); C