XML Editor "Bug"

This isn't a Winforms specific bug, however I'm not exactly sure where to post VS.NET related bugs.  The XML editor provided in VS.NET doesn't properly 'ignore' the CDATA tag.

<tag>
   <![CDATA[it shouldn't matter what I put here <><dsflkj><D<<>><<<]]>
</tag>

Putting that in the editor and trying to view it, or even reformat the document doesn't work the way it should in my mind.  Let me know if I'm in the wrong on this.


Answer this question

XML Editor "Bug"

  • MarkGrant

    Good that means I only have to wait for a future release ;).  That bug database should really be made *ahem* public so things like this can be resolved at our own expense, but anyways, like that is ever going to happen.  Thanks for looking into that for me.
  • Saptagiri

    Just the standard (I assume) XML editor.  Create a .xml file and open it up.  Switch <b>out of</b> of design view into "XML" view.  Then put the good (but bad) XML in the file and try to format the document (CTRL K + D or Edit/Advanced/Format Document).

    On one case I had the design view complain. (I can't seem to remember what I had to produce the error)

    Another issue is the autocomplete within the CDATA tag.  If I start to type a tag, when I close the begin tag it auto puts in the end tag.  It should behave similar to that of a comment tag.

    I hope this clears that up.

  • bertcord

    --ignore: accidental duplicate
  • snymanr

    I just searched our bug database and this is a known issue.  The VS Shell team owns the XML editor (although it uses the Windows Forms DataGrid control).  They will look into this bug in a future release.

     - mike

  • Federico_Star

    How did you get to the "XML Editor" in question   Is it the .resx editor

    thanks
     - mike

  • XML Editor "Bug"