Click here to Skip to main content
15,906,463 members
Home / Discussions / C#
   

C#

 
AnswerHere you will get it Pin
sreejith ss nair12-May-04 1:23
sreejith ss nair12-May-04 1:23 
GeneralRe: Here you will get it Pin
Heath Stewart12-May-04 3:38
protectorHeath Stewart12-May-04 3:38 
GeneralRe: Here you will get it Pin
sreejith ss nair12-May-04 17:04
sreejith ss nair12-May-04 17:04 
GeneralXML - Stripping Namespaces Pin
MrEyes11-May-04 22:13
MrEyes11-May-04 22:13 
GeneralRe: XML - Stripping Namespaces Pin
Aryadip11-May-04 23:29
Aryadip11-May-04 23:29 
GeneralRe: A Solution Pin
MrEyes12-May-04 2:58
MrEyes12-May-04 2:58 
GeneralRe: XML - Stripping Namespaces Pin
Heath Stewart12-May-04 3:41
protectorHeath Stewart12-May-04 3:41 
GeneralRe: XML - Stripping Namespaces Pin
MrEyes12-May-04 4:01
MrEyes12-May-04 4:01 
To be honest I am probably wanting to do this through a lack of knowledge than anything else.

I need to generate a generic codefunction that will parse out values from an XML string. Which sounds simple enough, load it into an XmlDocument, use Xpaths to extract data.

The problem is that the XML string may or may not contain namespaces. As I do not know which (if any) namespaces will be present, I cannot (I believe) create an XmlNamespaceManager. Without the manager I cannot use XPaths to retrieve values. By stripping them out I can easily process the document (at this stage of the code they are irrelevant to the application)

Feel free to enlighten me if I have gone speeding down the wrong track Smile | :)

post.mode = postmodes.signature;
SELECT everything FROM everywhere WHERE something = something_else;
> 1 Row Returned
> 42
GeneralRe: XML - Stripping Namespaces Pin
Heath Stewart12-May-04 4:42
protectorHeath Stewart12-May-04 4:42 
Generalsending objects Pin
bouli11-May-04 21:38
bouli11-May-04 21:38 
GeneralRe: sending objects Pin
Corinna John11-May-04 22:22
Corinna John11-May-04 22:22 
Generalsending objects Pin
bouli11-May-04 21:33
bouli11-May-04 21:33 
GeneralRe: sending objects Pin
Dave Kreskowiak12-May-04 3:02
mveDave Kreskowiak12-May-04 3:02 
GeneralRe: sending objects Pin
Heath Stewart12-May-04 3:43
protectorHeath Stewart12-May-04 3:43 
GeneralRe: sending objects Pin
bouli12-May-04 4:38
bouli12-May-04 4:38 
GeneralRe: sending objects Pin
Dave Kreskowiak12-May-04 11:30
mveDave Kreskowiak12-May-04 11:30 
GeneralTo get independent Copy of the project Pin
Naga the bug fixer11-May-04 21:00
Naga the bug fixer11-May-04 21:00 
GeneralRe: To get independent Copy of the project Pin
sreejith ss nair12-May-04 1:49
sreejith ss nair12-May-04 1:49 
GeneralRe: To get independent Copy of the project Pin
Heath Stewart12-May-04 3:46
protectorHeath Stewart12-May-04 3:46 
GeneralEstimated Time Left Pin
The_Soul_Of_Rock11-May-04 20:34
The_Soul_Of_Rock11-May-04 20:34 
GeneralRe: Estimated Time Left Pin
CWIZO11-May-04 20:41
CWIZO11-May-04 20:41 
GeneralRe: Estimated Time Left Pin
The_Soul_Of_Rock11-May-04 23:04
The_Soul_Of_Rock11-May-04 23:04 
GeneralRe: Estimated Time Left Pin
Dave Kreskowiak12-May-04 3:01
mveDave Kreskowiak12-May-04 3:01 
GeneralRe: Estimated Time Left Pin
Jeff Varszegi12-May-04 7:00
professionalJeff Varszegi12-May-04 7:00 
GeneralRe: Estimated Time Left Pin
Dave Kreskowiak12-May-04 11:28
mveDave Kreskowiak12-May-04 11:28 

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.