How to use condtion in xpath

<courses> <course number = "1" category = "A"> <title>B</title> </course> </courses> I want to pick all @number has category= "A" I try to use //@number[@category/text()='A'], but it seem no work, So how can I ge...
more »

2017-12-03 23:12 (2) Answers

How to change xml file with php

I search an example of code that can change my xml file thanks to PhP but I don't find on the Internet. I try to change my tag score1 and score2. This is (example) my xml code : <Coupe> <Groupe id = "Groupe A"> <Match id = "1">...
more »

2017-12-03 14:12 (1) Answers

Floating Action Button appears too low

I have made a tabbed activity and i want to put a FAB to the bottom right of a fragment which appears when i press the corresponding tab.My problem is that the FAB appears too low as the following screenshot shows. My activity_main.xml is this: <...
more »

2017-12-03 03:12 (1) Answers

Can't add CircularSeekBar to my project

Hey, I've been trying for hours to add this to my project to make a fuel gauge. I've been doing everything as it is shown in the instructions. But I happen to encounter some problems that I can't resolve. I've pasted the .java file as instructed e...
more »

2017-12-02 21:12 (1) Answers

Selecting a parent node in XPath?

Here is a snippet of XML (there is much more) I'm working with, I'm trying to run an XPath expression to find the ASIN node in the Item section while confirming that the Author isn't JK Rowling. I tried this: /ItemSearchResponse/Items/Item/ItemAttri...
more »

2017-12-02 20:12 (1) Answers

how can I Get MAC ADDRESS android 7.0

I can't get the mac address can anyone help me please I am newbies in android development please help me manifest.xml <receiver android:name="com.example.v3rlu.authentification.DeviceAdmin" android:permission="android.perm...
more »

2017-12-02 13:12 (2) Answers

Duplication of XML namespaces in SQL

I have the following problem, I need to remove the "cfdi_" for "cfdi:" I used the namespaces to solve that but they are duplicated by each node and I can not eliminate them, If you could help me I would appreciate it declare @Mydoc xml; set @Mydoc...
more »

2017-12-01 18:12 (2) Answers

- in xml tag simplexml

I have tags like this in my xml <sub-up ...>...</sub-up> and when I do this $xmlData = simplexml_load_string($decodeData); foreach ($xmlData->sub-up->result as $res) { print_r($res); } I'm getting an error: "Parse err...
more »

2017-12-01 14:12 (1) Answers

XSL:FO inline and pretty print

I am trying to work with xsl:fo to create pdf. I am stuck on problem with inline elements. I need to write line with one bold word. For example: I need this to be bold. I could do that with this code: <fo:block> <fo:inline>I ne...
more »

2017-12-01 13:12 (1) Answers

XPath: found last element with criteria

this xpath-Statement extract the first value from Attribut Adressen/Adresse/NUMMER //Adressen/Adresse/NUMMER[../TYP="P"] Response: 20171129100600 But I try to get the last value from the Property Adressen/Adresse/NUMMER with Adressen/Adresse/...
more »

2017-12-01 13:12 (2) Answers

Two Index's on the same row

I have a rails application that exports content from my database in an xls format. I'm looking to create two separate tables without putting them in the same row. Is there anyway to have two index's on the same row? <?xml version="1.0"?> <...
more »

2017-11-30 22:11 (1) Answers

External ID not found in the system

I have a Odoo 10 cron xml, which looks like this: <record forcecreate="True" id="saas_portal_suspend_expired" model="ir.cron"> <field name="name">Saas portal - suspend expired clients</field> <field eval="Tru...
more »

2017-11-30 15:11 (2) Answers

How to download and open XML file via SFTP?

I need to open XML file (create XmlDocument) without creating local copy. Using SSH.NET, I came up with this code: var connectionInfo = new ConnectionInfo("host", "username", new PasswordAuthenticationMethod("username", "password")); using ...
more »

2017-11-30 11:11 (4) Answers

NameSpaces in xml sql

How can I declare the namespaces in a query? I get an error when declaring the namespaces Declare @Mydoc xml set @Mydoc = ( select importe, algo,XD, (select impuesto,tasa,transferencia from CfdiDet ...
more »

2017-11-29 18:11 (1) Answers

How to add 2-nd input value with nusoap?

I have created server based on nusoap library. I can make it work with 1 input value, and it returns string output, but when i want to add additional input for function and nusoap function, it is not working and returning nothing, It is not passing v...
more »

2017-11-29 09:11 (0) Answers

sending the right soap request using node-soap

I'm facing a pretty annoying problem regarding sending soap-requests. If I use a tool like SOAP-UI, i can easily build a proper soap-request in XML. But if I'm trying to use node-soap to send this soap-request I am not able to get the right xml-stri...
more »

2017-11-28 13:11 (0) Answers