Click here to Skip to main content
15,843,962 members
Home / Discussions / XML / XSL
   

XML / XSL

 
GeneralRe: Remove a XMLnode - Pls help Pin
VJ Reddy25-Apr-12 0:17
VJ Reddy25-Apr-12 0:17 
GeneralHow to specify a Hex value in XML? Pin
Frank W. Wu9-Apr-12 12:47
Frank W. Wu9-Apr-12 12:47 
AnswerRe: How to specify a Hex value in XML? Pin
PJ Arends9-Apr-12 17:09
professionalPJ Arends9-Apr-12 17:09 
GeneralRe: How to specify a Hex value in XML? Pin
jschell10-Apr-12 9:48
jschell10-Apr-12 9:48 
QuestionWhat is it called? Pin
PJ Arends7-Apr-12 22:32
professionalPJ Arends7-Apr-12 22:32 
QuestionGetting values with template Pin
memorexr24-Mar-12 5:48
memorexr24-Mar-12 5:48 
AnswerRe: Getting values with template Pin
PIEBALDconsult26-Mar-12 9:21
mvePIEBALDconsult26-Mar-12 9:21 
QuestionXmlDocument.SelectNodes not working for namespace attributes Pin
PIEBALDconsult23-Mar-12 13:23
mvePIEBALDconsult23-Mar-12 13:23 
I'm trying to iterate the namespace declarations in an XML document so I can add them to the XmlNamespaceManager, but it's not working.

Given an XML document like:

<foo:bar xmlns:foo='the URI for foo' />

I expect:

System.Xml.XmlDocument doc = new System.Xml.XmlDocument() ;

doc.Load ( args [ 0 ] ) ;

System.Xml.XmlNamespaceManager mgr = new System.Xml.XmlNamespaceManager ( doc.NameTable ) ;

foreach ( System.Xml.XmlNode nod in doc.SelectNodes ( "//*[@xmlns:*]" , mgr ) )
...


to select that element, but it doesn't.

Am I missing something? Does SelectNodes just not want to select by namespace attributes?


Edit: I now see that this is the defined behaviour of XPath 1.0; I don't like it, but there it is.

modified 29-Mar-12 18:00pm.

AnswerRe: XmlDocument.SelectNodes not working for namespace attributes Pin
woopsydoozy26-Mar-12 12:08
woopsydoozy26-Mar-12 12:08 
GeneralRe: XmlDocument.SelectNodes not working for namespace attributes Pin
PIEBALDconsult26-Mar-12 17:52
mvePIEBALDconsult26-Mar-12 17:52 
GeneralRe: XmlDocument.SelectNodes not working for namespace attributes Pin
PIEBALDconsult28-Mar-12 6:26
mvePIEBALDconsult28-Mar-12 6:26 
GeneralRe: XmlDocument.SelectNodes not working for namespace attributes Pin
woopsydoozy28-Mar-12 6:53
woopsydoozy28-Mar-12 6:53 
GeneralRe: XmlDocument.SelectNodes not working for namespace attributes Pin
PIEBALDconsult28-Mar-12 11:24
mvePIEBALDconsult28-Mar-12 11:24 
GeneralRe: XmlDocument.SelectNodes not working for namespace attributes Pin
woopsydoozy28-Mar-12 11:52
woopsydoozy28-Mar-12 11:52 
GeneralRe: XmlDocument.SelectNodes not working for namespace attributes Pin
PIEBALDconsult28-Mar-12 19:14
mvePIEBALDconsult28-Mar-12 19:14 
QuestionXPath query to return nodes based on a range within an attribute's value. Pin
Bill.Moo13-Mar-12 7:21
Bill.Moo13-Mar-12 7:21 
AnswerRe: XPath query to return nodes based on a range within an attribute's value. Pin
woopsydoozy16-Mar-12 8:43
woopsydoozy16-Mar-12 8:43 
GeneralRe: XPath query to return nodes based on a range within an attribute's value. Pin
Bill.Moo19-Mar-12 7:18
Bill.Moo19-Mar-12 7:18 
Questionreconfirm Pin
santoshkumar11876-Mar-12 8:06
santoshkumar11876-Mar-12 8:06 
AnswerRe: reconfirm Pin
Chandrasekharan P9-Apr-12 22:02
Chandrasekharan P9-Apr-12 22:02 
Questionxml data will not display on the screen on a php page Pin
awolarczuk1-Mar-12 1:05
awolarczuk1-Mar-12 1:05 
Questiongenerating html tree from xml file using xslt. Pin
anikbutt2210-Feb-12 2:41
anikbutt2210-Feb-12 2:41 
QuestionHow to open zipfile and xls Pin
Themba Zwane8-Feb-12 8:53
Themba Zwane8-Feb-12 8:53 
AnswerRe: How to open zipfile and xls Pin
Richard MacCutchan8-Feb-12 22:54
mveRichard MacCutchan8-Feb-12 22:54 
AnswerRe: How to open zipfile and xls Pin
ZurdoDev19-Mar-12 10:02
professionalZurdoDev19-Mar-12 10: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.