Re: XML to plain text
From: Big D (a_at_a.com)
Date: 02/25/04
- Next message: C# Learner: "Re: Encoding Question"
- Previous message: Alvin Bruney [MVP]: "Re: Question about IDispose"
- In reply to: Richard T. Edwards_at_pwpsquared.net: "Re: XML to plain text"
- Next in thread: v-jetan_at_online.microsoft.com: "Re: XML to plain text"
- Reply: v-jetan_at_online.microsoft.com: "Re: XML to plain text"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 25 Feb 2004 09:54:04 -0700
Richard,
Thanks for the reply.
Yes, obviously I could do that. However, for one, I'm not confident that
"<,>" are the only characters getting parsed out. Secondly, The problem is
that even if I could do a find and replace on all the parsed characters,
this information would not exist within the <![cdata[]]> tag, so it won't be
a valid XML document. (the GetXML() funciton just places the parsed data in
between the tags without "knowing" that previously it was in cdata)
Is this a part of the schema that I need to adjust to notify it to expect
these characters? If so, how?
Thanks for the input!
-MCD
"Richard T. Edwards@pwpsquared.net" <redwar@pwpsquared.net> wrote in message
news:uPwh1B0%23DHA.2432@TK2MSFTNGP11.phx.gbl...
> Since I believe this issomething which can't get fixed in five seconds
try:
> theText =Replace(theText, "<", "<")
> theText =Replace(theText, ">", ">")
>
> "Big D" <a@a.com> wrote in message
> news:%23xn7TSz%23DHA.2212@TK2MSFTNGP10.phx.gbl...
> > I have a simple xml file that contains, in part, content that is in
HTML.
> I
> > am encompassing that content in <![cdata[]]> tags. This works fine.
> >
> > However, my application needs to output the XML file (from a strongly
> typed
> > dataset) to plain text. I am doing
> >
> > theText = myDataset.getXML()
> >
> > Which works, but it doesn't "remember" the portions that were in cdata
> tags,
> > so that content gets parsed, turning every html tag int <b>,
etc...
> >
> > Is there a simple way to output that data without parsing it, and
forcing
> > certain nodes to use the cdata tag? The getXML function accepts no
> > parameters.
> >
> > Thanks!
> >
> > MCD
> >
> >
>
>
- Next message: C# Learner: "Re: Encoding Question"
- Previous message: Alvin Bruney [MVP]: "Re: Question about IDispose"
- In reply to: Richard T. Edwards_at_pwpsquared.net: "Re: XML to plain text"
- Next in thread: v-jetan_at_online.microsoft.com: "Re: XML to plain text"
- Reply: v-jetan_at_online.microsoft.com: "Re: XML to plain text"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|