まさるblog

越後在住子持ちプログラマー奮闘記 - Author:まさる(高野 将、TAKANO Sho)

目次

Blog 利用状況

ニュース

著書

2010/7発売


Web掲載記事

@IT

.NET開発を始めるVB6プログラマーが知るべき9のこと

CodeZine

実例で学ぶASP.NET Webフォーム業務アプリケーション開発のポイント

第1回 3層データバインドを正しく活用しよう(前編)

ブログパーツ


書庫

日記カテゴリ

コミュニティ

XElementをXmlNodeに変換

ちょっと必要になったので。

#コードはXMLリテラルでXElementが簡単に作れるVBで。

 

その1:XmlDocument.LoadXmlメソッドにXElementをToStringして食わせる

Dim xelm = _
  <parent>
    <child>
      ほげほげ
    </child>
  </parent>

Dim xmlDoc As New XmlDocument()
xmlDoc.LoadXml(xelm.ToString())

その2:XmlDocument.LoadメソッドにXElement.CreateReaderで作成したXmlReaderを食わせる

Dim xelm = _
  <parent>
    <child>
      ほげほげ
    </child>
  </parent>

Using reader As XmlReader = xelm.CreateReader()
  Dim xmlDoc As New XmlDocument()
  xmlDoc.Load(reader)
End Using

 

なんか他にいい方法があったら教えてください。

投稿日時 : 2009年12月11日 22:11

Feedback

# A motivating discussion is worth comment. I believe that you should write more on this subject matter, it might not be a taboo subject but generally folks don't discuss these issues. To the next! Cheers!! 2019/05/03 12:28 A motivating discussion is worth comment. I believ

A motivating discussion is worth comment. I believe that you should write more on this subject matter,
it might not be a taboo subject but generally folks don't
discuss these issues. To the next! Cheers!!

# Superb post however I was wanting to know if you could write a litte more on this subject? I'd be very grateful if you could elaborate a little bit more. Bless you! 2019/05/06 8:59 Superb post however I was wanting to know if you c

Superb post however I was wanting to know if you could write a litte more on this subject?
I'd be very grateful if you could elaborate a little bit more.
Bless you!

# Heya i'm for the primary time here. I found this board and I find It really useful & it helped me out much. I'm hoping to give one thing back and aid others like you aided me. 2019/05/12 18:34 Heya i'm for the primary time here. I found this

Heya i'm for the primary time here. I found this board and I find It really useful & it helped me
out much. I'm hoping to give one thing back and aid others like you aided me.

# I read this paragraph completely about the difference of latest and previous technologies, it's amazing article. 2019/06/06 18:54 I read this paragraph completely about the differe

I read this paragraph completely about the difference of latest and previous technologies, it's
amazing article.

# This page truly has all of the information and facts I wanted about this subject and didn't know who to ask. 2019/09/03 17:49 This page truly has all of the information and fac

This page truly has all of the information and facts I wanted about this subject and
didn't know who to ask.

# This page truly has all of the information and facts I wanted about this subject and didn't know who to ask. 2019/09/03 17:50 This page truly has all of the information and fac

This page truly has all of the information and facts I wanted about this subject and
didn't know who to ask.

# This page truly has all of the information and facts I wanted about this subject and didn't know who to ask. 2019/09/03 17:51 This page truly has all of the information and fac

This page truly has all of the information and facts I wanted about this subject and
didn't know who to ask.

# This page truly has all of the information and facts I wanted about this subject and didn't know who to ask. 2019/09/03 17:52 This page truly has all of the information and fac

This page truly has all of the information and facts I wanted about this subject and
didn't know who to ask.

# Spot on with this write-up, I honestly think this amazing site needs far more attention. I'll probably be back again to see more, thanks for the info! 2019/09/05 3:01 Spot on with this write-up, I honestly think this

Spot on with this write-up, I honestly think this amazing site needs far
more attention. I'll probably be back again to see more, thanks for
the info!

# Illikebuisse byhjf 2021/07/04 16:18 pharmaceptica

erectile improvement https://pharmaceptica.com/

# Illikebuisse uzqgf 2021/07/04 17:17 www.pharmaceptica.com

tadalafil alcohol https://www.pharmaceptica.com/

# re: XElement?XmlNode??? 2021/07/17 7:15 hydroxy cloroquine

is chloroquine phosphate over the counter https://chloroquineorigin.com/# hydroxychlorequine

# re: XElement?XmlNode??? 2021/07/26 17:41 hydrochloraquine

drug chloroquine https://chloroquineorigin.com/# dosage for hydroxychloroquine

# hjwqutzibzgb 2021/11/25 10:11 cegoklaw

https://chloroquinemil.com/ chloroquine purchase

# doxycycline tetracycline https://doxycyline1st.com/
doxycycline 100mg online 2022/02/26 8:24 Jusidkid

doxycycline tetracycline https://doxycyline1st.com/
doxycycline 100mg online

# I just couldn't go away your website before suggesting that I really loved the standard info an individual provide for your visitors? Is gonna be again incessantly in order to inspect new posts 2022/03/23 2:24 I just couldn't go away your website before sugges

I just couldn't go away your website before suggesting
that I really loved the standard info an individual provide
for your visitors? Is gonna be again incessantly in order to inspect new posts

# I just couldn't go away your website before suggesting that I really loved the standard info an individual provide for your visitors? Is gonna be again incessantly in order to inspect new posts 2022/03/23 2:25 I just couldn't go away your website before sugges

I just couldn't go away your website before suggesting
that I really loved the standard info an individual provide
for your visitors? Is gonna be again incessantly in order to inspect new posts

# I just couldn't go away your website before suggesting that I really loved the standard info an individual provide for your visitors? Is gonna be again incessantly in order to inspect new posts 2022/03/23 2:26 I just couldn't go away your website before sugges

I just couldn't go away your website before suggesting
that I really loved the standard info an individual provide
for your visitors? Is gonna be again incessantly in order to inspect new posts

# I just couldn't go away your website before suggesting that I really loved the standard info an individual provide for your visitors? Is gonna be again incessantly in order to inspect new posts 2022/03/23 2:27 I just couldn't go away your website before sugges

I just couldn't go away your website before suggesting
that I really loved the standard info an individual provide
for your visitors? Is gonna be again incessantly in order to inspect new posts

# where to buy finasteride https://finasteridemen.com/
2022/05/11 23:50 Finasteride

where to buy finasteride https://finasteridemen.com/

# comfortis for dogs without vet prescription: https://medrxfast.com/ 2022/08/07 8:49 MedsRxFast

comfortis for dogs without vet prescription: https://medrxfast.com/

# ed treatments https://ed-pills.xyz/
best ed medications 2022/09/16 2:35 EdPills

ed treatments https://ed-pills.xyz/
best ed medications

# What's up i am kavin, its my first occasion to commenting anyplace, when i read this piece of writing i thought i could also make comment due to this sensible article. 2022/11/28 0:43 What's up i am kavin, its my first occasion to com

What's up i am kavin, its my first occasion to commenting anyplace,
when i read this piece of writing i thought i could also make comment due to this sensible article.

# generic aralen 500mg 2022/12/27 8:00 MorrisReaks

hcq tablets http://www.hydroxychloroquinex.com/

# ed remedies https://edpills.science/
top rated ed pills 2023/01/07 14:00 Edpills

ed remedies https://edpills.science/
top rated ed pills

# Read now. Prescription Drug Information, Interactions & Side.
https://edonlinefast.com
Read information now. Get warning information here. 2023/02/17 11:08 EdOnline

Read now. Prescription Drug Information, Interactions & Side.
https://edonlinefast.com
Read information now. Get warning information here.

# Prescription Drug Information, Interactions & Side. Get information now.
https://canadianfast.com/
Cautions. What side effects can this medication cause? 2023/02/20 11:52 CanadaBest

Prescription Drug Information, Interactions & Side. Get information now.
https://canadianfast.com/
Cautions. What side effects can this medication cause?

# doors2.txt;1 2023/03/14 14:45 FYIKWbLrXhpKW

doors2.txt;1

# pet meds without vet prescription canada - https://cheapdr.top/# 2023/04/03 9:35 Dikolipo

pet meds without vet prescription canada - https://cheapdr.top/#

# prednisone for dogs https://prednisonepills.pro/# - fast shipping prednisone 2023/06/05 1:36 Prednisone

prednisone for dogs https://prednisonepills.pro/# - fast shipping prednisone

# Cytotec 200mcg price https://cytotec.ink/# - buy cytotec pills online cheap 2023/07/26 20:30 PillsFree

Cytotec 200mcg price https://cytotec.ink/# - buy cytotec pills online cheap

# buy doxycycline online https://doxycycline.forum/ buy cheap doxycycline 2023/11/25 13:18 Doxycycline

buy doxycycline online https://doxycycline.forum/ buy cheap doxycycline

# generic ed pills https://edpills.tech/# buy ed pills online 2023/12/23 8:15 EdPills

generic ed pills https://edpills.tech/# buy ed pills online

# eva elfie filmleri https://evaelfie.pro/ eva elfie 2024/03/03 10:27 EvaElfia

eva elfie filmleri https://evaelfie.pro/ eva elfie

# sweetie fox https://sweetiefox.pro/ - ph sweetie fox
2024/03/06 22:11 SwitieFox

sweetie fox https://sweetiefox.pro/ - ph sweetie fox

# Misoprostol 200 mg buy online https://cytotec.club/ buy cytotec online fast delivery 2024/04/28 2:07 Cytotec

Misoprostol 200 mg buy online https://cytotec.club/ buy cytotec online fast delivery

# Clava is the best 2025/05/07 22:44 Danielthash

Finest news for all us

タイトル
名前
Url
コメント