RE: setting xml encoding

2007-06-16 Thread Dave Watts
> What would a DTD look like for something with text nodes > instead of elements? > Can you say X element should have X nodes? Not exactly. DTDs and schemas describe elements, attributes, and the relationships between them. Nodes result from the parsing of an XML document. Within a DTD, you

Re: setting xml encoding

2007-06-16 Thread Robertson-Ravo, Neil (RX)
o: CF-Talk Sent: Sat Jun 16 18:12:33 2007 Subject: Re: setting xml encoding What would a DTD look like for something with text nodes instead of elements? Can you say X element should have X nodes? (Sorry to spin/hijack the thread a bit.) On 6/16/07, Dave Watts wrote: > > > In all my ex

Re: setting xml encoding

2007-06-16 Thread Dinner
What would a DTD look like for something with text nodes instead of elements? Can you say X element should have X nodes? (Sorry to spin/hijack the thread a bit.) On 6/16/07, Dave Watts wrote: > > > In all my examples, I have been assuming that if data (text) > > was stored inside of a start and

RE: setting xml encoding

2007-06-16 Thread Dave Watts
> In all my examples, I have been assuming that if data (text) > was stored inside of a start and end tag, then there would > not also be nested tags at that level. Obviously that would > not always be true. XHTML is a great example of that, of course. It isn't immediately obvious, though, if

RE: setting xml encoding

2007-06-15 Thread Brad Wood
Ok, I've got to say that some of what you are saying is actually making sense... You are right that it is impossible to have white space outside of a tag other than the root tag since every other tag is wrapped in a parent tag, and therefore it is "in" an ancestor tag. Seeing an example with tex

Re: setting xml encoding

2007-06-15 Thread Dinner
On 6/15/07, Dave Watts wrote: > > needed there - or anything else you can think of. Just because whitespace > is > unimportant to you, doesn't mean that it's unimportant to everyone else. I've always kinda liked the whole eastern perspective on space, and how the emptiness is as important as the

RE: setting xml encoding

2007-06-15 Thread Dave Watts
> A haiku is not XML. You did not give me an example of an XML > string with white space between the tags in which an > application would need it to handle the data. (Note, I am > not talking about white space between a corresponding start > and end tag as that would actually make sense since

RE: setting xml encoding

2007-06-15 Thread Dave Watts
> It certainly doesn't look right as Some Text and maybe some > more text are split within the root node by other nodes. > > I mean what you get by referencing myObj.root? Would expect > both text text values? That depends on how you reference myObj.root. There are various DOM API methods that

Re: setting xml encoding

2007-06-15 Thread Robertson-Ravo, Neil (RX)
on are not necessarily those expressed by Reed Exhibitions." Visit our website at http://www.reedexpo.com -Original Message- From: Adrian Lynch To: CF-Talk Sent: Fri Jun 15 18:12:30 2007 Subject: RE: setting xml encoding So are you saying that the following is wrong?

RE: setting xml encoding

2007-06-15 Thread Adrian Lynch
07 18:02 To: CF-Talk Subject: RE: setting xml encoding > Have I changed the actual data being transferred one iota? Yes. The second example has two text nodes within root, and two text nodes within book. I'm not talking about a technical standpoint, I'm talking about from a practi

Re: setting xml encoding

2007-06-15 Thread Dinner
> > Given the following examples: > > > > > > > > > > > > > > > > > > > > Have I changed the actual data being transferred one iota? > > Yes. The second example has two text nodes within root, and two text nodes > within book. Wow. I had been under the same im

RE: setting xml encoding

2007-06-15 Thread Brad Wood
> Have I changed the actual data being transferred one iota? Yes. The second example has two text nodes within root, and two text nodes within book. I'm not talking about a technical standpoint, I'm talking about from a practical standpoint. I still maintain that there is no practical reason to

RE: setting xml encoding

2007-06-15 Thread Dave Watts
> I'm not necessarily saying you're wrong, but show me one > example where the white space between tags of an xml document > would be as significant as any brother node and would need to > be used by an application. I mean, XML presents data in the > form of nested tags which contain appropria

RE: setting xml encoding

2007-06-15 Thread Brad Wood
> XML is designed to be used in practically any environment. In some > environments, whitespace has significance. In others, it doesn't. Should a > haiku be written on one line? I'm not necessarily saying you're wrong, but show me one example where the white space between tags of an xml document w

RE: setting xml encoding

2007-06-15 Thread Dave Watts
> Using cfsavecontent is a possibility but I want to use the > variable on the CF side to do some xmlsearches on and I need > it in the form of an XML object. It seemed to make more > sense to generate the xml object first and then tostring it > when I was finished. I guess it is 6 of one hal

RE: setting xml encoding

2007-06-14 Thread Brad Wood
Using cfsavecontent is a possibility but I want to use the variable on the CF side to do some xmlsearches on and I need it in the form of an XML object. It seemed to make more sense to generate the xml object first and then tostring it when I was finished. I guess it is 6 of one half a dozen of t

RE: setting xml encoding

2007-06-14 Thread Dave Watts
> Secondly, forget that I typed cfsavecontent. That was a > typo. I meant cfcontent as was exampled in the live docs > link I included. I am using cfxml to create the XML object, > and tostring to create a string representation of that object > to pass along to JavaScript. > According to A

RE: setting xml encoding

2007-06-14 Thread Brad Wood
OK, first of all I am outputting an xml representation of a string as part of a javascript declaration which will define that string on the client where it can then be parsed into an xml object that the browser can work with. The reason why I care about the encoding of the string is because appare

RE: setting xml encoding

2007-06-14 Thread Dave Watts
> It appears that cfprocessingdirective only applies if I am > returning an entire page of nothing but xml and want the > encoding of the whole page to be modified. I am just > creating a variable with cfxml. If you're going to output that variable to the browser as an HTTP response, you'll ne

RE: setting xml encoding

2007-06-14 Thread Brad Wood
m right. I want my money back. ~Brad -Original Message- From: Dinner [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 13, 2007 7:19 PM To: CF-Talk Subject: Re: setting xml encoding Or I think. See (cf 6): http://preview.tinyurl.com/yuqgva Or more recent docs On 6/13/07, Brad Wood wro

Re: setting xml encoding

2007-06-13 Thread Dinner
Or I think. See (cf 6): http://preview.tinyurl.com/yuqgva Or more recent docs On 6/13/07, Brad Wood wrote: > Hey, this ties back to my post the other day ~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 & MX7 integrati