I have a MySQL database which contains a text field which contains well formed xml. I want to export this data as an xml file named result_new.xml on the fly. I have made the tmp folder and have set the permissions on the folder to 0777. If I run this snippet in a php file with proper access to the database and correct values in the variables, I can echo the field's content correctly, but when I use the following to create a xml file, nothing happens. I cannot find the new file in the tmp folder. Can someone give …

Member Avatar
Member Avatar
+0 forum 3

Hi there, I am an undergraduate studying computer science. Our lecturer gave us an assignmnet to use Dapfor grid control display both authors name and their book. I don't know where to begin from. Can anyone put me through; maybe with an example.

Member Avatar
Member Avatar
+0 forum 1

I am attempting to add a custom function to my schematron rule stylesheet to aid in looking up values in code tables. I continue to receive an error message: 'XPST0017 XPath syntax at char 0 on line 545 near (...ookupExpression('SEX'): Cannot find a matching 1-argument function named (functions:1.0)BuildLookupExpression())' At the top of the file, I have the following declarations: <?xml version="1.0" encoding="UTF-8"?> <schema xmlns="http://purl.oclc.org/dsdl/schematron" xmlns:sch="http://purl.oclc.org/dsdl/schematron" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fn="http://www.w3.org/2005/xpath-functions" xmlns:local-fn="functions:1.0" xmlns:regexp="http://exslt.org/regular-expressions" queryBinding="xslt2"> <sch:ns uri="functions:1.0" prefix="local-fn" /> . . . and the function declaration as: <!-- *********************************** Functions *********************** --> <!-- special variables for lookup table --> <xsl:key name="Code-Lookup" match="CodeTable" use="Code"/> <xsl:variable name="codeTables" …

Member Avatar
+0 forum 0

Hi there to all I'm trying to make application which should extract certain data from XML files. I'm using form, combobox and button. If someone could guide me because I'm not so familiar with programming... here is code example To populate Combobox1 and it works fine Private Sub form1_load(sender As Object, e As EventArgs) Handles MyBase.Load Dim strpath As String = System.IO.Path.GetDirectoryName(Application.ExecutablePath) & "\" Dim dirinfo As New IO.DirectoryInfo(strpath) For Each file As FileInfo In dirinfo.GetFiles("*.XML", SearchOption.TopDirectoryOnly) ComboBox1.Items.Add(file.Name) Next This code should choose file from combobox1 and do READ some data from file I have choosen Private Sub button1_click(ByVal sender …

Member Avatar
Member Avatar
+0 forum 4

First let me confess that I'm a beginner with little knowledge of Java. I'm facing a problem with XML to JSON conversion. The XML that I need to covert is complex with elements that will repeat throughout the document. And the order in which the elements appear need to be preserved too. Sample XML : <?xml version="1.0" encoding="utf-8" ?>
 <books>
 <book>
 <chapter>
 <number>i</number> 
<title>Introduction</title>
 </chapter> <volume>
<number>1</number>
 <title>this title contains <italic>markup</italic> tags</title> <part>
 
<title>part may contain sections and nested parts</title>
 <section> 
<title>contains chapters</title>
 <chapter>
 <number>1.1.1</number> 
<title>first chapter</title>
 </chapter> <chapter>
 <number>1.1.2</number> 
<title>second chapter</title>
 </chapter> </section> </part> <chapter>
 <number>x</number> 
<title>references for volume one</title>
 …

Member Avatar
Member Avatar
+0 forum 1

<select id="keyEquipmentShiftAutomatedModelData" parameterType="java.util.Map" resultType="java.util.Map"> SELECT ID, SUM(VALUE1 + VALUE2) Total FROM tableName GROUP BY ID </select> Returns below result in sql ID, Total 1 (null) But when returned in Map result in myBatis returns {ID=1} where as Total is missing. How to get the column with null into the result set as well something like this {ID=1,Total=null} or something like this {ID=1,Total=""}

Member Avatar
Member Avatar
+0 forum 1

Hi, I am struggling with xml layout in my android app... please help here is what I want: I have to display two poarts in one activity - image part and login component part which are in one linearLayout. When the device is landscape, I want it to be 30% screen for image and 70% for the linearLayout. Both should be centered in each region In portrait mode, I want them to be displayed like image on the top and linearLayout on the bottom. Both should be centered as well. in landscape mode: [ imageView 30% image centered ][ linear …

Member Avatar
Member Avatar
+0 forum 2

Hello guys so i'm quite new to C++ but i already learned OOP and other things so i want to use this little knowledge yet to create some basic program. I wanted to make a program that uses some API's but the problem is i'm not famillar how API's work and how can i implent it with C++ language.. First i thought there are a header or library that i need to use it but i can't still figure it out.. Anyway this is the API i wanted to use , This is from a building/scripting game ROBLOX where you …

Member Avatar
Member Avatar
+0 forum 3

I just want to know whether the ROR sitemap is still an effective choice for SEO? Because, nowadays no one is using ror sitemap.

Member Avatar
Member Avatar
+0 forum 2

I am very much interested in learning programing and software development skills. However i know sotware testing skills, knowledge of hardware, software applications, information security, networking. I do lot or research to learn to develop and desing website with databse integration. I am not financially fit to invest in all the pripherals involved in this process but i feel some confusiion in unterstanding this technology to demonstarte with my team by looking at their faces. As i feel they know every thing what the organizaiton need but I dont know anything. Please help me to get started with programming and …

Member Avatar
Member Avatar
+0 forum 3

I am trying to build a web application that can also run on mobile phones. Is the html code generated by imgmap_desktop can be run on both web and mobile? or rather web responsive type?

Member Avatar
+0 forum 0

xml output: <balance> <credits>39660</credits> </balance> how to fetch the xml output from url and store the credits i.e. 39660 into php variable. the above xml output is coming from following url http://www.xyz.com/check-balance.php?username=ssgent&password=ssgentr check-balance.php code: <?php require('dbcon.php'); include('encrypt.php'); include('functions.php'); $username = $_GET['username']; $password = $_GET['password']; $password = encrypt($password, 'riffre'); $url = $_SERVER['HTTP_HOST']; $url_length = strlen($url); if (substr($url, 0, 4) == 'www.') { $url_length = $url_length - 4; $url = substr( $url, 4, $url_length ); } $query = "select * from users where username='$username' and password='$password' and status='Active'"; if(!($result = mysql_query($query))) { exit(mysql_error()); (bool)true; } $crq=mysql_fetch_array($result); $userid = $crq['id']; $rows = mysql_num_rows($result); …

Member Avatar
Member Avatar
+0 forum 5

Dear all, I am looking for guideline to read data from website[photon](http://www.photon.info/photon_site_db_solarmodule_en.photon) . & load into csv file. Whenever new supplier selection or typesection change data should recorded into same excel with new sheet. Can some guide how to get started using python This code to develop for database. Is there any easy method to do it will be appreciable.

Member Avatar
Member Avatar
+0 forum 1

I am using XML:twig to extract some attributes from an XML file using Perl; Here is my code: use XML::Twig; my $file = $ARGV[0]; $file =~ /(.+)\.xml/; my $outfile = $1.".snp" ; open my $out,'>',$outfile or die "Could not open file '$outfile' $!"; my $twig = XML::Twig->new ( twig_handlers => { 'Rs/MergeHistory' => \&MergeHistory, } ); $twig -> parsefile( "$file"); sub MergeHistory { my ($twig, $elt) = @_; print $out "\t"; print $out "rs"; print $out $elt->att('rsId'), ","; print $out "b"; print $out $elt->att('buildId'), ","; } This print the following results: rs56546490,b130, rs386588736,b142 rs56546490,b130, rs386588736,b142 What I want is to …

Member Avatar
Member Avatar
+0 forum 2

I am work in my seo site do all seo techniq is use but not in google index page.

Member Avatar
Member Avatar
+0 forum 14

Hi, I've recently been assigned a task in a new job where I have to compare XML paths against Acord XML paths to find out what the ancestor path is. I've never done anything like this before and just want to check that I am doing it correctly because i've asked many of times for someone to show me how to do it so don't want to ask them again. An example I was giving was: /account/commercialPolicy/workersCompensationPolicy/state/classification#exposure compared against WorkCompLineBusiness.WorkCompRateState.WorkCompLocInfo.WorkCompRateClass.Exposure equals in the ancestor path for both being parent. Another example I was shown, is: /account/commercialPolicy/workersCompensationPolicy/state/returnToWorkProgram#returnToWorkPremiumCredit compared against WorkCompLineBusiness.WorkCompRateState.CreditOrSurcharge[CreditSurchargeCd = …

Member Avatar
Member Avatar
+0 forum 1

I have an xml structure : <Pages> <!--This is the root node--> <Home> <url>...</url> <menu> <item>Help</item> <item>About</item> <item>Contact</item> </menu> </Home> <Help> <url>...</url> <menu> <!--i need to select this if its parent(Help) is listed in Home/menu/item above--> <item>Business Help</item> <item>Web Help</item> <item>Tour Help</item> </menu> </Help> <About> <url>...</url> <menu> <!--And Or select this if its parent(About) is listed in Home/menu/item above--> <item>About us</item> <item>About our food</item> </menu> </About> <Contact> <url>...</url> <menu> <!--And Or select this if its listed in Home/menu/item above--> ... and so on... ... </menu> </Contact> </Pages> i issued an xpath expression to fetch all menu node in the document, …

Member Avatar
+0 forum 0

I have an xml structure : <Home> <url>...</url> <menu> <item>Help</item> <item>About</item> <item>Contact</item> </menu> </Home> <Help> <url>...</url> <menu> <!--i need to select this if its parent(Help) is listed in Home/menu/item above--> <item>Business Help</item> <item>Web Help</item> <item>Tour Help</item> </menu> </Help> <About> <url>...</url> <menu> <!--And Or select this if its parent(About) is listed in Home/menu/item above--> <item>About us</item> <item>About our food</item> </menu> </About> <Contact> <url>...</url> <menu> <!--And Or select this if its listed in Home/menu/item above--> ... and so on... ... </menu> </Contact> </Pages> i issued an xpath expression to fetch all menu node in the document, whose parent name appeared (or is …

Member Avatar
+0 forum 0

Hi I have a php script which creates an xml file //Select the Database mysql_select_db("personeelsbestand",$db); $result = mysql_query("select * from XMLAfdeling", $db); //Create SimpleXMLElement object $xml = new SimpleXMLElement('<xml/>'); //Add each column value a node of the XML object while($row = mysql_fetch_assoc($result)) { echo $row['Afdelingnaam']."\n"; $mydata = $xml->addChild('mydata'); $mydata->addChild('AfdelingID',$row['AfdelingID']); $mydata->addChild('Afdelingnaam',$row['Afdelingnaam']); $mydata->addChild('VestigingID',$row['CampusID']); $mydata->addChild('Vestiging',$row['Campus']); $mydata->addChild('DepartementsID',$row['DepartemenstID']); $mydata->addChild('Departement',$row['departement']); } mysql_close($db); //Create the XML file $fp = fopen("UltimoAfdeling.xml","wb"); //Write the XML nodes var_dump(fwrite($fp,$xml->asXML())); //Close the database connection fclose($fp); when I run the code in my browser on my localhost it works perfectly but when I try to run it in the windows command prompt as …

Member Avatar
Member Avatar
+0 forum 1

I have been trying since long to extract data using xpath in google sheets but everytime 'am getting message 'imported content is empty'. i need help . The url is http://reports.ieso.ca/public/IntertieScheduleFlow/PUB_IntertieScheduleFlow.xml

Member Avatar
Member Avatar
+0 forum 4

Here is the CSV file that I am working with: `"A","B","C","D","E","F","G","H","I","J" "88",18,1,"<Req TID=""34"" ReqType=""MS""><IISO /><CID>2</CID><MemID>0000</MemID><MemPass /><RequestData><S>[REMOVED]</S><Na /><La /><Card>[REMOVED]</Card><Address /><HPhone /><Mail /></ReqData></Req>","<Response T=""3"" RequestType=""MS""><MS><Memb><PrivateMembers /><Ob>0-12-af</Ob><Locator /></Memb><S>[REMOVED]</S><CNum>[REMOVED]</CNum><FName /><LaName /><Address /><HPhone /><Email /><IISO /><MemID /><MemPass /><T /><CID /><T /></MS></Response>",0-JAN-10 12.00.02 AM,27-JUN-15 12.00.00 AM,"26",667,0 "22",22,1,"<Req TID=""45"" ReqType=""MS""><IISO /><CID>4</CID><MemID>0000</MemID><MemPass /><RequestData><S>[REMOVED]</S><Na /><La /><Card>[REMOVED]</Card><Address /><HPhone /><Mail /></ReqData></Req>","<Response T=""10"" RequestType=""MS""><MS><Memb><PrivateMembers /><Ob>0-12-af</Ob><Locator /></Memb><S>[REMOVED]</S><CNum>[REMOVED]</CNum><FName /><LaName /><Address /><HPhone /><Email /><IISO /><MemID /><MemPass /><T /><CID /><T /></MS></Response>",0-JAN-22 12.00.02 AM,27-JUN-22 12.00.00 AM,"26",667,0 "32",22,1,"<Req TID=""15"" ReqType=""MS""><IISO /><CID>45</CID><MemID>0000</MemID><MemPass /><RequestData><S>[REMOVED]</S><Na /><La /><Card>[REMOVED]</Card><Address /><HPhone /><Mail /></ReqData></Req>","<Response T=""10"" RequestType=""MS""><MS><Memb><PrivateMembers /><Ob>0-12-af</Ob><Locator /></Memb><S>[REMOVED]</S><CNum>[REMOVED]</CNum><FName /><LaName /><Address /><HPhone /><Email /><IISO /><MemID /><MemPass /><T /><CID /><T /></MS></Response>",0-JAN-20 12.00.02 AM,27-JUN-34 12.00.00 AM,"26",667,0` The below …

Member Avatar
+0 forum 0

<Error> <Code>AccessDenied</Code> <Message>Access Denied</Message> <RequestId>E9F449356111EF63</RequestId> <HostId> rQvhUyG5YcEhWAybnmeDjIofcdmbmua7vkr/7v16J7EK3oQZPaQwBBlDFRZb54w7h3wz/F wfWA= </HostId> </Error>

Member Avatar
Member Avatar
+0 forum 2

My XSLT is like: <!DOCTYPE stylesheet [ <!ENTITY hyphen "<xsl:text>-</xsl:text>"> <!ENTITY cr "<xsl:text> </xsl:text>"> ]> <xsl:stylesheet id="test" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ext="http://exslt.org/common" exclude-result-prefixes="ext" version="1.0"> <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/> <xsl:variable name="vc_NDCROI" select="'NDC05'" /> <xsl:template match="node()|@*"> <xsl:copy> <xsl:apply-templates select="node()|@*"/> </xsl:copy> </xsl:template> <xsl:template match="node()|@*" mode="mPass2"> <xsl:copy> <xsl:apply-templates select="node()|@*" mode="mPass2"/> </xsl:copy> </xsl:template> <xsl:template match="/"> <xsl:variable name="vrtfPass1Result"> &cr; <xsl:comment>ACS&amp;T Receipt Confirmation </xsl:comment> &cr; <xsl:element name="Batch"> <xsl:element name="ASN"> <xsl:for-each select="dcsextractdata/dataheaders/dataheader[record_type = 'ORH']"> <xsl:apply-templates select="." mode="orh_receipt" /> </xsl:for-each> </xsl:element> </xsl:element> </xsl:variable> <xsl:apply-templates mode="mPass2" select="ext:node-set($vrtfPass1Result)/*" /> </xsl:template> <xsl:template match="/*[local-name()='Batch']" mode="mPass2"> &cr; <Batch xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <xsl:copy-of select="node()|@*"/> </Batch> </xsl:template> <xsl:template match="dataheader" mode="orh_receipt"> <xsl:element name="BatchReferences"> <xsl:element name="SenderCode"><xsl:value-of select="site_user_def_type_7"/></xsl:element> <xsl:element name="ReceiverCode"><xsl:value-of select="client_user_def_type_7" /> …

Member Avatar
+0 forum 0

I'm trying to convert this xml to json or array. first this is what i did: $response = simplexml_load_string($xml_test); and i got error: < not found, anyone can help me? HTTP/1.1 200 OK Date: Wed, 03 Jun 2015 10:19:38 GMT Server: Apache-Coyote/1.1 Pragma: no-cache Cache-Control: no-cache Expires: Thu, 01 Jan 1970 00:00:00 GMT Content-Type: text/xml;charset=UTF-8 Connection: close <?xml version="1.0" encoding="UTF-8"?> <serv:message xmlns:serv="http://www.webex.com/schemas/2002/06/service" xmlns:com="http://www.webex.com/schemas/2002/06/common" xmlns:meet="http://www.webex.com/schemas/2002/06/service/meeting" xmlns:att="http://www.webex.com/schemas/2002/06/service/attendee"><serv:header> <serv:response> <serv:result>SUCCESS</serv:result> <serv:gsbStatus>PRIMARY</serv:gsbStatus> </serv:response> </serv:header> <serv:body> <serv:bodyContent xsi:type="meet:createMeetingResponse" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <meet:meetingkey>624241744</meet:meetingkey> <meet:iCalendarURL> <serv:host>https://apidemoeu.webex.com/apidemoeu/j.php?MTID=m0d5a3c9f3c1b51ab487a3d8177fba783</serv:host> <serv:attendee>https://apidemoeu.webex.com/apidemoeu/j.php?MTID=mc0cb823f5442d431ed5728351edf909e</serv:attendee> </meet:iCalendarURL><meet:guestToken>0082aa91a2b0ec3ff8ef644e3ca0a1bc</meet:guestToken> </serv:bodyContent> </serv:body> </serv:message>

Member Avatar
Member Avatar
+0 forum 1

Help me how to write persian language (utf-8) in xml file?

Member Avatar
+0 forum 0

Hello, I'm creating a program that functions as a piano in Microsoft Expression Blend and I've hit a bit of a bump. I'm very new to XAML programming, so I thought I'd ask for help since Google searches for the answer just send me deeper into confusion. Basically, I have a JPG image of a piano [like this.](http://s1.postimg.org/763u7mspr/piano1.jpg) And each key has a button on it, that when pressed plays the appropriate tone. That seems to work right now. However, when I press a key, it plays the entire sample. It doesn't stop when another key is pressed. As well …

Member Avatar
+0 forum 0

I having a problem with the cloneNode tag problem. NodeList movielist = doc.getElementsByTagName("movie"); Element child = (Element)movielist.item(6); Element newNode = (Element)child.cloneNode(true); child.appendChild(newNode); newNode.setAttribute("id", "this is newnode"); code above will clone the whole set of thing. but the problem is it colne in wrong tag. i want some thing like this in my xml file. <?xml version="1.0" encoding="UTF-8" standalone="no"?> <movies> <movie id="1007"> <title>Interstellar</title> <genre>Science Fiction</genre> <duration>180 mins</duration> </movie> <movie id="this is newnode"> <title>Interstellar</title> <genre>Science Fiction</genre> <duration>180 mins</duration> </movie> </movies> but the code above give me something like this <?xml version="1.0" encoding="UTF-8" standalone="no"?> <movies> <movie id="1007"> <title>Interstellar</title> <genre>Science Fiction</genre> <duration>180 mins</duration> <movie …

Member Avatar
Member Avatar
+0 forum 9

xml file <?xml version="1.0" encoding="UTF-8" standalone="no"?><movies> <movie id="1111"> <title>Blackhat</title> <genre>thriller</genre> <duration> 90 mins </duration> <age>28</age></movie> <movie id="1002"> <title>The Wedding Ringer</title> <genre>comedy</genre> <duration> 100 mins </duration> </movie> <movie id="1003"> <title>The Avengers</title> <genre>action</genre> <duration> 180 mins </duration> </movie> <movie id="1004"> <title>Taken 3</title> <genre>action</genre> <duration> 100 mins </duration> </movie> <movie id="1005"> <title>Insurgent</title> <genre>Science Fiction</genre> <duration>180 mins</duration> </movie> <movie id="1006"> <title>Jurassic World</title> <genre>Adventure</genre> <duration>120 mins</duration> </movie> <movie id="1111"> <title>Interstellar</title> <genre>Science Fiction</genre> <duration>180 mins</duration> </movie> </movies> what i want to adding movie id tag to the last line, for example <?xml version="1.0" encoding="UTF-8" standalone="no"?><movies> <movie id="1111"> <title>Blackhat</title> <genre>thriller</genre> <duration> 90 mins </duration> <age>28</age></movie> <movie id="1002"> …

Member Avatar
Member Avatar
+0 forum 1

I am trying to get specific value(s) for a webpage that contains a highchart line chart... From the example below, I use chrome dev tools to view source and I see the following snip-it: `<circle class="data-points" id="frequency-data-point-1" cx="85" cy="434.96683928513573" r="4" tooltip="<strong>Frequency: </strong>1<br /><strong>APM: </strong>0.095"></circle>` I like to return return `0.095' for example I've tried using the following and other combinations but am unable to return the value I'm looking for div.ng-scope > data-frequency-line-view#frequency-line-view > svg > circle#frequency-data-point-1 I tried finding element by id since there is an ID and it does seem to find the element...but I haven't been able …

Member Avatar
+0 forum 0

I am having problem with maxOccurs in my code.. it is cauisng an error. Could anyone could aid me to avoid having error? <xs:simpleType name="nameType"> <xs:restriction base="string"> <xs:minLength value="1" /> <xs:maxLength value="20" /> </xs:restriction> </xs:simpleType> <xs:element name="information"> <xs:complexType> <xs:sequence> <xs:element name="personal" maxOccurs="10"> <xs:complexType> <xs:sequence> <xs:element type="nameType" name="name"/> <xs:element type="nameType" name="surname"/> <xs:element type="nameType" name="age"/> <xs:element type="nameType" name="postcode"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="school" maxOccurs="10"> <xs:complexType> <xs:sequence> <xs:element type="nameType" name="maths"/> <xs:element type="nameType" name="english"/> <xs:element type="nameType" name="physics"/> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:schema>

Member Avatar
Member Avatar
+0 forum 1

The End.