Posts

Showing posts with the label xml

The activity is not responding

Image
The activity is not responding I have been working on developing an application which needed login and signup screen. My register activity is not working properly. The application is unable to take user from the start screen to the register activity, first the error arose of absence of intent filter then I included the intent filter in the manifest file but it seems like my app is ignoring the register activity. I am attaching both manifest file and the activity code please have a look. Don't use images to share code, use code snippet. – tahsinRupam Jul 2 at 10:39 2 Answers 2 As images are suggesting there are two LAUNCHER Activities in your AndroidMenifest.xml file, so you will have to make one of them as DEFAULT category . LAUNCHER AndroidMenife...

Populate Datagrid From xml file

Populate Datagrid From xml file I've looked at many answers on this topic but was unable to find the answer to my question, so apologies in advance if I missed this answer somewhere else. I would like to add attributes of a particular object id to a datagrid. The routine that I have developed unfortunately adds all attributes to the datagrid and not just the attributes of the selected object. I have the following xml file structure: <?xml version="1.0" encoding="UTF-8"?> <project> <configuration> <general> <verbose>True</verbose> </general> <architecture> <site reference="Demo Site Reference" type="WTP" id="0001" /> <rtu dnp="77" ip="10.10.10.77" type="Schneider Electric SCADAPack 442" /> <radio ip="10.10.10.76" /> <hmi ip="10.10.10.75" /> </architecture> ...

Querying a XML column in SQL Server [closed]

Querying a XML column in SQL Server [closed] I wish to query a XML column in SQL Server. Following is the XML structure: <MessageEnvelope xmlns="http://schemas.xyz.com/messagebus/messageenvelope/1.0" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <CustomField1/> <CustomField2 /> <CustomField3 /> <MessagePayload> <Counterpart xmlns="http://schemas.xyz.com/messagebus/saxotrading/counterpart/1.1"> <CounterpartID>111</CounterpartID> <TaxCountry>65</TaxCountry> <CustomerIdTypeCode>D</CustomerIdTypeCode> </Counterpart> <Counterpart xmlns="http://schemas.xyz.com/messagebus/saxotrading/counterpart/1.1"> <CounterpartID>112</CounterpartID> <TaxCountry>5</TaxCountry> <CustomerIdTypeCode>N</CustomerIdTypeCode> </Counterpart> <Counterpart xmlns=...

Two different pages get clipped with login and signUp page display in android xml layout

Image
Two different pages get clipped with login and signUp page display in android xml layout Login And SignUp Screen How to implement and write xml file like this image? Please Help me. 2 Answers 2 Create layout like this, <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:weightSum="2" tools:context=".MainActivity"> <LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1.90" android:orientation="vertical"> <!-- put your Login page content ,email ,passw...

how to conditionally hide a row in excel if condition is not met

how to conditionally hide a row in excel if condition is not met I am using BI Publisher add-in in excel , and I want to hide a row of <?net_salary?> if the value equal 0 my code : <?net_salary?> <xsl:choose> <xsl:when test="number(.//NET_SALARY) != 0"><xsl:value-of select="(.//NET_SALARY)"/></xsl:when> <xsl:otherwise> ** hide row ** </xsl:otherwise> </xsl:choose> 1 Answer 1 If you put an IF statement at the beginning of the row before anything else, and then end if at the end of the row after everything else, it will not render the row if the condition is not met. For more information, there's details in the BI Publisher Report Designer guide on IF statements. IF end if Example: <?if:net_salary<>'0'?> Table cells and data elements <?end if?> <?if:net_salary<...

XML file should be read and store in java object to use throughout application on spring mvc

XML file should be read and store in java object to use throughout application on spring mvc I have a xml file which is having all SQL queries. While Application Context gets loaded, from the servlet, I read the file and store it in HashMap which is static and will use that object throught the application. Now , I migrate to spring mvc . I included the sql xml in resourced folder . I need help to read and use that resource throught the application. Is there any way to handle this. Thanks. I don't know the structure of your file. But what I can suggest is to convert your xml file into an object UnMarshalling , then depending on your needs do whatever with that object. There are a lot of good tutorials out there. – Dfor Tye Jul 1 at 17:56 UnMarshalling Thank you. I can unmarshall the object by having that logic...