Nevron Diagram
Skip Navigation Links
Home
Forum Home
Latest 50
Unanswered
Win Prizes
All Time Leaders
Jump to CategoryExpand Jump to Category
Login 
    Welcome Guest!
 Search Forum For :  
X
 Login
Please login to submit a new post, reply and edit exiting posts, see user profiles, and access more features. If you are not a registered member, Register here.
User Id / Email:
Password:  
Forgot Password | Forgot UserName
   Home » XML in VB.Net » Xml not read properly
       
Author Reply
shahed hussain
posted 2 posts
since Jan 17, 2008 
from

Xml not read properly

  Posted on: 03 Jun 2011       
Hi all.

I have a strange problem with vb.net (vs 2008 - win xp).

I have to read a XML file and then put results to a list view.

The first file looks like this:

[code]
<results status='passed'><is-available>true</is-available><snapmirror-status><snapmirror-status-info><source-location>10.10.1.51:C_Drives</source-location><destination-location>netapp2a:C_Drives_Mirror</destination-location><last-transfer-from>10.10.1.51:C_Drives</last-transfer-from><last-transfer-type>scheduled</last-transfer-type><last-transfer-size>4977452</last-transfer-size><last-transfer-duration>105</last-transfer-duration><transfer-progress>0</transfer-progress><lag-time>81553</lag-time><mirror-timestamp>1307030401</mirror-timestamp><contents>Replica</contents><status>idle</status><state>snapmirrored</state><base-snapshot>netapp2a(0135106693)_C_Drives_Mirror.24</base-snapshot></snapmirror-status-info></snapmirror-status></results>
[/code]

I can read this without problem, everything works.

If I try to read this file:

[code]
<results status="passed"><are-vols-onlining>false</are-vols-onlining><luns><lun-info><path>/vol/CitrixLicense_Mirror/LunCitrixLicense</path><size>17093885952</size><online>true</online><mapped>false</mapped><read-only>true</read-only><staging>false</staging><share-state>none</share-state><multiprotocol-type>xen</multiprotocol-type><uuid>899954de-7d40-11e0-a1b4-00a09826cf00</uuid><serial-number>P4DOkocjlRtq</serial-number><block-size>512</block-size><is-space-reservation-enabled>true</is-space-reservation-enabled><size-used>955940864</size-used></lun-info></luns></results>
[/code]

Something goes wrong...

Simply it doesn't read each line...

I use the same code on both files, but when I read the second file, in debug mode, I can see that the first 2 lines are ok, then the reader.value has a value of "NONE". After this, it goes until the "multi protocol" and it goes until end.

So... WHY some lines are not read?

As attachment you can find my code (working = codeOK        not working = BADcode).

Thanks
http://www.y8on.com
http://www.flashgamescafe.com
http://www.oyuntshirt.com
http://www.karakalemfoto.com

       
Team Foundation Server Hosting
Dynamic PDF
ceTE software specializes in components for dynamic PDF generation and manipulation. The DynamicPDF™ product line allows you to dynamically generate PDF documents, merge PDF documents and new content to existing PDF documents from within your applications. Visit DynamicPDF here
Introducing MaxV - one click. infinite control. Hyper-V Hosting from MaximumASP.
Finally – a virtual platform that delivers next-generation Windows Server 2008 Hyper-V virtualization technology from a managed hosting partner you can truly depend on. Visit www.maximumasp.com/max for a FREE 30 day trial. Hurry offer ends soon. Climb aboard the MaxV platform and take advantage of High Availability, Intelligent Monitoring, Recurrent Backups, and Scalability – with no hassle or hidden fees. As a managed hosting partner focused solely on Microsoft technologies since 2000, MaximumASP is uniquely qualified to provide the superior support that our business is built on. Unparalleled expertise with Microsoft technologies lead to working directly with Microsoft as first to offer IIS 7 and SQL 2008 betas in a hosted environment; partnering in the Go Live Program for Hyper-V; and product co-launches built on WS 2008 with Hyper-V technology.
Nevron Chart for .NET 2010.1 Now Available
The leading .NET charting control now features PDF, Flash and Silverlight export, visualization of large datasets and more. Deliver true charting functionality to your BI, Scorecard, Presentation or Scientific apps. Download evaluation now.
ASP.NET 4 Hosting
Get 2 Months Free of ASP.NET Hosting for Only $4.95/month! Receive FREE MS SQL and MySQL Databases Including ASP.NET 4/3.5, MVC 3.0, Silverlight 4, Windows 2008/IIS 7.0 Plus FREE IIS 7 Modules. Host UNLIMITED ASP.NET Web Sites - Click Here!

 Hosted by MaximumASP  |  Found a broken link?  |  Contact Us  |  Terms & conditions  |  Privacy Policy  |  Site Map  |  Advertise with us
Current Version: 5.2011.3.12
 © 1999 - 2012  Mindcracker LLC. All Rights Reserved