CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2005
    Posts
    200

    Question How to put < > brackets inside an XML element value?

    If I have a <file> </file> element in an XML file and I want to insert a filename of the form PED<yyMMdd>232, how do I insert the < and > brackets as an element value inside the <file> tag?

    I use JCreator to edit the xml file and it treats <yyMMdd> as a seperate element instead of being part of the filename.

  2. #2
    Join Date
    May 2002
    Posts
    10,943

    Re: How to put < > brackets inside an XML element value?

    Have you tried the HTML entities ( &lt; or &gt; )? Have you tried using CDATA?
    Last edited by PeejAvery; March 27th, 2008 at 10:06 AM.
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured