Click here to Skip to main content
16,016,535 members
Home / Discussions / XML / XSL
   

XML / XSL

 
AnswerRe: Layout question Pin
Zaf Khan29-Nov-12 8:27
Zaf Khan29-Nov-12 8:27 
QuestionHelp with XSLT Pin
MissMac18-Sep-12 7:33
MissMac18-Sep-12 7:33 
AnswerRe: Help with XSLT Pin
MissMac18-Sep-12 7:57
MissMac18-Sep-12 7:57 
QuestionXML , XSL and JavaScript Pin
rajats8716-Sep-12 20:57
rajats8716-Sep-12 20:57 
AnswerRe: XML , XSL and JavaScript Pin
h4ckjr17-Sep-12 15:38
h4ckjr17-Sep-12 15:38 
GeneralRe: XML , XSL and JavaScript Pin
rajats8718-Sep-12 2:07
rajats8718-Sep-12 2:07 
QuestionXSL Output Pin
Sta_Horse12-Sep-12 20:21
Sta_Horse12-Sep-12 20:21 
QuestionHow to know last autoincrement id in xml file Pin
Nareshmnt10-Aug-12 21:48
Nareshmnt10-Aug-12 21:48 
Hi,
below my xml file
XML
- <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
VB
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 11:17
Christopher Drake12-Sep-12 11:17 
QuestionXSD.EXE array, would like list Pin
kalkwarf24-Jul-12 6:30
kalkwarf24-Jul-12 6:30 
AnswerRe: XSD.EXE array, would like list Pin
Bernhard Hiller24-Jul-12 21:33
Bernhard Hiller24-Jul-12 21:33 
GeneralRe: XSD.EXE array, would like list Pin
kalkwarf25-Jul-12 5:44
kalkwarf25-Jul-12 5:44 
GeneralRe: XSD.EXE array, would like list Pin
jschell25-Jul-12 7:14
jschell25-Jul-12 7:14 
GeneralRe: XSD.EXE array, would like list Pin
Bernhard Hiller25-Jul-12 20:41
Bernhard Hiller25-Jul-12 20:41 
AnswerRe: XSD.EXE array, would like list Pin
jschell25-Jul-12 7:21
jschell25-Jul-12 7:21 
AnswerRe: XSD.EXE array, would like list Pin
jinzai17-Jul-14 13:26
jinzai17-Jul-14 13:26 
GeneralRe: XSD.EXE array, would like list Pin
kalkwarf18-Jul-14 4:42
kalkwarf18-Jul-14 4:42 
GeneralXSLT to transform one XML file to another and display as HTML Pin
GStar99921-Jul-12 1:50
GStar99921-Jul-12 1:50 
Generalbest current book with strong coverage of XSLT ? Pin
BillWoodruff5-Jul-12 14:16
professionalBillWoodruff5-Jul-12 14:16 
GeneralRe: best current book with strong coverage of XSLT ? Pin
BillWoodruff20-Jul-12 15:18
professionalBillWoodruff20-Jul-12 15:18 
Questionregasxml error Pin
Member 913688818-Jun-12 6:51
Member 913688818-Jun-12 6:51 
QuestionXml Schema Pin
Vijjuuu.14-Jun-12 7:02
Vijjuuu.14-Jun-12 7:02 
AnswerRe: Xml Schema Pin
Sandeep Mewara14-Jun-12 10:49
mveSandeep Mewara14-Jun-12 10:49 
GeneralRe: Xml Schema Pin
Vijjuuu.14-Jun-12 18:49
Vijjuuu.14-Jun-12 18:49 
GeneralRe: Xml Schema Pin
Sandeep Mewara14-Jun-12 20:48
mveSandeep Mewara14-Jun-12 20:48 

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

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