Click here to Skip to main content
15,895,667 members
Home / Discussions / XML / XSL
   

XML / XSL

 
GeneralRe: Not getting ANY help from this site on XSLT Pin
crystal915428-Jan-09 5:59
crystal915428-Jan-09 5:59 
GeneralRe: Not getting ANY help from this site on XSLT Pin
led mike28-Jan-09 6:08
led mike28-Jan-09 6:08 
GeneralRe: Not getting ANY help from this site on XSLT Pin
indian14330-Jan-09 6:41
indian14330-Jan-09 6:41 
Questionxslt: sort xml by child attribute and copy to new xml Pin
crystal915426-Jan-09 13:46
crystal915426-Jan-09 13:46 
AnswerRe: xslt: sort xml by child attribute and copy to new xml Pin
George L. Jackson28-Jan-09 6:02
George L. Jackson28-Jan-09 6:02 
QuestionHow do I read this XML file? Pin
MaWeRic25-Jan-09 22:59
MaWeRic25-Jan-09 22:59 
AnswerRe: How do I read this XML file? Pin
led mike26-Jan-09 4:49
led mike26-Jan-09 4:49 
GeneralOk fine .. Now how do I make a SelectSingleNode among the childs? Pin
MaWeRic28-Jan-09 5:36
MaWeRic28-Jan-09 5:36 
I used the link and could get all my orders suing namespace. Under each namespace there is a lot of elements like <order_id> and others.

I loop through my orders without problems.

But how do I select a child to a node using namespace? releative XPath in other words.

My code now look like this:
'Objects()
Dim XDoc As New XmlDocument
Dim Orders As XmlNodeList

'Try to read doc
XDoc.Load(ImportFile)

'Create an XmlNamespaceManager for resolving namespaces.
Dim XN As XmlNamespaceManager = New XmlNamespaceManager(XDoc.NameTable)
XN.AddNamespace("Order", "http://www.opentrans.org/XMLSchema/1.0")

'Get Orders from XML
Orders = XDoc.SelectNodes("//Order:ORDER", XN)

For Each Order As XmlNode In Orders
   dim MyOrderId as string = Orders.SelectSingleNode("ORDER_ID",XN).innerText
next



That doesn't work if I want the OrderID.

If I use

Order.SelectSingleNode("/Order:ORDER_DATE", XN)


I get the first OrderID each time.

Ideas?

//M
GeneralRe: Ok fine .. Now how do I make a SelectSingleNode among the childs? Pin
led mike28-Jan-09 5:45
led mike28-Jan-09 5:45 
GeneralRe: Ok fine .. Now how do I make a SelectSingleNode among the childs? Pin
led mike28-Jan-09 6:43
led mike28-Jan-09 6:43 
GeneralRe: Ok fine .. Now how do I make a SelectSingleNode among the childs? Pin
MaWeRic28-Jan-09 7:35
MaWeRic28-Jan-09 7:35 
GeneralRe: Ok fine .. Now how do I make a SelectSingleNode among the childs? Pin
led mike28-Jan-09 8:54
led mike28-Jan-09 8:54 
GeneralRe: Ok fine .. Now how do I make a SelectSingleNode among the childs? Pin
MaWeRic28-Jan-09 18:34
MaWeRic28-Jan-09 18:34 
QuestionWhat is the difference between XPATH and DOM XML ? Pin
Honeyboy_2024-Jan-09 8:01
Honeyboy_2024-Jan-09 8:01 
AnswerRe: What is the difference between XPATH and DOM XML ? Pin
led mike26-Jan-09 4:39
led mike26-Jan-09 4:39 
GeneralRe: What is the `? Pin
Honeyboy_2026-Jan-09 17:15
Honeyboy_2026-Jan-09 17:15 
GeneralRe: What is the `? Pin
led mike27-Jan-09 5:33
led mike27-Jan-09 5:33 
Questionhow to make for loop in xml? Pin
mojammil23-Jan-09 19:25
mojammil23-Jan-09 19:25 
QuestionSearching for substitution groups Pin
Marc Clifton23-Jan-09 3:33
mvaMarc Clifton23-Jan-09 3:33 
AnswerRe: Searching for substitution groups Pin
led mike23-Jan-09 5:16
led mike23-Jan-09 5:16 
GeneralRe: Searching for substitution groups Pin
Marc Clifton23-Jan-09 5:43
mvaMarc Clifton23-Jan-09 5:43 
GeneralRe: Searching for substitution groups Pin
led mike23-Jan-09 6:31
led mike23-Jan-09 6:31 
GeneralRe: Searching for substitution groups Pin
Marc Clifton23-Jan-09 9:30
mvaMarc Clifton23-Jan-09 9:30 
QuestionDifferent betwen node and element Pin
Dushan12321-Jan-09 2:48
Dushan12321-Jan-09 2:48 
AnswerRe: Different betwen node and element Pin
led mike21-Jan-09 5:19
led mike21-Jan-09 5:19 

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.