Click here to Skip to main content
       

XML / XSL

 
GeneralRe: Could not find a part of the path 'C:\MyProject\xml\command.dtd'. PinmemberEl daniel28-Nov-12 1:29 
GeneralRe: Could not find a part of the path 'C:\MyProject\xml\command.dtd'. PinmvpRichard MacCutchan28-Nov-12 2:11 
QuestionXml generating from XSD schema Pinmembermuntte16-Oct-12 13:18 
AnswerRe: Xml generating from XSD schema PinmemberJim Meadors13-Nov-12 21:12 
AnswerRe: Xml generating from XSD schema Pinmemberjinzai17-Jul-14 14:18 
QuestionLayout question PinmemberDavidCrow25-Sep-12 8:38 
AnswerRe: Layout question PinmemberZaf Khan29-Nov-12 9:27 
QuestionHelp with XSLT PinmemberMissMac18-Sep-12 8:33 
AnswerRe: Help with XSLT PinmemberMissMac18-Sep-12 8:57 
QuestionXML , XSL and JavaScript [modified] Pinmemberrajats8716-Sep-12 21:57 
AnswerRe: XML , XSL and JavaScript Pinmemberh4ckjr17-Sep-12 16:38 
GeneralRe: XML , XSL and JavaScript Pinmemberrajats8718-Sep-12 3:07 
QuestionXSL Output PinmemberSta_Horse12-Sep-12 21:21 
QuestionHow to know last autoincrement id in xml file PinmemberNareshmnt10-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 PinmemberChristopher Drake12-Sep-12 12:17 
QuestionXSD.EXE array, would like list Pinmemberkalkwarf24-Jul-12 7:30 
AnswerRe: XSD.EXE array, would like list PinmemberBernhard Hiller24-Jul-12 22:33 
GeneralRe: XSD.EXE array, would like list Pinmemberkalkwarf25-Jul-12 6:44 
GeneralRe: XSD.EXE array, would like list Pinmemberjschell25-Jul-12 8:14 
GeneralRe: XSD.EXE array, would like list PinmemberBernhard Hiller25-Jul-12 21:41 
AnswerRe: XSD.EXE array, would like list Pinmemberjschell25-Jul-12 8:21 
AnswerRe: XSD.EXE array, would like list Pinmemberjinzai17-Jul-14 14:26 
GeneralRe: XSD.EXE array, would like list Pinmemberkalkwarf18-Jul-14 5:42 
GeneralXSLT to transform one XML file to another and display as HTML PinmemberGStar99921-Jul-12 2:50 
Generalbest current book with strong coverage of XSLT ? PinmemberBillWoodruff5-Jul-12 15:16 
AnswerMessage Removed PinmemberLiveFreeCodeHard20-Jul-12 12:29 
GeneralRe: best current book with strong coverage of XSLT ? PinmemberBillWoodruff20-Jul-12 16:18 
Questionregasxml error PingroupMember 913688818-Jun-12 7:51 
QuestionXml Schema [modified] PinmemberVijjuuu.14-Jun-12 8:02 
AnswerRe: Xml Schema PinmvpSandeep Mewara14-Jun-12 11:49 
GeneralRe: Xml Schema PinmemberVijjuuu.14-Jun-12 19:49 
GeneralRe: Xml Schema PinmvpSandeep Mewara14-Jun-12 21:48 
GeneralRe: Xml Schema PinmemberVijjuuu.15-Jun-12 8:55 
QuestionPerformance issue in XSL processing Pinmemberpraveen3g8-Jun-12 22:30 
AnswerRe: Performance issue in XSL processing PinmvpRichard MacCutchan8-Jun-12 23:12 
GeneralRe: Performance issue in XSL processing Pinmemberpraveen3g8-Jun-12 23:26 
GeneralRe: Performance issue in XSL processing PinmvpRichard MacCutchan8-Jun-12 23:40 
GeneralRe: Performance issue in XSL processing Pinmemberpraveen3g9-Jun-12 0:04 
GeneralRe: Performance issue in XSL processing PinmvpRichard MacCutchan9-Jun-12 0:10 
GeneralRe: Performance issue in XSL processing Pinmemberpraveen3g9-Jun-12 0:15 
GeneralRe: Performance issue in XSL processing PinmvpRichard MacCutchan9-Jun-12 0:32 
GeneralRe: Performance issue in XSL processing Pinmemberpraveen3g9-Jun-12 1:07 
GeneralRe: Performance issue in XSL processing PinmemberSasha Laurel18-Jul-12 14:11 
RantRe: Performance issue in XSL processing Pinmemberjinzai17-Jul-14 14:37 
QuestionA way to view and edit a xml file in the web browser PinmemberMember 879241431-May-12 5:17 
AnswerRe: A way to view and edit a xml file in the web browser PinmemberMember 85887647-Jun-12 20:30 
AnswerRe: A way to view and edit a xml file in the web browser PinmemberGer Hayden22-Jul-12 9:24 
Questiona free xml tool to acquire xpath PinmemberQinbo ZHOU29-May-12 20:38 
QuestionXML Schema problem [modified] PinmemberThe_Infinite27-Apr-12 0:42 
AnswerRe: XML Schema problem PinmemberMember 794572714-May-12 4:22 

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
Web03 | 2.8.141216.1 | Last Updated 17 Nov 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid