Microsoft MVP성태의 닷넷 이야기
VS.NET IDE : 32. Add-in : Paste XML as serializable type [링크 복사], [링크+제목 복사],
조회: 12364
글쓴 사람
정성태 (techsharer at outlook.com)
홈페이지
첨부 파일
 


VS.NET Add-in : Paste XML as serializable type


오... 재미있는 툴이네요. 저를 포함해서, 이런 툴이 있다는 사실을 아는 사람들이 거의 없는 모양입니다. 이번 MIX07 에서 관련해서 소개가 되었다는 데 다들 신선했나 봅니다. ^^

다음의 토픽들에서 이에 대해 자세히 설명해 주고 있습니다.

Paste XML as serializable type
; http://bloggingabout.net/blogs/dennis/archive/2007/05/05/paste-xml-as-serializable-type.aspx

Paste XML as serializable type
; http://blogs.msdn.com/mwinkle/archive/2007/05/14/paste-xml-as-serializable-type.aspx

간단하게 풀어보면. 다음과 같은 XML 내용을 클립 보드로 복사한 경우,

<training>
  <name>WCF</name>
  <location>MIC</location>
</training>

VS.NET 2005/Orcas 에서는 다음과 같은 Edit / Paste XML as Serializable Type 메뉴가 생깁니다.

paste_as_serialize_image_thumb.png

선택하면? ^^

다음과 같은 코드가 자동 생성됩니다.

[System.Xml.Serialization.XmlRootAttribute(Namespace = "", ElementName = "training")]
public class TrainingClass
{
  private string nameField;
  private string locationField;
 
  [System.Xml.Serialization.XmlElementAttribute(Namespace = "", ElementName = "name")]
  public virtual string Name
  {
    get { return this.nameField; }
    set  {  this.nameField = value;  }
  }
 
  [System.Xml.Serialization.XmlElementAttribute(Namespace = "", ElementName = "location")]
  public virtual string Location
  {
    get { return this.locationField;}
    set { this.locationField = value;}
  }  
}

오... 훌륭하지요. ^^

의외로, 이 add-in 툴은 현재 "BizTalk Services SDK" 에 포함되어 있습니다. 다음의 경로에서 다운로드 받을 수 있습니다.

BizTalk Labs - BizTalk Services SDK
; http://labs.biztalk.net/downloads.aspx

하지만, 사용자들의 요구 사항으로 인해 조만간 PowerTools 에서 보게 될 수 있을 것 같습니다. ^^



[이 토픽에 대해서 여러분들과 의견을 공유하고 싶습니다. 틀리거나 미흡한 부분 또는 의문 사항이 있으시면 언제든 댓글 남겨주십시오.]







[최초 등록일: ]
[최종 수정일: 5/16/2007]


비밀번호

댓글 작성자
 




... 31  32  33  34  35  36  37  38  39  40  [41]  42  43  44  45  ...
NoWriterDateCnt.TitleFile(s)
160정성태4/13/200611714MS 인증서버 : 인증서 유효 기간 기본값 변경
157정성태4/13/200611196Converting a managed PDB into a XML file
158정성태4/13/200610535    답변글 [추가]: A SymWriter sample is coming...
156정성태4/13/200611554Method Call Interception (MCI) in C++
155정성태4/13/200611069Web Project Conversion Wizard
154정성태12/21/200511785Interprocess Communication Using the Running Object Table (ROT)파일 다운로드1
153정성태4/13/200611380Assembly loading failure is expensive [1]
152정성태4/13/200611807ASCX 컨트롤을 커스텀 컨트롤로 사용하는 방법.
151정성태4/13/200610720TechNet 세미나 목록
150정성태4/13/200610819SCDL Tool [2]
149정성태4/13/200610898Disk (based) Output Cache
147정성태4/13/200610755CLR Profiler for the .NET Framework 2.0
146정성태4/13/200611712Scriptomatic Version 2.0 by the Microsoft Scripting Guys
145정성태4/13/200611223Windows Server 2003 R2 [2]
144정성태4/13/200611687WTL(Windows Template Library) 7.5
143정성태4/13/200611941.NET 1.1 에서 WebService Client 의 KeepAlive = false; 설정
142정성태4/13/200611135Virtual Server 2005 R2 (x86, x64) EE 180-day Evaluation [2]
141정성태4/13/200611772.NET 표준개발 가이드와 Microsoft.Framework 공개
140정성태4/13/200610260PAINT.NET
139정성태11/30/20051126112월 세미나 행사
137정성태11/17/200510696WSE 3.0 정식 버전
162정성태4/13/200611339    답변글 [추가]: Web Service Security Guide
136정성태11/17/200510977Creating an Outlook My.Blogs Managed Code Add-in
138정성태11/24/200510426    답변글 Ceating an Outlook Business Contact Assistant Add-in with Visual Studio Tools for Office
135정성태11/16/200510757What's port 445 used for in Windows 2000/XP?파일 다운로드1
134정성태11/15/200510719Microsoft SQL Server Management Studio Express - Community Technical Preview (CTP) November 2005 [1]
... 31  32  33  34  35  36  37  38  39  40  [41]  42  43  44  45  ...