Click here to Skip to main content
14,937,268 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
XML
<?xml version="1.0"?>
<root>
<Products>
    <Product>
        <Id>123 1234 1237</pin>
        <slno></slno>
        <message>test message</message>
    </Product>
    <Product>
        <Id>123 1234 1238</pin>
        <slno></slno>
        <message>test message</message>
    </Product>
</Products>
Posted
Comments
DamithSL 11-May-14 1:46am
   
your xml is invalid please check

   
<Id>123 1234 1237</pin>
This line shows that you cannot use the convenient classes of the framework because that is wrong XML: the <Id> tag must be closed with </Id>, it cannot be closed with </pin>.
If it was you to create that wrong XML, fix the code for writing it. If it was produced by ThirdParty, wtf... you'll likely have to write your own code for manually parsing the file and generating the classes.
   
Comments
normalsoft 12-May-14 6:45am
   
sorry. actually my xml node Id is opened and closed correctly. <id> .... Here i manually entered.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900