Click here to Skip to main content
15,900,559 members
Home / Discussions / XML / XSL
   

XML / XSL

 
GeneralRe: Querying with an XML document Pin
George L. Jackson21-Sep-06 8:37
George L. Jackson21-Sep-06 8:37 
GeneralRe: Querying with an XML document Pin
led mike21-Sep-06 5:09
led mike21-Sep-06 5:09 
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 
Hi folks,

I bind textboxes to nodes of an XmlDocument and refer to these nodes via an xpath statement. Updating existing content is really easy this way.

My problems arise, when I try my xpath statement does not find the node in question and subsequentially I want to create it.
Say, my xpath is "/def:Version/def:Entry[lang('en')]/Title" and the second element <entry xml:lang="en"> does not exist. At first I thought, I'd split my path into pieces, ininerate it backwards, reach the first existing node and then recreate the requested structure. This could work with very easy queries, but something like "def:Entry[lang('en')]" already would require my program to "understand" that it needs to create a <entry xml:lang="en"> from the xPath lang() function.

I would end up writing a strange kind of xpath parser. And the idea isn't so good either, because I'd have to make my xpath super verbose, so that no elements (attributes!) are left out (and therefore could be created at need), which doubtlessly would decrease performance.

I stumbled across a xupdate implementation at
http://www.openvue.net/projects.php?menu=4
It's nunit testcases don't work 100% so I would have to invest some more time into this.

That's why I wanted to ask you guys, what do you think: Xupdate is the way to go for me, or do you have any other good ideas?

Thanks in advance,

Jan
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 
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 

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.