Dave,
That is valid xml. My problem was that I had an xml file with thousands of
values and i didnt see this


<fatherDOB></motherDOB>

The tags did not match and that is why the parser was throwing an error.

Dan

On 8/23/07, Dave Francis <[EMAIL PROTECTED]> wrote:
>
> Joe,
>         Doesn't an xml tag also have to have either a value or an
> attribute?
>         Thus
>                 <contact>
>                         <foo />
>                 </contact>
>         Isn't actually valid?
>
> -----Original Message-----
> From: Joe Rinehart [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 23, 2007 11:15 AM
> To: CF-Talk
> Subject: Re: xml closing an empty tag
>
> Hey Dan,
>
> An XML document needs to have a single root node...this is valid XML:
>
> <contact>
>    <address2 />
>    <foo1 />
>    <foo2 />
> </contact>
>
> While this is not:
>
>    <address2 />
>    <foo1 />
>    <foo2 />
>
> If that's not the issue, can you reply and post an example invalid file?
>
> Thanks,
>
> Joe
>
> On Aug 23, 2007, at 11:09 AM, Dan Vega wrote:
>
> > I have an xml file that I am trying to parse and if there is no
> > data for an
> > element the file has an empty closing tag like so.
> >
> >
> > <address2/>
> > <foo1/>
> > <foo2/>
> >
> > When I try to parse the xml file I get the following error.
> >   An error occured while Parsing an XML document. I thought this
> > was valid
> > xml?
> >
> > --
> > Thank You
> > Dan Vega
> > [EMAIL PROTECTED]
> > http://www.danvega.org
> >
> >
> >
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Get the answers you are looking for on the ColdFusion Labs
Forum direct from active programmers and developers.
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72&catid=648

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:286964
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to