Re: Strange way to handle white spaces during parsing

2000-03-22 Thread roddey
enter for Java Technology - Silicon Valley [EMAIL PROTECTED] Norman Walsh <[EMAIL PROTECTED]> on 03/22/2000 11:26:02 AM Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: Re: Strange way to handle white spaces during parsing / [EMAIL PROTECTED] was heard to say:

Re: Strange way to handle white spaces during parsing

2000-03-22 Thread Andy Clark
Norman Walsh wrote: > Huh? I guess I wasn't clear. I explicitly constructed a document > that was well-formed but not valid. My question comments had to do > with "ignorable" whitespace in a non-validating parse. Gotcha. In non-validating case (with or without a DTD), all character content is sign

Re: Strange way to handle white spaces during parsing

2000-03-22 Thread Norman Walsh
/ Andy Clark <[EMAIL PROTECTED]> was heard to say: | Norman Walsh wrote: | > | > | > ]> | > test this! 4 or 5? | | | Huh? I guess I wasn't clear. I explicitly constructed a document that was well-formed but not valid. My question comments had to do with "ignorable" whitespace in a non-valida

Re: Strange way to handle white spaces during parsing

2000-03-22 Thread Andy Clark
Norman Walsh wrote: > > > ]> > test this! 4 or 5? -- Andy Clark * IBM, JTC - Silicon Valley * [EMAIL PROTECTED]

Re: Strange way to handle white spaces during parsing

2000-03-22 Thread Norman Walsh
/ [EMAIL PROTECTED] was heard to say: | If a DTD is present, its read and the information required to make this | decision is present. It doesn't require validation, just a check to see | what type of content model the element has. I'm not comfortable with that answer at all. I think an option tha

Re: Strange way to handle white spaces during parsing

2000-03-22 Thread roddey
IL PROTECTED]" <[EMAIL PROTECTED]> Subject: Re: Strange way to handle white spaces during parsing / "Juergen Hermann" <[EMAIL PROTECTED]> was heard to say: | > Is there a means to disable this, and have an IE-5.0-like behaviour? | | Yes. Write and use a DT

Re: Strange way to handle white spaces during parsing

2000-03-22 Thread Norman Walsh
/ "Juergen Hermann" <[EMAIL PROTECTED]> was heard to say: | > Is there a means to disable this, and have an IE-5.0-like behaviour? | | Yes. Write and use a DTD, so the parser knows that A does not contain mixed | content. Note that this does not mean that you need to use the validat

Fwd: Strange way to handle white spaces during parsing

2000-03-22 Thread Jeffrey Rodriguez
I really wonder: Isn't it weird? No, it is not. Read section 2.10 of the XML 1.0 Recommendation. Is it the normal behavior? Yes, it is. Is there a means to disable this, and have an IE-5.0- like behaviour? Yes, set "http://apache.org/xml/features/dom/include-ignorable-whitespace";

Re: Strange way to handle white spaces during parsing

2000-03-22 Thread Norman Walsh
/ Jean-Christophe Broudin <[EMAIL PROTECTED]> was heard to say: | We have noticed that, with an XML file such as: | | | |Bono | | | | if one asks how many childs tags owns (using getLength() on | getDocumentElement

Re: Strange way to handle white spaces during parsing

2000-03-22 Thread Juergen Hermann
On Wed, 22 Mar 2000 14:42:46 +0100, Jean-Christophe Broudin wrote: [counting whitespace nodes] > Isn't it weird? No. > Is it the normal behavior? Yes. > Is there a means to disable this, and have an IE-5.0-like > behaviour? Yes. Write and use a DTD,

Strange way to handle white spaces during parsing

2000-03-22 Thread Jean-Christophe Broudin
Hi, We have noticed that, with an XML file such as: Bono if one asks how many childs tags owns (using getLength() on getDocumentElement().getChildNodes() ), the answer is 3. After investigation, whit