> 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
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
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
> 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
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
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
> 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
> 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
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?
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
> > 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
> 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
> 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
> 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
> 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
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
> 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
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
> 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
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
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
21 matches
Mail list logo