Click here to Skip to main content
16,005,121 members
Home / Discussions / XML / XSL
   

XML / XSL

 
GeneralRe: Querying with an XML document Pin
led mike21-Sep-06 5:19
led mike21-Sep-06 5:19 
GeneralRe: Querying with an XML document Pin
George L. Jackson21-Sep-06 8:28
George L. Jackson21-Sep-06 8:28 
GeneralRe: Querying with an XML document Pin
led mike21-Sep-06 8:35
led mike21-Sep-06 8:35 
GeneralRe: Querying with an XML document Pin
vinusk22-Sep-06 5:13
vinusk22-Sep-06 5:13 
GeneralRe: Querying with an XML document Pin
vinusk25-Sep-06 7:54
vinusk25-Sep-06 7:54 
Questioninserting xml nodes based upon an expression Pin
Jan Limpens20-Sep-06 3:28
Jan Limpens20-Sep-06 3:28 
AnswerRe: inserting xml nodes based upon an expression Pin
George L. Jackson20-Sep-06 14:56
George L. Jackson20-Sep-06 14:56 
GeneralRe: inserting xml nodes based upon an expression [modified] Pin
Jan Limpens20-Sep-06 16:25
Jan Limpens20-Sep-06 16:25 
Imagine the following xml:

<foo>
<bar action="1"><element>xxx<element></bar>
<bar action="2"><element>yyy<element></bar>
<bar action="3"><element>zzz<element></bar>
</foo>

I query: /foo/bar[action='1']/element
I get "xxx" and I can update it. Good.

I query: /foo/bar[action='4']/element
Now, this node does not exist, so it should be created (and it's predecessor bar with the attribute action=4). foo exists, so nothing needs to be done for it.
Same aplies for /foo/bar[4]/element, just the attribute has to come from somewhere else (I can provide for this).

/foo/bar[5]/element should fail

This is not for a special xml file, but a generic solution, so it does not depend on any certain structure...

Does this make things a bit clearer?


-- modified at 16:53 Thursday 21st September, 2006
GeneralRe: inserting xml nodes based upon an expression Pin
George L. Jackson21-Sep-06 8:24
George L. Jackson21-Sep-06 8:24 
GeneralRe: inserting xml nodes based upon an expression Pin
Jan Limpens21-Sep-06 10:54
Jan Limpens21-Sep-06 10:54 
QuestionRe: inserting xml nodes based upon an expression Pin
George L. Jackson21-Sep-06 15:11
George L. Jackson21-Sep-06 15:11 
AnswerRe: inserting xml nodes based upon an expression Pin
Jan Limpens21-Sep-06 17:23
Jan Limpens21-Sep-06 17:23 
QuestionRemove last blank page. Pin
Support12320-Sep-06 0:27
Support12320-Sep-06 0:27 
AnswerRe: Remove last blank page. Pin
led mike20-Sep-06 4:56
led mike20-Sep-06 4:56 
GeneralRe: Remove last blank page. Pin
Support12320-Sep-06 5:08
Support12320-Sep-06 5:08 
GeneralRe: Remove last blank page. Pin
led mike20-Sep-06 5:19
led mike20-Sep-06 5:19 
GeneralRe: Remove last blank page. Pin
Support12320-Sep-06 5:26
Support12320-Sep-06 5:26 
GeneralRe: Remove last blank page. Pin
led mike20-Sep-06 6:00
led mike20-Sep-06 6:00 
GeneralRe: Remove last blank page. Pin
Support12320-Sep-06 20:17
Support12320-Sep-06 20:17 
QuestionFooter Pin
Support12319-Sep-06 22:59
Support12319-Sep-06 22:59 
QuestionXmlDocument vs StringBuilder [modified] Pin
Jon Sagara19-Sep-06 19:09
Jon Sagara19-Sep-06 19:09 
AnswerRe: XmlDocument vs StringBuilder Pin
Support12319-Sep-06 23:11
Support12319-Sep-06 23:11 
GeneralRe: XmlDocument vs StringBuilder Pin
Jon Sagara20-Sep-06 1:02
Jon Sagara20-Sep-06 1:02 
QuestionXML HTTP POST Pin
Steve-o H.18-Sep-06 5:58
Steve-o H.18-Sep-06 5:58 
AnswerRe: XML HTTP POST Pin
George L. Jackson20-Sep-06 14:59
George L. Jackson20-Sep-06 14:59 

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.