Jump to content


Photo

Extrair Dado Do Xml


  • Faça o login para participar
9 replies to this topic

#1 ramweb

ramweb

    Novato no fórum

  • Usuários
  • 6 posts
  • Sexo:Não informado

Posted 03/08/2010, 09:59

Salve pessoal. Estou desenvolvendo um leitor RSS para um colocar em um site.
O leitor está funcionando beleza exceto por um detalhe que não sei mesmo como resolver. Aliás, pesquisei mas nem sabia como procurar, pois o problema está no arquivo XML gerado pelo blog que tenho que acessar.
O arquivo RSS disponibilizado pelo blog apresenta a seguinte tag para acessar a quantidade de comentários:
<slash:comments> 15 </slash:comments>

Estrutura do XML
<raiz> 
 <item>
 <description></description>
 <link></link>
 <author></author>
 <comments></comments>
 <guid></guid>
 <pubDate></pubDate>
 <category></category>
 <dc:publisher></dc:publisher>
 <pingback:server></pingback:server>
 <pingback:target></pingback:target>
 <slash:comments></slash:comments>
 <trackback:ping></trackback:ping>
 <wfw:comment></wfw:comment>
 <wfw:commentRss></wfw:commentRss>
 </item>
</raiz>

O problema é que quando tento capturar esse valor ele me apresenta a seguinte mensagem de erro:

Gerenciador de Espaço para Nome ou XsltContext exigido. Esta consulta tem prefixo, variável ou função definida pelo usuário
Detalhes da Exceção: System.Xml.XPath.XPathException: Gerenciador de Espaço para Nome ou XsltContext exigido. Esta consulta tem prefixo, variável ou função definida pelo usuário.


defalt.aspx.cs
....
//criação da tabela que conterá os dados
 DataTable tabela = new DataTable();
tabela.Columns.Add("titulo");
tabela.Columns.Add("comentario");
....
DataRow linha = tabela.NewRow();
linha["titulo"] = node.SelectSingleNode("title").InnerText.ToString();
linha["comentario"] = node.SelectSingleNode("slash:comments").InnerText.ToString();
tabela.Rows.Add(linha);

Gostaria de contar com a ajuda de vocês para recuperar esse valor que está na tag <slash:comments> Desde já agradeço.

#2 MACUL

MACUL

    Doutor

  • Usuários
  • 770 posts
  • Sexo:Masculino
  • Localidade:SP

Posted 04/08/2010, 19:52

http://forum.wmonlin...__gopid__891934

Salve pessoal. Estou desenvolvendo um leitor RSS para um colocar em um site.
O leitor está funcionando beleza exceto por um detalhe que não sei mesmo como resolver. Aliás, pesquisei mas nem sabia como procurar, pois o problema está no arquivo XML gerado pelo blog que tenho que acessar.
O arquivo RSS disponibilizado pelo blog apresenta a seguinte tag para acessar a quantidade de comentários:
<slash:comments> 15 </slash:comments>

Estrutura do XML

<raiz> 
 <item>
 <description></description>
 <link></link>
 <author></author>
 <comments></comments>
 <guid></guid>
 <pubDate></pubDate>
 <category></category>
 <dc:publisher></dc:publisher>
 <pingback:server></pingback:server>
 <pingback:target></pingback:target>
 <slash:comments></slash:comments>
 <trackback:ping></trackback:ping>
 <wfw:comment></wfw:comment>
 <wfw:commentRss></wfw:commentRss>
 </item>
</raiz>

O problema é que quando tento capturar esse valor ele me apresenta a seguinte mensagem de erro:

Gerenciador de Espaço para Nome ou XsltContext exigido. Esta consulta tem prefixo, variável ou função definida pelo usuário
Detalhes da Exceção: System.Xml.XPath.XPathException: Gerenciador de Espaço para Nome ou XsltContext exigido. Esta consulta tem prefixo, variável ou função definida pelo usuário.


defalt.aspx.cs
....
//criação da tabela que conterá os dados
 DataTable tabela = new DataTable();
tabela.Columns.Add("titulo");
tabela.Columns.Add("comentario");
....
DataRow linha = tabela.NewRow();
linha["titulo"] = node.SelectSingleNode("title").InnerText.ToString();
linha["comentario"] = node.SelectSingleNode("slash:comments").InnerText.ToString();
tabela.Rows.Add(linha);

Gostaria de contar com a ajuda de vocês para recuperar esse valor que está na tag <slash:comments> Desde já agradeço.


*************** M ** A ** C ** U ** L ***************

*************************************************

#3 HaroNism

HaroNism

    Super Veterano

  • Usuários
  • 15385 posts
  • Sexo:Masculino
  • Localidade:San Miguel de Tucuman

Posted 21/09/2017, 03:53

Levitra Preise Schweiz cheap cialis Venta Cialis Por Internet Prix Du Kamagra Citalapram 10mg For Sale cialis Mirapex
Concepto De Propecia viagra cialis Buy Viagra With Out Prescription
Viagra Per Ragazzi Ratiopharm Viagra 2013 Can I Purchase Fedex Provera Delivered On Saturday
How Much Is Zithromax <a href=http://cialtobuy.com>cheap cialis</a> Priligy 30mg Prix
Benazepril 20 generic cialis Ca Based Viagra Supply Online Pharmacy Cost Levitra Viagra Via American Express Card cialis Buy Kamagra Online Ireland

#4 HaroNism

HaroNism

    Super Veterano

  • Usuários
  • 15385 posts
  • Sexo:Masculino
  • Localidade:San Miguel de Tucuman

Posted 05/10/2017, 21:33

Boutique Cialis viagra Zithromax Excipients
Secure Tab Stock Order Cialis Online levitra canada Acheter Clomid Internet Metformin Fast Delivery Women'S Viagra For Sale
Cialis Tratamiento Priligy 60 Mg Kaufen viagra Marca Propecia Finasteride Buy Overnight Direct Zentel Tab Amex Fedex C.O.D. Cialis 5mg No Prescription
Zithromax Treatment For Gonorrhea cialis price Cialis Pas Cher En Ligne Macrobid Niftran Bacterial Infections Commander Viagra Internet

#5 HaroNism

HaroNism

    Super Veterano

  • Usuários
  • 15385 posts
  • Sexo:Masculino
  • Localidade:San Miguel de Tucuman

Posted 13/10/2017, 08:14

Kamagra Bello 100mg Amoxicillin Get High viagra Normal Dosage For Keflex Dapoxetine En Australie

#6 HaroNism

HaroNism

    Super Veterano

  • Usuários
  • 15385 posts
  • Sexo:Masculino
  • Localidade:San Miguel de Tucuman

Posted 30/10/2017, 20:06

Cialis 5 Mg Comprar Purchasing Discount Levaquin Best Website In Internet Cod Sildenafil 100mg For Sale viagra Where To Buy Glipizide No Prescription Cialis Carrefour Cheap Flagyl Keflex
Viagra Quebec Canada Pharmacology Of Cephalexin Purchase 60 Mg Orlistat buy levitra from canada no rx Potenzmittel Viagra Und Cialis
Buy Buspirone Online U.K Medical Information Acheter Propecia Sans Ordonnance generic cialis Acheter Du Amoxicillin Moins Cher Medicament Keflex Effect On Staphylococcus Aureus Propecia Side Effects
Viagra Purchase Australia Cheap Progesterone For Sale Mastercard brand levitra 20 mg online india Viagra Mit 17 Amoxicillin Dose For Acne Propecia Winnipeg

#7 LarPhozyHah

LarPhozyHah

    Super Veterano

  • Usuários
  • 14515 posts
  • Sexo:Masculino
  • Localidade:San Miguel de Tucuman

Posted 05/11/2017, 09:30

Viagra Medicitalia viagra Propecia Usa Merck
Comprar Priligy Por Internet Levitra Alcool Comprare Cialis Online Forum viagra Protonix 20 Mg Buy Canadian Pharcharmy Online Reviews
Priligy Official Site Recomended Amoxicillin Doses For Sinus Infections Cialis Sans Ordonnance France viagra prescription Viagra Purchase Without Perscription Flagyl Without Insurance
Leponex Clozapine 100 Mg Kamagra Oral Jelly 5g Cialis Precio Lima viagra Viagra Duree Viagra Sale In Canada Zithromax Elixir

#8 HaroNism

HaroNism

    Super Veterano

  • Usuários
  • 15385 posts
  • Sexo:Masculino
  • Localidade:San Miguel de Tucuman

Posted 21/11/2017, 20:02

Buy Amoxicillin Spain cialis Site Serieux Pour Achat Cialis
Nexium Online Canada No Rx Macrobid Where To Order Visa Accepted Arkansas viagra Zithromax Otc O Trovare Kamagra Economici
Cephalexin Mod online pharmacy Viagra To Purchase Online Canadian Pharmacy Cialis 5 Mg Canadian Drug Without Rx
Priligy Johnson And Johnson Lasix Sale viagra Cialis Autentico Comprar
Prix Nolvadex Viagra Remboursement Prostate generic levitra 40 mg no prescription Dapoxetina 30 Online Medication For Gonorrhea

#9 Miguceamma

Miguceamma

    MiguPenjisse

  • Usuários
  • 13201 posts

Posted 25/11/2017, 23:57

Contre Indication Cialis 20 Mg cialis Antibiotics Used For Gum Infections Amoxicillin Levaquin Order Tablets
Amoxicillin Cell viagra cialis Macrobid Best Website Zithromax 1 Gram Oral Packet

#10 JeffMalm

JeffMalm

    Super Veterano

  • Usuários
  • 12254 posts
  • Sexo:Feminino
  • Localidade:Mount Carey

Posted 11/02/2023, 16:27

tamoxifen buy online The endometrial thickness was significantly better in the letrozole group
If You Are Still Feeling Confused About How To Handle Your Parts And How A Lot Of Which Types Of Food You Should Eat, A Nutritionist Can Help A Nutritionist Will Give You Data Specific To Your Physique And Your Dietary Wants Nutritionists Are Additionally Great For Telling You What Meals You what nutrient is used to form ketones Melissa Mccarthy Weight Loss Should Absolutely Reduce Out All Collectively And Where You Might Have Room To Cheat A Little For Favorites Once In A While clomid for men The sparse arrows shot from the city were all barricaded by the Spartan knights with huge shields, Seeing lower blood pressure study nyt that the events of the Duchy of Ale had been decided, the worried Fatty decided to return to the City of Oracle
Monitor Closely 1 loprazolam and tramadol both increase sedation clomiphene men As used herein, monosaccharide means a polyhydroxy aldehyde or ketone having the empirical formula CH O вâ⢠where n is 3, 4, 5, 6 or 7
When are you going to join the club cialis 40 mg
buy cialis daily online The researchers also assessed the long term benefit of endocrine therapy in patients with low genomic risk n 305 and those with high genomic risk n 158




0 user(s) are reading this topic

0 membro(s), 0 visitante(s) e 0 membros anônimo(s)

IPB Skin By Virteq