6,049 Topics
![]() | |
Hi all, Im using hibernate in netbeans to map to a mysql database, but am having problems.... when I open a session: [CODE]Session session = SessionFactoryUtil.getInstance().openSession(); session.beginTransaction();[/CODE] it prints out this in the console:... [COLOR="Red"]12/04/2010 9:50:26 AM org.hibernate.cfg.annotations.Version <clinit> INFO: Hibernate Annotations 3.3.1.GA 12/04/2010 9:50:26 AM org.hibernate.cfg.Environment <clinit> INFO: Hibernate … | |
Hi, I need three tables (div). The left and right sides of the occupied 50% of the free window. The center is fixed. Everything seems fine, but right down to jump off the table. [CODE="HTML"] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head> <style type="text/css"> … | |
Hey Im having a bit of trouble due to creating a media player playlist and using xml to input the directory variables to flash. I haven't really used xml much apart from that. Anyway... I need the variables from my XML file in a variable ready to print in php … | |
Hello, i want to know the best practice to 1. read an XML file and store it in SQL data base and 2. modify the data base whenever the XML file modified, i created a table on data base on SQL server with columns has the same names like XML … | |
Hi, I've made a small program which has 2 buttons and each does certain thing. Here's a simplified version of the code. Thing is it works fine except that the button freezes and stays in a clicked position and whole GUI freezes until the command is completed. As far as … | |
Hello and thanks in advance for your time. Why is the InputStream not excepting the String path to a package containing a properties file? [code] private void writeBtnActionPerformed(java.awt.event.ActionEvent evt) { String path="/view/resources/projectnames.properties"; String txtIn=writeTxt.getText(); PropertyWriter pw = new PropertyWriter(); try { pw.StreamToString(path, txtIn); } catch (IOException ex) { Logger.getLogger(WriteContentTab.class.getName()).log(Level.SEVERE, null, … | |
This is my XML code: [CODE]<?xml version="1.0" encoding="ISO-8859-1"?> <library> <episodes> <episode> <eptitle>Police Stop!</eptitle> <epno></epno> <desc>Dangerous driving caught on camera.</desc> </episode> <episode> <eptitle>Police Stop! 2</eptitle> <epno></epno> <desc>Dangerous driving caught on camera. Including a pursuit through the Midlands.</desc> </episode> <episode> <eptitle>Police Stop! 3</eptitle> <epno></epno> <desc>Featuring footage of dangerous driving on our roads, … | |
![]() | I compiling with Solaris 10 SPARC, jdk 1.6 from Sun, Ant 1.7.1 from OpenCSW. I have no problem running hadoop 0.17.2.1 However, I have problem compiling/integrating hive with the error 'cannot find symbol', although I followed the tutorial. I have the hive source code from SVN exactly from tutorial. How … |
Thank you for reading, I am currently trying to pass through a project or whole sites containing many pages to determine wether they are xhtml-strict or not with a local xhtml-strict.dtd file. I cannot go through a webservice it would be too overkilling for server and host might even probably … | |
hi, i have designed a web service which would create 2 csv files on the system. I want to send the links to the location of the files as an url attachment over the aspx page. like : ([url]http://)[/url] myserver/download.aspx?file1=C:\temp\image1.png&file2=C:\temp\image2.png i kept http in brackets so that you can read … | |
[QUOTE][CODE]using System; using System.IO; using System.Xml; namespace Task3 { class TextFileReader { static void Main(string[] args) { XmlTextReader reader = new XmlTextReader("my.xml"); String strn, strsn; while (reader.Read()) { switch (reader.NodeType) { case XmlNodeType.Element: // The node is an element. if (reader.HasAttributes) { //Console.WriteLine(reader.GetAttribute("reader.Name")); strn = reader.GetAttribute(0); strsn = reader.GetAttribute(1); //Console.WriteLine(strn); … | |
Hi all, I have an XML File: staff_record> <staff> <username>user1</username> <password>password1</password> </staff> <staff> <username>user2</username> <password>password2</password> </staff> <staff> <username>user3</username> <password>password3</password> </staff> </staff_record> I have a form (login.html) and I need to use an ASP page (login.asp) to redirect the user to home.asp when they have successfully logged in, based on the … | |
So I want to create a website that allows me (or others) to type in a words and select a relevent search, and have it search multiple XML pages on another server (IE: they search my site and are given 3 other sites to go to with that relevent information). … | |
While i am installing joomla on my domain, showing the error Warning: in_array() [function.in-array]: Wrong datatype for second argument in D:\sites\frontpage1\parsuae\webroot\cominfo\installation\installer\models\model.php on line 453 What is this[code]Warning: in_array() [function.in-array]: Wrong datatype for second argument in D:\sites\frontpage1\parsuae\webroot\cominfo\installation\installer\models\model.php on line 453 Code Below, Please help me <?php /** * @version $Id: model.php … | |
Hello everyone, I was wondering if anyone knew the tradeoffs between using @queryparam and @pathparam. Let's say I have a call from the client: [CODE]uri = /rs/1/setup/cancelprogress?type=orange[/CODE] and use a (@QueryParam "type") String type. How is this better, or worse, or that much different, from: [CODE]uri = /rs/1/setup/cancelprogress/orange[/CODE] and use … | |
Hi, I am new to using the Soap::Lite perl module. Here is a piece of code to retrieve an image, but it does not seem to working properly. [code] #!/usr/local/bin/perl # Load the SOAP library use SOAP::Lite; # Service details my $NAMESPACE = 'http://ops.epo.org//soap-services/document-retrieval'; my $ENDPOINT = 'http://ops.epo.org//soap-services/document-retrieval'; # Create … | |
Hi All, Im using PHP to extract data from an XML response. for example: [code] <UserManageResult> <ErrorNumber>0</ErrorNumber> <ErrorMessage/> <guid>a806368a64ab4cd3a4fef3572e0f2276</guid> </UserManageResult> [/code] i would use this code to get the guid value [code] $xml = new SimpleXMLElement($result); $guid = $xml->guid; [/code] Which works fine. my question is, how do i extract … | |
[CODE]<?xml version="1.0" encoding="utf-8" ?> <hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" namespace="Samples.Controllers" schema="I_USER" assembly="Samples" > <sql-query name="PROCEDURE1" callable="true"> <!--<return class="empdetails.cs" />--> <return-scalar column="iusrfname" type="String" /> <return-scalar column="iusrlname" type="String" /> <return-scalar column="iusrlinname" type="String" /> <return-scalar column="iusremailid" type="String" /> <return-scalar column="iusrmobileno" type="String" /> <return-scalar column="iusrrmrks" type="String" /> <!--<return-scalar column="iusrcreated" type="DateTime" />--> call PROCEDURE1(:pr_userid,:iusrfname,:iusrlname,:iusrlinname,:iusremailid,:iusrmobileno,:iusrrmrks)<!--,:iusrcreated)--> </sql-query> </hibernate-mapping>[/CODE] | |
[QUOTE]hi...I had to read a xml file in c#...i Had written the following code but the desired output is not coming..[/QUOTE] [CODE]using System; using System.Xml; namespace ReadXMLfromFile { class Class1 { static void Main(string[] args) { XmlTextReader reader = new XmlTextReader("my.xml"); while (reader.Read()) { switch (reader.NodeType) { case XmlNodeType.Element: // … | |
Hey I have an array which pulls in the name, artist and URL of songs from a playlist.xml file. The array prints like the following: [CODE]Array ( [0] => Array ( [tag] => PLAYLIST [value] => Array ( [0] => Array ( [tag] => SONG [value] => [attributes] => Array … | |
Hi, I am newbie in xslt. I have some problem in my current project. I have to call web service from xslt. The web service takes an xml document as input parameter. I dont know how to do it. I have tried to write xslt which calls web service by … | |
hi...i have to create a code generator in c++, but i am starting from scratch , so first i need to create an xml file.... can anyone help me to create a simple xml file, with only two fields i.e., name and surname.... and this is where i'll fetch the … | |
hi every one , I want a xml site map generator script . I have searched alot and I've tried 4 of them , the main problem of these scripts is this , they can not save the content , they just can save e the site's urls , for … | |
I am running xhtml-strict report on a bunch of pages and each time I find a page on a specific page I save it. I need to really look over all the page but what happens is that sometimes the XmlReader is failling but I cannot go on and check … | |
Hi all I'm creating XML with php's native DOMDocument functionality. When I try save the XML it doesn't appear on the server and I can't figure out why. [CODE=php]<?php // Initiate the XML $doc = new DOMDocument('1.0', 'UTF-8'); $doc->formatOutput = true; // Code that creates XML elements and child elements … | |
I am trying to make a form using html and JSP, get the data and save them in an XML file. I use also Tomcat 1.6 as server. For generating the XML I am using the XStream library. I have a Customer.java class with get and set methods for a … | |
I am trying to learn xslt and I'm having difficulties trying to figure out how to process a file that is not built out as a hierarchy (except based on an attribute) and change it into a hierarchy. Using the following XML [CODE]<?xml version="1.0" encoding="UTF-8"?> <data> <h level="1">test</h> <p>some data … | |
Hey DaniWeb community; I am trying to create a web page that pulls its settings from a file called settings.xml, and apply them to the web page. The title is the tag I want to change now, but my code is not working. Here is the code: [CODE=PHP] <?php //Open … | |
I tried to execute following target. [code=xml]<target name="A"> <svn> <checkout url="${svn_url}" destPath="ab"/> </svn> </target>[/code] and I got the error "failed to create task or type svn Cause: The name is undefined." I have TortoiseSVN, ant home is ok, got the antsvn lib and put them into ant_home\lib So I don't … | |
Hi Guys, When I am using XML version in the XHTML, then I am getting parser error [Parse error: parse error, unexpected T_STRING on line 1]. <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US"> <head> <title>Testing Page</title> </head> <body> <p>Hi</p> </body> </html> When … | |
I have a flash site I'm building, the only problem I'm having is the carousel I have for it does not stay on the frame its supposed to be on. I.E. I click on the link to the carousel, and it pops up and works normally, however, if I click … | |
Hi. I am using apache servicemix and apache activeMQ in my product. Here in case of HttpConnector i found a performance issue. If i increase number of total request at a time then as the number will increase exchange queue gets stuck on any of the component. After all the … | |
Hello everyone, Ok, well I am faced with the challenge of creating a scouting program for my robotics team so we could keep a track of how other teams do at competitions to compare and contrast their designs. I have 95% of the program done, it reads and adds info … | |
Hello, I am currently working on a function that will allow the user to search for an event by date and category. I've been using the w3schools exercise as an example but i wish to pass 2 pieces of data instead of one and am not sure how to do … | |
I have just translated my delphi project to C#. I need a little help fixing some of the code I couldn't fix. One code I couldn't fix was xplode. Here is my source: [code]using System; using System.Drawing; using System.Collections; using System.ComponentModel; using System.Windows.Forms; using System.Threading; using System.IO; using System.Text; using … | |
I am using XSL to transform the XML.I am generating a Excel sheet using XML/XSLT. I want to password protect the sheet. If a user try to modify any cell then it ask for password? <?xml version ="1.0" encoding ="utf-8" ?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="urn:schemas-microsoft-com:office:spreadsheet" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:user="urn:my-scripts" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" … | |
how to change database at runtime, i use hibernate and spring. i have make like this hibernate.cfg.xml [code] <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"> <hibernate-configuration> <session-factory> <mapping class="com.model.Person" /> <mapping class="com.model.Group" /> </session-factory> </hibernate-configuration> [/code] spring.ctx.xml [code] <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p" xmlns:context="http://www.springframework.org/schema/context" … | |
I have been sent an xsd file to use as a model for generating an XML file. I have used the XSD.exe utility to create a typed class. I have populated this class with the data required but now I am looking for a way to turn this data into … | |
Hey guys, I'm sure this has been done before, but I haven't found the snippet yet. I think I have to use preg_match_all. Here's my very simple stopping point: [CODE]$content = $obj->introtext; $xml .= "<ImageUrl><![CDATA[$content]]></ImageUrl>";[/CODE] Here are two examples of the introtext table data: [QUOTE]<p><span style="font-size: 10pt;"><img src="images/stories/D-West.jpg" alt="D-West" style="margin: … | |
Hi, I am using following code to Highlighting keywords in a text or resume. My code: // al is an Arraylist which have keywrods as .net, java, xml... [code] al = (ArrayList)Session["keyWords"]; for (int i = 0; i < al.Count; i++) { if (s.Contains(al[i].ToString().ToLower()) || s.Contains(al[i].ToString().ToUpper()) || s.Contains(al[i].ToString())) { //s … | |
hello guys! i'm quite new here and i'm probably posting this on the wrong place, but hey, here goes nothing! :P so, i have this lovely XML (not!) that was obtained through a yahoo pipe, and had a JSON decode, in order to transform it in a XML that could … | |
Dear All, I'm a newbie to both XML and XLST. I have an XML document that has the following code [CODE] <?xml version="1.0" encoding="WINDOWS-1256"?> <?xml-stylesheet type="text/xsl" href="NameEntity.xsl"?> <DOC> We are going to <ENAMEX Type="LOC">washington</ENAMEX> , after that we will go to <ENAMEX Type="MISC">Newyork</ENAMEX> city, then we will go to <ENAMEX … | |
I am trying to use the pc as a recognition service I want to take the calls (the number of the caller) and use it to an html form I really need the part that i take the phone number of the caller and pass it to a form then … | |
I am developing a website in ASP.net 3.5 where there is a very big database. I have to show data on one single page dynamically changing from the database and that database will contain data of about 4000 pages having text and images. With formatting tags and lot of tags, … | |
Hi everyone! I need some help please, i've been trawling the net for hours now and can't find what i'm after. Does anyone know how to either return an xml structure or create an xml doc from a cfdirectory query so i can use it in a Flex tree? Any … | |
Hey all, I have manage to create a program which sniff and response to the snmp command returning the default value to it various parameter. However when the user will to set a new value to the parameter, instead of displaying the new value the program response with the default … | |
Hello guys! I am very new to XSLT and am getting stuck in a very annoying problem. I have got a XSL file within with there is a part of code to book a place. Here is the code; [CODE]<xsl:when test="seats > 0"> <td> <input onclick="sendBookRequest();" type="button" value="book"> <xsl:attribute name="onclick">sendBookRequest(<xsl:value-of … | |
I have an xml document that looks like this: [code] <OUTPUT version="2.0"> <RESPONSE> <LOAN_DATA loan_id="xxxx" loan_number="1111" loan_type="HE" status_code="OK"> <![CDATA[<MORTGAGE_LOAN xmlns="http://www.something.com/CLF" version="1.0"> <APPLICANTS> <APPLICANT is_declined="N" first_name="MARISOL" last_name="TESTCASE" m_initial="L" middle_name="L" ssn="000000001" > </APPLICANT> </APPLICANTS> </MORTGAGE_LOAN>]]> </LOAN_DATA> </RESPONSE> </OUTPUT> [/code] I can successfully read down to the CData section and can even access … | |
hi there I'm new to php but im trying to replace items on page with a certain id with a image or anything i want. So i have this code on the page [vimeo 123456] [vimeo 345675] my php goes off to vimeo to get the correct image based on … | |
hey guys new to all the web programming i have got a little task and have no idea where to start could someone help me please. well i have to draw a line between to different coordinates which are going on google maps so for example : [CODE] <Placemark> <name>mark … |
The End.