Click here to Skip to main content
15,896,154 members
Home / Discussions / XML / XSL
   

XML / XSL

 
Questiona free xml tool to acquire xpath Pin
Qinbo ZHOU29-May-12 19:38
Qinbo ZHOU29-May-12 19:38 
QuestionXML Schema problem Pin
The_Infinite26-Apr-12 23:42
The_Infinite26-Apr-12 23:42 
AnswerRe: XML Schema problem Pin
Member 794572714-May-12 3:22
Member 794572714-May-12 3:22 
QuestionRemove a XMLnode - Pls help Pin
harvid24-Apr-12 18:24
harvid24-Apr-12 18:24 
AnswerRe: Remove a XMLnode - Pls help Pin
VJ Reddy24-Apr-12 22:02
VJ Reddy24-Apr-12 22:02 
GeneralRe: Remove a XMLnode - Pls help Pin
harvid24-Apr-12 22:59
harvid24-Apr-12 22:59 
GeneralRe: Remove a XMLnode - Pls help Pin
VJ Reddy24-Apr-12 23:17
VJ Reddy24-Apr-12 23:17 
GeneralHow to specify a Hex value in XML? Pin
Frank W. Wu9-Apr-12 11:47
Frank W. Wu9-Apr-12 11:47 
AnswerRe: How to specify a Hex value in XML? Pin
PJ Arends9-Apr-12 16:09
professionalPJ Arends9-Apr-12 16:09 
GeneralRe: How to specify a Hex value in XML? Pin
jschell10-Apr-12 8:48
jschell10-Apr-12 8:48 
QuestionWhat is it called? Pin
PJ Arends7-Apr-12 21:32
professionalPJ Arends7-Apr-12 21:32 
QuestionGetting values with template Pin
memorexr24-Mar-12 4:48
memorexr24-Mar-12 4:48 
AnswerRe: Getting values with template Pin
PIEBALDconsult26-Mar-12 8:21
mvePIEBALDconsult26-Mar-12 8:21 
QuestionXmlDocument.SelectNodes not working for namespace attributes Pin
PIEBALDconsult23-Mar-12 12:23
mvePIEBALDconsult23-Mar-12 12:23 
AnswerRe: XmlDocument.SelectNodes not working for namespace attributes Pin
woopsydoozy26-Mar-12 11:08
woopsydoozy26-Mar-12 11:08 
GeneralRe: XmlDocument.SelectNodes not working for namespace attributes Pin
PIEBALDconsult26-Mar-12 16:52
mvePIEBALDconsult26-Mar-12 16:52 
GeneralRe: XmlDocument.SelectNodes not working for namespace attributes Pin
PIEBALDconsult28-Mar-12 5:26
mvePIEBALDconsult28-Mar-12 5:26 
GeneralRe: XmlDocument.SelectNodes not working for namespace attributes Pin
woopsydoozy28-Mar-12 5:53
woopsydoozy28-Mar-12 5:53 
GeneralRe: XmlDocument.SelectNodes not working for namespace attributes Pin
PIEBALDconsult28-Mar-12 10:24
mvePIEBALDconsult28-Mar-12 10:24 
woopsydoozy wrote:
Is your issue maybe in using the namespace in the xpath?


No, I got that now.


woopsydoozy wrote:
Just declaring a namespacemanager does not automatically load all the namespaces


Right, and now I understand why. I hope to write at least a Tip on it soon.


woopsydoozy wrote:
When it's a default namespace ...


Right, even though it seems bogus (I still need to investigate further).

Edit: The W3C spec for XPath 1.0 (section 2.3 Node tests) says in part:<br />
"<br />
A QName in the node test is expanded into an expanded-name using the namespace declarations from the expression context. This is the same way expansion is done for element type names in start and end-tags except that the default namespace declared with xmlns is not used: if the QName does not have a prefix, then the namespace URI is null (this is the same way attribute names are expanded). <br />
"<br />
<a href="http://www.w3.org/TR/xpath/#node-tests">http://www.w3.org/TR/xpath/#node-tests</a>[<a href="http://www.w3.org/TR/xpath/#node-tests" target="_blank" title="New Window">^</a>]<br />
<br />
So it's W3C's fault and I still don't see why they would define it that way. :mad:<br />


woopsydoozy wrote:
maybe you're just wondering why you can't query using xmlns as an attribute


Yes, and also as the namespace of an attribute.

<br />
Edit: The W3C spec for XPath 1.0 (section 5.3 Attribute Nodes) says in part:<br />
"<br />
There are no attribute nodes corresponding to attributes that declare namespaces <br />
"<br />


modified 29-Mar-12 17:22pm.

GeneralRe: XmlDocument.SelectNodes not working for namespace attributes Pin
woopsydoozy28-Mar-12 10:52
woopsydoozy28-Mar-12 10:52 
GeneralRe: XmlDocument.SelectNodes not working for namespace attributes Pin
PIEBALDconsult28-Mar-12 18:14
mvePIEBALDconsult28-Mar-12 18:14 
QuestionXPath query to return nodes based on a range within an attribute's value. Pin
Bill.Moo13-Mar-12 6:21
Bill.Moo13-Mar-12 6:21 
AnswerRe: XPath query to return nodes based on a range within an attribute's value. Pin
woopsydoozy16-Mar-12 7:43
woopsydoozy16-Mar-12 7:43 
GeneralRe: XPath query to return nodes based on a range within an attribute's value. Pin
Bill.Moo19-Mar-12 6:18
Bill.Moo19-Mar-12 6:18 
Questionreconfirm Pin
santoshkumar11876-Mar-12 7:06
santoshkumar11876-Mar-12 7:06 

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.