Re: XML to plain text

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Big D (a_at_a.com)
Date: 02/25/04


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, "<", "&lt;")
> theText =Replace(theText, ">", "&gt;")
>
> "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 &lt;b&gt;,
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
> >
> >
>
>



Relevant Pages

  • Problem with international (UTF-8) IPTC tags
    ... I experience the following problem with Photoshop CS2 ... If I have JPEG files with IPTC tags in UTF-8 encoding, ... Photoshop, looking in the File Info dialogue, those tags are read as ... that all non-English characters in such files are decoded ...
    (alt.graphics.photoshop)
  • Problem with international (UTF-8) IPTC tags
    ... I experience the following problem with Photoshop CS2 ... If I have JPEG files with IPTC tags in UTF-8 encoding, ... Photoshop, looking in the File Info dialogue, those tags are read as ... that all non-English characters in such files are decoded ...
    (comp.graphics.apps.photoshop)
  • Problem with international IPTC tags
    ... I experience the following problem with Photoshop CS2 ... If I have JPEG files with IPTC tags in UTF-8 encoding, ... Photoshop, looking in the File Info dialogue, those tags are read as ... that all non-English characters in such files are decoded ...
    (comp.graphics.apps.photoshop)
  • Re: Describing peoples
    ... tags to identify the characters, ... without readers getting lost, then keep 'em interested with other ... used to get trainees through at the rate of a new group every two weeks. ...
    (rec.arts.sf.composition)
  • Re: XML to plain text
    ... "" are the only characters getting parsed out. ... between the tags without "knowing" that previously it was in cdata) ... >> certain nodes to use the cdata tag? ...
    (microsoft.public.dotnet.languages.vb)