Click here to Skip to main content
11,480,031 members (65,670 online)
   

XML / XSL

 
AnswerRe: Layout question Pin
Zaf Khan29-Nov-12 9:27
memberZaf Khan29-Nov-12 9:27 
QuestionHelp with XSLT Pin
MissMac18-Sep-12 8:33
memberMissMac18-Sep-12 8:33 
AnswerRe: Help with XSLT Pin
MissMac18-Sep-12 8:57
memberMissMac18-Sep-12 8:57 
QuestionXML , XSL and JavaScript [modified] Pin
rajats8716-Sep-12 21:57
memberrajats8716-Sep-12 21:57 
AnswerRe: XML , XSL and JavaScript Pin
h4ckjr17-Sep-12 16:38
memberh4ckjr17-Sep-12 16:38 
GeneralRe: XML , XSL and JavaScript Pin
rajats8718-Sep-12 3:07
memberrajats8718-Sep-12 3:07 
QuestionXSL Output Pin
Sta_Horse12-Sep-12 21:21
memberSta_Horse12-Sep-12 21:21 
QuestionHow to know last autoincrement id in xml file Pin
Nareshmnt10-Aug-12 22:48
memberNareshmnt10-Aug-12 22:48 
Hi,
below my xml file
- <CateringOrders>
- <orders>
  <userid>1</userid> 
  <orderid>DAK081012093349</orderid> 
  <Menu>Appetizers</Menu> 
  <MenuType>Veg</MenuType> 
  <Region>South-Indian</Region> 
  <Items>Vankaya Bajji</Items> 
  <Tray>Half Tray</Tray> 
  <Qty>12</Qty> 
  </orders>
- <orders>
  <userid>2</userid> 
  <orderid>DAK081012093811</orderid> 
  <Menu>Appetizers</Menu> 
  <MenuType>Veg</MenuType> 
  <Region>South-Indian</Region> 
  <Items>Aloo Vada</Items> 
  <Tray>Half Tray</Tray> 
  <Qty>18</Qty> 
  </orders>
- <orders>
  <userid>3</userid> 
  <orderid>DAK081012093811</orderid> 
  <Menu>Appetizers</Menu> 
  <MenuType>Veg</MenuType> 
  <Region>South-Indian</Region> 
  <Items>Vankaya Bajji</Items> 
  <Tray>Half Tray</Tray> 
  <Qty>20</Qty> 
  </orders>
  </CateringOrders>
below auto increment code
Dim xmldoc As New XmlDocument()
           Dim Str_XmlFile As String = ""
           Str_XmlFile = Server.MapPath("~/CatOrders/") & "CateringOrder.xml"
 
           If Not File.Exists(Str_XmlFile) Then
               Dim StrWriter As New XmlTextWriter(Str_XmlFile, System.Text.Encoding.UTF8)
               StrWriter.WriteStartDocument(True)
               StrWriter.WriteStartElement("CateringOrders")
               StrWriter.WriteEndElement()
               StrWriter.Close()
 
           End If
           xmldoc.Load(Str_XmlFile)
 
           Dim parentelement As XmlElement = xmldoc.CreateElement("orders")
           Dim nodes As XmlNodeList = xmldoc.SelectNodes("//orders/userid")
 
           Dim nNodeID As Integer = nodes.Count
           nNodeID += 1
           Dim userid As XmlElement = xmldoc.CreateElement("userid")
           userid.InnerText = nNodeID
           Dim orderid As XmlElement = xmldoc.CreateElement("orderid")
           orderid.InnerText = Session("orderid")



please let me know how to get last unique id
AnswerRe: How to know last autoincrement id in xml file Pin
Christopher Drake12-Sep-12 12:17
memberChristopher Drake12-Sep-12 12:17 
QuestionXSD.EXE array, would like list Pin
kalkwarf24-Jul-12 7:30
memberkalkwarf24-Jul-12 7:30 
AnswerRe: XSD.EXE array, would like list Pin
Bernhard Hiller24-Jul-12 22:33
memberBernhard Hiller24-Jul-12 22:33 
GeneralRe: XSD.EXE array, would like list Pin
kalkwarf25-Jul-12 6:44
memberkalkwarf25-Jul-12 6:44 
GeneralRe: XSD.EXE array, would like list Pin
jschell25-Jul-12 8:14
memberjschell25-Jul-12 8:14 
GeneralRe: XSD.EXE array, would like list Pin
Bernhard Hiller25-Jul-12 21:41
memberBernhard Hiller25-Jul-12 21:41 
AnswerRe: XSD.EXE array, would like list Pin
jschell25-Jul-12 8:21
memberjschell25-Jul-12 8:21 
AnswerRe: XSD.EXE array, would like list Pin
jinzai17-Jul-14 14:26
memberjinzai17-Jul-14 14:26 
GeneralRe: XSD.EXE array, would like list Pin
kalkwarf18-Jul-14 5:42
memberkalkwarf18-Jul-14 5:42 
GeneralXSLT to transform one XML file to another and display as HTML Pin
GStar99921-Jul-12 2:50
memberGStar99921-Jul-12 2:50 
Generalbest current book with strong coverage of XSLT ? Pin
BillWoodruff5-Jul-12 15:16
memberBillWoodruff5-Jul-12 15:16 
AnswerMessage Removed Pin
LiveFreeCodeHard20-Jul-12 12:29
memberLiveFreeCodeHard20-Jul-12 12:29 
GeneralRe: best current book with strong coverage of XSLT ? Pin
BillWoodruff20-Jul-12 16:18
memberBillWoodruff20-Jul-12 16:18 
Questionregasxml error Pin
Member 913688818-Jun-12 7:51
groupMember 913688818-Jun-12 7:51 
QuestionXml Schema [modified] Pin
Vijjuuu.14-Jun-12 8:02
memberVijjuuu.14-Jun-12 8:02 
AnswerRe: Xml Schema Pin
Sandeep Mewara14-Jun-12 11:49
mvpSandeep Mewara14-Jun-12 11:49 
GeneralRe: Xml Schema Pin
Vijjuuu.14-Jun-12 19:49
memberVijjuuu.14-Jun-12 19:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web04 | 2.8.150520.1 | Last Updated 19 May 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid