Tool to find out XPath [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for … Read more

how to find specific xml data by attribute name/value in flex / actionscript

From some xml I want to find items that have a specific attribute and value. Here is example xml: <node> <node> <node> <special NAME=”thisone”></special> </node> <node> <special>dont want this one</special> </node> </node> </node> (nodes can contain nodes…) I need to find the first based on it has an attribute named “NAME” and value of “thisone”. … Read more

Set up my own XML namespace?

How can I setup my own XML namespace? Answer Just define a namespace in the root tag (or wherever you need the namespace). Example: <root xmlns:ns=”some_identifier”> ns and the identifier can be (nearly) anything. See this quote: What Do Namespace Names Point At? One of the confusing things about all this is that namespace names … Read more

Parsing SVG “path” elements with C# – are there libraries out there to do this? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for Stack Overflow. Closed 8 years ago. Improve this question I am writing a program in C# which essentially reads an SVG file, and does some useful things with … Read more

how to check parent of current node is root node or not in xslt?

I want to check the parent of current node is root node or not in Xslt.How i do that? Please Guide me to get out of this issue… Thanks & Regards, P.SARAVANAN Answer In XPath 1.0 (XSLT 1.0): not(parent::*) Or you may use: generate-id(..) = generate-id(/) In XPath 2.0 (XSLT 2.0): .. is root() AttributionSource … Read more

XPath: select tag with empty value

How I can find in XPath 1.0 all rows with empty col name=”POW”? <row> <col name=”WOJ”>02</col> <col name=”POW”/> <col name=”GMI”/> <col name=”RODZ”/> <col name=”NAZWA”>DOLNOŚLĄSKIE</col> <col name=”NAZDOD”>województwo</col> <col name=”STAN_NA”>2011-01-01</col> </row> I tried many solutions. Few times in Firefox extension XPath Checker selection was ok, but lxml.xpath() says that expression is invalid or just returns no rows. … Read more

Get children of an element without the text nodes

I am using Nokogiri with Ruby to interpret the contents of an XML file. I would like to get an array (or similar) of all elements that are direct children of <where> in my example. However, I am getting various text nodes (e.g. “\n\t\t\t”), which I do not want. Is there any way I can … Read more

Why do JAXB generated classes have protected members and how can I change this?

I have been searching the internet for a reason why JAXB generated classes have protected members (all of them, regardless of inheritance). I would like the members to be private instead. My search has come up empty. I have normal xsd files which are converted into Java classes using Maven and JAXB. Ideally the generated … Read more