Quantcast








     

eclipselink moxy xpath - selecting all child elements of the current node or all elements in a document with a particular name

stackoverflow.com - 2012-03-06 11:56:03 - Similar - Report/Block

i have this xpath defined for moxy in a jaxb class @XmlPath("child::*/REG") public List entries; but it won't unmarshal the xml document correctly. the List variable called entries is empty. i've also tried @XmlPath("*/REG") public List entries; i've also tried @XmlPath("//REG") public List entries; without joy but if i do @XmlPath("BANK...

Using XPath to find the first child of a specific grandparent?

stackoverflow.com - 2012-07-01 23:42:46 - Similar - Report/Block

I'm dealing with some gnarly HTML. Here's a stylized example of the ancestry of a given element: /html/body/foo/bar/baz/quux/b I have a reference to in my code and is the context element for my XPath query. In the above example how do I find ? More descriptively, how do I find the first element in a given ancestry which is the child of...

Count specific child nodes with HtmlAgilityPack

stackoverflow.com - 2012-05-30 23:37:36 - Similar - Report/Block

I have lot of trouble with this XPath selction that i use in HtmlAgilityPack. I want to select all elements (if they exist) nested in another witch have tag with id="menuItem2" This is html sample: <div id="menu"> <ul> <li><a id="menuItem1"></a></li> <li><a id="menuItem2"></a> &...

Python lxml XPath with deep nesting with specific search

stackoverflow.com - 2012-05-02 19:43:46 - Similar - Report/Block

The xpath for text I wish to extract is reliably located deep in the tree at ...table/tbody/tr[4]/td[2] Specifically, td[2] is structured like so <td class="val">xyz</td> I am trying to extract the text "xyz", but a broad search returns multiple results. For example the following path returns 10 elements. xpath('//td[@class="v...

PHP XPATH of HTML document omitting all tags. I want to keep them

stackoverflow.com - 2009-10-13 08:14:46 - Similar - Report/Block

I am parsing a HTML document with XPATH and I want to keep all the inner html tags. The html in question is a unordered list with many list elements. <ul id="adPoint1"><li>Business</ li><li>Contract</li></ ul> I am parsing the document using the following PHP code $dom = new DOMDocument(); @$dom->loadH...

PHP preg_match_all elements within a parent?

stackoverflow.com - 2013-03-05 12:32:43 - Similar - Report/Block

I cant get this regexp to work, maybe it's not possible.. Need help:) Basically I'm trying to regexp multiple child elements from a parent entity in one go. For the sake of brevity I'll use a dropdown HTML element as an example. This will be actually used for log parsing, but I'm not yet certain exactly what format it'll be, and the drop...

How do I make new elements draggable with jquery?

stackoverflow.com - 2012-03-07 06:40:12 - Similar - Report/Block

I'm loading new elements with a form. After the elements are loaded I need to make each one draggable. According to .on doc "Delegated events have the advantage that they can process events from descendant elements that are added to the document at a later time." I've tried oh-so-many variants of .on, .click, etc but so far no luck. I'...

Selecting or Switching Menu Tab (Interface Sounds)

audiojungle.net - 2013-02-20 05:43:16 - Similar - Report/Block

Dynamic sound effect usable for selecting an option or switching a menu tab. Duration of each sound: -Selecting-Switching_01: 00:01 -Selecting-Switching_02: 00:01 -Selecting-Switching_03: 00:01 -Selecting-Switching_04: 00:01 -Selecting-Switching_05: 00:01 -Selecting-Switching_06: 00:01...

XPath 2.0 - select all nodes between 2 elements

stackoverflow.com - 2012-10-29 09:37:00 - Similar - Report/Block

I have the following XML file: headline 1 foo bar 10 05 2002 some text ABC headline 2 lorem ipsum 10 05 2002 another source DEF Now I'd like to return all nodes of each article that occur after the head node and before the portal node. Therefore I was looking into XPath 2 node comparison (<< and > operators). What I have s...

Generating script when using EclipseLink

stackoverflow.com - 2012-04-18 21:06:11 - Similar - Report/Block

I am using EclipseLink as JPA implementation and I am adding these properties in the persistence.xml but I can't see any scripts generated? Where are they supposed to be saved or have I misunderstood this property. <property name="eclipselink.ddl-generation" value="create-tables" /> <property name="eclipselink.ddl-generation.outp...

WebDriver locate element by combined xpath

stackoverflow.com - 2012-03-02 16:30:12 - Similar - Report/Block

Is there any way, how I can to identify two xpath values in one. I have text located somewhere on web page, on another page it exists in same element, but has different xpath. See below two variants: Variant1: .//*[@id='quote_1']/div[2]/div[1]/div[1] /div[1]/p[2] Variant2: .//*[@id='quote_1']/div/div[1]/div[1]/di v[1]/div[2]/div[3]/span[2]...

Arrange list of s in rows and columns using CSS and/or JavaScript/jQuery

stackoverflow.com - 2012-04-10 23:54:04 - Similar - Report/Block

Input: a list of an unknown number of span elements, contained within a parent span. e.g. <span id="parent"> <span id="child-1">1</span> <span id="child-2">2</span> <span id="child-3">3</span> <span id="child-4">4</span> <span id="child-5">5</span> <span id="child-6">...

evolveStar Join

What XPath expression finds the set of elements that have a given namespace declaration?

stackoverflow.com - 2012-02-28 13:24:52 - Similar - Report/Block

Suppose I have an XML document with 2 namespace declarations having the prefix , like so: <?xml version="1.0" encoding="UTF-8"?> <root xmlns:foo="http://www.foo.com"> <one> <!-- children nodes here --> </one> <two> <!-- children nodes here --> </two> <three xmlns:foo="ht...

add exact amount of elements in a ViewGroup

stackoverflow.com - 2013-03-22 11:35:02 - Similar - Report/Block

This is I think the first time in my whole programmer's life that I ask something. Before I was always able to find the solution by myself or on internet. But here, I give up ... About the tittle, of course ViewGroup is abstract, but the idea is to have a element that can handle many other child elements in a "list". Here is the problem.

How to properly add alternate class to even table rows on multiple tables with the same class using jQuery?

stackoverflow.com - 2012-06-18 19:28:26 - Similar - Report/Block

This is usually a very straight forward thing to do, so before you down vote me for such a question hear me out :) My problem is not selecting the elements and adding the class, it's that I want the alternate class to be added to even or odd rows relative to that table Right now I am using this: jQuery(document).ready(function(){ jQuery('...

Koji H.'s Review of Moxy Beer Garden - Berkeley (2/5) on Yelp

yelp.com - 2013-04-19 18:28:11 - Similar - Report/Block

Took a drive out to Moxy Beer Garden last night for their grand opening with a few friends. We arrived a little after 9pm hungry and thirsty for some fine brews. As we were greeted by a…...

XPath error--> [Fatal Error] :1:1: Content is not allowed in prolog

stackoverflow.com - 2011-11-24 06:22:49 - Similar - Report/Block

i wrote the below program, but when it goes ot the XPath classes it gives [Fatal Error] :1:1: Content is not allowed in prolog. i tried to figure it out but couldnt make it.is there any clue to fix this problem? package xpath; import com.sun.org.apache.xalan.internal.xsltc. trax.SAX2DOM; import java.io.IOException; import java.io.InputStr...

Jlist Limit Maximum Number Selected Elements

stackoverflow.com - 2012-03-29 02:39:44 - Similar - Report/Block

I have a jlist with an arbitrary number of elements. I would like to limit users to selecting only 3 elements from the list. So far, I haven't found any really convenient way of doing so, other than making a list selection listener and coding from there. Is there any built in way, or best practice for in Swing?...

Jsoup Fine Grianed Parse

stackoverflow.com - 2012-04-26 15:00:41 - Similar - Report/Block

I am trying to go through every html tag on a webpage's body and see if it has text in it. If it does, I would like a print out of that text: Document doc = Jsoup.connect(site).get(); Elements e = doc.body().getAllElements(); for (int i=0; i<e.size(); i++){ if(doc.body().child(i).hasText()){ System.out.println(doc.body().child(i).. .

Get current nodes xpath

stackoverflow.com - 2012-05-17 15:36:22 - Similar - Report/Block

I need to get the xpath of current node for which i have written an xsl function <func:function name="fn:getXpath"> <xsl:variable name="xpath"> <xsl:for-each select="ancestor-or-self::*"> <xsl:value-of select="concat($xpath, name())" /> <xsl:if test="not(position()=last())"> <xsl:value-of select="conc...

jquery select all children after nth-child

stackoverflow.com - 2012-06-10 10:21:04 - Similar - Report/Block

I am working with jquery and creating show hide lists, I need hide all the child list items that follow the 6th child in the ul. Normally I would do this by setting the height and then changing the height on click of a click, but for this to work I need to add overflow:hidden to my css, and this is not an option. How would I get all the...

Nokogiri XML.children returning formatting elements in addition to actual elements. How does one avoid this?

stackoverflow.com - 2013-02-28 14:59:09 - Similar - Report/Block

I have the following XML: 27 21 17 17 17 I want to parse the following: intelligence: 27, memory: 21, charisma: 17, perception: 17, willpower: 17 When I try this code: def get_attributes(api) attributes = [] api.xpath("//attributes").children.each do |attribute| name = attribute.name.tr('^A-Za-z0-9', '') text = attribute.text at...

Transform Javascript XPath in valid PHP query() XPath | normalize JS XPath --> PHP

stackoverflow.com - 2012-08-03 15:06:50 - Similar - Report/Block

This is valid XPath in Javascript: id("priceInfo")/div[@class="standardProd PricingGroup"]/span[1] And this turned into valid PHP XPath to be used with DOMXPath-> query() is //*[@id="priceInfo"]//div[@class="standa rdProdPricingGroup"]//span[1] do you know any libraries or custom components that already do this transformation? do you know...

Java XPath Namespaces when format of XML is unknown

stackoverflow.com - 2013-03-18 20:22:38 - Similar - Report/Block

I've seen quite a bit of discussion on the topic of Java / XPath, and Namepsaces, but I'm not sure the answers to those questions can help with my particular problem. I have a program that gets hold of some XML - I don't know the format up-front, but it is likely to contain namespaces. The user can supply an xpath expression that will be...

XPath Selecting Nodes Until Condition

stackoverflow.com - 2012-03-29 10:57:11 - Similar - Report/Block

I have a HTML/XML document similar to the following. There can be one or more 'tr' of the same colour before switching to the other colour in an arbitrarily repeating pattern. This is an example: <tr class='red'></tr> <tr class='blue'></tr> <tr class='red'></tr> <tr class='red'></tr> <tr...

How to update XML using XPath and Java

stackoverflow.com - 2011-05-25 12:09:28 - Similar - Report/Block

I have an XML document, and an XPath expression for that doc. I have to update the doc by using XPath at runtime. How can I do this using Java? The below is my xml: Sonu Kapoor 24 54879 Jasmin 28 78745 Josef 232 53454 I have to change the values of name and age under //PersonList/Person[2]/Name...

jQuery selector of type 'input' excluding some matched elements

stackoverflow.com - 2013-03-20 08:55:42 - Similar - Report/Block

I've following HTML In above DOM if I want to select the elements who's starts with input_field_ then I'm able to achieve this by $("input[id^='input_field_']") Now some more input elements are added to existing DOM structure,those are If I use $("input[id^='input_field_']") then all the elements starting with input_field_ , includi...

Java DOM: Error in Evaluate method; adding element at the specific location

stackoverflow.com - 2012-07-22 01:30:23 - Similar - Report/Block

I'm trying to add an element (javascript) using DOM at the specific location (After the div tag where id="123") of an XHTML file, which I'm doing with getElementById(). So for locating the position of the element I have used two approaches. 1: Without using XPath (Which I have commented in my code) 2: With XPath (After suggestions in the...

Any way to do a reverse XPath query?

stackoverflow.com - 2012-04-13 15:54:37 - Similar - Report/Block

If I have a context node, an XPath expression and a node, is there a way to check if my node satisfies the XPath expression in that context. I have XPath queries that are very expensive and long to run. Here I would simply like to take a potential result node and check if it satisfies the query, i.e. it would be returned as part of the qu...

Xpath attribute value check with a variable passed using PHP

stackoverflow.com - 2012-06-19 12:36:12 - Similar - Report/Block

just a quick question, was trying different ways to accomplish this, but ended with no success. I am trying to check attribute value using xpath and if the attribute value matches, I change the parameters for that tag in xml. This works: $obj= $xml->xpath('/document/item[@id = "a12sd"]'); This does not work, because I need to pass the...

Child elements repeat inside of FlipView

stackoverflow.com - 2013-03-23 00:54:53 - Similar - Report/Block

I have a FlipView that has DataTemplate that contains a NotebookPageCanvas. NotebookPageCanvas derives from Canvas and contains an InkManager. I am dynamically adding child elements to this canvas, and I am finding that the children are repeated on other pages of the FlipView. For instance, if I start with 10 items in my FlipView, when I...

webdrvier: get element's xpath?

stackoverflow.com - 2010-11-14 08:14:03 - Similar - Report/Block

is it possible to return a WebElement's xpath ?...

Selenium, Xpath, StoreText of the next sibling by ID of the first

stackoverflow.com - 2012-06-20 11:57:11 - Similar - Report/Block

Today I discovered selenium so I am eager to put it to use. I was just writing a script for a webpage of a web based game, and I can store the text in a table I want to by putting the exact Xpath, but I would like to store it based off the ID name of the tag before it in this example the ID being credits. Here is the web page code. <ta...

Can't get the result with yql and xpath

stackoverflow.com - 2012-05-19 05:57:17 - Similar - Report/Block

I'd like to fetch part of web page with yql. I have tried several queries. Most of the queries can return the correct result except one query. Here is the query: select * from html where url="http://www.cngold.org/img_date/live silvercn_rmb.html" and xpath='//div[6]/div[2]/div/div[2]/table/ tbody/tr[4]/td[6]' I hope to get the price but act...

Select elements with attribute value of self or descendant but not "overruled" (like a lang attribute)

stackoverflow.com - 2012-03-11 20:08:39 - Similar - Report/Block

I'm trying to mimic the interpretation of the attribute similar to HTML or xml:lang Given the following XML chunk: <xml lang="c"> c#0 <para>c#1</para> <para>c#2</para> <para lang="d"> d#0 <para>d#1</para> <para lang="c">c#3</para> <para lang="d"> d#2 <para>...

Xdocument vs Xpath

stackoverflow.com - 2012-04-19 08:12:22 - Similar - Report/Block

Between XDocument xpath to parse XML which one is better in perfomance ? e.g. To search for tag and get value in xml tags = xmlDoc.Descendants(xmlTag); xml.SelectSingleNode("//root/node") So which one will be faster?...

jQuery parent/child selectors

jsperf.com - 2012-09-04 16:07:02 - Similar - Report/Block

The different ways to select (context, pure selector, +find()) DOM elements using jQuery in parent/child scenarios.

EclipseLink/JPA and multiple databases with similar structures

stackoverflow.com - 2012-06-14 05:18:59 - Similar - Report/Block

Due decisions out of my control, I have two existing databases which are almost clones. "Almost" as in there are tables/columns in #1 which does not exist in #2, and vice versa. What is the best approach here? The "brute force" route seem to be "create all entities for one, copy to new package and add/remove for second database". Which is...

XSLT: extract the last x digit of a sibling node with xpath expression

stackoverflow.com - 2013-03-22 15:20:21 - Similar - Report/Block

I am trying to extract the last 4 numbers of the "red" sibling with xpath. The source xml looks like: ... RED 98472978241908 ... more key value pairs here... ... And when I use the follwing xpath: /nodelevelX/nodelevelY/node2/key[text()= 'RED']/following-sibling::value I have the full number in output, then I tried to extract the digit...

Check if url that belongs to the same domain exists in list with python?

stackoverflow.com - 2013-03-01 10:28:09 - Similar - Report/Block

I wrote a script that parses some entered url on Outgoing links presence. What exactly i need is to check if entered url exists in the list of Outgoing links of specific tag. I do next: from lxml import html import urllib2 url = 'http://businessinsider.com/' Testurl = urllib2.urlopen('somequerryurl' +url).read() tree = html.fromstring(Tes...




dialogShowMessage!

Fill out the form you see below. Registration is free, fast and simple.
If you are already registered, sign in page login.


Web Site :
Required Field
First Name :
Required Field
Last Name :
Required Field
Email :
Required Field
Sex :
Required Field

evolveStar.com is free for ever !


evolveStar.com provides a search engine that allows you to gather information to write their own blog.


evolveStar.com enhances the sources displaying the logo of the site.


If you want to remove your site or you believe a site listed infringes copyright, please report it to: info@evolvestar.com


Specifies the subject copyright violation and the url of the page


evolveStar.com respecting the law DMCA (Digital Millennium Copyright Act) will immediately remove whatever its merits.


Next will be effectual and relevant checks.







Who We Are Partner Advertising Contacts Privacy terms Help & FAQ

© Copyright 2010-2017 Fabrizio Fichera. All rights reserved.