xpath

Rename XML files with VBScript, using XPath

我的梦境 提交于 2020-01-16 13:04:09
问题 I've got a VBScript that renames XML files in a directory, based on nodes values present on these XMLs. These files need to be renamed with a "Operadora" name and a "Date". "Operadora" is an unique node, but there are several "Date" nodes on my XMLs, so I need to take the most recent "Date" as part of the file name. A friend in StackOverflow helped me out finding a way to do it to one archive, but I'm getting an error implementing it when it's about to read multiple files. I'm getting an

Scrapy add.xpath or join xpath

那年仲夏 提交于 2020-01-16 12:37:47
问题 I hope everyone is doing well. I have this code(part of it) for a spider, now this is the last part of the scraping, here it start to scrape and then write in the csv file, so I got this doubdt, it is possible to join or add xpath with the result printed in the file, for example: <h5>Soundbooster</h5> <br><br> <p class="details"> <b>Filtro attuale</b> </p> <blockquote> <p> <b>Catalogo:</b> Aliant</br> <b>Marca e Modello:</b> Mazda - 3 </br> <b>Versione:</b> (3th gen) 2013-now (Petrol) </p> <

How to extract a node value from an xml in Mule

删除回忆录丶 提交于 2020-01-16 12:08:06
问题 This is my source xml sample. <?xml version="1.0" encoding="UTF-8"?> <XML> <Meta> <Status>Success</Status> <Debug></Debug> </Meta> <Result> <Surveys> <element id='0'> <responses>6</responses> <SurveyType>SS</SurveyType> <SurveyID>SV_01C7i5l62dnKTel</SurveyID> <SurveyName>Georgia Dome GS</SurveyName> <SurveyDescription>Georgia Dome</SurveyDescription> <SurveyOwnerID>UR_8IZEh6bVlQaF41L</SurveyOwnerID> <DivisionID>DV_2cmHYrtm8C93T6J</DivisionID> <SurveyStatus>Active</SurveyStatus>

How to find element from react-native app using appium - React Native + Appium

和自甴很熟 提交于 2020-01-16 09:17:08
问题 How to find element in React-Native app using appium. Here the element does not have id, name or accessibility label or accessibility id to find it. @AndroidFindBy(xpath = "//android.widget.EditText[@text='Email']") public AndroidElement edt_email_login; @AndroidFindBy(xpath = "//android.widget.EditText[@text='Password']") public AndroidElement edt_password_login; @AndroidFindBy(xpath = "//android.widget.EditText[@text='Login']") public AndroidElement btn_login; Error: org.openqa.selenium

How to find element from react-native app using appium - React Native + Appium

て烟熏妆下的殇ゞ 提交于 2020-01-16 09:17:07
问题 How to find element in React-Native app using appium. Here the element does not have id, name or accessibility label or accessibility id to find it. @AndroidFindBy(xpath = "//android.widget.EditText[@text='Email']") public AndroidElement edt_email_login; @AndroidFindBy(xpath = "//android.widget.EditText[@text='Password']") public AndroidElement edt_password_login; @AndroidFindBy(xpath = "//android.widget.EditText[@text='Login']") public AndroidElement btn_login; Error: org.openqa.selenium

Xpath table changes as combobox changes too

我与影子孤独终老i 提交于 2020-01-16 09:09:10
问题 I'm working on an application in C# that goes to a website and gets some content out of a table. It's working fine, but here is the problem: the table that I'm getting the content of changes as I select a different value in a combobox. The Xpath that I use always gets the table that is first shown on the website and I don't know how to get the other ones. I'm posting here everything I think is useful for you to help me. The webpage is: http://br.soccerway.com/national/brazil/serie-a/2012

How to specify nested “not” operation in specific group id in AEM?

江枫思渺然 提交于 2020-01-16 09:05:56
问题 I have a little complex predicator in which I need to have some nested not operation path=/content/course/ type=cq:Page group.1_daterange.lowerBound=2019-06-12T13:39:19.358Z group.1_daterange.property=jcr:content/xyz group.2_daterange.upperBound=2019-06-12T13:39:19.358Z group.2_daterange.property=jcr:content/abc group.3_relativedaterange.property=jcr:content/courseStartDate group.3_relativedaterange.lowerBound=0 group.p.not=true I don’t want to include the result of group 1 and group 2 hence

Parsing XML getting comment(s) and date value(s) only

这一生的挚爱 提交于 2020-01-16 08:36:10
问题 Hey all I am trying to see if I can read an XML file and only gather the tags that have the date formatted like YYYY-MM-DD. Here is an online example: https://repl.it/repls/MedicalIgnorantEfficiency Here is an example of my xml to parse: <?xml version="1.0" encoding="UTF-8"?> <ncc:Message xmlns:ncc="http://blank/1.0.6" xmlns:cs="http://blank/1.0.0" xmlns:jx="http://blank/1.0.0" xmlns:jm="http://blank/1.0.0" xmlns:n-p="http://blank/1.0.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi=

Long path xquery in SQL Server

纵然是瞬间 提交于 2020-01-16 05:26:06
问题 Below is my code in SSMS. and is working fine. But problem is my @p1='variable1/variable2' , and I am not able to get the result. Thank you. DECLARE @SSRXML xml = '<root> <variable1> <variable2> <variable3> <name>Alvin</name> <country>Singapore</country> </variable3> </variable2> </variable1> </root>' DECLARE @p1 VARCHAR(MAX) = 'variable1'; SELECT @SSRXML.query('//root/*[local-name()=sql:variable("@p1")]' ) 回答1: If you query xml instance with variable path, you may try dynamic sql: DECLARE

How do I return a list of values instead of a string when querying a oracle database using XPath?

坚强是说给别人听的谎言 提交于 2020-01-16 03:53:28
问题 I am using XPath to query an oracle database where the field I am querying looks like: <!-- language: lang-xml --> <film> <title>Godfather, The</title> <year>1972</year> <directors> <director>Francis Ford Coppola</director> </directors> <genres> <genre>Crime</genre> <genre>Drama</genre> </genres> <plot>Son of a mafia boss takes over when his father is critically wounded in a mob hit.</plot> <cast> <performer> <actor>Marlon Brando</actor> <role>Don Vito Corleone</role> </performer> <performer>