Advertisement
Guest User

Untitled

a guest
Oct 31st, 2014
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. <BankName BankName="jinesh" TemplateModel="sam">
  2. <ChqBasics>
  3. <ChqL>30</ChqL>
  4. <ChqW>50</ChqW>
  5. <ChqImgPath>hai</ChqImgPath>
  6. </ChqBasics>
  7. <XandYPosition>
  8. <column Name="ChqDate" X="10" Y="10" />
  9. <column Name="CPayAgainst" X="10" Y="10" />
  10. <column Name="ChqAmtDgt" X="10" Y="10" />
  11. <column Name="ChqAmtWrds" X="10" Y="10" />
  12. </XandYPosition>
  13.  
  14. public static void updatenode(string bankname, string templatemodel,string field,string x,string y)
  15. {
  16. XDocument doc = XDocument.Load("newtest.xml");
  17. var updatenode = doc
  18. .Descendants("BankName")
  19. .Where(item => item.Attribute("BankName").Value == bankname && item.Attribute("TemplateModel").Value == templatemodel)
  20. .Select(XandYPosition => XandYPosition.Descendants("XandYPosition").Descendants());
  21. }
  22.  
  23. BasicClass.updatenode(comboBox1.Text, comboBox2.Text, "ChqDate", "1000", "2000");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement