sorry you are right :) not knowing everything is not very helpful,
well i'm playing a bit with jquery and i made 1 page and 1 file with
xml data .. the xml you have seen it above now i try to read the data
from xml and insert it in to the html page, i will have a name witch
will be the title of the page 1 image and description, now the
description i want to be able to enter html code so i can format the
text like bold, italic, list, ol, li, p, etc, and by having more items
that means i can have more pages and like this i can build an entire
website with out sql or php or whatever language, it's just and idea
that i'm trying out, and this is the thing where i got stuck .. i
can't read html from xml .. if i enter html info in xml like <br> <p>
<b> etc my scripts are working but they strip the html tags thats
because of the .text() function at the end of this line "desc = $
(this).find("description").text();" so they work but no formatting, if
i enter <![CDATA[]] in description then the scripts stop working ...
any hint or idea would be great :)

Claudiu


On Aug 12, 11:00 pm, Michael Lawson <mjlaw...@us.ibm.com> wrote:
> It looks like you're using an RSS feed given the xml format, so you
> probably want to use the CDATA sections anyways so that RSS readers don't
> get confused by the HTML tags.
>
> Now, maybe I just don't understand exactly what you're trying to
> accomplish?  Are you saying you want to just read the contents of the
> description field?
>
> cheers
>
> Michael Lawson
> Development Lead, Global Solutions, ibm.com
> Phone:  1-276-206-8393
> E-mail:  mjlaw...@us.ibm.com
>
> 'Whether one believes in a religion or not,
> and whether one believes in rebirth or not,
> there isn't anyone who doesn't appreciate kindness and compassion..'
>
>   From:       Seth <claudiu.dan...@gmail.com>                                 
>                                                  
>
>   To:         "jQuery (English)" <jquery-en@googlegroups.com>                 
>                                                  
>
>   Date:       08/12/2009 03:48 PM                                             
>                                                  
>
>   Subject:    [jQuery] Re: html in xml tag                                    
>                                                 
>
> Thank you Michael for your reply however wrapping the data intro <!
> [CDATA[]] don't work ... i have try that before i just did not mention
> it, if anybody has other ideas or some suggestions i will appreciate
> it, i'm sure somebody has done this before i just hope he is here on
> forum :D
>
> Thanks!
>
> On Aug 12, 6:59 pm, Michael Lawson <mjlaw...@us.ibm.com> wrote:
>
>
>
> > Try wrapping your html text in a CDATA section so that the xml parser
> > doesn't strip them out
>
> > cheers
>
> > Michael Lawson
> > Development Lead, Global Solutions, ibm.com
> > Phone:  1-276-206-8393
> > E-mail:  mjlaw...@us.ibm.com
>
> > 'Whether one believes in a religion or not,
> > and whether one believes in rebirth or not,
> > there isn't anyone who doesn't appreciate kindness and compassion..'
>
> >   From:       Seth <claudiu.dan...@gmail.com>
>
> >   To:         "jQuery (English)" <jquery-en@googlegroups.com>
>
> >   Date:       08/12/2009 11:41 AM
>
> >   Subject:    [jQuery] html in xml tag
>
> > Hi guys,
>
> > I have an XML file like this
>
> > <?xml version="1.0" encoding="utf-8"?>
> > <data>
> >              <item>
> >                          <name>Lorem ipsum</name>
> >                          <description>Lorem ipsum dolor sit amet,
> > consectetur adipisicing
> > elit, sed do eiusmod tempor incididunt ut labore et dolore magna
> > aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco
> > laboris nisi ut aliquip ex ea commodo consequat.<br /></description>
> >                          <image>images/coal.jpg</image>
> >              </item>
> > </data>
> > ......................... etc
>
> > now on <description> tag i need to enter some formating elements like
> > <br> <p> <li> bold etc, if i enter html elements this line "desc = $
> > (this).find("description").text();" will strip all my html code ..
> > probably because of the .text() function at the end, my question is
> > what function to try at the end because .html() is not working like
> > this "desc = $(this).find("description").html();" is not working ..
> > basically i need to be able to read the html elements too so i can
> > display in the div that will display the info ... dose anybody know
> > some jquery function that dose that ?
>
> > Thanks!
>
> >  graycol.gif
> > < 1KViewDownload
>
> >  ecblank.gif
> > < 1KViewDownload
>
>
>
>  graycol.gif
> < 1KViewDownload
>
>  ecblank.gif
> < 1KViewDownload

Reply via email to